/* AdNerve — pastel glass world.
   Ground: airy lavender-white with drifting pastel light.
   Surfaces: frosted glass. Ink: deep indigo. Display: Bricolage Grotesque. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #f3f2fa;
  --ink: #27233f;
  --ink-2: #504b70;
  --ink-3: #6d6890;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(122, 108, 240, 0.14);
  --accent: #7a6cf0;
  --accent-deep: #6557e8;
  --peach: #f0a878;
  --shadow: 0 24px 48px -24px rgba(84, 74, 160, 0.28);
  --shadow-soft: 0 12px 28px -16px rgba(84, 74, 160, 0.22);
  --hi: rgba(255, 255, 255, 0.85);
  --thumb: #c3bde8;
  --nav-bg: rgba(255, 255, 255, 0.62);
  --chip: rgba(255, 255, 255, 0.6);
  --chip-solid: rgba(255, 255, 255, 0.88);
  --field: rgba(255, 255, 255, 0.66);
  --line: rgba(122, 108, 240, 0.12);
  --rule: rgba(39, 35, 63, 0.14);
  --faint: rgba(39, 35, 63, 0.58);
  --panel: #faf9ff;
  --panel-edge: #fff;
  --solid: #27233f;
  --ok: #2c7a4b;
  --bad: #b4454f;
  --p-crit: #a33a48;
  --p-warn: #99561f;
  --r-lg: 26px;
  --r-md: 18px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ground: #14121e;
  --ink: #f3f1fb;
  --ink-2: #c6c1de;
  --ink-3: #a29cc0;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-edge: rgba(179, 169, 255, 0.16);
  --accent: #a497f8;
  --accent-deep: #b6acff;
  --peach: #f4b78e;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 28px -16px rgba(0, 0, 0, 0.6);
  --hi: rgba(255, 255, 255, 0.09);
  --thumb: #453f63;
  --nav-bg: rgba(38, 34, 58, 0.66);
  --chip: rgba(255, 255, 255, 0.07);
  --chip-solid: #2a2640;
  --field: rgba(255, 255, 255, 0.08);
  --line: rgba(179, 169, 255, 0.16);
  --rule: rgba(255, 255, 255, 0.15);
  --faint: rgba(243, 241, 251, 0.6);
  --panel: #211d32;
  --panel-edge: rgba(255, 255, 255, 0.1);
  --solid: #2b2645;
  --ok: #8fe0b2;
  --bad: #ffb0ba;
  --p-crit: #ffb0ba;
  --p-warn: #f8c79f;
}
[data-theme="dark"] .ambient i { mix-blend-mode: screen; opacity: 0.17; }
[data-theme="dark"] .nav-links .nav-cta { box-shadow: inset 0 0 0 1.5px rgba(182, 172, 255, 0.45); }
[data-theme="dark"] .nav-links a.is-on { box-shadow: none; }
[data-theme="dark"] .demo-picks button { border-color: rgba(182, 172, 255, 0.3); }
[data-theme="dark"] .demo-picks button[aria-pressed="true"], [data-theme="dark"] .demo-picks button[aria-selected="true"] { border-color: #6f61ec; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: rgba(122, 108, 240, 0.25); color: var(--ink); }

* { scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 6px; border: 3px solid var(--ground); }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- ambient pastel light ---------- */

.ambient {
  position: fixed; inset: -20vh -20vw; z-index: -1;
  pointer-events: none;
  filter: blur(70px);
}
.ambient i {
  position: absolute; border-radius: 50%;
  mix-blend-mode: multiply; opacity: 0.55;
}
.ambient i:nth-child(1) {
  width: 60vmax; height: 50vmax; left: -12vmax; top: -16vmax;
  background: radial-gradient(closest-side, #b9b0f2, transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) {
  width: 52vmax; height: 46vmax; right: -14vmax; top: 4vmax;
  background: radial-gradient(closest-side, #f6cdae, transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.ambient i:nth-child(3) {
  width: 56vmax; height: 48vmax; left: 16vmax; bottom: -22vmax;
  background: radial-gradient(closest-side, #b8d9f2, transparent 70%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(7vmax, 5vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vmax, 7vmax) scale(0.94); } }
@keyframes drift3 { to { transform: translate(5vmax, -6vmax) scale(1.06); } }

/* ---------- shell ---------- */

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 90;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 12px; }

/* ---------- glass primitives ---------- */

.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--hi);
  border-radius: var(--r-lg);
}

/* pointer-reactive specular: glass catches the light you move across it */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .glass::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    pointer-events: none; z-index: 0;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 120%),
      rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 58%);
    opacity: 0; transition: opacity 0.4s ease-out;
    mix-blend-mode: soft-light;
  }
  .glass:hover::before { opacity: 1; }
  .glass > * { position: relative; z-index: 1; }
  .way { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  .way:hover { transform: translateY(-3px); }
}

