/* =========================================================
   FTP Manager — Nova brand system (v2)
   Cream + black editorial palette, Geist typography.
   ========================================================= */

:root {
  /* Brand palette — named reference colours.
     These never change. Contextual tokens below pick from them. */
  --c-ink:        #0a0a0b;   /* near-black ink */
  --c-ink-elev:   #1a1a1c;   /* elevated ink (slightly lifted) */
  --c-ink-soft:   #141415;   /* in-between */
  --c-paper:      #f6f5f2;   /* warm off-white */
  --c-paper-elev: #ffffff;   /* lifted paper (white) */
  --c-paper-deep: #ece9e3;   /* recessed paper (warmer cream) */
  --c-mid:        #3a3a3c;   /* dark mid grey */
  --c-mid-elev:   #4a4a4c;   /* lifted mid */
  --c-mid-deep:   #2a2a2c;   /* recessed mid */
  --c-grey:       #7a7a7e;   /* neutral grey */
  --c-spark:      #7c8dae;   /* SPARK — interactive / live state only, ≤5% of any view */
  --c-coral:      #ff8a80;   /* CORAL — static brand decoration (eyebrows, labels) */
  --c-wine:       #5c2b2e;   /* wine for hover/pressed on light surfaces */
  --c-peach:      #f3cbb0;   /* peach soft fill / hover on dark surfaces */

  /* Default contextual tokens — INK ground.
     Hero, Features, Privacy callout, FAQ, CTA, Footer all run on this. */
  --bg:          var(--c-ink);
  --bg-elev:     var(--c-ink-elev);
  --bg-deep:     var(--c-ink-soft);
  --fg:          var(--c-paper);
  --fg-mute:     rgba(246, 245, 242, 0.62);
  --line:        rgba(246, 245, 242, 0.10);
  --line-strong: rgba(246, 245, 242, 0.22);

  --accent:      var(--c-spark);
  --accent-deep: var(--c-peach);

  /* Legacy aliases retained for any inline references */
  --peach:       var(--c-peach);
  --slate:       var(--c-spark);

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Theme is locked to the cream / black brand palette regardless of OS preference. */

/* ----- Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);   /* paints into iOS safe-area edges */
  overflow-x: hidden;      /* defensive: no horizontal scrollbar */
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;      /* belt-and-braces with the html rule above */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 150ms ease;
}
a:hover { text-decoration-color: var(--fg); }

/* ----- Typography ----- */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw + 1rem, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3vw + 0.8rem, 3.2rem); font-weight: 500; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p  { color: var(--fg); }

/* Eyebrow — the editorial mono caps label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
}
.eyebrow .accent { color: var(--c-coral); }   /* warm decoration */

/* Inline mono — for protocol names / tech terms */
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: 500;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--bg-elev); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--fg); }

/* ----- Nav (inline Novalab lockup as the brand on the left) ----- */
/* The mark + wordmark + tagline now sit inside .nav__brand on every page,
   linking through to novalab.uk. The product identity itself appears in the
   hero splash below. */
.brand-bar__mark {
  width: 60px;
  height: 60px;
  display: block;
  color: var(--fg);
  flex-shrink: 0;
}
.brand-bar__wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 2.5rem;         /* ~40px */
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand-bar__nova { color: var(--fg); }
.brand-bar__lab  { color: var(--fg-mute); }
.brand-bar__sep {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0.7;
  /* No margin override — spacing comes from the parent flex gap on both sides
     of the separator, so the dot is equidistant from 'novalab' and the tagline. */
}
.brand-bar__tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1;
  /* Baseline of the tagline lines up with baseline of the wordmark, set by
     the parent's align-items: baseline. No align-self override needed. */
}
/* On narrow viewports drop the tagline + separator so the nav doesn't crowd. */
@media (max-width: 760px) {
  .brand-bar__sep,
  .brand-bar__tagline { display: none; }
}

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px max(var(--gutter), env(safe-area-inset-left)) 18px max(var(--gutter), env(safe-area-inset-right));
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: inline-flex;
  /* Outer: centre-align the mark with the text group. */
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 150ms ease;
}
.nav__brand:hover { text-decoration: none; opacity: 0.85; }
/* Inner text group: baseline-aligned so the tagline sits on the same baseline
   as 'novalab'. Separated from the mark so the mark can centre vertically. */
