/* cashflowos.in home page — on top of seo.css (tokens, header, footer, buttons, faq). The product-catalogue look. */
html[lang="hi"] body, html[lang="hi"] .btn { font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, sans-serif; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.btn.big { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.dark { background: var(--slab); border-color: var(--slab); }
.h-link { font-weight: 700; }

/* language picker */
.lang-picker { position: relative; }
.lang-btn { height: 42px; padding: 0 12px; border: 1px solid #cfcbbf; background: transparent; border-radius: var(--r); font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.lang-menu { display: none; position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; min-width: 140px; box-shadow: 0 10px 30px rgba(15, 20, 32, .1); }
.lang-btn[aria-expanded="true"] + .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--tint); }
@media (max-width: 920px) { .lang-picker { margin-left: auto; } .burger { margin-left: 8px; } }

/* hero */
.h-hero { padding: 54px 0 40px; }
.h-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.h-hero h1 { font-size: clamp(44px, 7vw, 86px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; }
.h-hero h1 span, .h-display span { color: var(--blue); }
.h-lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 0 0 26px; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; background: var(--slab); color: #fff; border-radius: var(--r); text-decoration: none; }
.store.is-soon { opacity: .55; }
.store-ic { width: 24px; height: 24px; }
.store small { display: block; font-size: 10px; letter-spacing: .06em; opacity: .8; line-height: 1; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.h-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 22px 0 0; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.h-ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.h-hero-art { position: relative; }
.h-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.h-phone { position: absolute; left: -46px; bottom: -26px; width: 41%; border-radius: 24px; border: 6px solid #10131a; box-shadow: 0 24px 60px rgba(15, 20, 32, .28); }
.h-chip { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 11px 14px; box-shadow: 0 14px 40px rgba(15, 20, 32, .16); font-size: 13px; }
.h-chip small { display: block; color: var(--muted); font-size: 11.5px; } .h-chip b { font-size: 15px; }
.h-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #d9f6ea; }
.h-chip.c1 { right: -14px; top: 26px; } .h-chip.c2 { right: 22px; bottom: 34px; }
.h-chip.c2 b { color: var(--blue); }
@media (max-width: 900px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-phone { left: 10px; width: 38%; }
  .h-chip.c1 { right: 8px; }
}

.h-band { background: var(--blue); color: #fff; }
.h-band-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding: 16px 0; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }

/* sections */
.h-sec { padding: 90px 0; }
.h-sec.tint { background: #efede6; }
.h-display { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 18px; max-width: 18ch; }
.h-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-steps b { display: block; font-size: 54px; line-height: 1; color: var(--blue); letter-spacing: -.04em; margin-bottom: 14px; }
.h-steps h3, .h-four h3, .h-points h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; }
.h-steps p, .h-four p, .h-points p { color: var(--ink-2); margin: 0; }
.h-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.h-split.rev { grid-template-columns: 1fr 1.1fr; }
.h-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 30px; }
.h-points .eyebrow, .h-four .eyebrow { margin-bottom: 6px; }
.h-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h-screens.two { grid-template-columns: 1fr 1fr; } .h-screens.one { grid-template-columns: minmax(0, 320px); justify-content: center; }
.h-screens figure { margin: 0; }
.h-screens img { border-radius: 22px; border: 5px solid #10131a; box-shadow: 0 18px 44px rgba(15, 20, 32, .14); background: #fff; }
.h-screens figcaption { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.h-screens figure:nth-child(even) { transform: translateY(34px); }
.h-wide { margin: 40px 0 0; position: relative; }
.h-wide img { width: 100%; max-height: 560px; object-fit: cover; }
.h-wide figcaption { background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 16px max(16px, calc((100% - 1160px) / 2)); }
.h-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.h-list { list-style: none; padding: 0; margin: 0 0 18px; } .h-list li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.h-list b { color: var(--ink); }
.h-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.h-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.h-tile:hover { border-color: var(--blue); transform: translateY(-3px); }
.h-tile h3 { font-size: 18px; letter-spacing: -.015em; margin: 0 0 6px; } .h-tile p { color: var(--muted); margin: 0; font-size: 14.5px; }
.h-tile.photo { grid-column: span 2; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.h-tile.photo img { width: 100%; height: 100%; object-fit: cover; } .h-tile.photo div { padding: 22px; align-self: end; }

.h-blue { background: var(--blue); color: #fff; padding: 90px 0; }
.h-blue .h-display span { color: #9fe8c6; } .h-blue .h-lede { color: #dce6ff; }
.h-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 36px; }
.h-roles h3 { margin: 0 0 6px; font-size: 21px; } .h-roles p { color: #dce6ff; margin: 0; }
.h-flow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.h-flow div b { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; } .h-flow div span { color: #dce6ff; }
.h-flow i { font-style: normal; font-size: 28px; color: #9fe8c6; }
.h-fine { color: #c8d6ff; font-size: 14px; margin-top: 30px; max-width: 80ch; }

/* download */
.dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.dl-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.dl-card h3 { margin: 0 0 6px; font-size: 19px; } .dl-card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.dl-foot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .dl-foot > small { color: var(--muted); font-size: 12.5px; }
.mine-tag { display: none; position: absolute; top: -10px; left: 18px; background: var(--green); color: #063d28; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.dl-card.is-mine { border-color: var(--blue); } .dl-card.is-mine .mine-tag { display: block; }
.ribbon { position: absolute; top: 14px; right: 14px; background: #fff3e6; color: #8a4b0e; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dl-more { margin-top: 18px; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.plan h3 { margin: 0; font-size: 20px; } .plan-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 10px; }
.plan.pro { background: var(--blue); color: #fff; border-color: var(--blue); } .plan.pro p { color: #dce6ff; } .plan.pro .plan-big { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; } .ticks li { padding: 5px 0 5px 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* explore */
.h-explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.h-explore h3 { font-size: 19px; margin: 0 0 10px; } .h-explore h3 a { color: var(--ink); text-decoration: none; }
.h-explore p a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.h-explore p a:hover { color: var(--blue); } .h-explore p a:last-child { color: var(--blue); font-weight: 700; border: 0; }

/* faq + contact */
.h-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact { background: var(--slab); color: #fff; border-radius: 18px; padding: 44px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; } .contact p { color: #c9cdd6; }
.ticks.light li::before { color: var(--green); }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: #c9cdd6; }
.demo-form input, .demo-form textarea { font: 15px var(--font); padding: 11px 12px; border-radius: var(--r); border: 1px solid #353a44; background: #20232a; color: #fff; }
.demo-form textarea { min-height: 84px; resize: vertical; }
.demo-form .full { grid-column: 1 / -1; } .demo-form .opt { color: #8d93a0; font-weight: 400; }
.demo-form .fine { font-size: 12.5px; color: #8d93a0; margin: 0; }
.trap { position: absolute; left: -9999px; }

@media (max-width: 1000px) {
  .h-split, .h-split.rev, .h-faq, .contact { grid-template-columns: 1fr; }
  .h-four, .h-tiles, .dl, .h-explore { grid-template-columns: 1fr 1fr; }
  .h-steps, .h-roles { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .h-sec, .h-blue { padding: 64px 0; }
  .h-four, .h-tiles, .dl, .h-explore, .h-points, .plans, .demo-form { grid-template-columns: 1fr; }
  .h-tile.photo { grid-column: auto; grid-template-columns: 1fr; }
  .h-screens figure:nth-child(even) { transform: none; }
  .contact { padding: 26px; }
}

/* "Your Tally" section: the text, then the four screens in one row */
#books .h-split { grid-template-columns: 1fr; gap: 44px; }
#books .h-points { grid-template-columns: repeat(4, 1fr); }
#books .h-screens { grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; }
@media (max-width: 1000px) { #books .h-points, #books .h-screens { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { #books .h-points { grid-template-columns: 1fr; } }
/* side screens never taller than the viewport */
.h-screens.two { max-width: 560px; }

[hidden] { display: none !important; }

/* download cards (v2): icon, text, then the same-size button pinned to the bottom and one note line */
.dl-card { padding: 24px; gap: 0; transition: border-color .15s, box-shadow .15s; }
.dl-card:hover { border-color: #cfcbbf; box-shadow: 0 10px 30px rgba(15, 20, 32, .06); }
.dl-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.dl-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-ic svg .fill { fill: currentColor; stroke: none; }
.dl-ic.web { background: var(--tint); color: var(--blue); }
.dl-ic.android { background: #e3f6ec; color: #1f8a5b; }
.dl-ic.ios { background: #eceef2; color: #10131a; }
.dl-ic.win { background: #e6f0fb; color: #0a64c2; }
.dl-card h3 { font-size: 20px; margin: 0 0 8px; }
.dl-card p { margin: 0 0 22px; flex: 1; font-size: 15px; line-height: 1.55; }
.dl-foot { margin-top: auto; gap: 10px; align-items: stretch; }
.dl-foot .btn, .dl-foot .store { width: 100%; height: 52px; justify-content: center; font-size: 15.5px; }
.dl-foot .store { gap: 12px; }
.dl-foot .store.soon { background: transparent; color: var(--muted); border: 1px dashed #c9c5b8; opacity: 1; cursor: default; }
.dl-foot > small { display: block; min-height: 2.6em; line-height: 1.3; text-align: center; }
.ribbon { top: 24px; right: 22px; }
.store > span { text-align: left; }
.dl-foot .store b { font-size: 17px; }

/* hero on phones: a shorter photo, the app screen as a clear inset inside it, one floating card */
@media (max-width: 620px) {
  .h-hero { padding: 28px 0 70px; }
  .h-hero h1 { font-size: 42px; }
  .h-ctas { flex-direction: column; align-items: stretch; }
  .h-ctas .store, .h-ctas .btn { width: 100%; justify-content: center; }
  .h-hero-art { margin-top: 6px; }
  .h-photo { aspect-ratio: 4 / 3.4; border-radius: 16px; }
  .h-phone { left: auto; right: 12px; bottom: -44px; width: 40%; border-width: 4px; border-radius: 18px; }
  .h-chip.c1 { left: 12px; right: auto; top: 12px; padding: 8px 11px; }
  .h-chip.c1 b { font-size: 13px; } .h-chip.c1 small { font-size: 10.5px; }
  .h-chip.c2 { display: none; }
}
/* a "Start free trial" button stays in the header on phones */
.top-cta-s { display: none; }
@media (max-width: 920px) { .top-cta-s { display: inline-flex; height: 38px; padding: 0 12px; font-size: 14px; margin-left: auto; } .top-cta-s + .lang-picker { margin-left: 8px; } }
@media (max-width: 340px) { .top-cta-s { display: none; } }
@media (max-width: 920px) { .top-cta-s ~ .burger { margin-left: 8px; } }
@media (max-width: 620px) {
  .h-band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 11.5px; letter-spacing: .04em; padding: 14px 0; }
}

/* never wider than the screen: grid cells may shrink below their content, and buttons wrap on small screens
   (long labels, Hinglish, and phones with large text set in Android settings pushed the cards past the edge) */
.dl, .h-tiles, .h-four, .h-explore, .h-points, .h-steps, .h-roles, .plans, .h-screens, .cards { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.dl-card, .h-tile, .plan, .card, .h-split-copy, .h-hero-copy { min-width: 0; }
.dl-card p, .dl-card h3 { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .dl, .h-tiles, .h-four, .h-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-steps, .h-roles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .dl, .h-tiles, .h-four, .h-explore, .h-points, .plans, .demo-form, #books .h-points { grid-template-columns: minmax(0, 1fr); }
  #books .h-screens, .h-screens.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn, .store { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
  .h-chip { max-width: calc(100% - 24px); }
}
/* hidden on html, clip on body: a body that is a scroll container stops the sticky header from sticking */
html { overflow-x: hidden; } body { overflow-x: clip; }
