/* ==========================================================================
   PolicySolver — site.css
   Hand-rolled design system. No framework, no build step.
   Light-first. Dark is an accent (hero band + one proof band).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ps-bright: #22c55e;
  --ps-green-light: #6bc292;
  --ps-green-med: #4a9d6d;
  --ps-green: #2d7a4f;
  --ps-green-dark: #1a5f3c;

  /* Ink */
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;

  /* Paper */
  --paper: #ffffff;
  --paper-2: #f9fafb;
  --paper-3: #f3f4f6;
  --line: #e5e7eb;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;

  /* Elevation */
  --shadow-frame: 0 30px 60px -20px rgb(0 0 0 / 0.25);
  --shadow-frame-dark: 0 30px 70px -20px rgb(0 0 0 / 0.6);
  --shadow-soft: 0 1px 2px rgb(17 24 39 / 0.04), 0 8px 24px -12px rgb(17 24 39 / 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ps-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ps-green); }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

ul { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ps-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-wide { max-width: 1360px; }
.shell-narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.band-paper-2 { background: var(--paper-2); }
.band-paper-3 { background: var(--paper-3); }

.band-dark {
  background: linear-gradient(135deg, #000, #111827 55%, var(--ps-green-dark));
  color: rgb(255 255 255 / 0.78);
}
.band-dark h1,
.band-dark h2,
.band-dark h3 { color: #fff; }

.band-tint {
  background: linear-gradient(180deg, #f4fbf7 0%, #eef8f2 100%);
  border-block: 1px solid #dcefe4;
}

/* --------------------------------------------------------------------------
   4. Type scale
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ps-green);
  margin: 0 0 1.1rem;
}
.band-dark .kicker { color: var(--ps-green-light); }

.h-display {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  letter-spacing: -0.035em;
}

.h-statement {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.h-section {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.band-dark .lede { color: rgb(255 255 255 / 0.75); }

.muted { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   5. Logo
   -------------------------------------------------------------------------- */
.logo {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}
.logo .solver { color: var(--ps-bright); }
.band-dark .logo,
.site-footer .logo { color: #fff; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-mark img { width: 30px; height: 30px; border-radius: 8px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ps-green-dark);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgb(26 95 60 / 0.8);
}
.btn-primary:hover { background: var(--ps-green); color: #fff; }

.btn-bright {
  background: var(--ps-bright);
  color: #06240f;
  box-shadow: 0 10px 26px -12px rgb(34 197 94 / 0.85);
}
.btn-bright:hover { background: #34d572; color: #06240f; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-ghost-light {
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  border-color: rgb(255 255 255 / 0.28);
}
.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.875rem; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--ps-green-dark);
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }
.band-dark .link-arrow { color: var(--ps-green-light); }

/* --------------------------------------------------------------------------
   7. Site nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.site-nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -8px rgb(17 24 39 / 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--paper-3); }
.nav-links .btn { margin-left: 0.5rem; }
.nav-links .btn:hover { background: var(--ps-green); }
/* .nav-links a sets the ink link colour; the CTA pill must keep its own white label. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Hero (dark band)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(9rem, 16vw, 15rem); /* room for the overlapping media */
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgb(34 197 94 / 0.18), transparent 68%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--ps-bright); }

.hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); max-width: 46ch; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}
.hero-meta li { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ps-bright); flex: none; }

