/* ==========================================================================
   doitorelse.app — site styles
   Brand voice: see /Users/tomasodenoia/vscode/TombDo/.claude/brand-voice-guidelines.md
   ========================================================================== */

/* ----- Fonts ----------------------------------------------------------- */

@font-face {
  font-family: "Crimson Text";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/CrimsonText-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Crimson Text";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/CrimsonText-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Crimson Text";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/CrimsonText-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Crimson Text";
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/CrimsonText-SemiBoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Crimson Text";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/CrimsonText-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Crimson Text";
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/CrimsonText-BoldItalic.ttf") format("truetype");
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ----- Tokens ---------------------------------------------------------- */

:root {
  --cream: #f4ecdc;
  --cream-deep: #ebe1cd;
  --ink: #0e0e0e;
  --ink-soft: #2a2a2a;
  --ink-mute: rgba(14, 14, 14, 0.55);
  --crimson: #7f1d1d;
  --crimson-light: #b8302a;
  --crimson-muted: #f0d4cd;
  --orange: #cea053;

  --serif: "Crimson Text", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --gutter-desktop: 80px;
  --gutter-mobile: 24px;
  --max-content: 1280px;
}

/* ----- Reset ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ----- Base ------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain over the whole page — gives the cream tactile depth.
   Pinned with position:fixed so it never scrolls and never affects layout. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

main { position: relative; z-index: 2; }

/* Skip-to-content for keyboard users — invisible until focused. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ----- Nav bar --------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 220, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(14, 14, 14, 0.06);
  padding: 16px var(--gutter-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-mark {
  font-family: var(--serif);
  /* Same weight as the hero wordmark — they are the same brand mark. */
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-current { color: var(--ink); font-weight: 600; }

.nav-cta {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 1023px) {
  .site-nav {
    padding: 14px var(--gutter-mobile);
    gap: 12px;
  }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
}

/* ----- SF Symbol icons -------------------------------------------------- */

/*
 * Real SF Symbols, rendered from macOS via extract-sf-symbols.swift and
 * served as PNGs. We use them as CSS masks so the visible color is whatever
 * `color` resolves to in context — that way one PNG works for crimson tiles,
 * cream-on-active-tile, and ink in the how-step icons. The PNG is black on
 * transparent; the mask makes it transparent on currentColor.
 *
 * Each call site sets `--icon-url` inline:
 *   <i class="sf-icon" style="--icon-url: url('/icons/figure.walk.png')"></i>
 *
 * Sizing comes from the surrounding context (.key-icon, .how-step-icon, etc.)
 * which set width/height on the .sf-icon.
 */
.sf-icon {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-url);
          mask-image: var(--icon-url);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  /* width/height set by the wrapping class (.key-icon, .how-step-icon) */
}

/* ----- Hero ------------------------------------------------------------ */

.hero {
  min-height: calc(100vh - 64px); /* leave room for sticky nav */
  padding: 40px var(--gutter-desktop) 100px;
  display: grid;
  /* Equal columns — phone gets more visual weight than before. */
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
  /* Layered cream: two subtle radial tints (warm + cool) over the base
     cream, plus a soft vignette so the corners darken slightly. Same
     minimalism, much more depth. */
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(127, 29, 29, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(31, 65, 54, 0.035), transparent 60%),
    radial-gradient(ellipse at center, transparent 55%, rgba(14, 14, 14, 0.04) 100%);
}

.hero-copy { max-width: 640px; }

