/* StudySquad landing page. Same family as the app: light, airy, one violet accent,
   three classmate colors. Self-contained: do not combine with /css/styles.css. */

:root {
  --bg: #f7f7fa;
  --bg-2: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --line: #ececf1;
  --line-2: #dedfe7;
  --ink: #1d2033;
  --ink-2: #5b6075;
  --ink-3: #6b7086;

  --accent: #6457f0;
  --accent-2: #5144db;
  --accent-soft: #efedff;

  --milo: #7c8cff; --milo-ink: #4352d6; --milo-tint: #f0f2ff;
  --ava: #ff8b4d; --ava-ink: #b04a12; --ava-tint: #fff3ec;
  --quinn: #2dc891; --quinn-ink: #11774f; --quinn-tint: #e9f8f2;
  --success-tint: #e6f7ef;
  --warn-ink: #8a4b0f; --warn-tint: #fff6e8;

  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(29, 32, 51, 0.04), 0 2px 8px -2px rgba(29, 32, 51, 0.05);
  --sh-2: 0 1px 2px rgba(29, 32, 51, 0.05), 0 12px 32px -12px rgba(29, 32, 51, 0.16);
  --sh-3: 0 2px 4px rgba(29, 32, 51, 0.04), 0 30px 70px -20px rgba(52, 40, 160, 0.26), 0 70px 140px -50px rgba(52, 40, 160, 0.3);

  --font-display: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-2); }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