/* Media that overlaps the light section below */
.hero-media {
  position: relative;
  z-index: 2;
  margin-top: clamp(-8rem, -12vw, -6rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   9. Browser frame (media card)
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.band-dark .frame,
.frame-dark {
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: var(--shadow-frame-dark);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.band-dark .frame-bar,
.frame-dark .frame-bar {
  background: #16181d;
  border-bottom-color: rgb(255 255 255 / 0.08);
}

.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8dbe0;
}
.frame-dots i:nth-child(1) { background: #ff5f57; }
.frame-dots i:nth-child(2) { background: #febc2e; }
.frame-dots i:nth-child(3) { background: #28c840; }

.frame-url {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 460px;
  padding: 0.3rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.band-dark .frame-url,
.frame-dark .frame-url {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.55);
}

.frame-media {
  position: relative;
  background: var(--paper-3);
  /* Clips are 16:9 (1280x720); the container must match or object-fit:cover
     crops the left/right edges of the captured UI. */
  aspect-ratio: 16 / 9;
}
.band-dark .frame-media,
.frame-dark .frame-media { background: #0d0f13; }

.frame-media video,
.frame-media img {
  width: 100%;
  height: 100%;
  /* contain guarantees the full captured frame is always visible — never side-crops.
     Clips are exactly 16:9 like the container, so no letterboxing occurs either;
     if a future clip deviates, the .frame-media background letterboxes it. */
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Manual play affordance (reduced motion / failed autoplay) */
.frame-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(17 24 39 / 0.22);
  border: 0;
  cursor: pointer;
  padding: 0;
  color: #fff;
}
.frame-play::after {
  content: "";
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a5f3c'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 30px no-repeat;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5);
  transition: transform 0.22s var(--ease);
}
.frame-play:hover::after { transform: scale(1.06); }
.frame.needs-play .frame-play { display: flex; }

/* Decorative badge for a frame that is itself a link — the card click already
   carries the user onward, so the badge never swallows the event. */
.frame-play.is-static { pointer-events: none; }

/* --------------------------------------------------------------------------
   10. Stat strip
   -------------------------------------------------------------------------- */
.stat-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat-value {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.stat-value .unit { color: var(--ps-green); }
.stat-label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   11. Feature sections
   -------------------------------------------------------------------------- */
.feature { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.feature + .feature { border-top: 1px solid var(--line); }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.feature-copy { min-width: 0; }
.feature-media { min-width: 0; }

/* Alternate: media on the left */
.feature-reverse .feature-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-media { order: 1; }

.feature h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.06;
  margin-bottom: 0.85rem;
}
.feature p { color: var(--ink-2); max-width: 46ch; }

.proof-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.75rem;
}
.proof-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.proof-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--ps-green);
  flex: none;
}
.band-dark .proof-list li { color: rgb(255 255 255 / 0.78); }
.band-dark .proof-list svg { color: var(--ps-bright); }

/* Pull-quote style line used inside feature copy */
.pull {
  margin-top: 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--ps-bright);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.band-dark .pull { color: #fff; }

/* --------------------------------------------------------------------------
   12. Proof band (dark)
   -------------------------------------------------------------------------- */
.proof-band { position: relative; overflow: hidden; }
.proof-band::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -15%;
  width: 55vw; height: 55vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgb(34 197 94 / 0.16), transparent 70%);
  pointer-events: none;
}
.proof-band .shell { position: relative; z-index: 1; }

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.proof-band h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.04;
}

.big-stat {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.big-stat .n {
  display: block;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ps-bright);
}
.big-stat .t {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.7);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   13. PrivacySolver teaser band
   -------------------------------------------------------------------------- */
.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.teaser h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.06;
}
.teaser .logo-inline {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.teaser .logo-inline .solver { color: var(--ps-bright); }

.teaser-media {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}
.teaser-media:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   14. Demo form
   -------------------------------------------------------------------------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ps-green);
  box-shadow: 0 0 0 3px rgb(45 122 79 / 0.15);
}

.form-hp { position: absolute; left: -9999px; }

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.form-card .btn { width: 100%; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.6);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer-blurb { max-width: 38ch; margin-top: 1rem; color: rgb(255 255 255 / 0.55); font-size: 0.9375rem; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-cols h3 {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.45);
  margin-bottom: 0.9rem;
}
.footer-cols li { margin-bottom: 0.55rem; }
.footer-cols a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-cols a:hover { color: var(--ps-bright); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.45);
}
.footer-bottom a { color: rgb(255 255 255 / 0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--ps-bright); }

/* --------------------------------------------------------------------------
   16. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; padding-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }

  .nav-inner { height: 64px; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgb(17 24 39 / 0.3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1rem; min-height: 44px; }
  .nav-links .btn { margin-left: 0; margin-top: 0.5rem; justify-content: center; }

  .feature-grid,
  .feature-reverse .feature-grid,
  .proof-grid,
  .teaser-grid,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-reverse .feature-copy,
  .feature-reverse .feature-media { order: 0; }

  .feature p { max-width: none; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding-bottom: clamp(6rem, 22vw, 9rem); }
  .hero-media { margin-top: clamp(-5rem, -14vw, -3.5rem); }
  .hero .btn-row .btn { flex: 1 1 100%; }

  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-block: 1.35rem; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line); }

  .frame-media { aspect-ratio: 16 / 9; }
  .frame-url { font-size: 10.5px; }
  .frame-play::after { width: 54px; height: 54px; background-size: 24px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Text links need a real hit area on a phone; the rows carry their own spacing. */
  .footer-cols li { margin-bottom: 0; }
  .footer-cols a { display: flex; align-items: center; min-height: 44px; }
  .link-arrow { min-height: 44px; }

  .btn { width: 100%; }
  .btn-row { gap: 0.65rem; }
}

