/* =============================================================================
   Sunda Privacy Guard — marketing site stylesheet
   -----------------------------------------------------------------------------
   The "Warm Guardian" brand system, shared with Sunda Cloak (sundacloakai.com):
     • Plus Jakarta Sans for everything; DM Serif Display *italic* for exactly
       one "mood word" per display heading — never full geometric "AI tool".
     • Amber #F59E0B / #FBBF24 on warm cream #FFF7ED. Ink #1A1D26. Pink blush.
     • Rounded everything, soft layered amber shadows, dotted separators,
       radial amber glow washes — warm depth, never flat.
     • The sunglasses sun (Sunda) is the one and only brand mark — favicon,
       nav, popup mockup, footer. The old shield-with-keyhole mark is retired.
   Fonts are SELF-HOSTED (assets/fonts) — the site makes ZERO external
   requests, matching the product's "nothing leaves your device" promise.
   ========================================================================== */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #b45309;
  --amber-tint: #fef3c7;
  --pink: #f472b6;
  --coral: #fca5a5;

  /* Surfaces */
  --bg: #fff7ed;
  --bg-alt: #fffbf5;
  --card: #ffffff;
  --soft: #fef6e7;
  --ink-bg: #1a1d26;
  --ink-bg-2: #23262f;

  /* Ink */
  --ink: #1a1d26;
  --ink-2: #4b5160;
  --ink-3: #6b7280;
  --on-dark: #fdf4e3;
  --on-dark-2: #c7b9a3;
  --on-dark-3: #9a8f7e;

  /* Lines */
  --line: rgba(26, 29, 38, 0.08);
  --line-strong: rgba(26, 29, 38, 0.14);
  --amber-line: rgba(245, 158, 11, 0.32);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 0 rgba(26, 29, 38, 0.03), 0 10px 30px rgba(180, 83, 9, 0.08);
  --shadow-lift: 0 18px 48px rgba(180, 83, 9, 0.16);
  --shadow-active: 0 8px 22px rgba(245, 158, 11, 0.34);
  --shadow-mascot: 0 24px 48px rgba(245, 158, 11, 0.28);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(245, 158, 11, 0.4);
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* The signature move: one serif-italic "mood word" per display heading. */
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--amber-deep);
  /* DM Serif italic carries a wide right side-bearing; tuck the following
     punctuation back under the overhang so “model.” reads as one unit.
     (Site convention: an em is always followed by punctuation or line end.) */
  margin-right: -0.12em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(245, 158, 11, 0.25);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}

:focus-visible {
  /* transparent outline so focus is never clipped by overflow:hidden ancestors
     (the box-shadow ring is for looks; the outline guarantees visibility) */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Anchor targets never hide under the sticky nav. */
[id] {
  scroll-margin-top: 92px;
}

/* Grain overlay — barely-there texture so flat fills get a paper feel. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200; /* above all stacking contexts (nav 50, drawer 100) — 2% noise, non-interactive */
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: clamp(64px, 9vw, 120px);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: radial-gradient(120% 120% at 50% -20%, #2a2d38 0%, var(--ink-bg) 55%);
  color: var(--on-dark);
}

.section__head {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

.section__sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section--dark .eyebrow {
  color: var(--amber-bright);
}
.section--dark .section__title {
  color: var(--on-dark);
}
/* Mood words need the brighter amber to stay legible on ink. */
.section--dark .section__title em {
  color: var(--amber-bright);
}
.section--dark .section__sub {
  color: var(--on-dark-2);
}

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

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease, filter 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--primary {
  /* dark ink on bright amber — matches the extension popup and clears WCAG AA,
     unlike white-on-amber which fails at the light end of the gradient */
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-bright) 0%, var(--amber) 100%);
  box-shadow: var(--shadow-active), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-lift), 0 0 0 5px rgba(251, 191, 36, 0.18);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary:focus-visible {
  /* compose the focus ring with this button's own shadow — the component
     box-shadow otherwise overrides the global :focus-visible ring */
  box-shadow: var(--shadow-active), inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--focus-ring);
}