/* film grain: kills flat gradient banding, adds tooth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- nav ---------- */

.nav-outer {
  position: sticky; top: 14px; z-index: 50;
  width: min(1120px, 100% - 32px); margin: 14px auto 0;
}
.nav {
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--hi);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 40px; height: 40px; }
.nav-links { position: relative; display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  position: relative; z-index: 1;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 9px 15px; border-radius: 999px;
  transition: color 0.18s ease-out;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-links .nav-cta { margin-left: 10px; color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px rgba(122, 108, 240, 0.4); }
.nav-links a.is-on, .nav-links a.is-on:hover { color: #fff; box-shadow: none; }

/* one liquid blob travels between menu items */
.nav-blob.plain { filter: none; }
.nav-blob { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: url(#nav-goo); }
.nav-blob i { position: absolute; display: block; background: #6f61ec; border-radius: 999px; }

.nav-burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--chip);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger { -webkit-tap-highlight-color: transparent; transition: transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1); }
.nav-burger:active { transform: scale(0.88); }
.nav-burger path { transform-origin: 10px 10px; transition: transform 0.38s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.14s ease-out; }
.nav-burger[aria-expanded="true"] .b1 { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .b2 { opacity: 0; transform: scaleX(0.2); }
.nav-burger[aria-expanded="true"] .b3 { transform: translateY(-4px) rotate(-45deg); }
.nav-burger svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font: 600 1rem var(--text); text-decoration: none; cursor: pointer;
  border: 0; line-height: 1.2;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, filter 0.16s ease-out;
}
.btn-primary {
  background: linear-gradient(135deg, #8a7cf4 0%, #6557e8 100%);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(101, 87, 232, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-1px); }
.btn-sm { padding: 10px 19px; font-size: 0.92rem; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 740; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.18rem; font-weight: 650; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }

/* ---------- hero ---------- */

.wip { min-height: 56vh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wip .lede { margin: 20px auto 30px; }
.wip .capture { width: 100%; }

.hero { padding: clamp(60px, 9vh, 104px) 0 clamp(40px, 6vh, 72px); }

.capture { display: flex; gap: 10px; max-width: 460px; }
.capture input {
  flex: 1; min-width: 0;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--field);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 500 1rem var(--text); color: var(--ink);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--hi);
}
.capture input::placeholder { color: var(--ink-3); }
.capture-note { margin: 12px 2px 0; font-size: 0.86rem; color: var(--ink-3); }
.capture-note.ok { color: var(--ok); font-weight: 600; }
.capture-note.err { color: var(--bad); font-weight: 600; }


.pill-crit { background: rgba(214, 92, 108, 0.16); color: var(--p-crit); }
.pill-ok { background: rgba(72, 160, 110, 0.16); color: var(--ok); }
.pill-warn { background: rgba(240, 168, 120, 0.22); color: var(--p-warn); }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 0.55; } }


/* ---------- sections ---------- */

.section { padding: clamp(44px, 7vh, 84px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vh, 48px); }
.section-head p { margin: 14px 0 0; }


.mini { padding: 22px 24px; font-size: 0.92rem; position: relative; }

.ex-tag {
  position: absolute; top: -11px; right: 18px; z-index: 2;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--chip-solid); color: var(--ink-3);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 3px 11px;
  box-shadow: var(--shadow-soft);
}
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row b { color: var(--ink); font-weight: 650; }
.mini-row .grow { flex: 1; }
.mini-num { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(122, 108, 240, 0.09);
  border: 1px solid var(--glass-border); border-radius: 999px;
}
.seg button {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 9px 17px; font: 600 0.86rem var(--text); color: var(--ink-2);
  background: none; transition: background 0.25s ease-out, color 0.25s ease-out, box-shadow 0.25s ease-out;
}
.seg button[aria-selected="true"] {
  background: linear-gradient(135deg, #8a7cf4, #6557e8); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(101, 87, 232, 0.6);
}



/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; max-width: 860px; }
.plan { padding: 34px 32px; display: flex; flex-direction: column; }
.plan.featured { background: var(--glass-strong); position: relative; }
.plan .plan-badge {
  position: absolute; top: -13px; left: 28px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(135deg, #8a7cf4, #6557e8); color: #fff;
  border-radius: 999px; padding: 5px 13px;
  box-shadow: 0 8px 18px -8px rgba(101, 87, 232, 0.6);
}
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--display); font-weight: 740; font-size: 2.6rem; color: var(--ink); margin: 10px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .plan-sub { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; stroke: var(--accent-deep); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; }

.notice-band {
  padding: 18px 26px; display: flex; gap: 14px; align-items: center;
  margin-bottom: 34px; max-width: 860px;
  font-size: 0.97rem;
}
.notice-band svg { width: 24px; height: 24px; flex: none; stroke: var(--peach); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.notice-band b { color: var(--ink); }

.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details { padding: 4px 24px; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 650; color: var(--ink); font-size: 1.02rem;
  padding: 16px 0; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform 0.2s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 18px; font-size: 0.96rem; }

/* ---------- content pages (legal/contact) ---------- */

.page-panel { padding: clamp(30px, 5vw, 54px); max-width: 780px; margin-bottom: 40px; }
.page-panel h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 4px; }
.page-panel .updated { color: var(--ink-3); font-size: 0.88rem; margin: 0 0 26px; }
.page-panel h2 { font-size: 1.22rem; margin: 30px 0 8px; }
.page-panel p, .page-panel li { font-size: 0.98rem; }
.page-panel ul { padding-left: 22px; }
.page-panel a { color: var(--accent-deep); text-decoration: none; }
.page-panel a:hover { text-decoration: underline; }
.page-panel code {
  font-size: 0.86rem; background: rgba(122, 108, 240, 0.1);
  padding: 2px 7px; border-radius: 6px; color: var(--accent-deep);
}

.ways { display: grid; gap: 16px; max-width: 640px; }
.way { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; }
.way svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.way b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.08rem; margin-bottom: 4px; }
.way p { margin: 0; font-size: 0.96rem; }
.way a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.way a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.footer-outer { padding: 30px 0 34px; }
footer.glass {
  padding: 38px clamp(26px, 4vw, 48px) 30px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.foot-brand img { width: 34px; height: 34px; }
.foot-tag { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-3); max-width: 30ch; }
.foot-col b { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 5px 0; font-weight: 500; }
.foot-col a:hover { color: var(--accent-deep); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 0.84rem; color: var(--ink-3); }

