/* ContentVerity — "Meadow" design system.
   Sunlit, garden-inspired: warm cream canvas, deep-ink structure, one
   highlighter-yellow action color, organic blobs behind the product.
   Pill geometry everywhere. No shadows — separation comes from surface tone. */

:root {
  /* ---- brand tokens ---- */
  --ink: #130e30;
  --ink-soft: rgba(19, 14, 48, .68);
  --slate: #5f5c6e;
  --canvas: #f9fbf2;
  --meadow: #eff2e5;
  --meadow-deep: #e6ead9;
  --yellow: #ffe228;
  --yellow-strong: #f4d500;
  --moss: #59e25d;
  --fuchsia: #e261e5;
  --onyx: #000000;

  /* ---- semantic surfaces (used throughout templates) ---- */
  --bg: var(--canvas);
  --surface: var(--meadow);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(19, 14, 48, .14);
  --border-strong: rgba(19, 14, 48, .34);
  --fg: var(--ink);
  --fg-muted: var(--slate);
  --fg-faint: rgba(19, 14, 48, .5);

  --accent: var(--yellow);
  --accent-ink: var(--ink);
  --accent-hover: var(--yellow-strong);
  --accent-soft: rgba(255, 226, 40, .32);

  --good: #2f7a45;
  --good-soft: #e3f2e6;
  --warn: #a9761b;
  --warn-soft: #fbf1dd;
  --bad: #b23b2f;
  --bad-soft: #fbebe8;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 1440px;
  --shadow: none;
  --shadow-lift: 0 1px 1px rgba(19, 14, 48, .05);

  --mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: 'Hedvig Letters Serif', ui-serif, Georgia, Cambria, "Times New Roman", serif;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, 1.4, .4, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 16px/1.5 var(--sans);
  letter-spacing: -.01em;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--yellow);
  color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
  color: var(--slate);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lede { font-size: 18px; line-height: 1.55; color: var(--slate); max-width: 60ch; }
.muted { color: var(--slate); }
.faint { color: var(--fg-faint); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.topbar { padding: 16px 16px 0; }
.topbar-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 6px 8px 6px 20px;
  background: var(--surface); border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-size: 15px; flex: none;
}
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; margin: 0 auto; }
.nav a { color: var(--ink); font-weight: 500; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.active { border-bottom-color: var(--yellow); }

.nav-drop { position: relative; }
.nav-drop summary {
  color: var(--ink); font: 500 14px var(--sans); cursor: pointer; list-style: none;
  padding: 4px 0; display: flex; align-items: center; gap: 5px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease-out);
}
.nav-drop[open] summary::after { transform: rotate(225deg) translateY(2px); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 180px; z-index: 50;
  animation: rise-in var(--dur) var(--ease-out) both;
}
.nav-drop-panel a { padding: 8px 10px; border-radius: 8px; border-bottom: 0; white-space: nowrap; }
.nav-drop-panel a:hover { background: var(--meadow); }
@media (max-width: 780px) {
  .nav-drop-panel { position: static; transform: none; margin-top: 4px; animation: none; }
}
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: transparent; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
@media (max-width: 780px) {
  .nav { display: none; }
  .topbar-right .btn-ghost.btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .topbar-inner { padding-right: 8px; }
  .nav.open {
    display: flex; flex-direction: column; gap: 2px; position: absolute;
    top: calc(100% + 8px); left: 16px; right: 16px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px;
    z-index: 50;
  }
  .nav.open a { padding: 10px 12px; border-radius: var(--radius); border-bottom: 0; }
  .nav.open a.active, .nav.open a:hover { background: var(--meadow); }
}

.plan-badge {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--slate);
}
.plan-badge:not([data-plan="free"]) {
  background: var(--accent-soft); border-color: transparent; color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font: 500 15px/1 var(--sans); letter-spacing: -.01em; cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out), opacity var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  white-space: nowrap; text-decoration: none;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.97); transition-duration: 60ms; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { background: var(--yellow); color: var(--ink); font-weight: 600; }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #241d4d; color: #fff; }
