/* Sadho website — one stylesheet. System fonts, no external requests. */

/* ---------- Tokens ---------- */
:root {
  --indigo: #4B4691;
  --indigo-deep: #2A2760;
  --indigo-ink: #1B1940;
  --saffron: #FF9933;
  --marigold: #DE8517;
  --parchment: #FBF7F0;
  --white: #FFFFFF;

  --bg: var(--parchment);
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --text: #2B2118;
  --muted: #5E5347;
  --heading: #2E2A63;
  --link: var(--indigo);
  --link-hover: #332F6E;
  --border: #E6DDCF;
  --note-bg: #FFF4E6;
  --note-border: var(--marigold);
  --kicker: #9A5200;
  --focus: #1F6FEB;
  --shadow: 0 1px 2px rgba(43, 33, 24, .06), 0 12px 32px -12px rgba(43, 33, 24, .18);
  --shadow-lg: 0 30px 60px -20px rgba(27, 25, 64, .45);

  --on-dark: #FFFFFF;
  --on-dark-muted: #D9D6F2;
  --dark-band: linear-gradient(160deg, #4B4691 0%, #2A2760 55%, #1B1940 100%);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --band-y: clamp(56px, 8vw, 112px);
  --radius: 14px;
  --radius-lg: 24px;

  --step--1: clamp(.875rem, .85rem + .1vw, .95rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.07rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.85rem, 1.45rem + 2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.3rem);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gurmukhi", "Noto Sans Bengali", "Noto Sans Gujarati", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada", Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Noto Serif", "Noto Serif Devanagari", "Times New Roman", serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14122A;
    --bg-alt: #1A1834;
    --surface: #221F40;
    --text: #F1EBE2;
    --muted: #C9C0B4;
    --heading: #FFFFFF;
    --link: #FFB870;
    --link-hover: #FFD2A3;
    --border: #38345F;
    --note-bg: #2A2440;
    --note-border: var(--saffron);
    --kicker: var(--saffron);
    --focus: #8AB4FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
    --dark-band: linear-gradient(160deg, #2E2A6A 0%, #1E1B48 55%, #0F0E24 100%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p, ul, ol, table { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.mb0 { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--indigo); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); position: relative; }
.band--alt { background: var(--bg-alt); }
.band--dark { background: var(--dark-band); color: var(--on-dark); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--on-dark); }
.band--dark a:not(.btn) { color: #FFD2A3; }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.prose { max-width: 70ch; }
.center { text-align: center; }
.center .prose, .prose.center { margin-inline: auto; }
.lead { font-size: var(--step-1); color: var(--muted); }
.band--dark .lead { color: var(--on-dark-muted); }
.kicker { display: inline-block; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); margin-bottom: .6rem; }
.band--dark .kicker { color: var(--saffron); }
.section-head { max-width: 70ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: var(--step--1); line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-saffron { background: var(--saffron); color: #2B2118; box-shadow: 0 8px 20px -8px rgba(255, 153, 51, .8); }
.btn-saffron:hover { background: #FFA84D; color: #2B2118; }
.btn-outline { border-color: currentColor; color: var(--on-dark); background: transparent; }
.btn-outline:hover { color: var(--on-dark); background: rgba(255, 255, 255, .1); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--indigo); }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: var(--step-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.store-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 12.5rem; min-height: 56px; padding: .5rem 1.1rem; border-radius: 12px;
  background: #0F0E24; color: #fff; text-decoration: none; line-height: 1.25; border: 2px solid rgba(255, 255, 255, .2);
}
.store-btn small { font-size: .78rem; opacity: .85; }
.store-btn strong { font-size: 1.1rem; }
.store-btn:hover { color: #fff; border-color: var(--saffron); }
.store-btn.later { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--indigo); color: var(--on-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) { .site-header { background: #221F4F; } }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin-right: auto; }
.brand:hover { color: var(--on-dark); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-header :focus-visible { outline-color: var(--saffron); }

.menu-btn {
  display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem;
  background: transparent; color: var(--on-dark); border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: var(--step--1); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-header.open .menu-icon { background: transparent; }
.site-header.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.menu { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link, .drop > summary {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .75rem; border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none;
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-link:hover, .drop > summary:hover, .nav-link[aria-current="page"] { color: var(--on-dark); background: rgba(255, 255, 255, .12); }
.drop { position: relative; }
.drop-panel { list-style: none; margin: 0; padding: .5rem; }
.drop-panel li { margin: 0; }
.drop-panel a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.drop-panel a:hover, .drop-panel a[aria-current] { background: var(--note-bg); color: var(--heading); }
.drop-panel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; }
.lang-drop > summary svg { width: 18px; height: 18px; }
.lang-panel { display: grid; grid-template-columns: 1fr 1fr; min-width: 300px; }
.auth { display: flex; gap: .5rem; }

@media (min-width: 1000px) {
  .drop-panel {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; z-index: 60;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .lang-drop .drop-panel { left: auto; right: 0; }
}

@media (max-width: 999.98px) {
  .menu-btn { display: inline-flex; }
  .no-js .menu-btn { display: none; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .75rem;
    padding: .75rem var(--gutter) 1.25rem; background: inherit; background-color: var(--indigo);
    border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .4);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  @media (prefers-color-scheme: dark) { .menu { background-color: #221F4F; } }
  .js .site-header:not(.open) .menu { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .menu { position: static; box-shadow: none; width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link, .drop > summary { width: 100%; justify-content: flex-start; border-radius: 10px; }
  .drop > summary::after { margin-left: auto; }
  .drop-panel { background: rgba(255, 255, 255, .06); border-radius: 12px; margin-top: .25rem; }
  .drop-panel a { color: var(--on-dark); }
  .drop-panel a:hover, .drop-panel a[aria-current] { background: rgba(255, 255, 255, .12); color: var(--on-dark); }
  .auth { flex-direction: column; }
  .auth .btn { width: 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--dark-band); color: var(--on-dark); padding-block: clamp(40px, 6vw, 84px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 51, .35), transparent 65%); pointer-events: none;
}
.page-hero h1 { color: var(--on-dark); font-size: var(--step-4); margin-bottom: .3em; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 60ch; margin-bottom: .6em; }
.last-updated { font-size: var(--step--1); color: var(--on-dark-muted); margin: 0; }

.machine-note {
  background: var(--note-bg); border-left: 4px solid var(--note-border); border-radius: var(--radius);
  padding: .8rem 1.1rem; margin: 0 0 1.5rem; font-size: var(--step--1); max-width: 70ch;
}
.page-hero .machine-note { color: var(--text); }
.page-hero .machine-note a { color: var(--link); }

/* ---------- Documents (legal / support) ---------- */
.doc { display: grid; gap: 2rem; }
.doc h2 { font-size: var(--step-2); margin-top: 1.8em; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc-body { max-width: 72ch; min-width: 0; }
.toc { font-size: var(--step--1); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.2rem; }
.toc > summary { cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--marigold); }
.toc[open] > summary::after { content: "–"; }
.toc ol { list-style: none; margin: .75rem 0 0; padding: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem 0 .3rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--heading); border-left-color: var(--saffron); }
@media (min-width: 1024px) {
  .doc { grid-template-columns: 250px minmax(0, 72ch); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .toc { position: sticky; top: 96px; background: none; border: 0; padding: 0; }
  .js .toc > summary { pointer-events: none; }
  .js .toc > summary::after { content: none; }
}

.summary, .note {
  background: var(--note-bg); border-left: 4px solid var(--note-border); border-radius: var(--radius);
  padding: 1.1rem 1.35rem; margin: 0 0 1.75rem;
}
.summary h2 { font-size: var(--step-1); margin: 0 0 .5rem; }
.summary ul { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: var(--step--1); margin: 0; }
th, td { border-bottom: 1px solid var(--border); padding: .65rem .85rem; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--note-bg); color: var(--heading); }
caption { text-align: left; font-weight: 700; padding: .75rem .85rem; color: var(--heading); background: var(--surface); }

details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1.1rem; margin: 0 0 .75rem; }
details.faq > summary { cursor: pointer; font-weight: 700; color: var(--heading); }
details.faq[open] > summary { margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: #15132F; color: #CFCBEA; font-size: var(--step--1); border-top: 4px solid var(--saffron); }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #FFD2A3; }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(40px, 6vw, 72px) 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-brand .brand { font-size: 1.3rem; margin-bottom: .75rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer p { margin: 0 0 .6rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- Phone mockups ---------- */
.phone {
  position: relative; width: var(--phone-w, 280px); aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 44px;
  background: linear-gradient(145deg, #3A3760, #0E0D1E 60%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), var(--shadow-lg);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #0A0914; border-radius: 12px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(170deg, #4B4691, #2A2760); }
.phone-screen picture, .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: hero ---------- */
.hero { background: var(--dark-band); color: var(--on-dark); overflow: hidden; position: relative; padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 153, 51, .22), transparent 60%); pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; position: relative; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { color: var(--on-dark); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero .lead { color: var(--on-dark-muted); max-width: 40ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: var(--step--1); font-weight: 600; margin-bottom: 1.25rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 12px var(--saffron); }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--on-dark-muted); font-size: var(--step--1); }
.trust li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.trust svg { width: 18px; height: 18px; color: var(--saffron); }

.stage { position: relative; perspective: 1400px; min-height: clamp(460px, 62vw, 640px); display: grid; place-items: center; }
.stage .glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 153, 51, .55), rgba(255, 153, 51, .12) 45%, transparent 70%); filter: blur(10px); animation: pulse 6s ease-in-out infinite; }
.ring-wrap { position: absolute; width: min(92%, 560px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(64deg); }
.ring { width: 100%; height: 100%; animation: spin 80s linear infinite; }
.ring circle { fill: #FFD8AE; }
.ring .meru { fill: var(--saffron); filter: drop-shadow(0 0 6px var(--saffron)); }
.phone--front { --phone-w: clamp(210px, 24vw, 290px); margin-left: 34%; transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg); animation: float 7s ease-in-out infinite; z-index: 3; }
.phone--back { --phone-w: clamp(170px, 20vw, 245px); position: absolute; left: 4%; top: 9%; transform: rotateY(-26deg) rotateX(8deg) rotateZ(-6deg) translateZ(-140px); filter: brightness(.8) saturate(.9); animation: float-back 8s ease-in-out infinite; z-index: 2; }
.stage .shadow { position: absolute; bottom: 4%; width: 46%; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .45), transparent 70%); animation: shadow 7s ease-in-out infinite; }
@media (max-width: 959.98px) { .phone--front { margin-left: 30%; } .phone--back { left: 2%; } }

@keyframes float { 0%, 100% { transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg) translateY(0); } 50% { transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg) translateY(-16px); } }
@keyframes float-back { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- Home: feature showcase ---------- */
.feature-band { overflow: hidden; }
.feature-band:nth-of-type(even) { background: var(--bg-alt); }
.feature { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature-media { order: -1; }
}
.feature-copy { max-width: 60ch; }
.feature-copy h2 { font-size: var(--step-3); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--saffron); }
.ticks li::after { content: ""; position: absolute; left: .43rem; top: calc(.3em + .22rem); width: .33rem; height: .6rem; border-right: 2.4px solid #2B2118; border-bottom: 2.4px solid #2B2118; transform: rotate(45deg); }
.feature-media { position: relative; display: grid; place-items: center; perspective: 1200px; min-height: 420px; }
.feature-media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 153, 51, .28), transparent 65%); }
.tilt { --rx: 0deg; --ry: 0deg; --base-y: -12deg; --base-x: 4deg; transform: rotateY(calc(var(--base-y) + var(--ry))) rotateX(calc(var(--base-x) + var(--rx))); transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease; will-change: transform; }
.feature--flip .tilt { --base-y: 12deg; }
.tilt.hovering { transition: transform .15s ease-out; }
.js .reveal .tilt { opacity: 0; transform: translateX(80px) rotateY(40deg) rotateX(8deg); }
.js .feature--flip.reveal .tilt { transform: translateX(-80px) rotateY(-40deg) rotateX(8deg); }
.js .reveal.in .tilt { opacity: 1; transform: rotateY(calc(var(--base-y) + var(--ry))) rotateX(calc(var(--base-x) + var(--rx))); }
.js .reveal .feature-copy { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in .feature-copy { opacity: 1; transform: none; }

/* 108-bead counter */
.counter { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.counter-ring { position: relative; width: 132px; height: 132px; flex: none; }
.counter-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.counter-ring .beads { fill: none; stroke: var(--border); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 5.2360; }
.counter-ring .beads-on { fill: none; stroke: var(--saffron); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 5.2360; }
.counter-ring .progress { fill: none; stroke: #fff; stroke-width: 12; stroke-dasharray: 565.49; stroke-dashoffset: 0; }
.js .counter:not(.done) .progress { stroke-dashoffset: 565.49; }
.js .counter.run .progress { transition: stroke-dashoffset 1.8s cubic-bezier(.3, .6, .3, 1); stroke-dashoffset: 0; }
.counter-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.counter-label { color: var(--muted); font-size: var(--step--1); max-width: 22ch; }

/* How it works */
.steps { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #2B2118; background: linear-gradient(145deg, #FFB870, var(--saffron)); box-shadow: 0 10px 20px -8px rgba(255, 153, 51, .9), inset 0 -3px 0 rgba(0, 0, 0, .12); transform: rotate(-6deg); }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }

/* Free vs Plus */
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan h3 { font-size: var(--step-2); margin-bottom: .2em; }
.plan-tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #E7F5EC; color: #1D5B35; margin-bottom: .9rem; }
.plan--plus { background: var(--dark-band); color: var(--on-dark); border-color: transparent; position: relative; overflow: hidden; }
.plan--plus::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 153, 51, .45), transparent 65%); }
.plan--plus h3 { color: var(--on-dark); }
.plan--plus .plan-tag { background: var(--saffron); color: #2B2118; }
.plan--plus .ticks li::before { background-color: #FFD2A3; }
.plan .btn { margin-top: .75rem; position: relative; z-index: 1; }

/* Promise */
.promise-grid { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 2rem; }
@media (min-width: 640px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .promise-grid { grid-template-columns: repeat(4, 1fr); } }
.promise-grid li { margin: 0; padding: 1.4rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.promise-grid svg { width: 32px; height: 32px; color: var(--saffron); margin-bottom: .75rem; }
.promise-grid h3 { font-size: var(--step-1); margin-bottom: .3em; }
.promise-grid p { margin: 0; color: var(--on-dark-muted); font-size: var(--step--1); }

/* Languages */
.langs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 0; }
.langs li { margin: 0; }
.langs a { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--heading); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.langs a:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--saffron); color: var(--heading); }
.langs .native { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.langs .latin { font-size: var(--step--1); color: var(--muted); }

/* Final CTA */
.cta { background: linear-gradient(135deg, #FFB870 0%, var(--saffron) 45%, var(--marigold) 100%); color: #2B2118; overflow: hidden; }
.cta h2 { color: #2B2118; }
.cta .lead { color: #4A3520; }
.cta .btn-saffron { background: #1B1940; color: #fff; box-shadow: 0 10px 24px -10px rgba(27, 25, 64, .9); }
.cta .btn-saffron:hover { background: #2A2760; color: #fff; }
.cta .store-btn.later { color: #2B2118; }
.cta-inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }

/* App (coming soon) page */
.soon { min-height: 70vh; display: grid; align-items: center; }
.soon-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal .tilt, .js .reveal .feature-copy { opacity: 1 !important; }
  .js .reveal .tilt { transform: rotateY(var(--base-y)) rotateX(var(--base-x)) !important; }
  .js .reveal .feature-copy { transform: none !important; }
  .js .counter .progress { stroke-dashoffset: 0 !important; }
}

@media print {
  .site-header, .menu, .skip-link, .toc, .hero .stage, .feature-media { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .band--dark { background: #fff; color: #000; }
  .page-hero h1 { color: #000; }
}

/* Small additions */
.cta .last-updated { color: #4A3520; }
.soon-logo { position: relative; z-index: 3; border-radius: 48px; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .soon-logo { animation: none; } }

.page-hero .wrap { position: relative; z-index: 1; }
@media (min-width: 640px) { .langs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .langs { grid-template-columns: repeat(9, 1fr); gap: .75rem; } .langs .native { font-size: 1.3rem; } .langs a { padding: 1.1rem .8rem; } }
.machine-note { color: var(--text); }
.machine-note a, .hero .machine-note a, .page-hero .machine-note a { color: var(--link); }
.beta { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; vertical-align: middle; background: var(--saffron); color: #2B2118; text-transform: none; }
/* Let the hero settle before the gentle motion starts (keeps first paint calm and fast) */
.phone--front, .phone--back, .stage .shadow, .stage .glow, .ring { animation-delay: 2s; }

/* ---------- Light + dark screenshot pairs ---------- */
/* Feature band: light phone in front, the dark-theme phone behind it, tilted the other way. */
.pair {
  --phone-w: clamp(150px, 38vw, 250px);
  position: relative; display: grid; place-items: center;
  width: calc(var(--phone-w) * 1.55); max-width: 100%;
}
.pair .phone { grid-area: 1 / 1; }
.pair .phone--light { z-index: 2; justify-self: start; transform: rotate(-3deg); }
.pair .phone--dark { z-index: 1; justify-self: end; transform: translateY(6%) rotate(5deg) scale(.92); filter: saturate(.95); }
.feature--flip .pair .phone--light { justify-self: end; transform: rotate(3deg); }
.feature--flip .pair .phone--dark { justify-self: start; transform: translateY(6%) rotate(-5deg) scale(.92); }

/* Hero: the light home screen floats in front, the dark one sits behind on the other side. */
.stage--pair .phone--front { margin-left: 0; margin-right: 34%; }
.phone--back-dark {
  --phone-w: clamp(170px, 20vw, 245px);
  position: absolute; right: 4%; top: 9%; z-index: 2;
  transform: rotateY(22deg) rotateX(6deg) rotateZ(5deg) translateZ(-140px);
  filter: brightness(.92);
  animation: float-back 8s ease-in-out infinite; animation-delay: 2s;
}
@media (max-width: 959.98px) {
  .stage--pair .phone--front { margin-right: 30%; }
  .phone--back-dark { right: 2%; }
}
@media (prefers-reduced-motion: reduce) { .phone--back-dark { animation: none; } }