.wordmark {
  font-family: var(--serif);
  /* Match the in-app wordmark exactly: iOS renders ".font(.system(size: 56,
     design: .serif))" which defaults to Regular weight. Tomaso's icon was
     made from the same rendering. Bold (700) was incorrect — too heavy
     against the visual reference. */
  font-weight: 400;
  font-size: clamp(72px, 9vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-lead {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-body {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* Soft inset highlight on top + grounding shadow below — gives the pill
     dimension instead of looking like a flat black sticker. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(14, 14, 14, 0.1),
    0 8px 16px -6px rgba(14, 14, 14, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(14, 14, 14, 0.12),
    0 16px 28px -8px rgba(14, 14, 14, 0.35);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

.apple-glyph { font-size: 17px; line-height: 1; }

.btn-secondary {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(14, 14, 14, 0.3);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  transition: text-decoration-color 0.15s ease;
}
.btn-secondary:hover {
  text-decoration-color: var(--ink);
}

.hero-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-phone video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  /* Grounding shadow — gives the floating phone a sense of weight on the page. */
  filter:
    drop-shadow(0 30px 50px rgba(14, 14, 14, 0.12))
    drop-shadow(0 12px 20px rgba(127, 29, 29, 0.06));
}

/* Subtle scroll cue. Italic serif link only — no pill, no border, no
   backdrop. The previous pill version felt button-y and competed with the
   real CTAs above. This reads as a quiet whisper of "more below." */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  z-index: 3;
  white-space: nowrap;
}
.scroll-cue .arrow {
  font-style: normal;
  display: inline-block;
  transition: transform 0.18s ease;
}
.scroll-cue:hover {
  color: var(--ink-soft);
  transform: translateX(-50%) translateY(-2px);
}
.scroll-cue:hover .arrow {
  transform: translateX(4px);
}

/* ----- Section base ---------------------------------------------------- */

.how-section, .keys-section {
  padding: 120px var(--gutter-desktop);
  max-width: var(--max-content);
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 12ch;
}

.section-intro {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 80px;
  max-width: 560px;
}

/* ----- How locks work -------------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin-top: 80px;
  max-width: 1100px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step-icon {
  width: 80px;
  height: 80px;
  color: var(--ink);
}

.how-step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
}

.how-step-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: var(--ink);
}

.how-step-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ----- Keys explorer --------------------------------------------------- */

.key-group { margin-bottom: 64px; }

.key-group-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.key-tile {
  background: var(--crimson-muted);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  aspect-ratio: 1.2 / 1;
  font-family: inherit;
  color: inherit;
  /* button-reset for the <button> element */
  text-align: center;
  width: 100%;
}
.key-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(127, 29, 29, 0.25);
}
.key-tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.key-tile.is-active {
  background: var(--ink);
}
.key-tile.is-active .key-icon { color: var(--cream); }
.key-tile.is-active .key-name { color: var(--cream); }

.key-icon {
  width: 36px;
  height: 36px;
  color: var(--crimson);
  transition: color 0.2s ease;
}

.key-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.key-description-panel {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 36px 40px;
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  /* hidden by default — JS toggles via [hidden] removal */
  animation: panelSlideIn 0.25s ease-out;
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.key-description-panel[hidden] { display: none; }

.panel-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--crimson);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.panel-icon svg { width: 28px; height: 28px; }
/* Cloned mask-icon mounted by script.js — sized for the 56px panel slot. */
.panel-icon .sf-icon { width: 32px; height: 32px; }

.panel-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 8px;
}

.panel-text {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244, 236, 220, 0.8);
  max-width: 56ch;
}

/* ----- Suggested locks section ----------------------------------------- */

.suggested-section {
  padding: 80px var(--gutter-desktop) 120px;
  max-width: var(--max-content);
  margin: 0 auto;
}

.suggested-section .section-title {
  margin-bottom: 16px;
}

.suggested-group {
  margin-top: 56px;
}

.suggested-category {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.suggested-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(14, 14, 14, 0.05);
  box-shadow: 0 2px 10px -4px rgba(14, 14, 14, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.suggested-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(127, 29, 29, 0.12);
}

.suggested-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -4px;
}

.suggested-icon {
  width: 30px;
  height: 30px;
  color: var(--crimson);
}

/* STRICT badge in the header. Matches the in-app .caption2 + tracked all-caps
   pattern from ActiveSessionCard. */