.btn--ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--amber-line);
  color: var(--amber-deep);
  box-shadow: var(--shadow-card);
}
.btn--ghost:focus-visible {
  /* compose the focus ring with this button's own shadow — the component
     box-shadow otherwise overrides the global :focus-visible ring */
  box-shadow: var(--shadow-sm), var(--focus-ring);
}

/* ── Status pill (pulsing dot) ──────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(245, 158, 11, 0.12);
  color: #9a4207; /* darker than --amber-deep: >=4.5:1 on the tinted pill at this size */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation: status-pulse 2400ms ease-in-out infinite;
}
@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}
.status-pill--dark {
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber-bright);
}

/* ── Mascot (the sunglasses sun) ────────────────────────────────────────── */
.mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mascot__rays {
  transform-origin: 100px 100px;
  animation: rays-spin 24s linear infinite;
}
.mascot__face {
  transform-origin: 100px 110px;
  animation: face-bob 5s ease-in-out infinite;
}
@keyframes rays-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes face-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.nav.is-scrolled {
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(180, 83, 9, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.35));
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 140ms ease, background 140ms ease;
}
.nav__link:hover {
  color: var(--ink);
  background: rgba(245, 158, 11, 0.1);
}
/* The page you're on: amber + a quiet underline (works in the drawer too). */
.nav__link[aria-current="page"],
.nav__mobile a[aria-current="page"] {
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav__cta {
  padding: 9px 16px;
  font-size: 0.9rem;
}

/* CSS-only mobile menu: a visually-hidden checkbox drives the panel, so the
   nav works with JavaScript disabled. JS only adds nice-to-haves (auto-close). */
.nav__toggle {
  display: none; /* desktop: not focusable, not visible */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 180ms ease;
}
.nav__burger span:nth-child(1) {
  top: 15px;
}
.nav__burger span:nth-child(2) {
  top: 20px;
}
.nav__burger span:nth-child(3) {
  top: 25px;
}
.nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.nav__toggle:focus-visible ~ .nav__inner .nav__burger {
  box-shadow: var(--focus-ring);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 22px;
  background: rgba(255, 247, 237, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.1);
}
.nav__toggle:checked ~ .nav__mobile {
  display: flex;
}
.nav__mobile a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
}
.nav__mobile a:hover {
  background: rgba(245, 158, 11, 0.1);
}
.nav__mobile .btn {
  margin-top: 8px;
}

/* Scrim under the open drawer: pure CSS, no tab stop (labels aren't focusable),
   and tapping it closes the menu via the checkbox label. Anchored below the
   drawer with position:absolute — the sticky nav pins it to the viewport, and
   (unlike position:fixed) it can't be captured by the containing block that
   `backdrop-filter` on .nav.is-scrolled creates. */