/* ---------- reveal motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, 100% - 32px); }
  .nav { gap: 10px; padding: 8px 10px 8px 14px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--panel-edge); border-radius: 26px;
    box-shadow: 0 26px 50px -18px rgba(62, 52, 140, 0.42);
    transform-origin: calc(100% - 34px) -10px;
    transform: scale(0.82) translateY(-10px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.8, 0.6), opacity 0.16s ease-in, visibility 0s linear 0.22s;
  }
  .nav-links.open {
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.14s ease-out, visibility 0s;
  }
  .nav-links a {
    padding: 14px 18px; border-radius: 18px;
    font: 650 1.12rem var(--display); letter-spacing: -0.01em;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.12s ease-out, transform 0.12s ease-out, color 0.18s ease-out;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links.open a {
    opacity: 1; transform: none;
    transition: opacity 0.3s ease-out var(--d, 0ms), transform 0.46s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0ms), color 0.18s ease-out;
  }
  .nav-links a:nth-of-type(1) { --d: 50ms; }
  .nav-links a:nth-of-type(2) { --d: 95ms; }
  .nav-links a:nth-of-type(3) { --d: 140ms; }
  .nav-links a:nth-of-type(4) { --d: 185ms; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; border-radius: 999px; }
  .nav-blob i { border-radius: 18px; }
  .nav-burger { display: flex; }
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .notice-band { align-items: flex-start; }
}

/* ---------- shouting hero ---------- */

