/* RapidCue website: shared Jamun+ styles for every page except the homepage,
   which inlines the same rules. Tokens, base, buttons, nav, page header, footer. */
:root {
  --plum: #5e2b5c; --plum-700: #4b2149; --plum-800: #3d1a3c; --plum-900: #2e132d;
  --plum-500: #8e5a8c; --plum-300: #c9a6c6; --plum-200: #e6d0e3; --plum-150: #f3e8f1; --plum-100: #f5ecf3; --plum-50: #fbf6fa;
  --cue: #2c8580; --cue-700: #1a5753; --cue-300: #7cc9c2; --cue-200: #a8d3ce; --cue-50: #e1f1ef;
  --sky: #4f7db3; --sky-100: #e7eef7; --lilac: #8d6cc0; --lilac-100: #efe9f8; --haldi: #c8901f; --haldi-100: #faf0da;
  --mehendi: #6e8030; --mehendi-100: #eef2df; --guava: #db6f59; --guava-100: #fceae5;
  --success: #276b43; --success-50: #e4f2e8;
  --canvas: #faf6f4; --surface: #ffffff; --ink: #231a22; --ink-2: #625761; --muted: #7a6d78; --line: #ece3e6; --line-soft: #f4eef0;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body: Inter, "Noto Sans Devanagari", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-card: 22px; --r-tile: 16px; --r-inner: 12px; --bubble: 22px 22px 22px 6px;
  --shadow-pop: 0 12px 32px rgba(35,26,34,.14), 0 2px 6px rgba(35,26,34,.06);
  --shadow-modal: 0 30px 80px rgba(35,26,34,.28);
  --ease: cubic-bezier(.2,0,0,1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--plum-200); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-800); }
.btn-white { background: #fff; color: var(--plum); }
.btn-white:hover { background: var(--plum-50); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cue-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cue-700); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; border-radius: 1px; background: currentColor; }
.bars i:nth-child(1) { height: 40%; } .bars i:nth-child(2) { height: 70%; } .bars i:nth-child(3) { height: 100%; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--plum-500); }
.section { padding-block: 112px; }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav.scrolled { background: rgba(250,246,244,.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; color: #fff; transition: color .3s; }
.nav.scrolled .brand { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
/* The mark is a <use> of #mark; its colours come in through these variables. */
.brand { --mark-c: #fff; --mark-dot: var(--cue-300); }
.nav.scrolled .brand, .foot .brand { --mark-c: var(--plum); --mark-dot: var(--cue); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); transition: background .2s, color .3s; }
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav.scrolled .nav-links a { color: var(--ink-2); } .nav.scrolled .nav-links a:hover { background: var(--plum-100); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .login { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; transition: color .3s; }
.nav.scrolled .nav-cta .login { color: var(--ink); }
.nav-cta .btn { height: 42px; padding: 0 18px; }
.nav .btn-start { background: #fff; color: var(--plum); }
.nav.scrolled .btn-start { background: var(--plum); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.nav.scrolled .menu-btn { background: var(--plum-100); color: var(--ink); }
@media (max-width: 960px) {
  .nav-links, .nav-cta .login { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 560px) { .nav-cta .btn-start { display: none; } .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; } }
.mobile-menu { display: none; position: fixed; inset: 72px 12px auto; z-index: 49; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-modal); padding: 12px; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; text-decoration: none; font-weight: 600; border-radius: var(--r-inner); }
.mobile-menu a:hover { background: var(--plum-50); }


/* ---------- Page header (inner pages): a short plum stage with the hero's blobs and wave ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--plum); color: #fff; padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 120px; }
.page-hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.page-hero .b1 { width: 460px; height: 460px; left: -140px; top: -180px; background: rgba(141,108,192,.55); animation: drift 22s ease-in-out infinite; }
.page-hero .b2 { width: 520px; height: 520px; right: -180px; bottom: -280px; background: rgba(44,133,128,.42); animation: drift 26s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,40px) scale(1.08); } 66% { transform: translate(-40px,30px) scale(.94); } }
.page-hero .eyebrow { color: var(--cue-300); }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; max-width: 18ch; }
.page-hero p.lead { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.82); max-width: 58ch; }
.page-hero .rise { animation: heroRise .8s var(--ease) both; }
.page-hero .rise:nth-child(2) { animation-delay: .08s; } .page-hero .rise:nth-child(3) { animation-delay: .16s; } .page-hero .rise:nth-child(4) { animation-delay: .24s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; pointer-events: none; }

/* ---------- Shared bits ---------- */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line-soft); padding: 28px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font: 15px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-inner); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 3px var(--plum-150); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.invalid input, .field.invalid textarea { border-color: var(--guava); }
.field .err { font-size: 13px; color: #a8402c; }

/* Long-form text (legal pages) */
.prose { max-width: 760px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.prose h2 { color: var(--ink); font-size: 26px; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 96px; }
.prose h3 { color: var(--ink); font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--plum); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* Accordion (FAQ) built on <details> */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font: 600 18px/1.35 var(--body); color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--plum-100); color: var(--plum); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background .2s; }
.qa[open] summary .pm { transform: rotate(45deg); background: var(--plum); color: #fff; }
.qa .ans { padding: 0 4px 24px; color: var(--ink-2); max-width: 70ch; }
.qa .ans p + p { margin-top: 10px; }
.qa .ans a { color: var(--plum); }
.qa[open] .ans { animation: heroRise .35s var(--ease) both; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--plum); color: #fff; border-radius: 36px; padding: 88px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(36px, 6vw, 68px); line-height: 1; font-weight: 800; max-width: 16ch; }
.cta p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 52ch; }
.cta .voice { width: 120px; height: 120px; }
footer { padding-block: 72px 48px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.foot a { display: block; text-decoration: none; padding: 4px 0; color: var(--ink); font-size: 15px; }
.foot a:hover { color: var(--plum); }
.foot .brand { display: inline-flex; color: var(--ink); }
.foot p { color: var(--ink-2); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal where the browser supports scroll-driven animation; content is
   always visible otherwise. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { animation: none !important; }
}
