/* Finyaara home page - values from the "Home page v2, CA-first" mockup (with v1's How it works,
   trust and FAQ sections). Light only, as designed. */
:root {
  --ink: #0d1f1a;
  --text: #3e4f4a;
  --muted: #5a6a65;
  --bg: #f4f6f5;
  --white: #ffffff;
  --line: #d9e0dd;
  --line-strong: #c9d3cf;
  --input-line: #b5c2bd;
  --ca: #0b6e4f;
  --ca-dark: #084d38;
  --ca-tint: #e3f1ea;
  --owner: #0d1f1a;
  --on-dark: #f4f6f5;
  --on-dark-muted: #b9c7c2;
  --warn-bg: #fdebdd;
  --warn-ink: #7a3306;
  --error: #a3361b;

  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  color-scheme: light;
}

/* Devanagari: Bricolage and Plex Sans have no Hindi glyphs. */
:root:lang(hi) {
  --font-body: "IBM Plex Sans Devanagari", "IBM Plex Sans", system-ui, sans-serif;
  --font-head: "IBM Plex Sans Devanagari", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Smooth only once the page has loaded (site.js adds the class): arriving at a #section must jump
   there, not animate the whole page from the top. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll { scroll-behavior: auto; }
}

a { color: var(--ink); }
a:hover { color: var(--ca); }