.btn-ghost { background: var(--canvas); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--slate); }
input, select, textarea {
  width: 100%; padding: 12px 18px; font: 400 15px/1.3 var(--sans); letter-spacing: -.01em;
  border: 1px solid var(--onyx); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink);
  transition: outline-color var(--dur) var(--ease-out), outline-offset var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  outline: 2px solid transparent; outline-offset: 0;
}
textarea { border-radius: var(--radius); }
input::placeholder, textarea::placeholder { color: var(--slate); }
input:focus, select:focus, textarea:focus {
  outline-color: var(--accent-soft); outline-offset: 3px; border-color: var(--ink);
}
.field { margin-bottom: 16px; }
.form-row { display: flex; gap: 8px; align-items: stretch; }
.form-row input { flex: 1; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }
.form-error { color: var(--bad); font-size: 13.5px; margin-top: 10px; min-height: 20px; }

/* ---------- cards + layout ---------- */
.card {
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius-lg); padding: 28px; box-shadow: none;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 {
  font-family: var(--sans); font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--slate); font-weight: 600;
}
.card-head .spacer { margin-left: auto; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-band { background: var(--surface); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- score tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 16px;
  animation: tile-in var(--dur-slow) var(--ease-out) both;
}
.tiles .tile:nth-child(1) { animation-delay: 0ms; }
.tiles .tile:nth-child(2) { animation-delay: 40ms; }
.tiles .tile:nth-child(3) { animation-delay: 80ms; }
.tiles .tile:nth-child(4) { animation-delay: 120ms; }
.tiles .tile:nth-child(5) { animation-delay: 160ms; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tile-value { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.tile-label { font-size: 12.5px; color: var(--slate); margin-top: 4px; }
.tile-delta { font-size: 12px; font-weight: 600; margin-top: 6px; }
.good { color: var(--good); } .warn { color: var(--warn); }
.bad { color: var(--bad); } .muted-val { color: var(--fg-faint); }

/* ---------- checks ---------- */
.check-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: row-in var(--dur-slow) var(--ease-out) both;
}
.check-row:last-child { border-bottom: 0; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.check-body { flex: 1; min-width: 0; }
.check-name { font-weight: 600; font-size: 14.5px; }
.check-detail { font-size: 13px; color: var(--slate); word-break: break-word; }
.check-fix { font-size: 13px; color: var(--ink); margin-top: 8px;
  padding: 10px 14px; background: var(--accent-soft); border-radius: var(--radius); }
.pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap;
  animation: pill-pop var(--dur) var(--ease-spring) both;
}
@keyframes pill-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.pill-pass { background: var(--good-soft); color: var(--good); }
.pill-fail { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-neutral { background: var(--surface-2); color: var(--slate); border: 1px solid var(--border); }

/* ---------- fixes ---------- */
.fix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); }
.fix + .fix { margin-top: 12px; }
.fix-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--meadow); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.fix-title { font-weight: 650; font-size: 15px; }
.fix-where { font-size: 12.5px; color: var(--slate); }
.fix-body { padding: 0; position: relative; }
.fix pre {
  margin: 0; padding: 16px; background: var(--surface-2); overflow-x: auto;
  font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
}
.copy-btn { position: absolute; top: 10px; right: 10px; }

