/* =========================================================
   ClassTrack — Landing page styles
   Brand: soft lavender / friendly purple (#6C5CE7)
   Fonts: Poppins (headings), Inter (body)
   ========================================================= */

:root {
  --purple: #6C5CE7;
  --purple-light: #8B7FEC;
  --purple-dark: #5546C9;
  --lavender: #EDEAFB;
  --lavender-tint: #DED9F7;
  --lavender-soft: #F3F1FC;
  --ink: #1B1C34;
  --ink-soft: #2A2C4A;
  --peach: #F6D4B8;
  --peach-soft: #FBE7D4;
  --coral: #FB7185;
  --amber: #F59E0B;
  --green: #22C55E;
  --red: #EF4444;
  --sky: #0EA5E9;
  --pink: #EC4899;
  --teal: #14B8A6;

  --bg: #F5F3FE;
  --surface: #FFFFFF;
  --border: #E7E3F7;
  --text: #1B1C34;
  --text-soft: #6E6C8C;

  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 18px rgba(108, 92, 231, .08);
  --shadow: 0 20px 50px rgba(108, 92, 231, .14);
  --shadow-lg: 0 40px 90px rgba(27, 28, 52, .18);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__name { font-family: 'Poppins', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Icon system (Material Symbols Rounded = app's icon family) ---------- */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1; font-size: 24px;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  word-wrap: normal; direction: ltr; display: inline-flex; vertical-align: middle;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.ms--fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* Contextual icon sizing / colour */
.stars .ms { font-size: 18px; }
.app__statusicons .ms { font-size: 15px; color: var(--ink); }
.app__ai .ms { font-size: 17px; color: #fff; }
.statcard__ic .ms { font-size: 18px; color: var(--ink); }
.classcard__ic .ms { font-size: 20px; color: var(--c); }
.mini .ms { font-size: 17px; }
.app__nav .ms { font-size: 22px; }
.app__nav .fab .ms { font-size: 24px; color: #fff; }
.card__ic .ms { font-size: 26px; color: var(--accent); }
.bunk__party.ms { font-size: 30px; color: var(--green); }
.chip .ms { font-size: 18px; color: var(--purple); }
.chip--gpa .ms { color: #FCD34D; }
.chatui__avatar .ms { font-size: 19px; }
.chatui__send .ms { font-size: 18px; }
.pill .ms { font-size: 16px; }
.btn .ms { font-size: 18px; }
.quote__stars { display: inline-flex; gap: 1px; color: var(--amber); }
.quote__stars .ms { font-size: 16px; }
.footer__made .ms { font-size: 16px; color: var(--purple-light); vertical-align: -3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

.grad {
  background: linear-gradient(100deg, var(--purple) 0%, var(--purple-light) 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Reveal base (JS-driven, safe without JS) ---------- */
.has-js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance (staggered by JS) */
.has-js [data-hero] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-hero].in { opacity: 1; transform: none; }

/* Chat bubble reveal */
.has-js .reveal-msg { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-msg.is-in { opacity: 1; transform: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 1000; box-shadow: 0 0 12px rgba(108, 92, 231, .6);
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 92, 231, .16), transparent 62%);
  transition: opacity .4s ease;
  mix-blend-mode: multiply;
}

/* ======================= NAV ======================= */
.nav {
  position: sticky; top: 0; z-index: 900;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(245, 243, 254, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(231, 227, 247, .9);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 8px 18px rgba(108, 92, 231, .4);
}
.brand__name { font-size: 19px; color: var(--ink); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text-soft); font-weight: 500; font-size: 15px; position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--purple); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav__burger span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ======================= BUTTONS ======================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 40px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 12px 26px rgba(108, 92, 231, .38);
}
.btn--primary:hover { box-shadow: 0 18px 38px rgba(108, 92, 231, .5); transform: translateY(-2px); }
.btn--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--soft:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover { color: var(--ink); }
.btn--white { background: #fff; color: var(--purple-dark); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0,0,0,.18); }

/* ======================= HERO ======================= */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(108,92,231,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(108,92,231,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 30%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, black, transparent 72%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  will-change: transform;
}
.blob--1 { width: 420px; height: 420px; background: var(--purple-light); top: -80px; right: -60px; animation: drift 16s ease-in-out infinite; }
.blob--2 { width: 360px; height: 360px; background: var(--pink); bottom: -60px; left: -40px; opacity: .35; animation: drift 20s ease-in-out infinite reverse; }
.blob--3 { width: 300px; height: 300px; background: var(--sky); top: 30%; left: 40%; opacity: .28; animation: drift 24s ease-in-out infinite; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-top: 30px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 15px; border-radius: 40px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }

.hero__title { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; font-weight: 800; color: var(--ink); margin: 20px 0 18px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__sub { font-size: clamp(16px, 2vw, 18.5px); color: var(--text-soft); max-width: 540px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }

.hero__trust { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-soft); }
.hero__trust strong { color: var(--ink); }
.stars { display: inline-flex; color: var(--amber); gap: 1px; }

/* ---------- Phone device ---------- */
.hero__device { position: relative; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; height: 610px;
  background: #0e0f1f; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  transform-style: preserve-3d; will-change: transform;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0e0f1f; border-radius: 0 0 16px 16px; z-index: 5;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); position: relative;
}

/* ---------- Mini app UI ---------- */
.app { padding: 14px 14px 0; display: flex; flex-direction: column; font-size: 12px; }
.app__statusbar { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--ink); padding: 6px 6px 10px; }
.app__statusicons { display: inline-flex; gap: 5px; align-items: center; }
.app__statusicons i { display: block; }
.sig { width: 14px; height: 9px; background: var(--ink); border-radius: 2px; }
.wifi { width: 13px; height: 9px; background: var(--ink); border-radius: 2px; opacity: .8; }
.bat { width: 20px; height: 10px; border: 1.5px solid var(--ink); border-radius: 3px; }

.app__header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.app__hello { display: flex; flex-direction: column; line-height: 1.2; }
.app__hello strong { font-size: 13px; color: var(--ink); }
.app__hello small { font-size: 10.5px; color: var(--text-soft); }
.app__icnbtn { margin-left: auto; width: 34px; height: 34px; border-radius: 12px; border: 0; display: grid; place-items: center; }
.app__ai { background: linear-gradient(135deg, var(--purple-light), var(--purple)); box-shadow: 0 6px 14px rgba(108,92,231,.4); }

.app__h { font-family: 'Poppins'; font-size: 26px; line-height: 1.05; color: var(--ink); font-weight: 700; margin: 4px 2px 14px; }
.app__h span { color: var(--purple); }

.app__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.statcard { border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-height: 78px; }
.statcard--lav { background: var(--lavender-tint); }
.statcard--peach { background: var(--peach-soft); }
.statcard__ic { font-size: 15px; width: 26px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.65); display: grid; place-items: center; margin-bottom: 4px; }
.statcard b { font-family: 'Poppins'; font-size: 22px; color: var(--ink); line-height: 1; }
.statcard small { font-size: 10px; color: var(--ink-soft); opacity: .75; }

.app__section { font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--ink); margin: 16px 2px 8px; }
.classcard { background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.classcard__ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--c) 15%, white); }
.classcard__body { display: flex; flex-direction: column; line-height: 1.25; }
.classcard__body strong { font-size: 12.5px; color: var(--ink); }
.classcard__body small { font-size: 10px; color: var(--text-soft); }
.classcard__acts { margin-left: auto; display: flex; gap: 6px; }
.mini { width: 30px; height: 30px; border-radius: 50%; border: 0; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.mini--ok { background: rgba(34,197,94,.16); color: var(--green); }
.mini--no { background: rgba(239,68,68,.16); color: var(--red); }

.app__nav {
  margin-top: auto; margin-left: -14px; margin-right: -14px;
  background: #fff; border-radius: 26px 26px 0 0; padding: 12px 20px 16px;
  display: flex; align-items: center; justify-content: space-between; font-size: 17px;
  box-shadow: 0 -8px 24px rgba(27,28,52,.08); position: relative;
}
.app__nav span { opacity: .5; }
.app__nav .on { opacity: 1; }
.app__nav .fab {
  width: 44px; height: 44px; border-radius: 50%; opacity: 1; color: #fff;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  display: grid; place-items: center; font-size: 22px; margin-top: -26px;
  box-shadow: 0 10px 20px rgba(108,92,231,.45);
}

/* ---------- Floating chips ---------- */
.chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px; z-index: 3; will-change: transform;
}
.chip b { color: var(--purple); }
.chip--skip { top: 12%; left: -46px; }
.chip--ai { bottom: 24%; right: -54px; }
.chip--ai .chip__spark { color: var(--purple); }
.chip--gpa { bottom: 6%; left: -30px; background: var(--ink); color: #fff; }
.chip--gpa b { color: var(--accentSoft, #FCD34D); }

/* ---------- Scroll hint ---------- */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--lavender-tint); border-radius: 20px; z-index: 2; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--purple); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ======================= MARQUEE ======================= */
.marquee { padding: 22px 0; background: var(--ink); overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 30px; white-space: nowrap; width: max-content; animation: scrollx 34s linear infinite; }
.marquee__track span { font-family: 'Poppins'; font-weight: 600; font-size: 20px; color: rgba(255,255,255,.86); }
.marquee__track .sep { color: var(--purple-light); font-size: 14px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ======================= STATS ======================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px 24px; }
.stat { text-align: center; }
.stat b { font-family: 'Poppins'; font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink); display: block; }
.stat span { color: var(--text-soft); font-size: 14px; font-weight: 500; }

/* ======================= SECTIONS ======================= */
.section { padding: 90px 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__head h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; color: var(--ink); font-weight: 800; margin: 16px 0 14px; }
.section__head p { color: var(--text-soft); font-size: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lavender); color: var(--purple-dark);
  font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: 40px;
}
.pill--coral { background: #FFE4E6; color: #E11D48; }
.pill--ai { background: #EDE9FE; color: var(--purple); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120px 120px at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; grid-row: span 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.card--tall { grid-row: span 1; }
.card__ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--accent) 14%, white); margin-bottom: 16px;
}
.card h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 14.5px; }

