/* ============================================================
   Talisk HQ — shared landing stylesheet
   One source of truth for the marketing site design system.
   Linked by every page under landing/. Page-specific styles
   stay inline in each page's <style> block.

   Brand: bronze #b87a45 · wordmark grey #78756f · dark #0e1013
   Fonts: IBM Plex Mono (brand/labels) · DM Sans (copy)
   Link-color rules carry :link/:visited variants on purpose —
   see CLAUDE.md "Link styling" (a:link UA rule beats class-only).
   ============================================================ */

/* ── Self-hosted webfonts ──────────────────────────────────
   Served from our own origin, so no request leaves for a third
   party to render this page. Latin + Latin-ext only: that covers
   English and French, which is the market. DM Sans is a single
   variable file per subset covering 300 to 600.
   ───────────────────────────────────────────────────────── */
/* DM Sans 300 600 · latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/dm-sans-300-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans 300 600 · latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/dm-sans-300-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 300 · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 300 · latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 400 · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 400 · latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 500 · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 500 · latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 600 · latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 600 · latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


:root {
  --bg: #0e1013;
  --surface: #141619;
  --surface-2: #191b1f;
  --text: #e8e6e1;
  --text-mid: #a8a5a0;
  /* was #6b6862, which is 3.43:1 on --bg and fails WCAG AA. It colours the
     nav, the mobile menu and every card description, so it is body text, not
     decoration. #83807a is 4.84:1 and still reads as the dim tier. */
  --text-dim: #83807a;
  --amber: #b87a45;
  --amber-light: #d4a06a;
  --amber-dark: #8a5e30;
  --brand-grey: #78756f;
  --border: #252729;
  --green: #5a9e6f;
  --error: #c45c5c;
  --input-bg: #191b1f;
  --maxw: 1080px;
  --maxw-narrow: 640px;
  --maxw-wide: 1220px;
  /* The one filled control on the marketing site: the primary call to
     action. Cream on the dark ground, never amber (amber is the accent; a
     solid amber block was rejected as too heavy). */
  --cream: #efece6;
  /* Expo-out. Every movement on the site uses this curve so it all feels
     like one material: fast to start, settling at the end. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The nav is sticky, so an anchor target would otherwise land underneath it. */
[id] { scroll-margin-top: 88px; }

/* Keyboard focus. Without this the UA default ring is inconsistent on a dark
   background, and several controls showed no focus at all. */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link: first tab stop, visible only when focused. */
.skip-link,
.skip-link:link,
.skip-link:visited {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Reveal animations ── */
@keyframes smoothIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gentleFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.reveal {
  opacity: 0;
  animation: smoothIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.reveal-fade {
  opacity: 0;
  animation: gentleFade 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* On-scroll reveal (JS toggles .in-view). Starts hidden, eases up. */
.on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.on-scroll.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade { animation: none; opacity: 1; }
  .on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 18px;
}
.section-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 560px;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 16, 19, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-left { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-grey);
  transition: color 0.3s ease;
}
.nav-left:hover .nav-logo { color: var(--text); }
.nav-logo .sep { color: var(--amber); }

.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
/* The anchors are wrapped in <li> (a <ul> may only contain <li>, and screen
   readers need the list semantics). display:contents keeps the flex row. */
.nav-links li { display: contents; }
.nav-links a,
.nav-links a:link,
.nav-links a:visited {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--amber); }

.nav-right { display: flex; align-items: center; gap: 24px; }

/* ── Product menu ──
   The four depth pages (/mail/ /books/ /ecommerce/ /assistant/) live under
   Product. The footer is where people look last; the nav is where they look
   first, and until this existed the nav named none of the products.

   ⚠ `.nav-links li { display: contents }` above generates NO BOX, so
   `position: relative` on such an li does nothing and the panel would anchor
   itself to the nav instead. This one item has to opt back into a box. */
