/* HabitGenix AI website — design system (W1, 20 Nov 2026).
   Static, no JavaScript. Colours come from the app's Rising H brand:
   plum #2A1E4C → #4B3588 → #7457C2, lavender #B9A4F5, peach #F59B72.
   Light and dark follow the visitor's device. Contrast pairs are checked by
   tool/site_pages_check.mjs (WCAG AA, 4.5:1). */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f4fd;
  --surface: #ffffff;
  --surface-2: #f1ecfa;
  --tint: #ece4fa;
  --border: #e2d9f2;
  --text: #1a1330;
  --text-2: #544b68;
  --primary: #6a4bbd;
  --on-primary: #ffffff;
  --primary-strong: #4b3588;
  --peach: #f59b72;
  --peach-strong: #9c4219;
  --peach-soft: #fde9df;
  --green: #1f7a52;
  --green-soft: #def3e8;
  --hero: #2a1e4c;
  --on-hero: #ffffff;
  --on-hero-muted: #d3c9ee;
  --warn-bg: #fff1d6;
  --warn-text: #664200;
  --shadow: 0 1px 2px rgba(43, 31, 77, .06), 0 12px 32px -12px rgba(43, 31, 77, .18);
  --shadow-lg: 0 30px 80px -30px rgba(43, 31, 77, .45);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110c1f;
    --surface: #1a1430;
    --surface-2: #211938;
    --tint: #2a2049;
    --border: #342958;
    --text: #f4f0fd;
    --text-2: #c4bad9;
    --primary: #a68cf0;
    --on-primary: #150e29;
    --primary-strong: #cbb9ff;
    --peach-strong: #ffb48f;
    --peach-soft: #3a2420;
    --green: #7fd8a8;
    --green-soft: #183327;
    --hero: #1b1335;
    --on-hero: #ffffff;
    --on-hero-muted: #d3c9ee;
    --warn-bg: #3a2c0b;
    --warn-text: #ffe2a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--primary-strong); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
mark.todo { background: var(--warn-bg); color: var(--warn-text); padding: 0 .3em; border-radius: 5px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--text-2); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; }
.skip:focus { top: 12px; }

.draft { background: var(--warn-bg); color: var(--warn-text); font-size: .88rem; font-weight: 600; padding: 8px 0; text-align: center; }
.draft mark.todo { background: transparent; text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-ai { display: inline-block; margin-left: 6px; padding: 1px 7px 2px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: var(--on-primary); background: var(--primary); vertical-align: 2px; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--text); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--primary-strong); background: var(--tint); }
.nav-desktop { margin-left: auto; }
.header-cta { white-space: nowrap; }
.menu { display: none; margin-left: auto; position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-shadow: inset 0 4px 0 -2px transparent; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu[open] > summary { background: var(--tint); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 300px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--tint); color: var(--primary-strong); }
.menu-panel .sep { height: 1px; background: var(--border); margin: 8px 6px; }