/* ---------- progress ---------- */
.progress-wrap { display: none; }
.progress-wrap.on { display: block; }
.progress-bar {
  height: 8px; border-radius: var(--radius-pill); background: var(--surface-2);
  border: 1px solid var(--border); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%; background: var(--yellow);
  transition: width .5s var(--ease-out);
  position: relative; overflow: hidden;
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
.progress-stage { font-size: 13.5px; color: var(--slate); margin-top: 9px;
  display: flex; align-items: center; gap: 8px; }
.spinner {
  width: 13px; height: 13px; border: 2px solid var(--border-strong);
  border-top-color: var(--ink); border-radius: 50%;
  animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .progress-fill { transition: none; }
  html { scroll-behavior: auto; }
  .blob, .hero-card, .hero-card::after, .hero-copy > *, .hero h1 em,
  .radar-arc, .radar-copy p, .mini-check, .mini-check .mc-dot,
  .hero-card-head .status, .progress-fill::after, .tile, .check-row, .pill,
  .spark-bar, .toast, .empty-mark, [data-reveal] { animation: none !important; }
  .hero-card::after { display: none; }
  .hero h1 em { background-size: 100% 100%; }
  .mini-check, .radar-copy p, .hero-card-head .status, .tile, .check-row,
  .pill, .spark-bar, [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fg-faint); font-weight: 600; padding: 0 12px 10px 0; }
td { padding: 13px 12px 13px 0; border-top: 1px solid var(--border); vertical-align: middle; }
tr.clickable { cursor: pointer; }
tr.clickable td { transition: background var(--dur) var(--ease-out); }
tr.clickable:hover td { background: var(--surface-2); }

/* ---------- sparkline ---------- */
.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.spark-bar {
  flex: 1; min-width: 4px; background: var(--ink); border-radius: 2px 2px 0 0;
  opacity: .22; transform-origin: bottom;
  animation: bar-grow var(--dur-slow) var(--ease-out) both;
}
.spark-bar:last-child { opacity: 1; background: var(--yellow); }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--ink); border-radius: var(--radius);
  padding: 12px 15px; box-shadow: var(--shadow-lift); font-size: 14px;
  animation: slide-in var(--dur-slow) var(--ease-spring) both;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.toast.leaving { opacity: 0; transform: translateX(12px) scale(.96); }
.toast.ok { border-left-color: var(--good); }
.toast.err { border-left-color: var(--bad); }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 44px 24px; color: var(--slate); }
.empty-mark { font-size: 30px; color: var(--fg-faint); margin-bottom: 10px;
  display: inline-block; animation: breathe 3s var(--ease-out) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .75; } }

/* ================================================================
   MARKETING — hero, blobs, product mockup, feature grid
   ================================================================ */

.hero { padding: 56px 0 20px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin: 16px 0 18px; }
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--ink);
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  background-size: 0% 100%; background-repeat: no-repeat;
  animation: fill-highlight .5s ease .9s both;
}
.hero .lede { font-size: 19px; margin-bottom: 28px; }

/* ---- hero entrance: headline, copy and form rise in on load ---- */
.hero-copy > .eyebrow { animation: rise-in .6s cubic-bezier(.2,.8,.2,1) .05s both; }
.hero-copy > h1 { animation: rise-in .6s cubic-bezier(.2,.8,.2,1) .15s both; }
.hero-copy > .lede { animation: rise-in .6s cubic-bezier(.2,.8,.2,1) .3s both; }
.hero-copy > .hero-form { animation: rise-in .6s cubic-bezier(.2,.8,.2,1) .42s both; }
.hero-copy > .hero-proof { animation: rise-in .6s cubic-bezier(.2,.8,.2,1) .54s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fill-highlight { to { background-size: 100% 100%; } }

.hero-form { max-width: 480px; }
.hero-capsule {
  display: flex; gap: 0; padding: 5px; background: var(--surface-2);
  border: 1px solid var(--onyx); border-radius: var(--radius-pill);
}
.hero-capsule input {
  border: 0; background: transparent; flex: 1; padding: 9px 16px;
}
.hero-capsule input:focus { outline: none; }
.hero-capsule .btn { flex: none; }
.hero-form .field-password { margin-top: 10px; }
.hero-form .field-password input {
  border: 1px solid var(--border-strong); background: var(--surface-2);
}

.hero-proof { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink);
  background: var(--surface); border-radius: var(--radius-pill); padding: 7px 14px 7px 10px;
}
.proof-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none; }
.proof-chip:nth-child(2) .dot { background: var(--yellow); }
.proof-chip:nth-child(3) .dot { background: var(--fuchsia); }

/* ---- hero visual: organic blobs + floating product card ---- */
.hero-visual { position: relative; min-height: 420px; }
.blob-field { position: absolute; inset: -10% -6%; z-index: 0; }
.blob {
  position: absolute; filter: blur(1px); opacity: .9;
  border-radius: 63% 37% 41% 59% / 55% 44% 56% 45%;
  animation: blob-float 15s ease-in-out infinite;
  will-change: transform;
}
.blob-1 { width: 230px; height: 210px; top: 4%; left: 2%; background: var(--moss);
  animation-duration: 17s; }