.suggested-strict {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--crimson);
  background: rgba(127, 29, 29, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.suggested-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.suggested-description {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* "Unlock with" mechanic block — quiet visual hierarchy below the
   description. Label is small tracked caps, value is serif so the keys
   actually feel like the in-app keys. */
.suggested-mechanic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 14, 14, 0.06);
}
.suggested-mechanic-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.suggested-mechanic-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .suggested-section {
    padding: 56px var(--gutter-mobile) 80px;
  }
  .suggested-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Contact page ---------------------------------------------------- */

/*
 * Minimal variant: just the title and the email. No grid, no notes.
 * Vertically center the content so the page doesn't look unfinished —
 * it reads as intentional minimalism instead of a missing layout.
 */
.contact-section--minimal {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--gutter-desktop);
  gap: 40px;
}

.contact-section--minimal .section-title {
  margin: 0;
}

.contact-only-email {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.18s ease;
  word-break: break-word;
}
.contact-only-email:hover {
  color: var(--crimson);
}

.contact-only-note {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

@media (max-width: 720px) {
  .contact-section--minimal {
    padding: 64px var(--gutter-mobile);
    min-height: auto;
    gap: 28px;
  }
}


.contact-section {
  padding: 120px var(--gutter-desktop);
  max-width: var(--max-content);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 64px;
  max-width: 1040px;
}

/* When the block is a navigational hand-off (Common questions), make the
   primary line clickable and put a quiet arrow at the end. */
a.contact-value.contact-value--link::after {
  content: " →";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.18s ease;
}
a.contact-value.contact-value--link:hover::after {
  transform: translateX(4px);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 4px;
}

.contact-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: -0.01em;
  word-break: break-word;
}
a.contact-value:hover { color: var(--crimson); }

.contact-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
  }
  .contact-section {
    padding: 80px var(--gutter-mobile);
  }
}

/* ----- Footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(127, 29, 29, 0.03), transparent 70%),
    var(--cream);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 64px var(--gutter-desktop) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(14, 14, 14, 0.06);
}

.footmark-block .footmark {
  font-family: var(--serif);
  /* Same weight as the hero/nav wordmark — one brand mark, one weight. */
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.foot-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 32ch;
  line-height: 1.4;
}

.footer-cta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}
.footer-cta-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}

.foot-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  list-style: none;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .footer-inner { padding: 48px var(--gutter-mobile) 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
    padding-bottom: 40px;
  }
  .footer-cta { align-items: stretch; }
  .footer-cta .btn-primary { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ----- Legal pages (privacy / terms) ----------------------------------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--gutter-desktop) 120px;
  font-family: var(--sans);
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 48px 0 12px;
}
.legal h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 32px 0 8px;
}
.legal p, .legal li {
  margin-bottom: 14px;
  font-size: 16px;
}
.legal ul, .legal ol { padding-left: 1.5em; margin-bottom: 16px; }
.legal a {
  color: var(--crimson);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal .legal-meta {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 48px;
}

.legal-header {
  padding: 32px var(--gutter-desktop);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  max-width: var(--max-content);
  margin: 0 auto;
}
.legal-header a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

/* ----- Responsive ------------------------------------------------------ */

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px var(--gutter-mobile) 96px;
    min-height: auto;
  }
  .hero-phone { order: 2; }
  .hero-copy { order: 1; }
  .hero-phone video { max-width: 480px; }

  .scroll-cue { bottom: 24px; font-size: 14px; }

  .how-section, .keys-section {
    padding: 80px var(--gutter-mobile);
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .key-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal { padding: 56px var(--gutter-mobile) 80px; }
  .legal-header { padding: 24px var(--gutter-mobile); }
}

@media (max-width: 600px) {
  .key-grid { grid-template-columns: 1fr; }
  .key-description-panel { padding: 24px; flex-direction: column; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary { justify-content: center; }
  .btn-secondary { text-align: center; }
}

/* ----- Reduced motion -------------------------------------------------- */

/* Honor the user's motion preference for animations and transitions, but
   keep the hero video visible — the rotation is on tape, not a CSS animation,
   and removing it leaves a glaring empty column. Browsers that respect the
   preference will pause the video automatically via autoplay policies. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