.brand-bar__text {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}
.nav__by {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.nav__links {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__cta { margin-left: auto; padding: 10px 18px; font-size: 0.85rem; }
@media (min-width: 760px) {
  .nav__links { display: inline-flex; }
  .nav__cta { margin-left: 0; }
}

/* ----- Hero ----- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter);
  text-align: center;
}
@media (min-width: 900px) {
  .hero { padding: 64px var(--gutter); }
}

/* The Nova FTP Manager splash — inlined SVG so Geist + Geist Mono render. */
.hero__splash {
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero__splash svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(10, 10, 11, 0.35);
}
.splash-wordmark {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 141.667px;
  fill: #f6f5f2;
  letter-spacing: -2px;
}
.splash-tagline {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 400;
  font-size: 45.833px;
  fill: #f6f5f2;
  fill-opacity: 0.7;
  letter-spacing: 1px;
}

.hero__sub {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 52ch;
  margin: 0 auto 36px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.hero__tiny {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ----- Sections ----- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px var(--gutter);
}
/* Screenshots section — MID grey context (dark graphite, lighter than ink).
   Re-declares the contextual tokens so every child element (cards, text,
   hover states) picks the right colours automatically. */
.section--alt {
  --bg:          var(--c-mid);
  --bg-elev:     var(--c-mid-elev);
  --bg-deep:     var(--c-mid-deep);
  --fg:          var(--c-paper);
  --fg-mute:     rgba(246, 245, 242, 0.65);
  --line:        rgba(246, 245, 242, 0.10);
  --line-strong: rgba(246, 245, 242, 0.22);
  --accent-deep: var(--c-peach);

  max-width: none;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
/* Protocols section — PAPER context.
   Same contextual-token trick as section--alt: re-declare the tokens and
   everything inside (proto cards, text, hovers) follows automatically. */
.section--invert {
  --bg:          var(--c-paper);
  --bg-elev:     var(--c-paper-elev);
  --bg-deep:     var(--c-paper-deep);
  --fg:          var(--c-ink);
  --fg-mute:     var(--c-grey);
  --line:        rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.22);
  --accent-deep: var(--c-wine);

  max-width: none;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--invert > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head {
  max-width: 760px;
  margin: 0 auto 64px;
}
.section__head--centered { text-align: center; }
.section__head--centered .eyebrow { display: inline-block; }
.section__lede {
  font-size: 1.15rem;
  color: var(--fg-mute);
  margin-top: 16px;
  max-width: 36em;
}
.section__head--centered .section__lede { margin-left: auto; margin-right: auto; }

/* ----- Features ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature {
  padding: 36px 32px;
  background: var(--bg-elev);
  transition: background 150ms ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature:hover { background: var(--bg); }
.feature__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-coral);
}
.feature h3 {
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.feature p {
  color: var(--fg-mute);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ----- Screenshots marquee ----- */
.marquee {
  position: relative;
  width: 100%;
  /* Natively scrollable: trackpad horizontal pan on desktop, touch swipe on
     mobile, hover-pause + auto-scroll handled by JS via scrollLeft. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee::-webkit-scrollbar { display: none; }
.section--alt > .marquee,
.section--invert > .marquee {
  max-width: none;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) * 2);
}
.marquee__track {
  display: flex;
  width: max-content;
  padding: 8px 0 16px;
}
.marquee__track figure {
  margin: 0 24px 0 0;
  flex-shrink: 0;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 720px) {
  .marquee__track figure {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
}
.marquee__track .shot {
  position: relative;
  width: 100%;
  /* Match the source screenshot aspect ratio (724x1501) so the image fills
     edge-to-edge with no clipping and no visible frame around it. */
  aspect-ratio: 724 / 1501;
  overflow: hidden;
}
.marquee__track .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Frame styling only shows when an image is missing — keeps the marquee
   visually consistent during development without sitting on top of real images. */
.marquee__track figure.is-placeholder .shot {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--accent) 14%, transparent) 0 8px,
      transparent 8px 18px),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.marquee__track figure.is-placeholder .shot img { display: none; }

/* On touch devices add scroll-snap so swiping lands cleanly on tile centres. */
@media (hover: none) and (pointer: coarse) {
  .marquee { scroll-snap-type: x proximity; }
  .marquee__track figure { scroll-snap-align: center; }
}
.marquee__track figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 4px;
  max-width: 100%;
}
/* Reduced-motion users still get a swipeable strip; the JS skips its auto-scroll
   loop based on the prefers-reduced-motion media query. */

/* ----- Protocols ----- */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.proto {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 150ms ease;
}
.proto:hover { background: var(--bg); }
.proto__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-coral);
}
.proto h3 {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.proto p {
  color: var(--fg-mute);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

/* ----- Callout ----- */
.callout {
  padding: 100px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.callout__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.callout h2 { font-weight: 500; margin-bottom: 20px; }
.callout p { font-size: 1.15rem; color: var(--fg-mute); }

/* ----- Browser preview (Browser Access section) -----
   Sized to the source asset's exact aspect ratio (1968 × 1192) so the
   reserved space matches the image to the pixel — no layout shift when
   the file lands. The image carries its own alpha channel so the slot
   has no frame, fill, or radius of its own — it sits flush on the
   section background, same as the iPhone screenshots in the marquee.
   Frame styling appears only on .is-placeholder, the same onerror
   pattern used in the screenshots marquee. */
.browser-shot {
  margin: 0 auto 64px;
  max-width: 1100px;
  aspect-ratio: 1968 / 1192;
  position: relative;
}
.browser-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.browser-shot.is-placeholder {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--accent) 14%, transparent) 0 8px,
      transparent 8px 18px),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.browser-shot.is-placeholder img { display: none; }
.browser-shot.is-placeholder::after {
  content: "Browser preview · 1968 × 1192 · drop assets/browser-preview.webp";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* Paper variant — same contextual-token trick as .section--invert.
   Re-declares the tokens so background, text, muted text, and link
   underlines (which read --line-strong) all flip together. */
.callout--invert {
  --bg:          var(--c-paper);
  --bg-elev:     var(--c-paper-elev);
  --bg-deep:     var(--c-paper-deep);
  --fg:          var(--c-ink);
  --fg-mute:     var(--c-grey);
  --line:        rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.22);
  --accent-deep: var(--c-wine);

  background: var(--bg);
  color: var(--fg);
}

/* ----- FAQ ----- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--fg-mute);
  font-weight: 400;
  transition: transform 200ms ease, color 150ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p {
  margin: 14px 0 4px;
  color: var(--fg-mute);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ----- Final CTA — MID grey ground ----- */
/* Final CTA — Paper ground. Same contextual-token trick as .section--invert:
   re-declare the tokens so the primary button (background var(--fg) → ink,
   color var(--bg) → paper) and the wine hover land automatically without
   per-element overrides. */
.cta {
  --bg:          var(--c-paper);
  --bg-elev:     var(--c-paper-elev);
  --bg-deep:     var(--c-paper-deep);
  --fg:          var(--c-ink);
  --fg-mute:     var(--c-grey);
  --line:        rgba(10, 10, 11, 0.10);
  --line-strong: rgba(10, 10, 11, 0.22);
  --accent-deep: var(--c-wine);

  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 120px var(--gutter);
}
.cta h2 { margin-bottom: 32px; font-weight: 500; }

/* ----- Footer — INK ground, single centred column.
   Order: links on top, Nova lockup centred in the middle (larger), trademark
   notice on one line beneath. */
.footer {
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom));
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
/* Footer Nova lockup — stacked signature: mark on top, wordmark + tagline
   below as HTML text (so they inherit Geist/Geist Mono naturally). Static,
   not a link — Nova nav at top of page has the link to novalab.uk. */