.blob-2 { width: 200px; height: 190px; bottom: 6%; right: 4%; background: var(--fuchsia);
  border-radius: 41% 59% 63% 37% / 46% 56% 44% 54%; animation-duration: 21s; animation-delay: -5s; }
.blob-3 { width: 150px; height: 150px; top: 44%; right: 20%; background: var(--yellow);
  border-radius: 50% 50% 38% 62% / 62% 38% 62% 38%; opacity: .95;
  animation-duration: 12s; animation-delay: -8s; }
.blob-4 { width: 90px; height: 90px; top: 10%; right: 28%; background: var(--ink);
  border-radius: 44% 56% 60% 40% / 50% 50% 50% 50%; opacity: .12;
  animation-duration: 24s; animation-delay: -3s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(9px, -14px) scale(1.05) rotate(4deg); }
  66%      { transform: translate(-10px, 9px) scale(.96) rotate(-3deg); }
}

.hero-card {
  position: relative; z-index: 1; margin: 0 auto; max-width: 400px; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); padding: 22px;
  animation: card-rise .7s cubic-bezier(.2,.8,.2,1) .55s both;
}
@keyframes card-rise { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* a light "crawling the page" sweep that plays once as the card settles in */
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 45%, transparent 90%);
  transform: translateY(-120%);
  animation: scan-sweep 1.1s cubic-bezier(.3,.7,.3,1) 1.15s both;
}
@keyframes scan-sweep { to { transform: translateY(120%); } }

.hero-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-card-head .url { font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-card-head .status {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--good); background: var(--good-soft);
  padding: 3px 10px; border-radius: var(--radius-pill);
  opacity: 0; animation: status-pop .4s cubic-bezier(.3,1.4,.5,1) 2.3s both;
}
@keyframes status-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

.radar { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.radar svg { width: 96px; height: 96px; flex: none; }
.radar-track { fill: none; stroke: var(--meadow); stroke-width: 8; }
.radar-arc { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round;
  transform-origin: 50px 50px; transform: rotate(-90deg);
  stroke-dasharray: 226; stroke-dashoffset: 86;
  animation: radar-sweep 1.3s cubic-bezier(.16,.85,.24,1) 1.15s both; }
@keyframes radar-sweep { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 86; } }
.radar-num { font-family: var(--serif); font-size: 22px; font-weight: 700; fill: var(--ink); }
.radar-copy p { opacity: 0; animation: rise-in .5s ease .95s both; }
.radar-copy p:first-child { font-size: 13px; font-weight: 600; color: var(--ink); }
.radar-copy p:last-child { font-size: 12.5px; color: var(--slate); margin-top: 2px; animation-delay: 1.1s; }

.mini-checks { display: flex; flex-direction: column; gap: 0; }
.mini-check {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--border); font-size: 13px;
  opacity: 0; animation: check-in .45s ease both;
}
.mini-check:nth-child(1) { animation-delay: 1.65s; }
.mini-check:nth-child(2) { animation-delay: 1.85s; }
.mini-check:nth-child(3) { animation-delay: 2.05s; }
@keyframes check-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.mini-check .mc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mini-check.ok .mc-dot { background: var(--good); }
.mini-check.no .mc-dot { background: var(--bad); }
.mini-check.no .mc-dot { animation: dot-pulse 1.6s ease 2.5s 2; }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178,59,47,.35); } 50% { box-shadow: 0 0 0 5px rgba(178,59,47,0); } }
.mini-check span.label { flex: 1; color: var(--ink); }
.mini-check span.tag { font-size: 11px; color: var(--slate); }

/* ---- stat strip ---- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; padding: 36px; background: var(--surface); border-radius: var(--radius-lg);
}
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* ---- how-it-works ---- */
.feature-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 32px;
}
.feature-mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--slate); font-size: 15px; }