.card__ring { position: relative; display: grid; place-items: center; }
.ring-bg { fill: none; stroke: var(--lavender-tint); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--purple); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s var(--ease); }
.card__ringlabel { position: absolute; text-align: center; }
.card__ringlabel b { font-family: 'Poppins'; font-size: 22px; color: var(--ink); }
.card__ringlabel small { display: block; font-size: 10px; color: var(--text-soft); }

.streak { display: flex; gap: 6px; margin-top: 16px; }
.streak span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--lavender-soft); color: var(--text-soft); }
.streak .on { background: color-mix(in srgb, var(--amber) 18%, white); color: var(--amber); }

/* ---------- Split sections ---------- */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__inner { direction: rtl; }
.split--rev .split__inner > * { direction: ltr; }
.split__copy h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--ink); font-weight: 800; margin: 16px 0 16px; }
.split__copy p { color: var(--text-soft); font-size: 16.5px; margin-bottom: 20px; }

.ticks { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks--light li { color: rgba(255,255,255,.92); }

.glass-card {
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); will-change: transform;
}

/* ---------- Bunk calculator card ---------- */
.bunk__top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.bunk__party { font-size: 26px; }
.bunk__top strong { display: block; color: var(--green); font-family: 'Poppins'; font-size: 17px; }
.bunk__top small { color: var(--text-soft); font-size: 13.5px; }
.bunk__bar { position: relative; height: 16px; border-radius: 10px; background: var(--lavender-tint); overflow: hidden; margin-bottom: 8px; }
.bunk__fill { height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--purple-light), var(--purple)); transition: width 1.4s var(--ease); }
.bunk__target { position: absolute; top: -4px; height: 24px; width: 2px; background: var(--ink); }
.bunk__target span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--ink); }
.bunk__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-soft); margin-top: 14px; }
.bunk__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------- Chat UI card ---------- */
.chatui { padding: 0; overflow: hidden; }
.chatui__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chatui__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; display: grid; place-items: center; font-size: 16px; }
.chatui__head strong { display: block; font-family: 'Poppins'; font-size: 15px; color: var(--ink); }
.chatui__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.chatui__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--lavender-soft); }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; }
.bubble--ai { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.bubble--me { background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble--card { background: #EDE9FE; color: var(--purple-dark); align-self: flex-start; width: 88%; max-width: 88%; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.bubble--card button { background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; border: 0; border-radius: 12px; padding: 9px; font-weight: 600; font-family: 'Inter'; cursor: pointer; }
.chatui__input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.chatui__input span { flex: 1; background: var(--lavender-soft); border-radius: 30px; padding: 11px 16px; color: var(--text-soft); font-size: 13.5px; }
.chatui__send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; cursor: pointer; }

/* ---------- How it works ---------- */
.how { background: linear-gradient(180deg, transparent, var(--lavender-soft)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 20px; margin-bottom: 18px; box-shadow: 0 10px 20px rgba(108,92,231,.35); }
.step h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--lavender-soft); }
.tmarquee { overflow: hidden; margin-top: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.tmarquee__track { display: flex; gap: 20px; width: max-content; animation: scrollx 40s linear infinite; }
.tmarquee:hover .tmarquee__track { animation-play-state: paused; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 340px; box-shadow: var(--shadow-sm); }
.quote__stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.quote blockquote { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 16px; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.q-av { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: 'Poppins'; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; justify-content: center; }
.pricing--3 { grid-template-columns: repeat(3, minmax(0, 340px)); align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.price h3 { font-size: 20px; color: var(--ink); }
.price__amt { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 6px; }
.price__amt b { font-family: 'Poppins'; font-size: 44px; font-weight: 800; color: var(--ink); }
.price__amt span { color: var(--text-soft); font-size: 15px; }
.price__pitch { color: var(--text-soft); margin-bottom: 20px; min-height: 44px; }
.price__save { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 30px; margin-bottom: 18px; align-self: flex-start; }
.price__save .ms { font-size: 15px; color: #FCD34D; }
.price .ticks { margin: 22px 0 0; }
.price .btn { margin-top: 4px; }
.price__foot { display: block; margin-top: 16px; font-size: 12.5px; color: var(--text-soft); }
.price__foot--light { color: rgba(255,255,255,.65); }

/* Monthly — accent highlight */
.price--accent { border: 2px solid var(--purple); box-shadow: var(--shadow); }

/* Yearly — featured dark card */
.price--pro { background: linear-gradient(155deg, var(--ink) 0%, #2A2C4A 100%); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price--pro h3, .price--pro .price__amt b { color: #fff; }
.price--pro .price__amt span, .price--pro .price__pitch { color: rgba(255,255,255,.72); }
.price__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(135deg, var(--purple-light), var(--purple)); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 30px; box-shadow: 0 8px 18px rgba(108,92,231,.5); }
.pricing__trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.pricing__trust .ms { font-size: 18px; color: var(--green); }

/* ---------- Subpage header ---------- */
.page-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .pill { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; color: var(--ink); font-weight: 800; }
.page-hero p { color: var(--text-soft); font-size: 17.5px; max-width: 620px; margin-top: 14px; }
.updated { color: var(--text-soft); font-size: 13.5px; margin-top: 14px; }

/* ---------- Support layout ---------- */
.support { padding: 20px 0 90px; }
.support__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; }
.support__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.support__aside { display: grid; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.info-card h3 .ms { color: var(--purple); font-size: 20px; }
.info-card p, .info-card a { color: var(--text-soft); font-size: 14.5px; }
.info-card a { color: var(--purple); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--lavender-soft); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 4px rgba(108,92,231,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #A7A5C0; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form__status { font-size: 14.5px; font-weight: 500; padding: 0; min-height: 0; border-radius: 12px; transition: all .2s; }
.form__status.show { padding: 12px 15px; }
.form__status.ok { background: rgba(34,197,94,.12); color: #15803D; }
.form__status.err { background: rgba(239,68,68,.10); color: #B91C1C; }
.form__note { font-size: 12.5px; color: var(--text-soft); text-align: center; }

/* ---------- Legal / doc ---------- */
.doc { padding: 10px 0 90px; }
.doc__inner { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.toc h4 { font-size: 13px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.toc a:hover { background: var(--lavender-soft); color: var(--purple); }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; color: var(--ink); margin: 34px 0 12px; scroll-margin-top: 90px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16.5px; color: var(--ink); margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--purple); font-weight: 600; }
.legal strong { color: var(--ink); }
.note-box { background: var(--lavender-soft); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: 12px; padding: 14px 18px; margin-bottom: 26px; font-size: 14px; color: var(--text-soft); }

@media (max-width: 900px) {
  .support__grid { grid-template-columns: 1fr; }
  .doc__inner { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: 'Poppins'; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq__ic::before, .faq__ic::after { content: ''; position: absolute; background: var(--purple); border-radius: 2px; transition: transform .3s var(--ease); }
.faq__ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__ic::after { transform: rotate(90deg) scaleX(0); }
.faq__a { color: var(--text-soft); font-size: 15px; padding: 0 0 20px; }

/* ---------- Final CTA ---------- */
.cta { position: relative; margin: 30px 24px 60px; border-radius: 40px; overflow: hidden; background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dark) 60%, var(--ink) 120%); }
.cta__bg { position: absolute; inset: 0; opacity: .5; }
.cta__bg .blob--1 { background: var(--pink); }
.cta__bg .blob--2 { background: var(--sky); }
.cta__inner { position: relative; z-index: 1; text-align: center; padding: 80px 24px; color: #fff; }
.cta__inner h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; font-weight: 800; }
.cta__inner p { color: rgba(255,255,255,.85); font-size: 18px; margin: 16px auto 30px; max-width: 520px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 22px; border-radius: 16px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 11px; color: var(--text-soft); }
.store-btn strong { font-family: 'Poppins'; font-size: 17px; }
.store-btn--soon { position: relative; opacity: .6; cursor: default; pointer-events: none; }
.store-btn--soon:hover { transform: none; box-shadow: none; }
.store-btn--soon::after { content: "Soon"; position: absolute; top: -8px; right: -8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.cta__note { display: block; margin-top: 20px; color: rgba(255,255,255,.75); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: 14.5px; max-width: 260px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-family: 'Poppins'; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }

/* ======================= REVIEWS (redesigned) ======================= */
.reviews { background: var(--lavender-soft); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.reviews__head h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; color: var(--ink); font-weight: 800; margin-top: 14px; }
.rating-summary { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rating-summary__score { display: flex; align-items: center; gap: 14px; }
.rating-summary__score b { font-family: 'Poppins'; font-size: 58px; font-weight: 800; color: var(--ink); line-height: .9; }
.rating-summary__score .stars { color: var(--amber); }
.rating-summary__score .stars .ms { font-size: 19px; }
.rating-summary__score small { display: block; color: var(--text-soft); font-size: 13.5px; margin-top: 3px; }
.rating-summary__stores { display: flex; gap: 10px; flex-wrap: wrap; }
.storepill { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.storepill .ms { color: var(--amber); font-size: 16px; }

.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.rcard__quote { position: absolute; top: 14px; right: 16px; font-size: 46px; color: var(--lavender-tint); pointer-events: none; }
.rcard__stars { color: var(--amber); display: flex; gap: 1px; margin-bottom: 12px; }
.rcard__stars .ms { font-size: 17px; }
.rcard blockquote { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.rcard figcaption { display: flex; align-items: center; gap: 11px; }
.rcard .q-av { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: 'Poppins'; flex: none; }
.rcard__who { display: flex; flex-direction: column; line-height: 1.3; }
.rcard__who strong { font-size: 14.5px; color: var(--ink); }
.rcard__who small { font-size: 12.5px; color: var(--text-soft); }
.rcard__verified { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--green); font-weight: 600; white-space: nowrap; }
.rcard__verified .ms { font-size: 15px; }
.rcard--feature { grid-column: 1 / -1; background: linear-gradient(135deg, #fff, var(--lavender-soft)); border-color: var(--lavender-tint); }
.rcard--feature blockquote { font-family: 'Poppins'; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.45; color: var(--ink); font-weight: 600; max-width: 900px; }

/* ======================= PRICING COMPARISON ======================= */
.compare { margin-top: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.compare__title { text-align: center; font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--ink); padding: 26px 20px 8px; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 22px; text-align: left; font-size: 15px; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-family: 'Poppins'; color: var(--ink); font-size: 15px; }
.compare thead th:nth-child(2), .compare thead th:nth-child(3) { text-align: center; width: 130px; }
.compare tbody td:nth-child(2), .compare tbody td:nth-child(3) { text-align: center; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); font-family: 'Inter'; }
.compare .col-pro { background: linear-gradient(180deg, rgba(108,92,231,.06), rgba(108,92,231,.03)); position: relative; }
.compare thead .col-pro { color: var(--purple); }
.compare .ck { color: var(--green); font-size: 20px; }
.compare .dash { color: var(--unmarked); font-weight: 700; }
.compare .val { font-weight: 700; color: var(--ink); font-size: 14px; }
.compare tr:last-child td { padding-bottom: 20px; }

.guarantee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.guarantee__item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.guarantee__item .ms { color: var(--purple); font-size: 26px; flex: none; }
.guarantee__item strong { display: block; font-family: 'Poppins'; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.guarantee__item p { color: var(--text-soft); font-size: 13.5px; }

@media (max-width: 900px) {
  .rgrid { grid-template-columns: repeat(2, 1fr); }
  .reviews__head { align-items: flex-start; }
  .guarantee { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rgrid { grid-template-columns: 1fr; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 460px; }
  .compare th, .compare td { padding: 13px 16px; }
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 960px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero__copy { order: 1; }
  .hero__device { order: 2; margin-top: 24px; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .split__inner, .split--rev .split__inner { grid-template-columns: 1fr; direction: ltr; gap: 34px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .pricing--3 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price--pro { transform: none; }
  .price__pitch { min-height: 0; }
  .form__row { grid-template-columns: 1fr; }

  /* Mobile menu */
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 16px; right: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px;
    gap: 6px; box-shadow: var(--shadow); text-align: left;
  }
  .nav__links.open a { padding: 10px 8px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .card--tall { grid-row: span 1; }
  .pricing { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .chip--skip { left: -10px; }
  .chip--ai { right: -10px; }
  .cta { margin-inline: 14px; }
}

/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .has-js .reveal, .has-js [data-hero], .has-js .reveal-msg { opacity: 1 !important; transform: none !important; }
  .ring-fg { stroke-dashoffset: 26 !important; }
  .mobile-cta { transition: none !important; }
}

/* ======================= CRO / UX ENHANCEMENTS ======================= */
/* Accessibility */
.skip-link {
  position: absolute; left: 16px; top: -70px; z-index: 1100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
.btn:focus-visible, .store-btn:focus-visible { outline-offset: 3px; }

/* Hero reassurance microcopy */
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.hero__meta .ms { font-size: 18px; color: var(--green); }

/* Problem / resonance band */
.problem { padding: 40px 0 10px; }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pain__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #FFE4E6; color: #E11D48; margin-bottom: 14px; }
.pain__ic .ms { font-size: 24px; }
.pain h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.pain p { color: var(--text-soft); font-size: 14.5px; }
.problem__bridge { text-align: center; margin-top: 30px; font-family: 'Poppins'; font-weight: 600; font-size: clamp(18px, 2.4vw, 24px); color: var(--ink); }
.problem__bridge .grad { font-weight: 700; }

/* Final CTA rating cue */
.cta__stars { display: inline-flex; gap: 2px; color: #FCD34D; margin-bottom: 14px; }
.cta__stars .ms { font-size: 22px; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 950;
  display: none; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 11px 12px 11px 16px;
  border-radius: 20px; box-shadow: 0 18px 44px rgba(27, 28, 52, .34);
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta__txt { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-cta__txt strong { font-family: 'Poppins'; font-size: 14.5px; }
.mobile-cta__txt small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.mobile-cta .btn { margin-left: auto; padding: 11px 18px; }

@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  .cta { margin-bottom: 90px; } /* room above sticky bar */
  .problem__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero__meta { justify-content: center; }
  .problem__grid { grid-template-columns: 1fr; }
}



/* ======================= DESIGN POLISH ======================= */
section[id] { scroll-margin-top: 88px; }

/* Branded text selection */
::selection { background: rgba(108, 92, 231, .22); color: var(--ink); }

/* Branded scrollbar */
* { scrollbar-color: var(--purple-light) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple-light), var(--purple)); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* Stats → polished card with dividers */
.stats {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 42px 20px; margin-top: 34px; margin-bottom: 0;
}
.stat { position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 48px; background: var(--border);
}

/* Primary button gloss sweep */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -85%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn--primary:hover::after { left: 135%; }

/* Featured pricing card halo */
.price--pro { box-shadow: var(--shadow-lg), 0 12px 55px rgba(108, 92, 231, .42); }

/* Tactile hover on secondary cards */
.step, .guarantee__item, .info-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover, .guarantee__item:hover, .info-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow);
}
.pain { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pain:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Softer blend into the tinted "how it works" band */
.how { background: linear-gradient(180deg, transparent, var(--lavender-soft) 34%); }

@media (max-width: 960px) {
  .stat + .stat::before { display: none; }
}



/* ======================= AI TIMETABLE IMPORT (hero feature) ======================= */
.import { position: relative; overflow: hidden; }
.import__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start; gap: 18px; margin-top: 8px;
}
.iflow { text-align: center; }
.iflow__num {
  width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Poppins'; font-weight: 700; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 6px 14px rgba(108, 92, 231, .4);
}
.iflow__card {
  position: relative; height: 176px; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 16px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.iflow:hover .iflow__card { transform: translateY(-5px); box-shadow: var(--shadow); }
.iflow h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 5px; }
.iflow p { font-size: 13.5px; color: var(--text-soft); }
.iflow__arrow { align-self: center; margin-top: 92px; color: var(--purple); font-size: 26px; }

/* Step 1 — photo/pdf with scan line */
.iflow__card--photo { background: linear-gradient(160deg, #fff, var(--lavender-soft)); }
.tt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tt-grid i { height: 15px; border-radius: 4px; background: var(--lavender-tint); }
.tt-grid i.f { background: color-mix(in srgb, var(--purple) 45%, white); }
.tt-grid i.g { background: color-mix(in srgb, var(--sky) 45%, white); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(108, 92, 231, .30), transparent);
  animation: scan 2.8s ease-in-out infinite;
}
@keyframes scan { 0% { transform: translateY(-46px); } 55%, 100% { transform: translateY(176px); } }
.iflow__file {
  position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 5px 10px;
  font-size: 11px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}
.iflow__file .ms { font-size: 14px; color: var(--red); }

/* Step 2 — AI processing shimmer */
.iflow__card--ai { background: linear-gradient(160deg, #fff, #F2EEFF); display: flex; flex-direction: column; gap: 10px; }
.iflow__spark { font-size: 26px; color: var(--purple); }
.ai-lines { display: grid; gap: 8px; margin-top: 2px; }
.ai-lines i {
  height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--lavender-tint) 25%, #EDE9FE 37%, var(--lavender-tint) 63%);
  background-size: 400% 100%; animation: shimmer 1.6s linear infinite;
}
.ai-lines i:nth-child(2) { width: 80%; } .ai-lines i:nth-child(3) { width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.iflow__status { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--purple); margin-top: auto; }

/* Step 3 — review rows */
.iflow__card--review { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.rev-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-soft); padding: 5px 0; border-bottom: 1px solid var(--border); }
.rev-row:last-child { border-bottom: 0; }
.rev-row .ms { color: var(--green); font-size: 16px; flex: none; }
.rev-row b { color: var(--ink); }

/* Step 4 — done */
.iflow__card--done { display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(160deg, #fff, #E8FBF0); }
.done-check { font-size: 46px; color: var(--green); }
.iflow__card--done strong { font-family: 'Poppins'; font-size: 14.5px; color: var(--ink); }
.iflow__card--done small { font-size: 11.5px; color: var(--text-soft); }

@media (max-width: 900px) {
  .import__flow { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .iflow__arrow { transform: rotate(90deg); margin: 2px auto 6px; }
  .iflow__card { height: 150px; }
}