@media (max-width: 920px) {
  .header-inner .nav-desktop, .header-inner .header-cta { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.05rem; }
  .brand-ai { margin-left: 4px; }
}

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(106, 75, 189, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--tint); }
.btn-light { background: #ffffff; color: #2b1f4d; }
.btn-onhero { background: rgba(255, 255, 255, .1); color: var(--on-hero); border-color: rgba(255, 255, 255, .28); }
.btn-onhero:hover { background: rgba(255, 255, 255, .16); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: .88rem; border-radius: 11px; }
.btn-soon { cursor: default; background: var(--tint); color: var(--primary-strong); border: 1px dashed color-mix(in srgb, var(--primary-strong) 45%, transparent); }
.btn-soon:hover { transform: none; }
.play-soon { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #0f0b1a; color: #ffffff; border: 1px solid rgba(255, 255, 255, .25); }
.play-soon svg { width: 26px; height: 26px; flex: none; }
.play-soon span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.02rem; }
.play-soon small { font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #d3c9ee; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; }
.badge-soon { background: var(--peach-soft); color: var(--peach-strong); }
.badge-plus { background: var(--tint); color: var(--primary-strong); }
.badge-free { background: var(--green-soft); color: var(--green); }
.badge-onhero { background: rgba(245, 155, 114, .18); color: #ffd2bd; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-hero); background:
  radial-gradient(60% 70% at 85% 20%, rgba(245, 155, 114, .28), transparent 60%),
  radial-gradient(50% 60% at 10% 100%, rgba(185, 164, 245, .22), transparent 60%),
  linear-gradient(140deg, #1d1438 0%, var(--hero) 45%, #3a2a70 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #ffffff; }
.hero h1 .glow { background: linear-gradient(90deg, #ffd2bd 0%, #f9b08e 40%, #cbb9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--on-hero-muted); font-size: 1.2rem; }
.hero .eyebrow { color: #ffd2bd; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--on-hero-muted); font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(127, 216, 168, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd8a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero .cta-row { margin-top: 30px; }

.stage { position: relative; min-height: 560px; }
.phone { position: absolute; width: 270px; border-radius: 42px; padding: 9px; background: linear-gradient(160deg, #3b2f5c, #120c22); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.phone img { border-radius: 34px; width: 100%; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 99px; background: rgba(0, 0, 0, .55); z-index: 2; }
.phone-front { right: 40px; top: 0; z-index: 2; }
.phone-back { right: 250px; top: 70px; width: 230px; transform: rotate(-6deg); opacity: .96; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: #1a1330; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); font-size: .88rem; line-height: 1.3; }
.float strong { display: block; font-size: .95rem; }
.float span.ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float span.ic svg { width: 20px; height: 20px; }
.float-1 { left: -8px; top: 330px; }
.float-1 span.ic { background: #fde9df; color: #b5511f; }
.float-2 { right: 0; bottom: 60px; }
.float-2 span.ic { background: #def3e8; color: #1f7a52; }
@media (prefers-reduced-motion: no-preference) {
  .float-1 { animation: bob 6s ease-in-out infinite; }
  .float-2 { animation: bob 7s ease-in-out -2s infinite; }
  .phone-front { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .phone-back { animation: rise-tilt 1.1s cubic-bezier(.2, .8, .2, 1) .1s both; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } }
@keyframes rise-tilt { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .stage { min-height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .stage { min-height: 470px; }
  .phone-front { width: 230px; right: 4px; }
  .phone-back { width: 190px; right: 150px; top: 60px; }
  .float-1 { top: 250px; }
  .float-2 { bottom: 24px; right: auto; left: 0; }
}

/* page hero (inner pages) */
.page-hero { padding: 64px 0 40px; background: radial-gradient(60% 120% at 90% 0%, color-mix(in srgb, var(--peach) 16%, transparent), transparent 60%), radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { font-size: 1.18rem; }
.meta { color: var(--text-2); font-size: .92rem; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 44px; }
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; }

/* facts strip */
.facts { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.facts li { text-align: center; padding: 6px 10px; }
.facts strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.facts span { color: var(--text-2); font-size: .9rem; font-weight: 600; }
.facts-band { border-bottom: 1px solid var(--border); background: var(--surface); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts li:last-child { grid-column: 1 / -1; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile h3 { font-size: 1.28rem; }
.tile p { color: var(--text-2); margin-bottom: 0; }
.tile .badge { align-self: flex-start; margin-bottom: 14px; }
.t-wide { grid-column: span 4; }
.t-half { grid-column: span 3; }
.t-third { grid-column: span 2; }
.t-tall { grid-row: span 2; }
.tile-media { margin: 22px -28px -28px; display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 0 28px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 10%, transparent)); }
.tile-media img { width: 220px; border-radius: 26px 26px 0 0; box-shadow: 0 -6px 30px -12px rgba(43, 31, 77, .35); border: 6px solid #241a42; border-bottom: 0; }
.tile-dark { background: linear-gradient(150deg, #261b48, #3b2a72); color: #ffffff; border-color: transparent; }
.tile-dark p { color: var(--on-hero-muted); }
.tile-dark .badge-plus { background: rgba(255, 255, 255, .14); color: #ffffff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--primary-strong); font-weight: 700; font-size: .84rem; }
.tile-dark .chips li { background: rgba(255, 255, 255, .1); color: #ffffff; }
.tile .big-num { margin-top: auto; padding-top: 24px; font-size: clamp(5rem, 9vw, 8.5rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; background: linear-gradient(120deg, #ffd2bd, #f59b72 45%, #cbb9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .big-num span { font-size: .22em; letter-spacing: 0; margin-left: .3em; color: #d3c9ee; -webkit-text-fill-color: #d3c9ee; }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary-strong); margin-bottom: 16px; flex: none; }
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.peach { background: var(--peach-soft); color: var(--peach-strong); }
.icon-badge.green { background: var(--green-soft); color: var(--green); }

/* checklist widget mock */
.widget-mock { margin-top: 22px; border-radius: 22px; padding: 16px; background: linear-gradient(160deg, #2a1e4c, #4b3588); color: #ffffff; box-shadow: var(--shadow); max-width: 320px; }
.widget-mock .wm-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.widget-mock .wm-head span { color: #d3c9ee; font-weight: 600; }
.widget-mock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.widget-mock li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .9rem; font-weight: 600; }
.widget-mock li::before { content: ""; width: 20px; height: 20px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .5); flex: none; }
.widget-mock li.on::before { border-color: #7fd8a8; background: #7fd8a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123323' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.widget-mock li.on { color: #d3c9ee; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }

/* steps ring mock */
.ring-mock { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.ring-mock svg { width: 104px; height: 104px; flex: none; }
.ring-mock .rm-track { stroke: var(--tint); }
.ring-mock .rm-bar { stroke: var(--peach); }
.ring-mock strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.ring-mock span { color: var(--text-2); font-size: .9rem; }

/* day check-in mock */
.checkin-mock { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checkin-mock li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; color: var(--text-2); line-height: 1.35; }
.checkin-mock strong { display: block; color: var(--text); }
.cm-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.cm-ic.sun { background: radial-gradient(circle at 50% 50%, #f59b72 0 7px, transparent 8px), var(--peach-soft); }
.cm-ic.moon { background: radial-gradient(circle at 60% 36%, var(--tint) 0 7px, transparent 8px), radial-gradient(circle at 46% 50%, #7457c2 0 9px, transparent 10px), var(--tint); }
.see-all { margin: 34px 0 0; }
.checkin-card, .ring-card { width: 100%; max-width: 340px; align-self: center; }
.checkin-card p, .ring-card p { margin: 14px 0 0; }

/* streak calendar mock */
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 22px; max-width: 300px; }
.dots i { aspect-ratio: 1; border-radius: 8px; background: var(--tint); }
.dots i.d { background: #2b8a5e; }
.dots i.s { background: repeating-linear-gradient(45deg, var(--tint) 0 4px, color-mix(in srgb, var(--primary) 30%, transparent) 4px 7px); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .82rem; color: var(--text-2); font-weight: 600; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #2b8a5e; }
.legend span.s::before { background: color-mix(in srgb, var(--primary) 40%, transparent); }

@media (max-width: 980px) { .t-wide, .t-half { grid-column: span 6; } .t-third { grid-column: span 3; } .t-tall { grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .t-wide, .t-half, .t-third { grid-column: auto; } .tile { padding: 24px; } .tile-media { margin: 20px -24px -24px; } }

/* ---------- feature rows (features page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.flip .fr-media { order: -1; }
.fr-media { display: flex; justify-content: center; gap: 18px; padding: 34px; border-radius: 30px; background: radial-gradient(70% 80% at 70% 20%, color-mix(in srgb, var(--peach) 22%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), var(--surface-2)); }
.fr-media img { width: 240px; border-radius: 30px; border: 7px solid #241a42; box-shadow: var(--shadow-lg); }
.fr-media img + img { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a52' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks li strong { color: var(--text); }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } .feature-row.flip .fr-media { order: 0; } .fr-media img { width: 190px; } }
@media (max-width: 480px) { .fr-media { padding: 22px 12px; gap: 10px; } .fr-media img { width: 150px; border-width: 5px; border-radius: 22px; } }

/* module grid */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.modules li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.modules strong { display: block; }
.modules span { color: var(--text-2); font-size: .9rem; }
.module-group { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-strong); margin: 28px 0 12px; }
@media (max-width: 900px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .modules { grid-template-columns: 1fr; } }

/* ---------- cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, #5a3fae, #7457c2); color: #ffffff; font-weight: 800; margin-bottom: 16px; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- AI coach showcase ---------- */
.ai-band { position: relative; overflow: hidden; border-radius: 34px; padding: 56px; color: #ffffff; background: radial-gradient(55% 80% at 100% 0%, rgba(245, 155, 114, .3), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(185, 164, 245, .25), transparent 60%), linear-gradient(150deg, #1d1438, #34256a); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; box-shadow: var(--shadow-lg); }
.ai-band h1, .ai-band h2 { color: #ffffff; }
.ai-band h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 14px; }
.ai-band p strong { color: #ffffff; }
.ai-band p, .ai-band li { color: var(--on-hero-muted); }
.ai-band .ticks li::before { background-color: rgba(127, 216, 168, .18); }
.ai-band .ticks li strong { color: #ffffff; }
.ai-band a:not(.btn) { color: #ffd2bd; }
@media (max-width: 900px) { .ai-band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 26px; } }

.chat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: 18px; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #ffffff; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.chat-head img { width: 28px; height: 28px; border-radius: 9px; }
.chat-head .badge { margin-left: auto; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.5; }
.chat .msg { margin: 0; }
.chat .msg-user { justify-self: end; background: #f2ecff; color: #22183f; border-bottom-right-radius: 6px; font-weight: 600; }
.chat .msg-coach { justify-self: start; background: rgba(255, 255, 255, .1); color: #ffffff; border-bottom-left-radius: 6px; }
.msg-coach .suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-coach .suggest span { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; font-weight: 700; }
.chat-note { font-size: .8rem; color: var(--on-hero-muted); text-align: center; margin: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.plan h3, .plan .h3 { font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: 6px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 4px; color: var(--text); }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan .price-note { color: var(--text-2); font-size: .92rem; margin-bottom: 18px; }
.plan .ticks { margin-top: 6px; margin-bottom: 24px; }
.plan .ticks li { font-size: .96rem; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, #7457c2, #f59b72) border-box; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 800; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.y { color: var(--green); font-weight: 800; }
td.n { color: var(--text-2); }
.prose table { margin: 0 0 1.4em; }
.prose .compare-wrap { margin-bottom: 1.4em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--primary-strong); border-bottom: 2.5px solid var(--primary-strong); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > *:not(summary) { color: var(--text-2); }
.faq details > p:last-child { padding-bottom: 18px; margin-bottom: 0; }
.faq-group { margin: 40px 0 14px; font-size: 1.3rem; }
.faq-group:first-child { margin-top: 0; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; padding: 18px 20px; background: var(--warn-bg); color: var(--warn-text); font-weight: 600; margin: 0 0 28px; }
.notice p { margin: 0; }
.notice a { color: inherit; }
.notice-soft { background: var(--tint); color: var(--text); font-weight: 400; }
.notice-soft strong { color: var(--primary-strong); }

/* ---------- legal / prose ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .92rem; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; }
.toc a:hover { background: var(--tint); color: var(--primary-strong); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 32px; }
.summary-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.summary-box ul { margin: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 32px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #ffffff; background: radial-gradient(50% 100% at 100% 0%, rgba(245, 155, 114, .35), transparent 60%), linear-gradient(140deg, #2a1e4c, #4b3588 60%, #5a40a8); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #ffffff; margin-bottom: .3em; }
.cta-band p { color: var(--on-hero-muted); margin: 0; max-width: 560px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; border-radius: 26px; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--text-2); max-width: 320px; margin-top: 14px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--primary-strong); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-2); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .cta-row { justify-content: center; }
.notfound .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(90deg, #7457c2, #f59b72); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* ---------- Hindi ---------- */
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.3; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .draft, .menu, .toc { display: none; }
  body { background: #fff; color: #000; }
}