/* ---- report preview (homepage) ---- */
.report-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .report-preview { grid-template-columns: 1fr; } }
.report-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.issue-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; }
.issue-head { display: flex; gap: 8px; margin-bottom: 14px; }
.issue-card h3 { margin-bottom: 10px; font-size: 20px; }
.issue-example {
  margin-top: 16px; background: var(--surface-2); border-radius: var(--radius);
  padding: 14px 16px;
}
.issue-example .mono { color: var(--ink); white-space: pre-wrap; }

/* ---- check chips ---- */
.check-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13.5px; margin: 0 6px 8px 0; color: var(--ink);
}
.check-chip::before { content: "\2713"; color: var(--good); font-weight: 700; }

/* ---------- pricing ---------- */
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); }
.plan-card.featured { background: var(--ink); color: #fff; }
.plan-card.featured h3, .plan-card.featured .plan-price { color: #fff; }
.plan-card.featured .plan-price span { color: rgba(255,255,255,.65); }
.plan-card.featured p.muted { color: rgba(255,255,255,.72); }
.plan-card.featured .plan-features li { border-bottom-color: rgba(255,255,255,.14); }
.plan-flag {
  position: absolute; top: -12px; left: 28px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--radius-pill);
}
.plan-price { font-family: var(--serif); font-size: 42px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 4px; }
.plan-price span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--slate); letter-spacing: 0; }

/* ---- pricing cycle toggle ---- */
.cycle-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 36px; }
.cycle-label { font-size: 14.5px; font-weight: 500; color: var(--slate); display: inline-flex; align-items: center; gap: 8px; }
.save-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--ink);
  background: var(--accent-soft); padding: 3px 9px; border-radius: var(--radius-pill);
}
.switch { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease-out);
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform var(--dur) var(--ease-out);
}
.switch input:checked ~ .switch-track { background: var(--ink); }
.switch input:checked ~ .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .switch-track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.pricing-grid .price-annual { display: none; }
.pricing-grid.annual .price-monthly { display: none; }
.pricing-grid.annual .price-annual { display: inline; }
p.price-annual { display: none; }
.pricing-grid.annual p.price-annual { display: block; }

/* ---- comparison matrix ---- */
.matrix-table th, .matrix-table td { text-align: center; }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.matrix-table th { padding-bottom: 12px; }
.matrix-table td:first-child { color: var(--ink); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.plan-features li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px;
  border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before {
  content: "\2713"; position: absolute; left: 0; top: 9px; color: var(--good); font-weight: 700;
}
.plan-card.featured .plan-features li::before { color: var(--yellow); }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { color: var(--slate); margin-top: 10px; }

/* ---------- auth ---------- */
.auth-shell { display: grid; place-items: center; padding: 60px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--slate); margin-top: 18px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px;
  border-radius: var(--radius-pill); margin-bottom: 22px; }
.tabs button { flex: 1; padding: 10px; border: 0; border-radius: var(--radius-pill); background: transparent;
  font: 600 14px var(--sans); color: var(--slate); cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.tabs button.active { background: var(--ink); color: #fff; }

/* fields swapping in/out under the tabs (brand name on signup) */
#brandField, #signupNote {
  max-height: 100px; opacity: 1; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out),
    margin var(--dur-slow) var(--ease-out);
}
#brandField.field-collapsed, #signupNote.field-collapsed {
  max-height: 0; opacity: 0; margin: 0;
}

/* ---------- footer ---------- */
.footer { padding: 40px 0; margin-top: 60px; font-size: 13.5px; color: var(--slate); }
.footer-inner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-nav { margin-left: auto; display: flex; gap: 18px; }
.footer-nav a { color: var(--slate); }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.grid-3 [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.grid-3 [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.grid-3 [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.plan-card[data-reveal]:nth-child(1) { transition-delay: 0ms; }
.plan-card[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.plan-card[data-reveal]:nth-child(3) { transition-delay: 180ms; }

/* ---------- utilities ---------- */
.hidden { display: none !important; }
.banner {
  padding: 14px 18px; border-radius: var(--radius); font-size: 14.5px; margin-bottom: 20px;
  border: 1px solid var(--border);
}
.banner-ok { background: var(--good-soft); border-color: transparent; color: var(--good); }
.banner-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.banner-accent { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
