/* ==========================================================================
   ClassPort — marketing site stylesheet
   A Guided Tour in Four Acts
   ========================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --bg: #FAF7F2;
  --bg-card-paper: #FFFDF9;
  --footer-bg: #F3EEE5;
  --ink: #1C1917;
  --muted: #6C6560;
  --muted-2: #57534E;
  --accent: #A9502A;
  --accent-hover: #9C4A28;
  --divider: #E7E0D8;
  --nav-glass: rgba(250, 247, 242, 0.72);
  --card-shadow: 0 30px 60px rgba(28, 25, 23, 0.12);
  --card-shadow-hover: 0 40px 90px rgba(28, 25, 23, 0.20);

  /* Footer is always a dark colophon, in every theme — defined once, never
     redefined inside a theme override block. */
  --colophon-bg: #14120E;
  --colophon-text: #F5EFE6;
  --colophon-accent: #E08659;

  --font-display: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F;
    --bg-card-paper: #1D1811;
    --footer-bg: #120F0B;
    --ink: #F5EFE6;
    --muted: #A89A8A;
    --muted-2: #C4B7A6;
    --accent: #E08A5B;
    --accent-hover: #EA9C71;
    --divider: #33291F;
    --nav-glass: rgba(23, 20, 15, 0.72);
    --card-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
    --card-shadow-hover: 0 40px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06) inset;
  }
}

:root[data-theme="dark"] {
  --bg: #17140F;
  --bg-card-paper: #1D1811;
  --footer-bg: #120F0B;
  --ink: #F5EFE6;
  --muted: #A89A8A;
  --muted-2: #C4B7A6;
  --accent: #E08A5B;
  --accent-hover: #EA9C71;
  --divider: #33291F;
  --nav-glass: rgba(23, 20, 15, 0.72);
  --card-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --card-shadow-hover: 0 40px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

:root[data-theme="light"] {
  --bg: #FAF7F2;
  --bg-card-paper: #FFFDF9;
  --footer-bg: #F3EEE5;
  --ink: #1C1917;
  --muted: #6C6560;
  --muted-2: #57534E;
  --accent: #A9502A;
  --accent-hover: #9C4A28;
  --divider: #E7E0D8;
  --nav-glass: rgba(250, 247, 242, 0.72);
  --card-shadow: 0 30px 60px rgba(28, 25, 23, 0.12);
  --card-shadow-hover: 0 40px 90px rgba(28, 25, 23, 0.20);
}

/* ---- Reset -------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* backstop against rotated-card clipping */
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; }

/* ---- Focus rings --------------------------------------------------------
   Visible everywhere, never suppressed. */
a:focus-visible,
button:focus-visible,
.progress-pip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Nav
   ========================================================================== */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
}
nav.site-nav.scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--divider);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img {
  width: 28px;
  height: 28px;
  display: block;
}
.nav-brand span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
}

/* Center: act progress indicator (desktop) */
.nav-progress {
  display: none;
  position: relative;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-progress .progress-pip {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.5px;
  padding: 6px 2px 10px;
  transition: color 200ms ease;
}
.nav-progress .progress-pip.active {
  color: var(--ink);
}
.nav-progress .progress-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 18px;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 350ms cubic-bezier(0.65,0,0.35,1), width 350ms cubic-bezier(0.65,0,0.35,1);
}

/* Tooltip on hover */
.progress-pip .pip-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}
.progress-pip:hover .pip-tooltip,
.progress-pip:focus-visible .pip-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile top-edge progress bar */
.nav-progress-mobile {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 51;
  transition: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  font: 600 13px/1 var(--font-body);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .nav-progress { display: flex; }
}

@media (max-width: 899px) {
  nav.site-nav { height: 56px; padding: 0 20px; }
  .nav-brand img { width: 24px; height: 24px; }
}

/* ---- Nav sentinel -------------------------------------------------------- */
.nav-sentinel {
  width: 1px;
  height: 1px;
  margin-top: -1px;
  visibility: hidden;
}