:focus-visible { outline: 3px solid var(--ca); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
p { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 24px; }
.section-tight { padding-bottom: 96px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; color: var(--white); }

.strong { font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.num { text-align: right; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn-large { min-height: 48px; padding: 14px 24px; font-size: 16px; }
.btn-ca { background: var(--ca); color: var(--white); }
.btn-ca:hover { background: var(--ca-dark); color: var(--white); }
.btn-ca-outline { color: var(--ca); border-color: var(--ca); background: transparent; }
.btn-ca-outline:hover { background: var(--ca-tint); color: var(--ca-dark); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); font-size: 14px; white-space: nowrap; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* ---- Header ---- */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; color: #13306b; }
.wordmark img { display: block; width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav > a:not(.btn) { text-decoration: none; padding-block: 10px; }
.nav-dot { display: inline-flex; align-items: center; gap: 8px; }
.nav-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.nav-dot-ca::before { background: var(--ca); }
.nav-dot-owner::before { background: var(--owner); }

.lang-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 600; min-width: 44px; min-height: 36px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.lang-toggle button[lang="hi"] { font-family: "IBM Plex Sans Devanagari", system-ui, sans-serif; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---- Hero ---- */
.hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.eyebrow { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
:root:lang(hi) .eyebrow { text-transform: none; letter-spacing: 0; }
.eyebrow-ca { color: var(--ca); }
.eyebrow-light { color: var(--on-dark-muted); }
.eyebrow-muted { color: #4a5a55; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.035em; max-width: 920px; }
:root:lang(hi) .hero h1 { line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--text); max-width: 620px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.audience-links { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; }
.owner-link { font-size: 15px; color: var(--owner); }

/* ---- Showcase ---- */
.showcase { padding-top: 24px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.view-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; }
.view-toggle button {
  font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.view-toggle button[data-view="ca"][aria-pressed="true"] { background: var(--ca); color: var(--white); }
.view-toggle button[data-view="owner"][aria-pressed="true"] { background: var(--owner); color: var(--white); }

.frame { width: 100%; max-width: 820px; padding: 8px; border-radius: 24px; background: var(--ca); transition: background-color 0.2s; }
.frame[data-frame="owner"] { background: var(--owner); }
.card { background: var(--white); border-radius: 18px; overflow: hidden; text-align: left; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e6ebe9; }
.card-title { font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; color: var(--white); white-space: nowrap; }
.pill-ca { background: var(--ca); }
.pill-owner { background: var(--owner); }

.row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #eef2f0; align-items: center; }
.row:last-child { border-bottom: 0; }
.row-head { padding-block: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.phone-legend { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-ok { background: var(--ca-tint); color: #0b4a35; }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #eef2f0; }
.todo li:last-child { border-bottom: 0; }
.todo .muted { font-size: 14px; }

/* ---- CA desks ---- */
#desks h2, #how h2, .demo h2, .faq h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; }
#desks h2 { margin-top: -12px; }
.desk-list { margin: 0; border-top: 2px solid var(--ca); }
.desk-list > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.desk-list dt { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.desk-list dd { margin: 0; color: var(--text); }

/* ---- How it works ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--ink); padding-top: 20px; }
.step-no { font-family: var(--font-mono); font-size: 14px; color: var(--ca); text-transform: uppercase; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--text); }

.trust { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 24px 28px; }
.trust svg { flex-shrink: 0; margin-top: 2px; }
.trust h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; }
.trust-list { margin: 8px 0 0; padding-left: 20px; color: var(--text); display: grid; gap: 6px; }

/* ---- Owners ---- */
.owner-band { background: var(--owner); color: var(--on-dark); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: center; }
.owner-copy { display: flex; flex-direction: column; gap: 12px; }
.owner-band h2 { color: var(--on-dark); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.02em; line-height: 1.15; }
.owner-band p { color: #d5dfdb; }
.owner-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.owner-trial { color: var(--on-dark-muted); font-size: 15px; }
.owner-trial:hover { color: var(--white); }

/* ---- Coming next ---- */
.next-box { border: 1px solid var(--line-strong); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.next-box h2 { font-size: 13px; letter-spacing: 0.08em; }
.next-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border-radius: 16px; max-width: 560px; }

/* ---- Pricing + form ---- */
.demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 20px; }
.demo-copy > p:not(.muted) { color: var(--text); }
.plans { display: flex; gap: 12px; flex-wrap: wrap; }
.plan { flex: 1 1 200px; border-radius: 16px; padding: 16px 20px; color: var(--white); }
.plan-ca { background: var(--ca); }
.plan-owner { background: var(--owner); }
.plan-name { font-size: 14px; color: var(--ca-tint); }
.plan-owner .plan-name { color: #d5dfdb; }
.plan-price { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.plan-note { font-size: 13px; opacity: 0.85; }
.demo-copy a { color: var(--ca); }

.demo-form { background: var(--bg); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.form-note { background: var(--ca-tint); color: #0b4a35; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; padding: 12px 16px; min-height: 48px; width: 100%;
  border: 1px solid var(--input-line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 88px; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.radios { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 15px; }
.radios label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.radios input { accent-color: var(--ca); width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-result { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.form-result-ok { background: var(--ca-tint); color: #0b4a35; }
.form-result-error { background: #fbe9e4; color: var(--error); }

/* ---- FAQ ---- */
.faq { max-width: 860px; padding-block: 96px; display: flex; flex-direction: column; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary { font-weight: 600; padding: 20px 32px 20px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text); padding-bottom: 20px; margin-top: -8px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 32px; font-size: 14px; color: #4a5a55; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Small screens ---- */
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .section-tight { padding-bottom: 64px; }
  .hero { padding-top: 40px; }
  .header-inner { padding-block: 14px; }
  .site-nav { gap: 4px 16px; }
  .nav-secondary { display: none; } /* How it works, Pricing: the page scrolls to them anyway */
  .row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .row-head { display: none; }
  .phone-legend { display: flex; justify-content: space-between; padding: 10px 22px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid #eef2f0; }
  .row > :nth-child(3), .row > :nth-child(4) { font-size: 14px; color: var(--muted); }
  .owner-band, .next-box { padding: 28px 22px; }
  .next-item { flex-direction: column; align-items: flex-start; }
  .demo-form { padding: 20px; }
}

/* ---- Privacy / terms ---- */
.legal { max-width: 760px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; margin-top: 36px; margin-bottom: 8px; }
.legal h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-top: 20px; margin-bottom: 4px; }
.legal p, .legal li { color: var(--text); }
.legal p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin: 8px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--ca); }
.legal-updated { color: var(--muted); font-size: 14px; }