.nav__scrim {
  display: none;
}
@media (max-width: 820px) {
  .nav__toggle:checked ~ .nav__scrim {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 29, 38, 0.35);
    cursor: pointer;
    animation: scrim-in 220ms ease both;
  }
}
@keyframes scrim-in {
  from {
    opacity: 0;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 50% at 68% -8%, rgba(251, 191, 36, 0.45) 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(40% 40% at 90% 42%, rgba(244, 114, 182, 0.14) 0%, rgba(244, 114, 182, 0) 60%),
    radial-gradient(45% 45% at 6% 22%, rgba(253, 186, 116, 0.26) 0%, rgba(253, 186, 116, 0) 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero__rays {
  position: absolute;
  top: -300px;
  right: -180px;
  width: 720px;
  height: 720px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(245, 158, 11, 0.16) 0deg,
    rgba(245, 158, 11, 0) 14deg,
    rgba(245, 158, 11, 0.16) 30deg,
    rgba(245, 158, 11, 0) 44deg,
    rgba(245, 158, 11, 0.16) 60deg,
    rgba(245, 158, 11, 0) 74deg,
    rgba(245, 158, 11, 0.16) 90deg,
    rgba(245, 158, 11, 0) 104deg,
    rgba(245, 158, 11, 0.16) 120deg,
    rgba(245, 158, 11, 0) 134deg,
    rgba(245, 158, 11, 0.16) 150deg,
    rgba(245, 158, 11, 0) 164deg,
    rgba(245, 158, 11, 0.16) 180deg,
    rgba(245, 158, 11, 0) 194deg,
    rgba(245, 158, 11, 0.16) 210deg,
    rgba(245, 158, 11, 0) 224deg,
    rgba(245, 158, 11, 0.16) 240deg,
    rgba(245, 158, 11, 0) 254deg,
    rgba(245, 158, 11, 0.16) 270deg,
    rgba(245, 158, 11, 0) 284deg,
    rgba(245, 158, 11, 0.16) 300deg,
    rgba(245, 158, 11, 0) 314deg,
    rgba(245, 158, 11, 0.16) 330deg,
    rgba(245, 158, 11, 0) 344deg
  );
  mask: radial-gradient(closest-side, #000 0%, transparent 72%);
  -webkit-mask: radial-gradient(closest-side, #000 0%, transparent 72%);
  animation: rays-spin 60s linear infinite;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}
.hero__copy .status-pill {
  margin-bottom: 22px;
}
.hero__title {
  /* Sized so the three-line rag (“Your personal data / never reaches /
     the model.”) holds without a mid-phrase wrap at any viewport. */
  font-size: clamp(2.35rem, 4.8vw, 3.55rem);
  margin-bottom: 20px;
}
.hero__sub {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero__honesty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  background: rgba(254, 243, 199, 0.7);
  border: 1px solid var(--amber-line);
  color: var(--amber-deep);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero__honesty svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
/* Trust-pill phrases only break at the “·” separators, never mid-phrase. */
.hero__honesty .nowrap {
  white-space: nowrap;
}

/* Hero visual: the hand-built popup mockup. */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
/* Sunda floats front and center above the headline — never overlapping. */
.hero__mascot {
  width: clamp(104px, 12vw, 148px);
  height: clamp(104px, 12vw, 148px);
  margin: 0 auto clamp(18px, 3vw, 30px);
  filter: drop-shadow(var(--shadow-mascot));
  animation: mascot-float 6s ease-in-out infinite;
}

/* ── Popup mockup (hand-crafted, crisp at any DPI) ──────────────────────── */
.popup {
  position: relative;
  z-index: 2;
  width: min(372px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.popup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.popup__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.popup__dot:nth-child(1) {
  background: #fca5a5;
}
.popup__dot:nth-child(2) {
  background: #fbbf24;
}
.popup__dot:nth-child(3) {
  background: #86c995;
}
.popup__bartitle {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popup__body {
  padding: 16px 18px 0;
}
.popup__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--line-strong);
}
.popup__head img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.popup__wordmark {
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.popup__pill {
  margin-left: auto;
  padding: 4px 11px 4px 9px;
  font-size: 0.72rem;
}
.popup__hero {
  text-align: center;
  padding: 18px 0 16px;
}
.popup__sun {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 22px rgba(245, 158, 11, 0.35));
}
.popup__duty {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.popup__note {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.popup__toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popup__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.popup__toggle strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.popup__toggle small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ink-3);
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 37px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 29, 38, 0.3);
}
.switch--on {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.switch--on::after {
  left: auto;
  right: 3px;
}
.popup__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding: 12px 10px 14px;
  border-top: 1px dotted var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.popup__foot svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--amber-deep);
}

/* ── Before / after redaction demo ──────────────────────────────────────── */
.demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  max-width: 1000px;
  margin-inline: auto;
}
.demo__doc {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.demo__doc:hover {
  transform: translateY(-3px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-lift);
}
.demo__doc--before {
  background: linear-gradient(180deg, #fffdf9 0%, #fdf1ee 100%);
  border-color: rgba(194, 65, 12, 0.18);
}
.demo__doc--after {
  background: linear-gradient(180deg, #fffdf8 0%, #fff3da 100%);
  border-color: var(--amber-line);
}
.demo__bar {
  display: flex;
  order: -1; /* figcaption must be the figure's first child; the bar still paints on top */
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.demo__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.demo__dot:nth-child(1) {
  background: #fca5a5;
}
.demo__dot:nth-child(2) {
  background: #fbbf24;
}
.demo__dot:nth-child(3) {
  background: #86c995;
}
.demo__file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 24px 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo__label svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.demo__label--you {
  color: #c2410c;
}
.demo__label--ai {
  color: var(--amber-deep);
}
.demo__text {
  margin: 0;
  padding: 12px 24px 26px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink);
  overflow-wrap: anywhere; /* long emails / tokens never burst the card */
  min-height: 8.5em; /* panes hold their size while the animation types */
}
/* Detected values: warm coral marker — “this is what would have leaked”. */
.pii {
  background: linear-gradient(transparent 55%, rgba(252, 165, 165, 0.55) 55%);
  font-weight: 600;
  padding: 0 1px;
  border-radius: 3px;
}
/* Placeholders: mono chips in the amber family — “this is what ships”. */
.ph {
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-deep);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.ph--pop {
  animation: ph-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes ph-pop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.demo__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  translate: 0 0.16em;
  background: var(--amber);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
.demo__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.demo__arrow-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--amber-line);
  box-shadow: var(--shadow-card);
  color: var(--amber-deep);
}
.demo__arrow-chip svg {
  width: 24px;
  height: 24px;
}
.demo__arrow-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.demo__caption {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.demo__replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 160ms ease, color 160ms ease, box-shadow 220ms ease;
}
.demo__replay:hover {
  transform: translateY(-2px);
  border-color: var(--amber-line);
  color: var(--amber-deep);
  box-shadow: var(--shadow-card);
}
.demo__replay:focus-visible {
  /* compose the focus ring with this button's own shadow — the component
     box-shadow otherwise overrides the global :focus-visible ring */
  box-shadow: var(--shadow-sm), var(--focus-ring);
}
.demo__replay svg {
  width: 14px;
  height: 14px;
}

/* ── Steps (How it works) ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-lift);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-active);
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* ── Features grid ──────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-lift);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-tint);
  color: var(--amber-deep);
}
.feature__icon svg {
  width: 24px;
  height: 24px;
}
/* Everyday-moments cards reuse the .features grid with an emoji tile. */
.feature__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-tint);
  font-size: 25px;
  line-height: 1;
}
.feature h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}

/* ── Guided tour (real popup screenshots + step captions) ───────────────── */
.tour {
  max-width: 980px;
  margin-inline: auto;
}
.tour__row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.tour__row + .tour__row {
  margin-top: clamp(44px, 6.5vw, 80px);
}
/* Alternate sides so the tour zig-zags down the page. */
.tour__row:nth-child(even) .tour__media {
  order: 2;
}
.tour__media {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.tour__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.tour__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.tour__dot:nth-child(1) {
  background: #fca5a5;
}
.tour__dot:nth-child(2) {
  background: #fbbf24;
}
.tour__dot:nth-child(3) {
  background: #86c995;
}
.tour__file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour__media img {
  display: block;
  width: 100%;
  height: auto;
}
/* The full-popup shot is very tall — cap it and fade out the bottom edge. */
.tour__media--tall {
  position: relative;
}
.tour__media--tall img {
  max-height: 540px;
  object-fit: cover;
  object-position: top;
}
.tour__media--tall::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--card));
  pointer-events: none;
}
.tour__copy .step__num {
  margin-bottom: 16px;
}
.tour__copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}
.tour__copy p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .tour__row {
    grid-template-columns: 1fr;
  }
  /* Stacked: screenshot first, then the caption — for every row. */
  .tour__row:nth-child(even) .tour__media {
    order: 0;
  }
  .tour__media {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
}
.feature p {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.feature p b {
  color: var(--ink);
}

/* ── Supported data types strip ─────────────────────────────────────────── */
.types {
  position: relative;
  z-index: 2;
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 84px);
}
.types__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.type-chip:hover {
  transform: translateY(-2px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-card);
}
.type-chip b {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.type-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--ink-3);
}
.type-chip code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-deep);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.types__note {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.types__note .ph {
  font-size: 0.82em;
}

/* ── Privacy by construction (dark band) ────────────────────────────────── */
.vows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
}
.vow {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 220ms ease, background 220ms ease;
}
.vow:hover {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(255, 255, 255, 0.055);
}
.vow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber-bright);
}
.vow__icon svg {
  width: 22px;
  height: 22px;
}
.vow h3 {
  font-size: 1.08rem;
  color: var(--on-dark);
  margin-bottom: 7px;
}
.vow p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--on-dark-2);
}
.vow p code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--amber-bright);
  background: rgba(251, 191, 36, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 110%, rgba(251, 191, 36, 0.42) 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(50% 50% at 50% -10%, rgba(244, 114, 182, 0.16) 0%, rgba(244, 114, 182, 0) 60%),
    var(--bg-alt);
}
.final__mascot {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  filter: drop-shadow(var(--shadow-mascot));
  animation: mascot-float 6s ease-in-out infinite;
}
.final .status-pill {
  margin-bottom: 20px;
}
.final__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}
.final__sub {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.final__note {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink-bg);
  color: var(--on-dark-2);
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brandname {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--on-dark);
  margin-bottom: 14px;
}
.footer__brandname img {
  width: 30px;
  height: 30px;
}
.footer__blurb {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--on-dark-3);
  max-width: 340px;
  text-wrap: pretty;
}
.footer__h {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a {
  font-size: 0.92rem;
  color: var(--on-dark-2);
  transition: color 140ms ease;
}
.footer__col a:hover {
  color: var(--amber-bright);
}
.footer__col span {
  font-size: 0.92rem;
  color: var(--on-dark-3);
}
.footer__col small {
  display: block;
  font-size: 0.8rem;
  color: var(--on-dark-3);
  margin-top: 2px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--on-dark-2);
}
/* Trust line: lock glyph · On-device · No telemetry · version. */
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-2);
}
.footer__status svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--amber-bright);
}
.footer__bottom a {
  color: var(--on-dark-2);
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
  text-underline-offset: 3px;
}
.footer__bottom a:hover {
  color: var(--amber-bright);
}

