/* Malibu flagship web system. Loaded after the legacy stylesheet so the working
   product can be redesigned without disturbing its API or state contracts. */
:root {
  color-scheme: light;
  --page: #f5f0e6;
  --page-deep: #ece4d5;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-soft: #eee9df;
  --surface-sea: #e5efeb;
  --ink: #202420;
  --ink-soft: #4f5751;
  --ink-muted: #7d827c;
  --line: rgba(50, 56, 49, 0.14);
  --line-strong: rgba(50, 56, 49, 0.24);
  --ocean: #316c78;
  --ocean-soft: #dcebed;
  --sage: #5e7d6b;
  --sage-soft: #e2ece5;
  --coral: #bd6758;
  --coral-soft: #f3e3dd;
  --sand: #a57945;
  --sand-soft: #efe4d3;
  --danger: #a34f47;
  --danger-soft: #f4e4df;
  --focus: rgba(49, 108, 120, 0.28);
  --shadow-soft: 0 18px 60px rgba(74, 63, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(74, 63, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --shell: min(1400px, calc(100vw - 64px));
  --font-sans: "Manrope", "Avenir Next", sans-serif;
  --font-display: "Newsreader", Georgia, serif;

  /* Compatibility tokens used by existing runtime-rendered markup. */
  --bg: var(--page);
  --bg-card: var(--surface);
  --text: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-tertiary: var(--ink-muted);
  --border: var(--line);
  --green: var(--sage);
  --green-bg: var(--sage-soft);
  --red: var(--danger);
  --red-bg: var(--danger-soft);
  --amber: var(--sand);
  --amber-bg: var(--sand-soft);
}

html {
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 3%, rgba(115, 155, 144, 0.12), transparent 32rem),
    linear-gradient(180deg, #faf7f0 0%, var(--page) 55%, #f1eadf 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dark {
  color-scheme: dark;
  --page: #1f211e;
  --page-deep: #191b18;
  --surface: #292c28;
  --surface-raised: #30332f;
  --surface-soft: #242622;
  --surface-sea: #253531;
  --ink: #f1ecdf;
  --ink-soft: #c1beb5;
  --ink-muted: #94978f;
  --line: rgba(241, 236, 223, 0.13);
  --line-strong: rgba(241, 236, 223, 0.22);
  --ocean: #86b8c0;
  --ocean-soft: #273a3d;
  --sage: #9bbba6;
  --sage-soft: #29382e;
  --coral: #df9687;
  --coral-soft: #402d28;
  --sand: #d6ad76;
  --sand-soft: #3d352a;
  --danger: #e39b91;
  --danger-soft: #402b28;
  --focus: rgba(134, 184, 192, 0.35);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button {
  color: inherit;
}

::selection {
  background: rgba(49, 108, 120, 0.2);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.view { display: none; }
.view.active { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(250, 247, 240, 0.84);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.site-nav {
  width: var(--shell);
  max-width: none;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 28px;
}

.logo,
.auth-wordmark {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-primary { gap: 8px; }
.nav-actions { justify-content: flex-end; gap: 7px; }

.nav-link,
.nav-account {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-account:hover {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.nav-check,
.btn-primary,
.auth-submit,
.welcome-cta,
.final-input-group button {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--page);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: transform 160ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.nav-check { min-height: 42px; padding: 0 17px; }

.nav-check:hover,
.btn-primary:hover,
.auth-submit:hover,
.welcome-cta:hover,
.final-input-group button:hover {
  box-shadow: 0 8px 22px rgba(32, 36, 32, 0.16);
  transform: translateY(-1px);
}

.nav-check:active,
.btn-primary:active,
.auth-submit:active,
.welcome-cta:active,
.final-input-group button:active {
  transform: translateY(0) scale(0.985);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-user-email {
  max-width: 110px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-wishlist-count {
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean);
  font-size: 0.64rem;
}

.section-shell,
.hero-grid,
.personal-signal,
.home-footer {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ocean);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--coral-soft);
  vertical-align: 1px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: clamp(72px, 9vw, 140px) 0 42px;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere::before {
  position: absolute;
  top: -18rem;
  right: -11rem;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 151, 139, 0.2), rgba(107, 151, 139, 0.06) 42%, transparent 70%);
  content: "";
}

.hero-atmosphere::after {
  position: absolute;
  bottom: 11%;
  left: -9rem;
  width: 28rem;
  height: 22rem;
  border: 1px solid rgba(49, 108, 120, 0.09);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: clamp(60px, 8vw, 132px);
}

.hero-copy { position: relative; z-index: 1; }

.hero h1,
.section-heading h2,
.return-title,
.method-copy h2,
.mobile-copy h2,
.final-cta h2,
.saved-heading h1,
.results h1,
.auth-story h1,
.loading-view h1,
.welcome-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4.8rem, 8vw, 8.6rem);
  line-height: 0.83;
}

.hero h1 em,
.auth-story h1 em,
.welcome-copy h1 em {
  color: var(--ocean);
  font-weight: 400;
}

.hero-sub {
  max-width: 600px;
  margin: 34px 0 36px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}

.hero-input-wrap {
  max-width: 700px;
  margin: 0;
}

.input-group {
  width: 100%;
  max-width: none;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  overflow: visible;
  border: 1px solid rgba(50, 56, 49, 0.17);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input-group:focus-within {
  border-color: rgba(49, 108, 120, 0.48);
  box-shadow: 0 0 0 5px var(--focus), var(--shadow-card);
  transform: translateY(-1px);
}

.input-link-mark {
  width: 42px;
  height: 42px;
  margin-left: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-sea);
  color: var(--ocean);
  font-size: 1rem;
}

.input-group input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.input-group input::placeholder,
.final-input-group input::placeholder { color: #979b94; }

.input-group button {
  position: static;
  min-height: 48px;
  margin: 0 10px 0 0;
  padding: 0 17px;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.input-group button::after { display: none; }

.input-group .paste-button {
  margin-right: 4px;
  background: transparent;
  color: var(--ink-soft);
}

.input-group .paste-button:hover { background: var(--surface-soft); }

.input-group .analyze-button {
  background: var(--ink);
  color: var(--page);
}

.form-message {
  min-height: 22px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-message[data-tone="success"] { color: var(--sage); }
.form-message[data-tone="info"] { color: var(--ocean); }

.hero-foot {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.tagline,
.daily-count {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.hero-trust-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-trust-row span::before {
  margin-right: 8px;
  color: var(--sage);
  content: "✓";
}

.hero-report {
  position: relative;
  min-height: 580px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 125, 135, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 232, 219, 0.96));
  box-shadow: 0 34px 90px rgba(74, 63, 42, 0.13), 0 1px 0 #fff inset;
}

.hero-report::before {
  position: absolute;
  right: -18%;
  bottom: -34%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 108, 120, 0.13);
  border-radius: 50%;
  content: "";
}

.report-window-bar,
.report-verdict-row,
.report-evidence-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-window-label,
.report-live {
  color: var(--ink-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-live i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--sage);
}

.report-product-row {
  position: relative;
  z-index: 1;
  margin: 36px 0;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 156px 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.report-product-visual {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.75), rgba(214,226,220,.7)),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(50, 56, 49, 0.08);
}

.headphone-arc {
  position: absolute;
  top: 26px;
  left: 43px;
  width: 70px;
  height: 78px;
  border: 8px solid #3c4541;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}

.headphone-cup {
  position: absolute;
  top: 87px;
  width: 31px;
  height: 45px;
  border-radius: 12px;
  background: #3c4541;
  box-shadow: inset 0 0 0 5px #56625d;
}

.headphone-cup.left { left: 31px; transform: rotate(-5deg); }
.headphone-cup.right { right: 31px; transform: rotate(5deg); }

.report-product-row p,
.report-label {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-product-row h2 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.report-product-row > div > span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.report-verdict-row strong {
  display: block;
  color: var(--sand);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.confidence-orbit {
  width: 88px;
  height: 88px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(165, 121, 69, 0.3);
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  text-align: center;
}

.confidence-orbit span { color: var(--sand); font-size: 0.88rem; font-weight: 700; }
.confidence-orbit small { color: var(--ink-muted); font-size: 0.58rem; }

.report-reason {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin: 26px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.report-evidence-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.report-evidence-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.46);
  color: var(--ink-muted);
  font-size: 0.62rem;
}

.report-evidence-row b { color: var(--ink-soft); font-weight: 700; }

.personal-signal {
  position: relative;
  z-index: 2;
  margin-top: clamp(64px, 9vw, 120px);
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.signal-intro p { margin: 0; color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.signal-intro span { color: var(--ink-muted); font-size: 0.68rem; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat-item {
  padding: 0 24px;
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--line);
}

.stat-number { color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.04em; }
.stat-label { color: var(--ink-muted); font-size: 0.62rem; letter-spacing: 0.04em; }

.return-section,
.process-section,
.method-section,
.history-section,
.final-cta {
  padding-block: clamp(78px, 10vw, 154px);
}

.return-card {
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(49, 108, 120, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(118deg, rgba(228, 239, 235, 0.95), rgba(251, 247, 238, 0.96) 65%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.return-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.return-eyebrow {
  margin-bottom: 14px;
  color: var(--ocean);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.return-title {
  max-width: 770px;
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 0.98;
}

.return-copy {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.return-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-secondary,
.btn-view,
.saved-clear {
  min-height: 48px;
  padding: 0 19px;
}

.btn-secondary,
.btn-view,
.saved-clear {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.btn-secondary:hover,
.btn-view:hover,
.saved-clear:hover {
  border-color: var(--ocean);
  background: var(--surface-raised);
  color: var(--ocean);
  transform: translateY(-1px);
}

.return-metrics {
  margin-top: 42px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.return-metric {
  padding: 0 24px;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.return-metric:first-child { padding-left: 0; border-left: 0; }
.return-metric-value { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.04em; }
.return-metric-label { color: var(--ink-muted); font-size: 0.68rem; }

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-heading h2,
.method-copy h2,
.mobile-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.9;
}

.section-heading > p:last-child,
.split-heading > p,
.method-copy > p,
.mobile-copy > p,
.final-cta-inner > p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 64px;
}

.split-heading > p { max-width: 470px; padding-bottom: 8px; }

.process-rail {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
}

.process-step {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.42), transparent);
}

.process-step:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.process-step:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.process-index {
  display: block;
  margin-bottom: 32px;
  color: var(--ink-muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.process-step p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.7; }

.process-connector {
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line-strong);
}

.process-connector span { width: 100%; height: 1px; background: var(--line-strong); }
.process-connector span::after { float: right; margin-top: -11px; color: var(--ink-muted); content: "›"; }

.process-demo,
.filter-stack,
.decision-stamp {
  min-height: 96px;
}

.link-demo {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.link-demo strong { color: var(--ocean); font-size: 0.76rem; font-weight: 700; }

.filter-stack { display: flex; flex-wrap: wrap; align-content: center; gap: 7px; }
.filter-stack span { padding: 7px 9px; border-radius: 999px; font-size: 0.62rem; font-weight: 700; }
.filter-stack .accepted { background: var(--sage-soft); color: var(--sage); }
.filter-stack .rejected { background: var(--coral-soft); color: var(--coral); text-decoration: line-through; }

.decision-stamp {
  display: grid;
  place-content: center start;
  border-bottom: 1px solid var(--sage);
}

.decision-stamp span { color: var(--ink-muted); font-size: 0.62rem; text-transform: uppercase; }
.decision-stamp strong { color: var(--sage); font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; }

.examples-section {
  padding-block: clamp(86px, 11vw, 170px);
  background:
    linear-gradient(180deg, rgba(230, 224, 210, 0.3), rgba(255, 253, 248, 0.65)),
    var(--page-deep);
}

.decision-stories {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.decision-story {
  min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.story-buy,
.story-limited { grid-column: span 5; }
.story-wait,
.story-switch { grid-column: span 7; }
.story-wait { background: linear-gradient(135deg, var(--sand-soft), var(--surface)); }
.story-switch { background: linear-gradient(135deg, var(--ocean-soft), var(--surface)); }

.story-status { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.story-status span { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.04em; }
.story-status small { color: var(--ink-muted); font-size: 0.65rem; }
.story-copy p { max-width: 620px; margin: 0 0 16px; color: var(--ink-soft); }
.story-copy strong { font-size: 0.74rem; letter-spacing: 0.04em; }

.story-signal { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 0.63rem; }
.story-signal i { position: relative; height: 3px; border-radius: 3px; background: var(--line); }
.story-signal i::after { position: absolute; top: -4px; left: var(--position); width: 11px; height: 11px; border-radius: 50%; background: var(--sage); content: ""; }
.story-signal b { color: var(--sage); }

.story-bars { height: 70px; display: flex; align-items: end; gap: 7px; }
.story-bars span { flex: 1; border-radius: 5px 5px 0 0; background: rgba(165, 121, 69, 0.2); }
.story-bars span:nth-child(1) { height: 30%; }
.story-bars span:nth-child(2) { height: 48%; }
.story-bars span:nth-child(3) { height: 74%; }
.story-bars span:nth-child(4) { height: 58%; }
.story-bars span:nth-child(5) { height: 92%; background: var(--sand); }

.story-route { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 0.7rem; }
.story-route span { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.story-route .better-store { border-color: rgba(49,108,120,.3); color: var(--ocean); background: rgba(255,255,255,.45); }
.limited-meter { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.limited-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ink-muted); }

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: start;
  gap: clamp(60px, 10vw, 160px);
}

.method-copy h2 { margin-bottom: 28px; }
.method-copy > p { max-width: 620px; margin-bottom: 28px; }

.method-details { border-top: 1px solid var(--line); }
.method-details:last-child { border-bottom: 1px solid var(--line); }
.method-details summary { padding: 20px 0; cursor: pointer; font-size: 0.85rem; font-weight: 700; list-style: none; }
.method-details summary::-webkit-details-marker { display: none; }
.method-details summary::after { float: right; color: var(--ocean); content: "+"; font-size: 1.1rem; }
.method-details[open] summary::after { content: "−"; }
.method-details p { margin: -4px 0 22px; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.7; }

.evidence-ledger {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ledger-row {
  min-height: 106px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child { border-bottom: 0; }
.ledger-row > span { color: var(--ink-muted); font-size: 0.65rem; letter-spacing: .1em; }
.ledger-row strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.ledger-row p { margin: 2px 0 0; color: var(--ink-muted); font-size: 0.7rem; }
.ledger-row b { padding: 7px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 0.58rem; text-transform: uppercase; }
.ledger-row.primary { background: var(--surface-sea); }
.ledger-row.primary b,
.ledger-row.safe b { background: var(--sage-soft); color: var(--sage); }

.mobile-section {
  padding-block: clamp(90px, 12vw, 180px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 50%, rgba(78, 128, 137, 0.14), transparent 32rem),
    linear-gradient(180deg, #f9f5ed, var(--page));
}

.mobile-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(70px, 11vw, 170px);
}

.mobile-copy h2 { max-width: 720px; margin-bottom: 30px; }
.mobile-copy > p { max-width: 590px; }
.mobile-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.mobile-points span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 0.68rem; }

.phone-stage { position: relative; min-height: 650px; display: grid; place-items: center; perspective: 1000px; }
.phone-shadow { position: absolute; bottom: 4%; width: 68%; height: 12%; border-radius: 50%; background: rgba(53, 67, 61, .2); filter: blur(28px); transform: rotate(-5deg); }
.phone-frame { position: relative; width: 334px; height: 676px; padding: 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 58px; background: #252a27; box-shadow: 0 48px 90px rgba(43, 53, 48, .24); transform: rotate(4deg); }
.phone-island { position: absolute; z-index: 2; top: 20px; left: 50%; width: 104px; height: 27px; border-radius: 20px; background: #171a18; transform: translateX(-50%); }
.phone-screen { height: 100%; padding: 48px 20px 22px; overflow: hidden; border-radius: 47px; background: linear-gradient(180deg, #f9f6ef, #eee7da); }
.phone-top { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.2rem; }
.phone-top small { color: var(--ink-muted); font-family: var(--font-sans); font-size: .58rem; text-transform: uppercase; }
.phone-product { margin: 32px 0 18px; display: flex; align-items: center; gap: 12px; }
.phone-product-art { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, var(--ocean-soft), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.phone-product span { display: grid; }
.phone-product small { color: var(--ink-muted); font-size: .58rem; }
.phone-product strong { font-size: .82rem; }
.phone-verdict { min-height: 255px; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; background: linear-gradient(145deg, var(--sand-soft), var(--surface)); box-shadow: var(--shadow-card); }
.phone-verdict small { color: var(--ink-muted); font-size: .58rem; text-transform: uppercase; }
.phone-verdict strong { margin: 6px 0 12px; color: var(--sand); font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.phone-verdict p { color: var(--ink-soft); font-size: .68rem; line-height: 1.55; }
.phone-confidence { margin: 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--ink-muted); font-size: .62rem; }
.phone-confidence b { color: var(--sage); }
.phone-confidence i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.phone-confidence em { display: block; width: 78%; height: 100%; background: var(--sage); }
.phone-screen button { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--ink); color: var(--page); font-size: .65rem; font-weight: 700; }

.history-shell { padding-top: 42px; border-top: 1px solid var(--line); }
.section-heading.compact { margin-bottom: 36px; }
.section-heading.compact h2 { font-size: clamp(2.6rem, 4vw, 4.5rem); }
.history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.history-item { border-radius: var(--radius-md) !important; background: var(--surface) !important; border-color: var(--line) !important; box-shadow: var(--shadow-card); }

.final-cta-inner {
  position: relative;
  padding: clamp(48px, 8vw, 110px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 157, 145, .19), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.final-cta h2 { max-width: 840px; margin: 0 auto 20px; }
.final-cta-inner > p { max-width: 540px; margin-inline: auto; }
.final-input-group { max-width: 760px; margin: 38px auto 0; padding: 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--page); }
.final-input-group input { min-width: 0; padding: 0 18px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.final-input-group button { padding-inline: 22px; }
.final-cta .form-message { text-align: left; max-width: 760px; margin-inline: auto; padding-inline: 10px; }

.home-footer {
  padding: 38px 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.home-footer > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.04em; }
.footer-copy { color: var(--ink-muted); font-size: .67rem; }
.home-footer > .footer-copy { text-align: right; }
.footer-links { display: flex; gap: 5px; }
.footer-links a,
.footer-links button { padding: 8px 10px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: .67rem; text-decoration: none; }
.footer-links a:hover,
.footer-links button:hover { color: var(--ocean); }

/* Scroll motion is restrained to position and opacity. */
.motion-ready #homeView [data-motion] {
  opacity: calc(.18 + var(--motion-enter, 1) * .82);
  transform: translate3d(0, calc((1 - var(--motion-enter, 1)) * 24px), 0);
  transition: opacity 90ms linear, transform 90ms linear;
}

/* Analysis transition */
.loading-view {
  position: relative;
  width: min(720px, calc(100vw - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.loading-stage {
  position: relative;
  width: min(420px, 90vw);
  height: 170px;
  margin-bottom: 42px;
  display: grid;
  place-items: center;
}

.loading-stage::before,
.loading-stage::after {
  position: absolute;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(49, 108, 120, .16);
  border-radius: 50%;
  content: "";
  animation: loading-pulse 2.4s ease-out infinite;
}

.loading-stage::after { animation-delay: 1.2s; }

.loading-link {
  position: absolute;
  left: 0;
  width: 190px;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink-muted);
  font-size: .68rem;
  animation: loading-link 2.6s ease-in-out infinite;
}

.loading-link i { width: 30px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-soft); }
.loading-link i::after { display: block; width: 45%; height: 100%; background: var(--ocean); content: ""; animation: loading-line 1.4s ease-in-out infinite; }

.loading-scan {
  position: absolute;
  right: 0;
  width: 128px;
  display: grid;
  gap: 8px;
}

.loading-scan span { height: 11px; overflow: hidden; border-radius: 8px; background: var(--surface-soft); }
.loading-scan span::after { display: block; width: 65%; height: 100%; border-radius: inherit; background: var(--sage-soft); content: ""; animation: loading-evidence 1.8s ease-in-out infinite; }
.loading-scan span:nth-child(2)::after { width: 82%; animation-delay: 160ms; }
.loading-scan span:nth-child(3)::after { width: 46%; animation-delay: 320ms; }

.loading-seal {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 108, 120, .25);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ocean);
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.loading-view .eyebrow { margin-bottom: 14px; }
.loading-view h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 5.6rem); line-height: .92; }
.loading-copy { max-width: 540px; margin: 20px 0 28px !important; color: var(--ink-soft) !important; font-size: .9rem !important; letter-spacing: 0 !important; line-height: 1.7; }

.loading-steps {
  width: min(470px, 100%);
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.loading-step {
  min-height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.34);
  color: var(--ink-muted);
  font-size: .68rem;
  letter-spacing: 0;
  opacity: .38;
  transition: opacity 300ms ease, border-color 300ms ease, background 300ms ease;
}

.loading-step.active { border-color: rgba(49,108,120,.28); background: var(--ocean-soft); color: var(--ocean); opacity: 1; }
.loading-step.done { background: var(--sage-soft); color: var(--sage); opacity: .78; }
.step-dot { width: 7px; height: 7px; background: var(--line-strong); }
.loading-step.active .step-dot { background: var(--ocean); box-shadow: 0 0 0 5px rgba(49,108,120,.1); }
.loading-step.done .step-dot { background: var(--sage); }

.loading-cancel {
  margin-top: 26px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: .7rem;
}

@keyframes loading-pulse { 0% { opacity: .5; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes loading-link { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
@keyframes loading-line { 0%, 100% { transform: translateX(-20%); } 50% { transform: translateX(130%); } }
@keyframes loading-evidence { 0%, 100% { opacity: .35; transform: scaleX(.5); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); transform-origin: left; } }

/* Real decision report */
.results {
  width: min(1240px, calc(100vw - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 48px 0 120px;
}

.results-topbar {
  margin-bottom: 34px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.back-link {
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}

.back-link::before { margin-right: 7px; color: var(--ocean); content: "←"; }
.back-link:hover { color: var(--ocean); transform: translateX(-2px); }

.result-overview {
  margin-bottom: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 18px;
}

.product-header {
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.15 / 1;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.9), transparent 50%),
    var(--surface-soft);
}

.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-image.image-unavailable::after,
.image-fallback { color: var(--ink-muted); content: "Image unavailable"; font-size: .68rem; }
.product-info { min-width: 0; }
.product-store { margin-bottom: 9px; color: var(--ocean); font-size: .65rem; font-weight: 700; letter-spacing: .11em; }
.product-name { margin-bottom: 18px; overflow-wrap: anywhere; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 3.15rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.product-price { color: var(--ink); font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; letter-spacing: -.045em; }

#recommendationBlock,
.recommendation,
.decision-hero { height: 100%; }
.recommendation { margin: 0; }

.decision-hero {
  --decision-accent: var(--ink-soft);
  --decision-soft: var(--surface-soft);
  position: relative;
  min-height: 480px;
  padding: clamp(30px, 4.5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 0%, var(--decision-soft), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.decision-hero::before {
  position: absolute;
  top: -9rem;
  right: -7rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid color-mix(in srgb, var(--decision-accent) 25%, transparent);
  border-radius: 50%;
  content: "";
}

.decision-hero::after { inset: auto 0 0; height: 5px; background: var(--decision-accent); opacity: .7; }
.decision-hero.buy { --decision-accent: var(--sage); --decision-soft: var(--sage-soft); }
.decision-hero.wait { --decision-accent: var(--sand); --decision-soft: var(--sand-soft); }
.decision-hero.switch { --decision-accent: var(--ocean); --decision-soft: var(--ocean-soft); }
.decision-hero.neutral { --decision-accent: #69706a; --decision-soft: var(--surface-soft); }

.decision-kicker { position: absolute; top: clamp(26px, 4vw, 46px); right: clamp(26px, 4vw, 46px); left: clamp(26px, 4vw, 46px); margin: 0; }
.decision-kicker span { color: var(--ink-muted); font-size: .63rem; }
.decision-icon { width: 55px; height: 55px; border-color: color-mix(in srgb, var(--decision-accent) 32%, transparent); background: rgba(255,255,255,.48); color: var(--decision-accent); font-family: var(--font-sans); font-size: .63rem; font-weight: 800; letter-spacing: .05em; }
.rec-label { position: relative; max-width: 780px; margin-bottom: 22px; color: var(--decision-accent); font-family: var(--font-display); font-size: clamp(3.7rem, 7vw, 7.7rem); font-weight: 400; letter-spacing: -.07em; line-height: .82; }
.rec-reason { position: relative; max-width: 720px; color: var(--ink-soft); font-size: clamp(.9rem, 1.2vw, 1.04rem); line-height: 1.7; }
.decision-meta-row { position: relative; margin-top: 28px; }
.decision-chip,
.verification-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.46); color: var(--ink-soft); font-size: .65rem; }

.result-section-heading { max-width: 760px; margin-bottom: 32px; }
.result-section-heading .eyebrow { margin-bottom: 10px; }
.result-section-heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }

.verification-report { margin-bottom: clamp(54px, 7vw, 88px); }
.verification-shell { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.verification-stats { margin-bottom: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.verification-stat { min-height: 112px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 0; border-radius: 0; background: var(--surface); }
.verification-stat strong { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 400; }
.verification-stat span { color: var(--ink-muted); font-size: .62rem; }

.verification-strength { margin: 0 0 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.verification-strength-head { margin-bottom: 13px; color: var(--ink-soft); font-size: .76rem; }
.verification-strength-head strong { color: var(--ocean); font-size: .76rem; }
.verification-track { height: 7px; background: var(--surface-soft); }
.verification-track span { background: linear-gradient(90deg, var(--sand), var(--sage), var(--ocean)); animation: confidence-fill 900ms cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes confidence-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.verification-grid,
.decision-intel-grid { padding-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border: 0; }
.decision-intel-grid { margin-top: 18px; }
.verification-block,
.decision-intel-card { min-height: 170px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,253,248,.7); }
.verification-block h3,
.decision-intel-card h3 { margin-bottom: 14px; color: var(--ink); font-size: .65rem; letter-spacing: .1em; }
.verification-block p,
.decision-intel-card p { color: var(--ink-soft); font-size: .84rem; line-height: 1.75; }
.verification-reasons { gap: 7px; }

.results-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.section-title { margin: 0 0 13px; color: var(--ink-muted); font-size: .64rem; font-weight: 700; letter-spacing: .11em; }
.price-card { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.price-rows { gap: 0; }
.price-row { min-height: 64px; gap: 20px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row-label { color: var(--ink-soft); font-size: .76rem; }
.price-row-value { color: var(--ink); font-size: .84rem; text-align: right; }
.price-row-value.savings { color: var(--sage); }
.trend-indicator { border-radius: 999px; font-size: .65rem; }

.alt-list { margin: 0; gap: 8px; }
.alt-item { min-height: 76px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: none; }
.alt-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.alt-item.best { border-color: rgba(94,125,107,.38); background: linear-gradient(100deg, var(--sage-soft), var(--surface) 42%); }
.alt-item-info { min-width: 0; }
.alt-store { color: var(--ink); font-size: .8rem; font-weight: 700; }
.alt-price { color: var(--ink-soft); font-size: .74rem; }
.alt-best-tag { border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: .56rem; }
.btn-view { min-height: 40px; padding-inline: 14px; white-space: nowrap; }

.actions {
  position: sticky;
  z-index: 20;
  bottom: 18px;
  width: max-content;
  max-width: 100%;
  margin: 48px auto 0;
  padding: 9px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,253,248,.88);
  box-shadow: 0 18px 48px rgba(74,63,42,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Authentication */
.auth-view {
  width: min(1180px, calc(100vw - 64px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 54px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .7fr);
  align-items: stretch;
  gap: 18px;
}

.auth-story,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.auth-story {
  position: relative;
  min-height: 650px;
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(78,128,137,.2), transparent 42%),
    linear-gradient(145deg, var(--surface), #ebe6d9);
  box-shadow: var(--shadow-soft);
}

.auth-story::after { position: absolute; right: -8rem; bottom: -11rem; width: 30rem; height: 30rem; border: 1px solid rgba(49,108,120,.13); border-radius: 50%; content: ""; }
.auth-story-copy { position: relative; z-index: 1; max-width: 650px; }
.auth-story h1 { margin: 0 0 26px; font-size: clamp(4rem, 7vw, 7.6rem); line-height: .84; }
.auth-story-copy > p:last-child { max-width: 530px; color: var(--ink-soft); }
.auth-proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-proof span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.35); color: var(--ink-soft); font-size: .65rem; }

.auth-card {
  max-width: none;
  margin: 0;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.auth-back { align-self: flex-start; margin-bottom: auto; padding: 8px 0; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: .68rem; }
.auth-back::before { margin-right: 7px; content: "←"; color: var(--ocean); }
.auth-logo { display: none; }
.auth-title { margin: 18px 0 8px; color: var(--ink); font-family: var(--font-display); font-size: clamp(2.7rem, 4vw, 4.1rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.auth-sub { margin-bottom: 30px; color: var(--ink-soft); font-size: .82rem; }
.auth-field { margin-bottom: 16px; }
.auth-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-field label { margin-bottom: 7px; display: block; color: var(--ink-soft); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: none; }
.auth-field input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--page); color: var(--ink); }
.auth-field input:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus); outline: 0; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-submit:disabled { cursor: wait; opacity: .55; }
.auth-switch { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: .7rem; }
.auth-switch span { display: flex; align-items: center; gap: 5px; }
.auth-switch button { padding: 3px; border: 0; background: transparent; color: var(--ocean); cursor: pointer; font-size: inherit; font-weight: 700; }
.auth-error,
.auth-notice { margin-bottom: 14px; padding: 13px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .74rem; }
.auth-error.visible { border-color: rgba(163,79,71,.22); background: var(--danger-soft); color: var(--danger); }
.auth-notice.visible { border-color: rgba(94,125,107,.22); background: var(--sage-soft); color: var(--sage); }
.auth-verify { padding: 40px 0; text-align: left; }
.auth-verify-mark { width: 54px; height: 54px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ocean-soft); color: var(--ocean); font-weight: 800; }
.auth-verify strong { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.auth-verify p { margin-top: 12px; color: var(--ink-soft); font-size: .82rem; }

/* Saved decisions */
.saved-view { min-height: calc(100svh - 76px); }
.saved-heading { margin: 24px 0 46px; padding-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line); }
.saved-heading h1 { margin: 0 0 12px; font-size: clamp(3.7rem, 7vw, 7rem); line-height: .86; }
.saved-heading p:not(.eyebrow) { max-width: 580px; color: var(--ink-soft); }
.saved-clear { flex: 0 0 auto; }
#wishlistItems { display: grid; gap: 10px; }
.wishlist-empty { min-height: 370px; padding: 60px 24px; display: grid; place-items: center; align-content: center; gap: 13px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink); text-align: center; }
.wishlist-empty span { font-family: var(--font-display); font-size: 2.3rem; letter-spacing: -.04em; }
.wishlist-empty p { max-width: 470px; color: var(--ink-soft); font-size: .82rem; }
.wishlist-empty .btn-primary { margin-top: 8px; }
.wishlist-item { min-height: 96px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: none; }
.wishlist-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.wishlist-item-name { max-width: 760px; overflow-wrap: anywhere; color: var(--ink); font-family: var(--font-display); font-size: 1.22rem; font-weight: 400; line-height: 1.15; }
.wishlist-item-meta { color: var(--ink-muted); font-size: .66rem; }
.wishlist-item-price { color: var(--ink); font-size: 1rem; }
.wishlist-item-rec { border-radius: 999px; font-size: .58rem; }
.wishlist-item-rec.buy { color: var(--sage); background: var(--sage-soft); }
.wishlist-item-rec.wait { color: var(--sand); background: var(--sand-soft); }
.wishlist-item-rec.switch { color: var(--ocean); background: var(--ocean-soft); }
.wishlist-remove { width: 40px; height: 40px; border-radius: 50%; color: var(--ink-muted); }

/* Existing account, garden, and utility surfaces inherit the flagship system. */
.settings-view,
.garden-view { width: min(960px, calc(100vw - 48px)); max-width: none; margin: 0 auto; padding: 48px 0 100px; }
.settings-section { margin-bottom: 34px; }
.settings-section-title { padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: .64rem; font-weight: 700; letter-spacing: .11em; }
.settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.settings-row { min-height: 86px; padding: 18px 22px; border-bottom-color: var(--line); }
.settings-row-label { color: var(--ink); font-size: .82rem; font-weight: 700; }
.settings-row-sub { color: var(--ink-muted); font-size: .67rem; }
.settings-input,
.settings-select { min-height: 42px; border-color: var(--line); border-radius: var(--radius-sm); background: var(--page); color: var(--ink); }
.settings-input:focus,
.settings-select:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px var(--focus); }

.garden-view { text-align: center; }
.garden-header { margin: 28px 0 18px; }
.garden-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -.055em; }
.garden-subtitle { color: var(--ink-muted); }
.plant-stage { border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 64%, var(--sage-soft), transparent 52%); }
.xp-section,
.garden-stats,
.daily-claim,
.garden-premium-banner { border-color: var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }

/* Dialogs */
.modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(31, 35, 31, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-overlay.active { display: flex; }
.modal { position: relative; width: min(500px, 100%); max-height: min(760px, calc(100svh - 40px)); padding: 34px; overflow: auto; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 30px 90px rgba(31,35,31,.25); }
.modal .eyebrow { margin-bottom: 10px; }
.modal h2 { margin: 0 46px 10px 0; font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.modal p { margin-bottom: 22px; color: var(--ink-soft); font-size: .8rem; line-height: 1.7; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--page); color: var(--ink-soft); cursor: pointer; font-size: 1.2rem; }
.modal textarea { width: 100%; min-height: 130px; margin-bottom: 14px; padding: 14px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; background: var(--page); color: var(--ink); }
.modal textarea:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus); }
.modal .btn-primary { width: 100%; }
.modal-success { margin: 0 !important; padding: 22px; border-radius: var(--radius-md); background: var(--sage-soft); color: var(--sage) !important; text-align: center; }
.premium-dialog { width: min(590px, 100%); }
.coming-soon-wrap { padding: 24px 8px 8px; text-align: left; }
.coming-soon-wrap .cs-sub { max-width: 470px; }
.premium-benefits { margin: 28px 0; display: grid; gap: 9px; }
.premium-benefits span { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .74rem; }
.premium-benefits span::before { margin-right: 9px; color: var(--sage); content: "✓"; }
.coming-soon-wrap .btn-secondary { width: 100%; }
.fab-group { display: none; }

/* First-use welcome */
.welcome-screen {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 8%, rgba(109,154,143,.22), transparent 30rem),
    var(--page);
}

.welcome-screen::before,
.welcome-screen::after { display: none; }
.welcome-screen.hiding { animation: welcome-out 520ms cubic-bezier(.4,0,.2,1) forwards; }
@keyframes welcome-out { to { opacity: 0; transform: scale(.985); } }

.welcome-shell {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100svh - 48px));
  padding: clamp(34px, 6vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-xl);
  background: rgba(255,253,248,.74);
  box-shadow: 0 40px 120px rgba(74,63,42,.14);
  backdrop-filter: blur(20px);
}

.welcome-shell::after { display: none; }
.welcome-copy,
.welcome-preview { opacity: 1; transform: none; animation: welcome-rise 700ms cubic-bezier(.2,.8,.2,1) both; }
.welcome-preview { animation-delay: 100ms; }
@keyframes welcome-rise { from { opacity: 0; transform: translateY(18px); } }
.welcome-logo-word { margin-bottom: 60px; color: var(--ink); font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.05em; }
.welcome-eyebrow { margin-bottom: 15px; color: var(--ocean); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.welcome-eyebrow::before { display: none; }
.welcome-copy h1 { margin: 0 0 24px; font-size: clamp(4rem, 7vw, 7.3rem); line-height: .83; }
.welcome-tagline { max-width: 590px; color: var(--ink-soft); font-size: .94rem; line-height: 1.7; }
.welcome-actions { margin-top: 32px; align-items: center; }
.welcome-cta { min-width: 170px; padding-inline: 22px; }
.welcome-note { color: var(--ink-muted); font-size: .65rem; }
.welcome-steps { margin-top: 46px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.welcome-step { min-height: 68px; padding: 13px; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: var(--surface); color: var(--ink-soft); font-size: .63rem; }
.welcome-step b { color: var(--ocean); font-size: .58rem; }
.welcome-preview { display: block; }
.welcome-preview-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), #e7e3d7); box-shadow: var(--shadow-soft); transform: rotate(2deg); }
.welcome-preview-card::before { display: none; }
.welcome-mini-bar { padding: 0 2px 14px; color: var(--ink-muted); font-size: .6rem; }
.welcome-mini-pulse { background: var(--sage); }
.welcome-link-field { min-height: 52px; padding: 0 13px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.55); color: var(--ink); font-size: .68rem; }
.welcome-link-field span { color: var(--ink-muted); }
.welcome-verdict { margin-top: 11px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, var(--sand-soft), var(--surface)); }
.welcome-verdict::after { display: none; }
.welcome-verdict-label { color: var(--ink-muted); font-size: .6rem; }
.welcome-verdict-main { margin: 10px 0; color: var(--sand); font-family: var(--font-display); font-size: 3.25rem; line-height: .9; letter-spacing: -.055em; }
.welcome-verdict-sub { color: var(--ink-soft); font-size: .7rem; line-height: 1.6; }
.welcome-chart { margin-top: 22px; }
.welcome-price-tag { width: max-content; margin-top: 15px; padding: 7px 9px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: .58rem; }

/* Legacy tours are intentionally retired in favor of the single clear welcome. */
.tt-backdrop,
.tt-hole,
.tt-card { display: none !important; }

#malibuToast {
  bottom: 26px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--ink) !important;
  color: var(--page) !important;
  box-shadow: 0 18px 50px rgba(31,35,31,.22) !important;
  font-size: .74rem !important;
  white-space: normal !important;
  text-align: center !important;
}

/* Shared reset-password surface */
.reset-page {
  background:
    radial-gradient(circle at 70% -10%, rgba(102, 147, 136, .19), transparent 31rem),
    linear-gradient(180deg, #faf7f0, var(--page));
  color: var(--ink);
  font-family: var(--font-sans);
}

.reset-page .auth-screen { min-height: 100svh; padding: clamp(28px, 7vw, 76px) 20px; }
.reset-page .auth-shell { width: min(100%, 520px); max-width: 520px; gap: 24px; }
.reset-page .auth-intro { text-align: center; }
.reset-page .auth-intro .eyebrow { margin-bottom: 10px; }
.reset-page .auth-intro h1 { color: var(--ink); font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 6.2rem); font-weight: 400; letter-spacing: -.06em; line-height: .87; }
.reset-page .auth-intro p:last-child { max-width: 430px; margin-inline: auto; color: var(--ink-soft); font-size: .82rem; }
.reset-page .auth-panel { padding: clamp(24px, 5vw, 38px); gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.reset-page label { color: var(--ink-soft); font-size: .64rem; letter-spacing: .05em; text-transform: none; }
.reset-page input { min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--page); color: var(--ink); }
.reset-page input:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus); }
.reset-page button,
.reset-page .button-link { min-height: 50px; border-radius: var(--radius-sm); background: var(--ink); color: var(--page); font-size: .72rem; text-transform: none; }
.reset-page .text-button { background: transparent; color: var(--ink-muted); }
.reset-page .validation-list span { border-color: var(--line); border-radius: 999px; color: var(--ink-muted); font-size: .58rem; }
.reset-page .validation-list .met { background: var(--sage-soft); color: var(--sage); }
.reset-page .notice,
.reset-page .error { border-radius: var(--radius-sm); }
.reset-page .notice { background: var(--sage-soft); }
.reset-page .error { background: var(--danger-soft); color: var(--danger); }

/* Legal pages keep the policy text intact while sharing Malibu's product shell. */
.legal-page {
  background:
    radial-gradient(circle at 82% -8%, rgba(102, 147, 136, .16), transparent 30rem),
    var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
}

.legal-page main { max-width: 820px; padding: clamp(44px, 8vw, 96px) 24px 120px; }
.legal-page main > a:first-child { color: var(--ink); font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; letter-spacing: -.05em; text-decoration: none; }
.legal-page .eyebrow { margin-top: 72px; }
.legal-page h1 { margin: 0 0 34px; color: var(--ink); font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7rem); font-weight: 400; letter-spacing: -.065em; line-height: .86; }
.legal-page h2 { margin: 52px 0 13px; color: var(--ink); font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -.035em; }
.legal-page p,
.legal-page li { color: var(--ink-soft); font-family: var(--font-sans); font-size: .88rem; line-height: 1.8; }
.legal-page li + li { margin-top: 8px; }
.legal-page a { color: var(--ocean); }
.legal-page .card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }

@media (max-width: 1180px) {
  :root { --shell: min(1080px, calc(100% - 44px)); }

  .site-nav { grid-template-columns: 1fr auto; }
  .nav-primary { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr); gap: 48px; }
  .hero h1 { font-size: clamp(4.4rem, 8vw, 6.8rem); }
  .hero-report { min-height: 530px; }
  .report-product-row { grid-template-columns: 126px 1fr; }
  .report-product-visual { width: 126px; height: 126px; }
  .headphone-arc { left: 35px; top: 22px; width: 57px; height: 63px; border-width: 7px; }
  .headphone-cup { top: 72px; width: 27px; height: 38px; }
  .headphone-cup.left { left: 24px; }
  .headphone-cup.right { right: 24px; }
  .process-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .process-connector { display: none; }
  .process-step { border: 1px solid var(--line); border-radius: var(--radius-md) !important; background: rgba(255,255,255,.34); }
  .result-overview { grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 36px); }

  .site-nav { min-height: 68px; }
  .nav-progress,
  .nav-premium,
  .nav-user-email { display: none !important; }
  .hero { min-height: auto; padding-top: 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(5rem, 14vw, 8rem); }
  .hero-report { width: min(680px, 100%); min-height: 540px; margin-left: auto; }
  .personal-signal { margin-top: 80px; grid-template-columns: 1fr; gap: 22px; }
  .stats-bar { border-top: 1px solid var(--line); padding-top: 18px; }
  .stat-item:first-child { border-left: 0; padding-left: 0; }
  .return-heading { align-items: flex-start; flex-direction: column; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .process-rail { grid-template-columns: 1fr; }
  .process-step { display: grid; grid-template-columns: 130px 1fr; column-gap: 28px; align-items: start; }
  .process-index { grid-column: 1 / -1; margin-bottom: 18px; }
  .process-demo,
  .filter-stack,
  .decision-stamp { grid-row: span 2; }
  .process-step h3 { margin-top: 0; }
  .story-buy,
  .story-wait,
  .story-switch,
  .story-limited { grid-column: span 12; }
  .method-layout,
  .mobile-layout { grid-template-columns: 1fr; }
  .evidence-ledger { width: min(700px, 100%); margin-left: auto; }
  .mobile-copy { max-width: 720px; }
  .phone-stage { min-height: 690px; }
  .history-list { grid-template-columns: 1fr; }

  .result-overview { grid-template-columns: 1fr; }
  .product-header { flex-direction: row; align-items: center; }
  .product-image { width: 180px; flex: 0 0 180px; }
  .decision-hero { min-height: 430px; }
  .results-detail-grid { grid-template-columns: 1fr; gap: 42px; }

  .auth-view { grid-template-columns: 1fr; }
  .auth-story { min-height: 520px; }
  .auth-card { min-height: 600px; }

  .welcome-shell { grid-template-columns: 1fr; }
  .welcome-copy { max-width: 720px; }
  .welcome-preview { display: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  html { scroll-padding-top: 76px; }
  body { font-size: 15px; }

  .site-header { background: rgba(250,247,240,.93); }
  .site-nav { min-height: 64px; padding: 8px 0; gap: 12px; }
  .logo { font-size: 1.55rem; }
  .nav-actions { gap: 2px; }
  .nav-link { min-height: 40px; padding-inline: 8px; font-size: .68rem; }
  #navWishlist { display: none !important; }
  .nav-account { width: 40px; min-height: 40px; padding: 0; overflow: hidden; font-size: 0; }
  .nav-account::before { font-size: .7rem; content: "Me"; }
  .nav-check { min-height: 40px; padding-inline: 12px; font-size: .68rem; }

  .hero { padding: 58px 0 24px; }
  .hero-atmosphere::before { top: -16rem; right: -20rem; }
  .hero h1 { font-size: clamp(4.25rem, 20vw, 6.25rem); }
  .hero-sub { margin: 24px 0 28px; font-size: .94rem; }
  .input-group { min-height: 0; padding: 8px; grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 16px; }
  .input-link-mark { width: 36px; height: 36px; margin-left: 0; }
  .input-group input { height: 48px; padding-inline: 10px; font-size: .88rem; }
  .input-group button { min-height: 42px; margin: 0; padding-inline: 11px; }
  .input-group .paste-button { margin: 0; }
  .input-group .analyze-button { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
  .hero-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-trust-row { margin-top: 20px; display: grid; gap: 7px; }

  .hero-report { min-height: 490px; padding: 22px; border-radius: 28px; }
  .report-window-bar { align-items: flex-start; }
  .report-product-row { margin: 28px 0; padding-bottom: 24px; grid-template-columns: 88px 1fr; gap: 16px; }
  .report-product-visual { width: 88px; height: 88px; border-radius: 24px; }
  .headphone-arc { left: 25px; top: 15px; width: 40px; height: 45px; border-width: 5px; }
  .headphone-cup { top: 52px; width: 19px; height: 27px; border-radius: 8px; box-shadow: inset 0 0 0 3px #56625d; }
  .headphone-cup.left { left: 17px; }
  .headphone-cup.right { right: 17px; }
  .report-product-row h2 { font-size: 1.65rem; }
  .report-verdict-row { align-items: flex-end; }
  .report-verdict-row strong { font-size: 2.65rem; }
  .confidence-orbit { width: 70px; height: 70px; }
  .report-evidence-row span:nth-child(3) { display: none; }

  .personal-signal { margin-top: 64px; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .stat-item { padding-inline: 18px; }
  .stat-item:nth-child(3) { padding-left: 0; border-left: 0; }

  .return-section,
  .process-section,
  .method-section,
  .history-section,
  .final-cta { padding-block: 76px; }
  .return-card { padding: 28px 22px; border-radius: 22px; }
  .return-title { font-size: 2.65rem; }
  .return-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .return-actions button { width: 100%; }
  .return-metrics { grid-template-columns: 1fr; gap: 16px; }
  .return-metric { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .return-metric:first-child { border-top: 0; }

  .section-heading h2,
  .method-copy h2,
  .mobile-copy h2,
  .final-cta h2 { font-size: clamp(3.25rem, 15vw, 4.8rem); }
  .process-step { padding: 24px; display: block; }
  .process-demo,
  .filter-stack,
  .decision-stamp { min-height: 82px; }
  .process-step h3 { margin-top: 24px; }
  .decision-story { min-height: 280px; padding: 24px; border-radius: 22px; }
  .story-status { align-items: flex-start; flex-direction: column; gap: 4px; }
  .method-layout,
  .mobile-layout { gap: 56px; }
  .ledger-row { min-height: 92px; padding: 18px; grid-template-columns: 30px 1fr; }
  .ledger-row b { grid-column: 2; width: max-content; }
  .phone-stage { min-height: 620px; transform: scale(.9); margin: -35px 0; }

  .final-cta-inner { padding: 52px 20px; border-radius: 24px; }
  .final-input-group { padding: 7px; grid-template-columns: 1fr; }
  .final-input-group input { min-height: 50px; }
  .home-footer { padding-bottom: 38px; grid-template-columns: 1fr; text-align: left; }
  .home-footer > .footer-copy { text-align: left; }
  .footer-links { flex-wrap: wrap; }

  .loading-view { min-height: calc(100svh - 64px); padding: 45px 0; }
  .loading-stage { height: 140px; margin-bottom: 28px; transform: scale(.86); }
  .loading-view h1 { font-size: 3.5rem; }
  .loading-steps { grid-template-columns: 1fr; }

  .results { width: calc(100% - 28px); padding: 26px 0 88px; }
  .results-topbar > span { display: none; }
  .result-overview { margin-bottom: 60px; }
  .product-header { padding: 16px; flex-direction: row; gap: 15px; border-radius: 18px; }
  .product-image { width: 96px; flex-basis: 96px; border-radius: 14px; }
  .product-image img { padding: 8px; }
  .product-store { margin-bottom: 4px; font-size: .57rem; }
  .product-name { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.05; }
  .product-price { font-size: 1.2rem; }
  .decision-hero { min-height: 390px; padding: 28px 24px; border-radius: 22px; }
  .decision-kicker { top: 24px; right: 24px; left: 24px; }
  .decision-kicker span { max-width: 160px; }
  .decision-icon { width: 46px; height: 46px; }
  .rec-label { font-size: clamp(3.3rem, 17vw, 5rem); }
  .decision-meta-row { gap: 6px; }
  .decision-chip { font-size: .57rem; }
  .result-section-heading h2 { font-size: 3rem; }
  .verification-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verification-stat { min-height: 96px; padding: 18px; }
  .verification-grid,
  .decision-intel-grid { grid-template-columns: 1fr; gap: 10px; }
  .verification-block,
  .decision-intel-card { min-height: 0; padding: 20px; }
  .verification-strength { padding: 20px; }
  .price-card { padding: 20px; }
  .alt-item { align-items: flex-start; gap: 12px; }
  .alt-item-info { max-width: calc(100% - 94px); }
  .actions { position: static; width: 100%; margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .actions .btn-primary { grid-column: 1 / -1; }
  .actions button { width: 100%; padding-inline: 10px; }

  .auth-view { width: calc(100% - 28px); min-height: calc(100svh - 64px); padding: 20px 0 54px; gap: 10px; }
  .auth-story { min-height: 390px; padding: 28px 22px; border-radius: 22px; }
  .auth-story h1 { font-size: 4.1rem; }
  .auth-proof { display: none; }
  .auth-card { min-height: 560px; padding: 30px 22px; border-radius: 22px; }
  .auth-title { font-size: 3rem; }
  .auth-name-row { grid-template-columns: 1fr; gap: 0; }

  .saved-heading { align-items: flex-start; flex-direction: column; }
  .saved-heading h1 { font-size: 4.2rem; }
  .wishlist-item { align-items: flex-start; flex-direction: column; gap: 16px; }
  .wishlist-actions { width: 100%; justify-content: space-between; }
  .settings-view,
  .garden-view { width: calc(100% - 28px); padding-top: 28px; }
  .settings-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .settings-row-right { width: 100%; flex-wrap: wrap; }
  .settings-input,
  .settings-select { flex: 1; min-width: 180px; }

  .modal { padding: 30px 22px 22px; border-radius: 22px; }
  .modal h2 { font-size: 2.35rem; }
  .welcome-screen { padding: 0; }
  .welcome-shell { min-height: 100svh; padding: 32px 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .welcome-logo-word { margin-bottom: 56px; }
  .welcome-copy h1 { font-size: clamp(4.2rem, 20vw, 6.5rem); }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-cta { width: 100%; }
  .welcome-steps { grid-template-columns: 1fr; }
  .welcome-step { min-height: 54px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
}

@media (max-width: 390px) {
  .nav-link#navSignin { display: none !important; }
  .hero h1 { font-size: 4.05rem; }
  .report-live { display: none; }
  .phone-stage { transform: scale(.82); margin: -60px 0; }
  .actions { grid-template-columns: 1fr; }
  .actions .btn-primary { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motion-ready #homeView [data-motion] { opacity: 1; transform: none; }
}