.nav-links li.nav-item-menu {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 178px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}
/* The open panel sits 6px below the trigger (the translateY). Without a bridge
   the pointer crosses that dead space, the li stops being :hover, and the menu
   shuts before it can be reached. This is a transparent descendant of the li,
   so hovering it keeps the menu open.

   ⚠ ITS HEIGHT MUST EQUAL THAT OFFSET AND NO MORE. At 22px — the nav's padding,
   which is the wrong measurement, because the panel is positioned against the
   LI, not the nav — the bridge covered the trigger itself, so with the menu
   open "Product" was no longer clickable: the transparent bridge ate the click.
   Invisible in the markup; a browser reported it immediately as
   `<ul class="nav-menu"> intercepts pointer events`. */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
}
.nav-item-menu:hover > .nav-menu,
.nav-item-menu:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
}
.nav-links .nav-menu li { display: block; }
.nav-links .nav-menu a,
.nav-links .nav-menu a:link,
.nav-links .nav-menu a:visited {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-mid);
  white-space: nowrap;
}
.nav-links .nav-menu a:hover { color: var(--text); background: rgba(184, 122, 69, 0.10); }
.nav-links .nav-menu a.active { color: var(--amber); background: rgba(184, 122, 69, 0.10); }
@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
  .nav-item-menu:hover > .nav-menu,
  .nav-item-menu:focus-within > .nav-menu { transform: translateX(-50%) translateY(6px); }
}

/* The same four, indented, in the phone menu. Smaller and tighter than their
   parents: twelve items at the parent size do not fit a 390x844 screen. */
.mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: -14px;
}
.mobile-menu .mobile-sub a,
.mobile-menu .mobile-sub a:link,
.mobile-menu .mobile-sub a:visited { font-size: 15px; }