/* ── Legal pages (privacy) ──────────────────────────────────────────────── */
.legal {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter) 80px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber-deep);
  margin-bottom: 28px;
}
.legal__back:hover {
  text-decoration: underline;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 10px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.legal__draft {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 38px;
  margin-bottom: 12px;
}
.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal strong {
  color: var(--ink);
}
.legal a {
  color: var(--amber-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--amber-line);
}
.legal__callout {
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(254, 243, 199, 0.6);
  border: 1px solid var(--amber-line);
  margin-bottom: 24px;
}
.legal__callout p:last-child {
  margin-bottom: 0;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
/* Content is VISIBLE by default. Only once JS announces itself by stamping
   `js` on <html> do elements start hidden — so no JS never means no page. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}
html.js [data-stagger].is-visible > *:nth-child(2) {
  transition-delay: 70ms;
}
html.js [data-stagger].is-visible > *:nth-child(3) {
  transition-delay: 140ms;
}
html.js [data-stagger].is-visible > *:nth-child(4) {
  transition-delay: 210ms;
}
html.js [data-stagger].is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}
html.js [data-stagger].is-visible > *:nth-child(6) {
  transition-delay: 350ms;
}
html.js [data-stagger].is-visible > *:nth-child(7) {
  transition-delay: 420ms;
}
html.js [data-stagger].is-visible > *:nth-child(8) {
  transition-delay: 490ms;
}

/* Page-load fade so the hero arrives gracefully. */
body {
  animation: page-in 0.5s ease both;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--amber-deep);
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  transition: top 160ms ease;
}
.skip-link:focus {
  top: 12px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy .status-pill {
    margin-inline: auto;
  }
  .hero__sub {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__visual {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 940px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .vows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block; /* mobile: invisible but focusable */
  }
  .nav__burger {
    display: block;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .demo__arrow {
    flex-direction: row;
  }
  .demo__arrow-chip {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn,
  .final__actions .btn {
    width: 100%;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__mascot {
    width: 88px;
    height: 88px;
  }
}

/* ── 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;
  }
  html.js .reveal,
  html.js [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
  .mascot__rays,
  .hero__rays,
  .hero__mascot,
  .final__mascot,
  .status-pill::before {
    animation: none;
  }
}