@media (min-width: 1441px) {
  :root { --shell: 1240px; }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .teaser-media:hover { transform: none; }
}

/* Print — keep it legible, drop the theatre */
@media print {
  .site-nav, .frame-bar, .frame-play, .btn-row { display: none !important; }
  .band-dark { background: #fff !important; color: #000 !important; }
  .band-dark h1, .band-dark h2, .band-dark h3 { color: #000 !important; }
}

/* ==========================================================================
   19. PrivacySolver page (W2)
   Appended only. Nothing above this line was modified.
   Everything here is a modifier on W1's primitives — .hero, .feature-grid,
   .frame, .proof-list, .band-tint are all reused as-is.
   ========================================================================== */

/* 19.1 — Current page marker in the nav (generic, used by every sub-page) */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-3);
}

/* 19.2 — Light hero variant.
   Same geometry as .hero (including the overlapping media), but calm and
   bright: a green-tinted wash that fades to paper so the frame below can
   overlap into white. */
.pv-hero {
  background: linear-gradient(180deg, #f1faf5 0%, #f7fcf9 46%, var(--paper) 100%);
  border-bottom: 0;
}
.pv-hero::after {
  background: radial-gradient(circle, rgb(34 197 94 / 0.16), transparent 66%);
}
.pv-hero h1 .accent { color: var(--ps-green-dark); }   /* AA on white; --ps-bright is not */
.pv-hero .lede { color: var(--ink-2); }
.pv-hero .hero-meta { color: var(--ink-3); }
.pv-hero .hero-meta svg { color: var(--ps-green); }

/* The eyebrow statement that sits above the H1 */
.pv-hero .hero-eyebrow {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ps-green-dark);
  margin-bottom: 0.75rem;
}

/* 19.3 — Editorial image slot.
   The gradient IS the fallback: if the <img> fails it removes itself
   (onerror) and the block still reads as a deliberate panel. */
.pv-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, #eef7f1 0%, #dcebe1 52%, #cfe0d4 100%);
  box-shadow: var(--shadow-frame);
  aspect-ratio: 4 / 3;
}
.pv-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pv-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.1rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgb(17 24 39 / 0.72));
}

/* 19.4 — Journey milestones. Each one names the obligation in the Act
   that it satisfies. */
.pv-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.9rem;
}
.pv-milestones li {
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ps-bright);
  border-radius: var(--radius-sm);
}
.pv-milestones .m-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pv-milestones .m-cite {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}

/* 19.5 — Close band: "a clear morning, and a short list".
   The photo is a ::before layer, so a missing file degrades to the tint
   gradient underneath with no broken-image box and no layout shift.
   ::after is a white scrim — clear-morning.jpg has a bright horizon seam
   that would otherwise eat the copy. */
.pv-close {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4fbf7 0%, #eef8f2 100%);
  border-block: 1px solid #dcefe4;
}
.pv-close::before,
.pv-close::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pv-close::before {
  background: url("img/clear-morning.jpg") center 35% / cover no-repeat;
  opacity: 0.55;
}
.pv-close::after {
  background: linear-gradient(
    100deg,
    rgb(255 255 255 / 0.94) 0%,
    rgb(255 255 255 / 0.82) 42%,
    rgb(255 255 255 / 0.5) 100%
  );
}
.pv-close .shell { position: relative; z-index: 1; }
.pv-close h2 { max-width: 24ch; }
.pv-close .signature {
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pv-close .signature .solver { color: var(--ps-green-dark); }

/* 19.6 — Responsive */
@media (max-width: 900px) {
  .pv-close::after {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.86));
  }
}
@media (max-width: 640px) {
  .pv-milestones { grid-template-columns: minmax(0, 1fr); }
  .pv-figure { aspect-ratio: 3 / 2; }
}

/* 19.7 — Reduced motion / print */
@media print {
  .pv-close::before, .pv-close::after { display: none !important; }
}