svg { flex: none; }
::selection { background: #dcd8ff; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.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;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 800; text-decoration: none; transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; padding-left: 1px; }
.brand-mark i { width: 15px; height: 15px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px var(--bg); }
.brand-mark i:nth-child(1) { background: var(--milo); }
.brand-mark i:nth-child(2) { background: var(--ava); }
.brand-mark i:nth-child(3) { background: var(--quinn); margin-right: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }

/* ---------- Avatars ---------- */

.mate {
  --s: 36px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s) * 0.5); line-height: 1;
  background-image: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.32), transparent 58%);
}
.mate--milo { background-color: var(--milo); }
.mate--ava { background-color: var(--ava); }
.mate--quinn { background-color: var(--quinn); }
.avatar {
  --s: 32px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--c, #6b7086); color: #fff; font-weight: 800; font-size: calc(var(--s) * 0.42); line-height: 1;
}
.gav {
  --s: 34px;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.3); flex: none;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s) * 0.48); line-height: 1;
}
.gav--sm { --s: 20px; }
.gav--lg { --s: 44px; }
.stack { display: inline-flex; align-items: center; }
.stack > * { --s: 28px; margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.stack > *:first-child { margin-left: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--quinn); box-shadow: 0 0 0 3px rgba(45, 200, 145, 0.22); flex: none; animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Buttons ---------- */

/* Google sign-in button, light theme per Google's branding guidelines. */
.gbtn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 18px 0 14px;
  border: 1px solid #747775; border-radius: 999px;
  background: #fff; color: #1f1f1f;
  font-family: Roboto, var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.1px; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
}
.gbtn:hover { background: #fdfdfe; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); }
.gbtn:active { background: #f1f3f4; }
.gbtn .g-logo { width: 18px; height: 18px; }
.gbtn[aria-busy='true'] { cursor: progress; opacity: 0.7; }
.gbtn--lg { --h: 54px; padding: 0 26px 0 20px; gap: 14px; font-size: 17px; box-shadow: 0 1px 2px rgba(29, 32, 51, 0.05), 0 10px 26px -12px rgba(29, 32, 51, 0.28); }
.gbtn--lg:hover { box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 12px 28px -12px rgba(29, 32, 51, 0.35); }
.gbtn--lg .g-logo { width: 22px; height: 22px; }
.gbtn--nav { --h: 40px; padding: 0 14px 0 11px; gap: 10px; font-size: 14px; }

/* Shown instead of the Google buttons once someone is signed in. */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-weight: 800; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: box-shadow 0.2s, filter 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(180deg, #7064f5, #5a4de6); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(52, 40, 160, 0.3), 0 12px 28px -12px rgba(100, 87, 240, 0.8);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 17px; }
.btn--nav { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--block, .gbtn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 20px; border-radius: 999px;
  color: var(--ink); font-weight: 800; text-decoration: none;
  transition: background 0.2s;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.link-arrow:hover { background: rgba(29, 32, 51, 0.05); }
.link-arrow:hover svg { transform: translateY(3px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(250, 250, 252, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(29, 32, 51, 0.07);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(29, 32, 51, 0.05); }
.nav-inner > [data-signin] { margin-left: 10px; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); overflow-x: clip; }
.hero-sky { position: absolute; inset: 0 0 auto; height: min(1180px, 150vh); z-index: -1; pointer-events: none; overflow: hidden; }
.hero-sky::before {
  content: ''; position: absolute; inset: -10% -20% 0;
  background:
    radial-gradient(38% 34% at 50% 10%, rgba(124, 140, 255, 0.26), transparent 70%),
    radial-gradient(24% 28% at 80% 24%, rgba(255, 139, 77, 0.18), transparent 70%),
    radial-gradient(24% 28% at 20% 32%, rgba(45, 200, 145, 0.16), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-sky::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(29, 32, 51, 0.1) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(55% 42% at 50% 22%, #000, transparent 78%);
  mask-image: radial-gradient(55% 42% at 50% 22%, #000, transparent 78%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(100, 87, 240, 0.14);
  box-shadow: var(--sh-1);
  color: var(--ink-2); font-size: 14px; font-weight: 700; line-height: 1.3;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: rise 0.7s var(--ease) both;
}
.eyebrow-mates { display: inline-flex; }
.eyebrow-mates .mate { --s: 24px; margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.eyebrow-mates .mate:first-child { margin-left: 0; }

.hero h1 {
  font-size: clamp(44px, 0.5rem + 7.2vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  animation: rise 0.8s 0.08s var(--ease) both;
}
.h1-line { display: block; }
.h1-accent { color: var(--accent); }
.squiggle-word { position: relative; display: inline-block; }
.squiggle { position: absolute; left: -3%; width: 106%; bottom: -0.16em; height: 0.24em; overflow: visible; pointer-events: none; }
.squiggle path { fill: none; stroke: var(--ava); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s 0.7s var(--ease) both; }

.lede {
  max-width: 640px; margin: 32px 0 36px;
  font-size: clamp(18px, 1rem + 0.35vw, 21px); line-height: 1.55; color: var(--ink-2);
  animation: rise 0.8s 0.16s var(--ease) both;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; animation: rise 0.8s 0.24s var(--ease) both; }
.hero-note { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); animation: rise 0.8s 0.3s var(--ease) both; }

/* Invite card (?join=CODE) */
.invite {
  display: flex; align-items: center; gap: 14px; text-align: left;
  width: min(560px, 100%); margin: 0 0 30px; padding: 14px 18px 14px 14px;
  background: #fff; border: 1px solid rgba(100, 87, 240, 0.2); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(29, 32, 51, 0.05), 0 22px 44px -22px rgba(100, 87, 240, 0.55);
  animation: rise 0.6s var(--ease) both;
}
.invite .gav { --s: 48px; }
.invite-text { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.invite-title { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.invite-title b { font-weight: 800; overflow-wrap: anywhere; }
.invite-sub { font-size: 14px; color: var(--ink-2); }
.invite-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--warn-tint); color: var(--warn-ink); }
.invite-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.invite--error { border-color: var(--line-2); box-shadow: var(--sh-1); }
.invite .btn { margin-left: auto; }

/* ---------- Hero product preview ---------- */

.stage-wrap { margin-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 104px); }
.stage { position: relative; max-width: 1080px; margin-inline: auto; }
.stage::before {
  content: ''; position: absolute; inset: 6% 8% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(100, 87, 240, 0.3), transparent);
  filter: blur(40px);
}

.mock {
  background: var(--surface); border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(29, 32, 51, 0.07);
  box-shadow: var(--sh-3);
  transform-origin: 50% 0;
  animation: rise 1s 0.3s var(--ease) both;
  user-select: none;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-title { display: grid; line-height: 1.25; min-width: 0; }
.mock-title b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.mock-title span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.mock-bar .stack { margin-left: auto; }

.mock-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.mock-chat { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #fbfbfd, var(--bg-2)); }
.feed { display: grid; gap: 14px; align-content: start; padding: 22px 24px 10px; }

.m { display: flex; gap: 10px; align-items: flex-start; animation: msg-in 0.55s var(--ease) both; animation-delay: calc(var(--i) * 0.85s + 0.9s); }
.m > .mate, .m > .avatar { --s: 30px; margin-top: 20px; }
.m-body { min-width: 0; max-width: 84%; }
.m-name { display: block; margin: 0 0 3px 2px; font-size: 12.5px; font-weight: 800; }
.bubble { margin: 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: #fff; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 2px rgba(29, 32, 51, 0.06); }
.m--milo .m-name { color: var(--milo-ink); } .m--milo .bubble { background: var(--milo-tint); box-shadow: none; }
.m--ava .m-name { color: var(--ava-ink); } .m--ava .bubble { background: var(--ava-tint); box-shadow: none; }
.m--quinn .m-name { color: var(--quinn-ink); }
.m--me { justify-content: flex-end; }
.m--me .m-body { display: flex; justify-content: flex-end; }
.m--me .bubble { background: var(--accent); color: #fff; border-radius: 16px 4px 16px 16px; box-shadow: none; }

.quiz { width: min(390px, 100%); padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(29, 32, 51, 0.04); }
.quiz-label { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--quinn-ink); }
.quiz-q { margin: 4px 0 10px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.quiz-opts { display: grid; gap: 7px; }
.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.letter { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.opt--right { border-color: var(--quinn); background: var(--success-tint); }
.opt--right .letter { background: var(--quinn-ink); color: #fff; }
.tick { width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--quinn-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mock .opt--right { animation: opt-right 0.45s 6.1s var(--ease) both; }
.mock .opt--right .letter { animation: letter-right 0.45s 6.1s var(--ease) both; }
.mock .opt--right .tick { animation: pop 0.45s 6.2s var(--ease) both; }

.composer { display: flex; align-items: center; gap: 8px; margin: 8px 16px 16px; padding: 7px 7px 7px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.composer-field { flex: 1; min-width: 0; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.composer-send { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); }
.composer-send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.mock-side { display: grid; gap: 14px; align-content: start; padding: 18px; border-left: 1px solid var(--line); background: #fff; }
.side-card { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.side-title svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-text { margin-bottom: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.side-sources { list-style: none; display: grid; gap: 5px; }
.side-sources li { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fav { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; }
.board { list-style: none; display: grid; gap: 4px; }
.board li { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; font-size: 13.5px; }
.board li:first-child { background: var(--accent-soft); }
.rank { width: 14px; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.board .avatar { --s: 24px; }
.board b { flex: 1; font-weight: 800; }
.pts { display: inline-grid; font-weight: 800; font-variant-numeric: tabular-nums; }
.pts > span { grid-area: 1 / 1; }
.pts-old { opacity: 0; animation: count-out 0.35s 6.35s var(--ease) both; }
.pts-new { animation: count-in 0.35s 6.35s var(--ease) both; }
.plus { position: absolute; right: 30px; top: 50%; translate: 0 -50%; padding: 2px 7px; border-radius: 999px; background: var(--success-tint); color: var(--quinn-ink); font-size: 11.5px; font-weight: 800; opacity: 0; animation: plus 1.8s 6.35s var(--ease) both; }

/* Floating accents around the preview */
.float-mate {
  --s: 58px; position: absolute; z-index: 2;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85), 0 18px 34px -12px rgba(29, 32, 51, 0.4);
  animation: bob 7s ease-in-out infinite;
}
.float-mate--milo { left: -76px; top: 30%; }
.float-mate--ava { right: -70px; top: 9%; --s: 50px; animation-delay: -2.4s; }
.float-mate--quinn { right: 24%; bottom: -46px; --s: 52px; animation-delay: -4.6s; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 7px; border-radius: 999px; background: #fff;
  box-shadow: var(--sh-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.float-chip .avatar { --s: 26px; }
.float-chip b { font-weight: 800; }
.float-chip--join { left: 7%; top: -20px; animation: chip-in 0.6s 0.7s var(--ease) both; }

/* ---------- Subjects strip ---------- */

.subjects { padding-bottom: clamp(16px, 3vw, 32px); }
.subjects-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.subjects-title { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.marquee-toggle {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; flex: none;
  display: inline-grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.marquee-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.marquee-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.marquee-toggle .ico-play { display: none; fill: currentColor; }
.marquee-toggle[aria-pressed='true'] .ico-pause { display: none; }
.marquee-toggle[aria-pressed='true'] .ico-play { display: block; }
.marquee {
  overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-list { list-style: none; display: flex; gap: 12px; padding-right: 12px; }
.marquee-list li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 15px; font-weight: 700;
}
.marquee-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 10vw, 136px); }
.section--soft {
  margin-inline: clamp(8px, 1.6vw, 24px);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(29, 32, 51, 0.04), 0 30px 80px -60px rgba(29, 32, 51, 0.25);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent-2); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.section h2 { font-size: clamp(34px, 1rem + 3.2vw, 58px); line-height: 1.04; letter-spacing: -0.025em; }
.section-sub { max-width: 600px; margin-top: 20px; font-size: clamp(17px, 1rem + 0.25vw, 19px); color: var(--ink-2); }

/* ---------- Squad trio ---------- */

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.mate-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 420px; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-xl); background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(29, 32, 51, 0.03);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mate-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(29, 32, 51, 0.03), 0 30px 60px -32px var(--glow); }
.mate-card--milo { --tint: var(--milo-tint); --c: var(--milo); --c-ink: var(--milo-ink); --glow: rgba(124, 140, 255, 0.75); }
.mate-card--ava { --tint: var(--ava-tint); --c: var(--ava); --c-ink: var(--ava-ink); --glow: rgba(255, 139, 77, 0.7); }
.mate-card--quinn { --tint: var(--quinn-tint); --c: var(--quinn); --c-ink: var(--quinn-ink); --glow: rgba(45, 200, 145, 0.7); }
.mate-glyph {
  position: absolute; z-index: -1; right: -0.04em; bottom: -0.3em;
  font-family: var(--font-display); font-weight: 600; font-size: 340px; line-height: 1;
  color: var(--c); opacity: 0.13; pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.mate-card:hover .mate-glyph { transform: rotate(-7deg) translateY(-8px); }
.mate-card-top { display: flex; align-items: center; gap: 16px; }
.mate--xl { --s: 64px; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.75), 0 14px 28px -10px var(--glow); }
.mate-card h3 { font-size: 30px; }
.mate-role { margin-top: 2px; color: var(--c-ink); font-size: 15px; font-weight: 800; }
.mate-desc { color: #4b5064; }
.mate-quote {
  margin-top: auto; padding: 14px 16px;
  border-radius: 4px 18px 18px 18px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(29, 32, 51, 0.05), 0 16px 30px -20px var(--glow);
  font-size: 15.5px; font-weight: 700; line-height: 1.45;
}
.mate-tag { display: block; margin-top: 8px; color: var(--ava-ink); font-size: 13px; font-weight: 800; }
.trio-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; color: var(--ink-2); font-size: 15px; font-weight: 700; text-align: center; }
.claude-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* ---------- Steps ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.step h3 { margin-bottom: 8px; font-size: 24px; }
.step p { color: var(--ink-2); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.step-visual { position: relative; height: 236px; margin-bottom: 26px; padding: 20px; border-radius: 24px; display: grid; place-items: center; overflow: hidden; }
.step-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(29, 32, 51, 0.07) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.step-visual > * { position: relative; z-index: 1; }
.step-visual--violet { background: linear-gradient(160deg, #f2f1ff, #e7e4ff); }
.step-visual--orange { background: linear-gradient(160deg, #fff6f0, #ffe8da); }
.step-visual--green { background: linear-gradient(160deg, #eefaf5, #d9f3e8); }

.v-label { margin-bottom: 8px; color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.v-new, .v-brief { width: min(272px, 100%); padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh-2); }
.v-field { display: flex; align-items: center; gap: 2px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px rgba(100, 87, 240, 0.12); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 17px; background: var(--accent); border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
.v-seg { display: flex; gap: 3px; margin: 10px 0; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.v-seg > span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.v-seg .on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.v-btn { display: block; padding: 9px; border-radius: 11px; background: var(--accent); color: #fff; text-align: center; font-size: 13.5px; font-weight: 800; }
.v-status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--ava-tint); color: var(--ava-ink); font-size: 12px; font-weight: 800; }
.v-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: spin 6s linear infinite; }
.v-line { display: block; width: var(--w); height: 8px; margin-bottom: 8px; border-radius: 99px; background: #eeeef3; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.v-chips i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.v-chat { display: grid; gap: 10px; width: min(290px, 100%); }
.v-bub { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--sh-2); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.v-bub .mate { --s: 26px; }
.v-bub--ava { margin-left: 22px; }
.v-bub--quinn { margin-left: 8px; }

/* ---------- Feature bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.tile { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.tile--groups { grid-column: span 7; }
.tile--quiz { grid-column: span 5; }
.tile--weak { grid-column: span 5; }
.tile--solo { grid-column: span 7; }
.tile-copy { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0; }
.tile h3 { margin-bottom: 10px; font-size: clamp(22px, 1rem + 0.7vw, 28px); }
.tile p { max-width: 470px; color: var(--ink-2); }
.tile-visual { flex: 1; display: grid; place-items: center; min-height: 250px; margin: 28px 12px 12px; padding: 24px clamp(14px, 2.4vw, 28px); border-radius: 20px; background: var(--vt); }
.tile--groups .tile-visual { --vt: linear-gradient(170deg, #f4f3ff, #ebe8ff); }
.tile--quiz .tile-visual { --vt: linear-gradient(170deg, #f0fbf6, #ddf4ea); }
.tile--weak .tile-visual { --vt: linear-gradient(170deg, #fff7f1, #ffeadd); }
.tile--solo .tile-visual { --vt: linear-gradient(170deg, #f3f5ff, #e6eaff); }

.tile-visual > * { min-width: 0; max-width: 100%; }
.v-group { width: min(470px, 100%); padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.v-group-head { display: flex; align-items: center; gap: 12px; }
.v-group-head > div { display: grid; min-width: 0; line-height: 1.3; }
.v-group-head b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.v-group-head > div span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.v-group-head .stack { margin-left: auto; }
.v-link { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.v-link-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.v-link-btn { padding: 7px 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.v-sessions { list-style: none; }
.v-sessions li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.v-sessions li:first-child { border-top: 0; }
.v-sessions i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.v-sessions b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.v-sessions span:last-child { margin-left: auto; color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.v-sessions li:first-child span:last-child { color: var(--quinn-ink); }

.v-quiz { display: grid; gap: 8px; width: min(320px, 100%); padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.v-quiz-q { margin-bottom: 4px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.opt--dim { opacity: 0.55; }
.v-quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.v-correct { padding: 3px 9px; border-radius: 999px; background: var(--success-tint); color: var(--quinn-ink); font-weight: 800; }

.v-weak { list-style: none; display: grid; gap: 10px; width: min(330px, 100%); }
.v-weak li { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--sh-1); }
.v-weak b { font-size: 14px; font-weight: 800; }
.bar { display: block; height: 7px; border-radius: 99px; background: #f6e7dc; overflow: hidden; }
.bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8b4d, #ffb184); }

.v-solo { display: grid; grid-template-columns: auto minmax(60px, 180px) auto; align-items: center; gap: 4px; }
.avatar--xl { --s: 72px; font-size: 28px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8), 0 16px 32px -12px rgba(100, 87, 240, 0.6); }
.v-solo-lines { width: 100%; height: 150px; overflow: visible; }
.v-solo-lines path { fill: none; stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: flow 1.6s linear infinite; }
.v-solo-mates { display: grid; gap: 14px; }
.v-solo-mates .mate { --s: 40px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 10px 20px -10px rgba(29, 32, 51, 0.4); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); max-width: 1100px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.plan--featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #7c8cff, #6457f0 45%, #ff8b4d) border-box;
  box-shadow: 0 34px 70px -36px rgba(100, 87, 240, 0.6);
}
.plan--soon { background: var(--surface-2); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 26px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.badge--live { background: var(--success-tint); border-color: transparent; color: var(--quinn-ink); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 22px 0 6px; }
.price b { font-family: var(--font-display); font-weight: 600; font-size: 58px; line-height: 1; letter-spacing: -0.02em; }
.price span { color: var(--ink-2); font-weight: 700; }
.plan-model { margin-bottom: 24px; color: var(--ink-2); font-size: 14.5px; }
.plan-model b { color: var(--ink); font-weight: 800; }
.perks { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.perks li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; line-height: 1.45; }
.perks svg { width: 20px; height: 20px; margin-top: 1px; }
.perks svg circle { fill: var(--accent-soft); }
.perks svg path { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan--soon .perks svg circle { fill: #ececf3; }
.plan--soon .perks svg path { stroke: var(--ink-2); }
.plan-cta { margin-top: auto; }
.plan-soon { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-2); font-weight: 800; }
.plan--skeleton { min-height: 500px; background: linear-gradient(100deg, #fff 30%, #f3f3f7 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.plans-error { grid-column: 1 / -1; padding: 28px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); text-align: center; font-weight: 700; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow 0.25s, border-color 0.25s; }
.faq details[open] { border-color: transparent; box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-radius: var(--r-lg); cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 800; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) center / 2px 12px no-repeat,
    var(--accent-soft);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { background-color: #e4e1ff; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */

.final { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); }
.final-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(55% 75% at 12% 0%, rgba(124, 140, 255, 0.32), transparent 62%),
    radial-gradient(45% 65% at 92% 8%, rgba(255, 139, 77, 0.24), transparent 62%),
    radial-gradient(60% 70% at 50% 115%, rgba(45, 200, 145, 0.24), transparent 62%),
    #f5f4ff;
  border: 1px solid rgba(100, 87, 240, 0.12);
}
.final-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(29, 32, 51, 0.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(50% 60% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(50% 60% at 50% 40%, #000, transparent 80%);
}
.final-orbit { display: flex; justify-content: center; margin-bottom: 30px; }
.final-orbit .mate { --s: 62px; margin: 0 -5px; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 16px 32px -12px rgba(29, 32, 51, 0.4); animation: bob 6s ease-in-out infinite; }
.final-orbit .mate:nth-child(2) { animation-delay: -2s; position: relative; z-index: 1; }
.final-orbit .mate:nth-child(3) { animation-delay: -4s; }
.final-card h2 { font-size: clamp(34px, 1rem + 3.6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.final-card > p { max-width: 520px; margin: 20px auto 34px; color: #4b5064; font-size: clamp(17px, 1rem + 0.3vw, 20px); }

/* ---------- Footer ---------- */

.foot { padding: 8px 0 48px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; }
.foot-brand p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-links a { padding: 7px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 700; text-decoration: none; transition: color 0.2s, background 0.2s; }
.foot-links a:hover { color: var(--ink); background: rgba(29, 32, 51, 0.05); }
.foot-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  width: max-content; max-width: calc(100% - 32px);
  padding: 13px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: var(--sh-3);
  font-size: 15px; font-weight: 700; line-height: 1.4;
  translate: -50% 0;
  animation: toast-in 0.35s var(--ease) both;
}

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes msg-in { from { opacity: 0; translate: 0 12px; scale: 0.98; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { opacity: 0; scale: 0.4; } }
@keyframes opt-right { from { border-color: var(--line-2); background: #fff; } }
@keyframes letter-right { from { background: var(--surface-2); color: var(--ink-2); } }
@keyframes count-out { from { opacity: 1; } to { opacity: 0; translate: 0 -8px; } }
@keyframes count-in { from { opacity: 0; translate: 0 8px; } }
@keyframes plus { 0% { opacity: 0; translate: 0 -20%; } 18% { opacity: 1; translate: 0 -50%; } 75% { opacity: 1; translate: 0 -50%; } 100% { opacity: 0; translate: 0 -110%; } }
@keyframes chip-in { from { opacity: 0; translate: 0 10px; scale: 0.94; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(45, 200, 145, 0.22); } 50% { box-shadow: 0 0 0 6px rgba(45, 200, 145, 0.06); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes toast-in { from { opacity: 0; translate: -50% 12px; } }
@keyframes reveal { from { opacity: 0; translate: 0 32px; } }
@keyframes tilt { from { transform: perspective(1800px) rotateX(10deg) scale(0.96); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  @supports (animation-timeline: scroll()) {
    .mock { animation: tilt linear both; animation-timeline: scroll(root); animation-range: 0 560px; }
  }

  /* Smooth open/close for the FAQ where the browser supports it. */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee-track { width: auto; animation: none; }
  .marquee-list { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee-list[aria-hidden='true'], .marquee-toggle { display: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1260px) {
  .float-mate--milo, .float-mate--ava { display: none; }
}

@media (max-width: 1080px) {
  .mock-body { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner > [data-signin] { margin-left: auto; }
  .float-mate { display: none; }
  .trio, .steps { grid-template-columns: minmax(0, 1fr); }
  .mate-card { min-height: 0; }
  .mate-card .mate-quote { margin-top: 6px; }
  .mate-glyph { font-size: 260px; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .step-visual { grid-row: span 3; margin-bottom: 0; }
  .step-num { align-self: end; }
  .step p { align-self: start; }
  .bento > .tile { grid-column: 1 / -1; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 820px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
}

@media (max-width: 640px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .gbtn, .hero-cta .btn { width: min(360px, 100%); }
  .link-arrow { height: 48px; }
  .eyebrow { font-size: 13px; }
  .stage-wrap { width: calc(100% - 24px); }
  .mock { border-radius: 20px; }
  .mock-bar { padding: 12px 14px; }
  .mock-bar .stack .mate { display: none; }
  .feed { gap: 12px; padding: 16px 14px 8px; }
  .m--opt { display: none; }
  .m-body { max-width: 88%; }
  .bubble { font-size: 14px; }
  .composer { margin: 6px 10px 10px; }
  .composer-chip { display: none; }
  .float-chip--join { display: none; }
  .step { display: block; }
  .step-visual { margin-bottom: 22px; }
  .tile-visual { min-height: 0; margin: 24px 8px 8px; }
  .v-group-head .stack { display: none; }
  .invite { flex-wrap: wrap; }
  .invite .btn { width: 100%; margin-left: 0; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-links { margin-left: -12px; }
  .foot-meta { flex-direction: column; }
}

@media (max-width: 440px) {
  .gbtn--nav { width: 40px; padding: 0; }
  .gbtn--nav .gbtn-label { display: none; }
  .brand-name { font-size: 20px; }
  .mate-card-top { gap: 14px; }
  .mate--xl { --s: 56px; }
  .mate-card h3 { font-size: 26px; }
  .price b { font-size: 50px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; }
}