.footer__nova {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.footer__nova-mark {
  width: 88px;
  height: 88px;
  display: block;
  color: var(--fg);
}
.footer__nova-wordmark {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 0.85;        /* trims intrinsic line-box whitespace so the gap above and below the wordmark visually matches */
}
.footer__nova-wordmark__nova { color: var(--fg); }
.footer__nova-wordmark__lab  { color: var(--fg-mute); }
.footer__nova-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1;
}
/* Footer wordmark + tagline now rendered as HTML text, see .footer__nova-* above.
   The .nova-lockup__* class rules that targeted SVG <text> elements are no
   longer needed. */
/* keep legacy class around in case it's referenced elsewhere */
.footer__by {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: block;
  margin-top: 4px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__links a {
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__links a:hover { color: var(--fg); }
.footer__links__sep {
  color: var(--fg-mute);
  opacity: 0.5;
  font-size: 0.9rem;
  line-height: 1;
}
.footer__divider {
  width: 100%;
  max-width: 480px;
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.footer__legal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* ----- Reveal animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ----- Legal pages ----- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--gutter) 120px;
}
.legal h1 { font-size: 2.4rem; font-weight: 500; margin-bottom: 8px; }
.legal h2 { margin-top: 2em; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.legal p, .legal li {
  color: var(--fg);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1em;
}
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.legal .disclaimer {
  margin-top: 40px;
  padding: 18px 22px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