/* ==========================================================================
   Photo mat (MODIFICATION 1) — wraps every screenshot on the page
   ========================================================================== */
.card-mat {
  background: var(--bg-card-paper);
  padding: 12px 12px 16px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: inline-block;
}
.card-mat img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 345 / 750;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 32px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
/* Mobile: DOM order alone gives "copy, then card, then CTAs". Desktop
   regroups copy + CTAs into the left column via named grid areas while the
   card fan sits at right (see the ≥900px override below). */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-copy { max-width: 560px; }
.hero-cta-row { max-width: 560px; }
.hero-kicker {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 480px;
  margin-bottom: 32px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  transition: background-color 150ms ease, transform 150ms ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Status pill — real text in a span, never a button */
.status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--divider);
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-body);
  color: var(--muted);
  overflow: hidden;
}
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .status-pill .dot {
    animation: pulse-dot 2.4s ease-in-out infinite;
  }
  .status-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.35) 55%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer-sweep 5s ease-in-out infinite;
    pointer-events: none;
  }
}

@media (prefers-color-scheme: dark) {
  .status-pill::after {
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.14) 45%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.14) 55%, transparent 100%);
  }
}
:root[data-theme="dark"] .status-pill::after {
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.14) 45%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.14) 55%, transparent 100%);
}
:root[data-theme="light"] .status-pill::after {
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.35) 55%, transparent 100%);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