.shout-hero { position: relative; padding: clamp(52px, 9vh, 92px) 0 clamp(36px, 6vh, 60px); }
.shout { font-size: clamp(2.7rem, 7.1vw, 6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 780; }
.shout span { display: block; }
.shout span + span { margin-top: 0.08em; color: var(--accent-deep); }
.shout-foot { max-width: 560px; margin-top: clamp(30px, 5vh, 46px); }
.shout-foot .lede { margin: 0 0 24px; }
.shout-foot .capture-note { margin-top: 12px; }

/* the logo as a physical object: grab it, throw it */
.glass-obj {
  position: absolute; z-index: 5; right: -3%; top: 214px;
  width: clamp(240px, 31vw, 430px); aspect-ratio: 1;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform; perspective: 700px;
}
.glass-obj.held { cursor: grabbing; }
.obj-body { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.obj-body img { display: block; width: 100%; height: 100%; pointer-events: none; }
.obj-spec {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(38% 38% at var(--lx, 35%) var(--ly, 25%), #fff, rgba(255, 255, 255, 0) 72%);
  -webkit-mask: url(/assets/logo-mask.png) center / 100% 100% no-repeat;
  mask: url(/assets/logo-mask.png) center / 100% 100% no-repeat;
}
.obj-shadow {
  position: absolute; left: 12%; right: 8%; bottom: 8%; height: 16%; border-radius: 50%;
  background: rgba(79, 66, 190, 0.34); filter: blur(20px); will-change: transform, opacity;
}
.obj-hint {
  position: absolute; right: 12%; top: calc(214px + clamp(205px, 26.5vw, 368px));
  margin: 0; font-size: 0.82rem; color: var(--ink-3); pointer-events: none;
  transition: opacity 0.3s ease-out;
}
.obj-hint.gone { opacity: 0; }

/* ---------- break-something demo ---------- */

.demo-head { display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 22px; }
.demo-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; }
.demo-head p { margin: 0; max-width: 46ch; }
.demo, .viewer { padding: clamp(22px, 3.4vw, 38px); }
.demo-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.demo-picks button {
  border: 1px solid rgba(122, 108, 240, 0.28); background: var(--chip); color: var(--ink);
  font: 600 0.92rem var(--text); padding: 10px 17px; border-radius: 999px; cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.7, 0.5, 1), background 0.18s ease-out, color 0.18s ease-out;
}
.demo-picks button:hover { transform: translateY(-2px); }
.demo-picks button:active { transform: scale(0.94); }
.demo-picks button[aria-pressed="true"], .demo-picks button[aria-selected="true"] { background: #6f61ec; border-color: #6f61ec; color: #fff; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 46px); align-items: stretch; }
.demo-chart { margin: 0; min-width: 0; }
.demo-chart figcaption { font-size: 0.84rem; color: var(--ink-3); margin-bottom: 8px; }
.demo-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.demo-chart text { font: 500 12px var(--text); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.demo-chart .val { font: 700 15px var(--display); fill: var(--ink); }
.demo-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 0.84rem; }
.demo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.demo-legend i { width: 16px; height: 3px; border-radius: 2px; }
.k-p { background: #7a6cf0; }
.k-c { background: #cf7a3e; }
.demo-says { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.say { padding: 16px 18px; border-radius: var(--r-md); font-size: 0.97rem; }
.say b { display: block; font: 700 0.76rem var(--text); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 5px; }
.say p { margin: 0; line-height: 1.5; }
.say-dash { background: rgba(122, 108, 240, 0.08); color: var(--ink-2); }
.say-dash b { color: var(--ink-3); }
.say-nerve { flex: 1; background: var(--solid); color: #f1eefc; min-height: 148px; box-shadow: var(--shadow); }
.say-nerve b { color: #b9b0f2; }
.say-nerve p.pop { animation: pop 0.5s cubic-bezier(0.34, 1.6, 0.5, 1); transform-origin: left top; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
.say-typing { display: flex; gap: 5px; padding: 7px 0; }
.say-typing[hidden] { display: none; }
.say-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9b0f2; animation: typing 1s ease-in-out infinite; }
.say-typing i:nth-child(2) { animation-delay: 0.15s; }
.say-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 0.55; } }

/* ---------- type-led sections instead of card rows ---------- */

.rules-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: clamp(20px, 3.4vh, 34px); }
.rules { margin: 0; }
.rules > div {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px clamp(24px, 5vw, 64px);
  align-items: baseline; padding: clamp(20px, 3.4vh, 32px) 0;
  border-top: 1.5px solid var(--rule);
}
.rules dt { font: 700 clamp(1.45rem, 3vw, 2.25rem)/1.12 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.rules dd { margin: 0; }

.nots { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.16; letter-spacing: -0.025em; color: var(--faint); }
.nots p { margin: 0; }
.nots .nots-yes { color: var(--accent-deep); margin-top: 0.2em; }

.closer {
  background: var(--solid); color: #d9d4f0; border-radius: var(--r-lg);
  padding: clamp(38px, 7vw, 76px) clamp(24px, 6vw, 72px);
  box-shadow: 0 34px 60px -30px rgba(39, 35, 63, 0.65);
}
.closer h2 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; }
.closer > p { margin: 12px 0 26px; }
.closer .capture input { background: rgba(255, 255, 255, 0.96); border-color: transparent; color: #27233f; }
.closer .capture input::placeholder { color: #6d6890; }
.closer .capture-note { color: #b5aed6; }
.closer .capture-note.ok { color: #a9e8c4; }
.closer .capture-note.err { color: #ffb9c1; }

.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 38px); counter-reset: none; }
.rail li { padding-top: 16px; border-top: 3px solid #7a6cf0; }
.rail li:nth-child(2) { border-top-color: #a597f2; }
.rail li:nth-child(3) { border-top-color: #cf7a3e; }
.rail b { display: block; font: 700 1.5rem var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.rail span { font-size: 0.98rem; }
.view-line { margin: 0 0 16px; font-size: 1.12rem; color: var(--ink); max-width: 56ch; }
.view-panel[hidden] { display: none; }
.view-panel .mini { padding: 4px 0 0; }
.build-order { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; max-width: 34em; margin: 0; }
.build-order b { color: var(--ink); }
.prod-hero { padding-bottom: 10px; }
.prod-hero h1 { font-size: clamp(2.5rem, 6.6vw, 5.2rem); letter-spacing: -0.04em; }
.prod-hero .lede { margin-top: 20px; }

@media (max-width: 900px) {
  .shout-foot { max-width: none; }
  .glass-obj { position: relative; right: auto; top: auto; width: 190px; margin: 18px auto 0; }
  .obj-hint { position: static; text-align: center; margin-top: -6px; }
  .demo-grid { grid-template-columns: 1fr; }
  .rules > div { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .demo-chart text { font-size: 20px; }
  .demo-chart .val { font-size: 24px; }
}

.pill {
  flex: none; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; line-height: 1.4;
}

/* ---------- theme switch ---------- */

.nav { position: relative; z-index: 2; }
.theme-tab {
  position: absolute; z-index: 1; right: 26px; top: calc(100% - 23px);
  width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-deep);
  background: var(--panel); border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.theme-tab:hover { color: var(--ink); }
.theme-tab:active { scale: 0.9; }
.peek .theme-tab, .theme-tab:focus-visible { transform: translateY(32px); }
@media (hover: none) { .theme-tab { transform: translateY(32px); } }
.theme-ico { position: relative; display: block; width: 22px; height: 22px; }
.theme-ico svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.22s ease-out;
}
.theme-ico .sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"] .theme-ico .sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-ico .moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
.theme-row { display: none; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.theme-fade *, html.theme-fade *::before { transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease !important; }

@media (max-width: 680px) {
  .theme-tab { display: none; }
  .theme-row {
    display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px;
    padding: 13px 18px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer;
    font: 650 1.02rem var(--display); color: var(--ink-2); text-align: left;
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(12px); transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  }
  .nav-links.open .theme-row { opacity: 1; transform: none; transition: opacity 0.3s ease-out 230ms, transform 0.46s cubic-bezier(0.3, 1.6, 0.5, 1) 230ms; }
}