.nav-login,
.nav-login:link,
.nav-login:visited {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 12px; }

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  color: var(--amber);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(184, 122, 69, 0.28);
}
.btn-primary:hover {
  border-color: rgba(184, 122, 69, 0.5);
  background: rgba(184, 122, 69, 0.06);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(168, 165, 160, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-cta,
.nav-cta:link,
.nav-cta:visited {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0e1013;
  background: var(--amber);
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--amber);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--amber-light); border-color: var(--amber-light); transform: translateY(-1px); }

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s;
  z-index: 40;
}
.nav-hamburger:hover { color: var(--text); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 35;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a,
.mobile-menu a:link,
.mobile-menu a:visited {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a.active { color: var(--amber); }
.mobile-menu .mobile-cta,
.mobile-menu .mobile-cta:link,
.mobile-menu .mobile-cta:visited {
  font-weight: 500;
  font-size: 16px;
  color: #0e1013;
  background: var(--amber);
  padding: 12px 32px;
  border-radius: 8px;
  border: 1px solid var(--amber);
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo { font-size: 16px; }
.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a,
.footer-col a:link,
.footer-col a:visited {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); font-weight: 300; }
.footer-bottom .footer-note { max-width: 620px; line-height: 1.6; }

/* ── Shared brand mark hover/pulse (used in hero + footer) ── */
@keyframes throb {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.center-dot { transform-origin: 50px 30px; animation: throb 3s ease-in-out infinite; }
.glow-boost { animation: glowPulse 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .center-dot, .glow-boost { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: block; }
  .section { padding: 68px 0; }
  .section-title { font-size: 27px; }
  .section-lead { font-size: 16px; }
}


/* ============================================================
   v2 (2026-09) — the shared pieces the redesigned pages use.
   Additive: every class above still exists for the pages that
   have not been rebuilt yet.
   ============================================================ */

/* ⚠ The UA sheet's `a:link` rule is (0,1,1), so an element-only or class-only
   author rule LOSES to it and any link outside a named component renders
   browser-default blue — see CLAUDE.md "Link styling". This is the site-wide
   default; every component rule below is (0,2,x) or higher and still wins.
   Colour only: a link keeps whatever underline its own context gives it. */
a, a:link, a:visited { color: var(--amber); }

.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 48px; }

/* The primary call to action: cream fill, dark text. One per view. */
.btn-cta,
.btn-cta:link,
.btn-cta:visited {
  color: #0e1013;
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 500;
}
.btn-cta:hover {
  color: #0e1013;
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}
/* The quiet companion beside it: text only, an arrow, no box. */
.btn-ghost,
.btn-ghost:link,
.btn-ghost:visited {
  color: var(--text-mid);
  background: transparent;
  border-color: transparent;
  padding-left: 14px;
  padding-right: 14px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: transparent; }
.btn-ghost .arrow { transition: transform 0.25s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-pill { border-radius: 999px; }

/* Load choreography: the hero's few elements arrive in order, all inside
   0.9s. --i is the element's slot (0, 1, 2 ...). */
@keyframes v2-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-rise-shot {
  from { opacity: 0; transform: translateY(40px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.ld {
  opacity: 0;
  animation: v2-rise 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.ld-shot {
  opacity: 0;
  animation: v2-rise-shot 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* Scroll reveal: hidden until the observer sees it, then it rises into
   place. Siblings stagger by --i. Same curve as the load. */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.rv-shot { transform: translateY(30px) scale(0.985); }
.rv.in { opacity: 1; transform: none; }

/* A screenshot in a frame: the app as a window on the page. */
.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #141619;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.5);
}
.frame img { display: block; width: 100%; height: auto; }
.frame-sm { border-radius: 10px; }

/* Home-scale type. Display sizes clamp on width so a phone gets a 42px
   headline and a desktop an 82px one, both at the same optical weight. */
/* ── Page headline ──
   ONE type scale for every page's h1. It used to be ten hand-written rules: the
   five concept pages each carried a byte-identical copy of one override, and
   about / partners / demo / vs-quickbooks / beta each carried their own near-copy
   that had drifted to 44 / 44 / 46 / 46px on the desktop and 31 / 32 / 33px on a
   phone — differences nobody chose, arrived at by copying the page next door and
   nudging a number.

   Two colour shapes, both declared HERE rather than per page: solid amber (the
   default, the round-3 brand decision), and `.h-display--duo`, a cream headline
   whose closing phrase is amber. The gradient on that phrase was one of three
   different hand-rolled versions; this is the one from /partners/.

   The legal set is deliberately NOT on this scale — those pages render through
   legal.css as documents, not heroes. */
.h-display {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--amber);
  max-width: none;
}
.h-display--duo { color: var(--text); }

/* ── Provenance chain ──
   A stack of real captures on a bronze rail: a figure, the entry that made it,
   the document it came from. Written for the homepage and lifted here when
   /vs-quickbooks/ needed the same shape — copying it into a second page is how
   the ten hand-copied headline rules above happened.

   The rail is child 1 and the figures are children 2-4, so the nth-child widths
   taper the stack. */
.chain { position: relative; padding-left: 36px; display: grid; gap: 40px; }
.chain-rail { position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(to bottom, var(--amber), rgba(184, 122, 69, 0.2)); }
.chain-card { position: relative; margin: 0; border-radius: 10px; background: #141619; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.chain-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.chain-card::before { content: ""; position: absolute; left: -32px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(184, 122, 69, 0.18); }
.chain-tag { position: absolute; right: 12px; top: -12px; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid rgba(184, 122, 69, 0.45); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--amber); }

/* ⚠ NO nth-child WIDTHS HERE. The homepage tapers its stack (92%, 70%) and that
   taper lived in this block for one measurement: /books/, /mail/, /ecommerce/
   and /assistant/ each carry their OWN .chain variant with a different number of
   cards, so a global nth-child rule silently resized four live pages — measured
   as a 36px shift on /books/ the moment the block was promoted. The taper is a
   per-page choice and stays with the page that makes it. */

.h-display .amber {
  background: linear-gradient(135deg, var(--amber-light), var(--amber), var(--amber-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h-section {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.h-feature {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
.lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-mid);
}
.copy {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-mid);
}
.copy strong { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ld, .ld-shot { animation: none; opacity: 1; }
  .rv, .rv-shot { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 768px) {
  .container-wide { padding: 0 20px; }
  .lead { font-size: 17px; }
  .copy { font-size: 16px; }
}