/* 70% dwell before the sweep begins moving */
@keyframes shimmer-sweep {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

/* ---- Hero fanned card deck ---------------------------------------------- */
.hero-stack {
  position: relative;
  width: 620px;
  max-width: 100%;
  height: 680px;
  margin: 0 auto;
}
.hero-stack .card-mat {
  position: absolute;
  top: 0;
  left: 50%;
}
.hs-front {
  width: 300px;
  transform: translate(-50%, 0) rotate(0deg);
  z-index: 3;
}
.hs-left {
  width: 280px;
  transform: translate(calc(-50% - 140px), 40px) rotate(-7deg);
  z-index: 1;
  filter: brightness(0.98);
}
.hs-right {
  width: 280px;
  transform: translate(calc(-50% + 140px), 56px) rotate(7deg);
  z-index: 2;
}

/* Load-in animation — plays once on paint, not scroll-triggered */
@media (prefers-reduced-motion: no-preference) {
  .hero-stack .card-mat {
    opacity: 0;
  }
  .hero-stack .card-mat.hs-front {
    animation: hero-in-front 500ms cubic-bezier(0.16,1,0.3,1) 150ms forwards;
  }
  .hero-stack .card-mat.hs-left {
    animation: hero-in-left 700ms cubic-bezier(0.16,1,0.3,1) 270ms forwards;
  }
  .hero-stack .card-mat.hs-right {
    animation: hero-in-right 700ms cubic-bezier(0.16,1,0.3,1) 370ms forwards;
  }
}
@keyframes hero-in-front {
  from { opacity: 0; transform: translate(-50%, 0) rotate(0deg) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, 0) rotate(0deg) scale(1); }
}
@keyframes hero-in-left {
  from { opacity: 0; transform: translate(-50%, 0) rotate(0deg) scale(0.98); }
  to   { opacity: 1; transform: translate(calc(-50% - 140px), 40px) rotate(-7deg) scale(1); }
}
@keyframes hero-in-right {
  from { opacity: 0; transform: translate(-50%, 0) rotate(0deg) scale(0.98); }
  to   { opacity: 1; transform: translate(calc(-50% + 140px), 56px) rotate(7deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack .card-mat {
    opacity: 0;
    animation: hero-in-reduced 150ms linear forwards;
  }
  .hero-stack .card-mat.hs-left { animation-delay: 0ms; }
  .hero-stack .card-mat.hs-right { animation-delay: 0ms; }
}
@keyframes hero-in-reduced {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    grid-template-areas:
      "copy  stack"
      "cta   stack";
    column-gap: 56px;
    row-gap: 32px;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-cta-row { grid-area: cta; align-self: start; }
  .hero-stack { grid-area: stack; align-self: center; }
}

@media (max-width: 899px) {
  .hero {
    padding: 120px 20px 64px;
    text-align: left;
  }
  .hero-copy { max-width: 100%; }
  .hero-stack {
    width: 260px;
    height: auto;
  }
  .hero-stack .hs-left,
  .hero-stack .hs-right {
    display: none;
  }
  .hero-stack .card-mat.hs-front {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    transform: none !important;
  }
  @media (prefers-reduced-motion: no-preference) {
    .hero-stack .card-mat.hs-front {
      animation-name: hero-in-front-mobile;
    }
  }
  @keyframes hero-in-front-mobile {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* ==========================================================================
   Acts — L / C / R slot gallery system
   ========================================================================== */
.act {
  max-width: 1120px;
  margin: 0 auto;
  padding: 160px 32px;
}
.act-header {
  max-width: 640px;
  margin-bottom: 64px;
}
.act-kicker {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.act-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.act-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 520px;
}

.act-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
/* .card-slot is a pure grid/layout item — per MODIFICATION 1 the rotation
   and visual transform live on the .card-mat it contains, not here. The
   slot only carries grid placement + the permanent vertical stagger. */
.card-slot {
  grid-row: 1;
  position: relative;
}
.card-slot .card-mat {
  /* A definite `width` (not just max-width) is required here: .card-mat is
     inline-block (shrink-to-fit) and its img is width:100%. If the mat's
     own width were left as "auto", the two would depend on each other —
     harmless once the image has loaded, but for off-screen `loading="lazy"`
     images still pending a network fetch, that circular auto-sizing
     collapses the whole mat (and the img's reserved aspect-ratio box with
     it) to near-zero, causing real layout shift as each image loads in.
     A definite width breaks the cycle; max-width keeps it responsive. */
  width: 320px;
  max-width: 100%;
  transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
}
.slot-L {
  grid-column: 1 / span 6;
  justify-self: start;
}
.slot-L .card-mat { --rot: -2.5deg; --delay: 0ms; }

.slot-R {
  grid-column: 7 / span 6;
  justify-self: start;
  margin-top: 40px;
}
.slot-R .card-mat { --rot: -1.5deg; }
/* Stagger order is by rendered position: two-card acts (I, IV) have R as
   the 2nd card (120ms); three-card acts (II, III) have R as the 3rd (240ms). */
.act-cards.two-up .slot-R .card-mat { --delay: 120ms; }
.act-cards.three-up .slot-R .card-mat { --delay: 240ms; }

.slot-C {
  grid-column: 5 / span 6;
  justify-self: end;
  margin-top: 140px;
  z-index: 2;
}
.slot-C .card-mat { --rot: 2deg; --scale: 1.05; --delay: 120ms; }

/* Bug fix (found in manual visual QA, not caught by automated review): the
   base grid-column placement above puts .slot-C and .slot-R at nearly
   identical horizontal positions (~88% of their width overlapping), which
   combined with .slot-C's higher z-index and larger scale left .slot-R
   almost entirely hidden behind it in every three-card act. Desktop-only
   three-up acts switch to a simple centered flex row with a deliberate,
   modest 56px overlap (~17.5% of card width) instead — all three cards
   stay clearly readable while still keeping the layered "flanking" feel.
   Scoped to min-width:900px so it never competes with the mobile
   single-column stack below, which needs its own specificity untouched. */
@media (min-width: 900px) {
  .act-cards.three-up {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .act-cards.three-up .slot-L { margin-top: 0; z-index: 1; }
  .act-cards.three-up .slot-C { margin-left: -56px; margin-top: 140px; z-index: 2; }
  .act-cards.three-up .slot-R { margin-left: -56px; margin-top: 40px; z-index: 1; }
}

@media (max-width: 899px) {
  .act {
    padding: 96px 20px;
  }
  .act-header {
    margin-bottom: 40px;
  }
  .act-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    padding: 0 6vw;
  }
  .card-slot {
    grid-column: auto;
    justify-self: center;
    margin-top: 0;
  }
  .slot-L .card-mat, .slot-R .card-mat {
    --rot: 0deg;
  }
  .slot-C .card-mat {
    --rot: 0deg;
    --scale: 1.03;
  }
}

/* ==========================================================================
   Scroll-reveal + ambient float (§9)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .card-slot .card-mat,
  .act-kicker,
  .act-title,
  .act-body {
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.16,1,0.3,1),
                transform 700ms cubic-bezier(0.16,1,0.3,1);
    transition-delay: var(--delay, 0ms);
  }
  .card-slot .card-mat {
    transform: translateY(24px) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }
  .act-kicker, .act-title, .act-body {
    transform: translateY(24px);
  }
  .act-kicker { --delay: 0ms; }
  .act-title  { --delay: 80ms; }
  .act-body   { --delay: 160ms; }

  .card-slot.is-visible .card-mat {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }
  .act-kicker.is-visible,
  .act-title.is-visible,
  .act-body.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Ambient float — starts only once revealed, per-card phase offset via
     --index so cards never breathe in sync. */
  .card-slot.is-visible .card-mat {
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * -0.9s);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0)   rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
  50%      { transform: translateY(-6px) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .card-slot .card-mat,
  .act-kicker,
  .act-title,
  .act-body {
    opacity: 0;
    transition: opacity 200ms linear;
  }
  .card-slot .card-mat {
    /* Already in final rotated/scaled position — only opacity animates. */
    transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }
  .card-slot.is-visible .card-mat,
  .act-kicker.is-visible,
  .act-title.is-visible,
  .act-body.is-visible {
    opacity: 1;
  }
}

/* ---- Desktop hover tilt --------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .act-cards .card-mat {
    transform-style: preserve-3d;
  }
  .act-cards .card-mat:hover {
    box-shadow: var(--card-shadow-hover);
  }
}

/* ==========================================================================
   Trust section — "A note on privacy"
   ========================================================================== */
.trust {
  padding: 140px 32px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.trust-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card-paper);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 48px 40px;
  transform: rotate(-0.5deg);
  box-shadow: var(--card-shadow);
}
.trust-kicker {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.trust-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 18px;
}
.trust-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.trust-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.trust-link:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .trust { padding: 88px 20px; }
  .trust-card { padding: 36px 24px; transform: none; }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing-cta {
  padding: 180px 32px 120px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.closing-kicker {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.closing-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.closing-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-bottom: 32px;
}
.closing-cta .cta-row {
  justify-content: center;
}

@media (max-width: 899px) {
  .closing-cta { padding: 96px 20px 64px; }
}

/* ==========================================================================
   Footer — always a dark colophon (MODIFICATION 2), same in every theme
   ========================================================================== */
footer.site-footer {
  background: var(--colophon-bg);
  color: var(--colophon-text);
  padding: 64px 32px 48px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  display: block;
}
.footer-brand span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
}
.footer-tagline {
  font-size: 15px;
  color: var(--colophon-text);
  opacity: 0.85;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  margin-bottom: 32px;
}
footer.site-footer a {
  color: var(--colophon-accent);
  text-decoration: none;
}
footer.site-footer a:hover {
  text-decoration: underline;
}
.footer-legal {
  font-size: 13px;
  margin-top: 32px;
  border-top: 1px solid rgba(245,239,230,0.16);
  padding-top: 20px;
  color: rgba(245,239,230,0.6);
}

/* ==========================================================================
   Legal pages (privacy.html / terms.html) — chrome only, text untouched
   ========================================================================== */
main.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
main.legal .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
main.legal h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  margin: 8px 0 10px;
  color: var(--ink);
}
main.legal .intro {
  color: var(--muted);
  font-size: 18px;
}
main.legal h2 {
  font-size: 19px;
  font-weight: 650;
  margin: 34px 0 6px;
  color: var(--ink);
}
main.legal p {
  color: var(--muted-2);
  margin-bottom: 12px;
}
main.legal a {
  color: var(--accent);
}
