/* LiveDeck marketing site
   Mobile first. Colours and type live in the tokens below. */

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Light: The Living Page */
  --paper: #F3F1EC;
  --card: #FBFAF7;
  --ink: #121A24;
  --ink-2: #3D4550;
  --stone: #5E625F;
  --line: #E2DED5;
  --line-2: #C9CFC9;
  --moss: #2F6B4F;
  --moss-deep: #1F4A37;
  --moss-soft: #EEF3EF;
  --mist: #DCE4DE;
  --spark: #DDF46B;
  /* Dark: Deep Calm */
  --abyss: #0B1719;
  --tide: #132A2E;
  --tide-2: #1A3337;
  --tide-line: #24434A;
  --foam: #EAF2EF;
  --foam-2: #B9C8C4;
  --haze: #9DB0AC;
  --sea: #8ED6C1;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--moss); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.is-dark :focus-visible { outline-color: var(--sea); }
::selection { background: var(--spark); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss);
  margin-bottom: 18px;
}
.is-dark .eyebrow { color: var(--sea); }
.display {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(3rem, 9.4vw, 6rem);
}
.h2 {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2.25rem, 5.6vw, 3.9rem);
}
.h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.is-dark .lede { color: var(--foam-2); }
.muted { color: var(--ink-2); }
.is-dark .muted { color: var(--foam-2); }
.mark {
  background: linear-gradient(var(--spark), var(--spark)) no-repeat 0 88% / 0% 0.42em;
  transition: background-size 0.9s 0.3s var(--ease);
  padding: 0 0.04em; margin: 0 -0.04em;
}
.mark.is-on { background-size: 100% 0.42em; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--moss); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--moss); color: #fff; }
.is-dark .btn--primary { background: var(--sea); color: var(--abyss); }
.is-dark .btn--primary:hover { background: var(--foam); color: var(--abyss); }
.is-dark .btn--ghost { border-color: var(--haze); color: var(--foam); }
.is-dark .btn--ghost:hover { background: var(--foam); color: var(--abyss); border-color: var(--foam); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Wordmark: the dot of the i is a small page that breathes */
.wordmark {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 1;
  color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; font-size: 1.85rem;
}
.wordmark:hover { color: inherit; }
.wordmark__i { position: relative; display: inline-block; }
.wordmark__dot {
  position: absolute; left: 50%; top: 0.08em; width: 0.15em; height: 0.15em; margin-left: -0.075em;
  background: var(--moss); border-radius: 0.025em; animation: breathe 3s ease-in-out infinite;
}
.is-dark .wordmark__dot, .wordmark--light .wordmark__dot { background: var(--spark); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.68); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* The blur sits on a layer behind, not on the header itself. A filter on the
   header would trap the fixed mobile menu inside the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 241, 236, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
html.menu-open .site-header::before { background: var(--paper); }
html.menu-open { overflow: hidden; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 10px 12px; border-radius: 8px; display: inline-block;
}
.nav a:not(.btn):hover { background: var(--mist); }
.nav .btn { min-height: 44px; padding: 0.6em 1.15em; margin-left: 8px; }
.menu-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); z-index: 49; background: var(--paper);
  padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  font-family: var(--serif); font-size: 2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 24px; }
@media (min-width: 960px) {
  .nav { display: block; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Sections */
.section { padding: clamp(80px, 12vw, 148px) 0; position: relative; }
.is-dark { background: var(--abyss); color: var(--foam); }
.is-dark a:not(.btn) { color: var(--sea); }
.is-dark a:not(.btn):hover { color: var(--foam); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin-bottom: 22px; }
.section-head--split { max-width: none; display: grid; gap: 20px 64px; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; } .section-head--split .lede { margin: 0; } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(72px, 10vw, 120px); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; } }
.hero .display { margin-bottom: 26px; }
.hero__lede { margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.95rem; color: var(--ink-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--moss); flex-shrink: 0; }
@media (max-width: 480px) { .hero__ctas .btn { flex: 1 1 100%; } }

/* The hero page: a flat PDF page that comes alive */
.hp-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.hp-wrap::before {
  content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; top: 4%;
  background: radial-gradient(closest-side, rgba(142, 214, 193, 0.45), rgba(142, 214, 193, 0));
  opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
}
.hp-wrap.is-alive::before { opacity: 1; }
.hp {
  position: relative; width: min(100%, 400px); background: #fff; color: #8A8C88;
  border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 5vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: border-radius .8s var(--ease), box-shadow .8s var(--ease), border-color .8s, color .6s, transform .8s var(--ease);
  transform: rotate(-1.2deg);
}
.hp-wrap.is-alive .hp {
  color: var(--ink); border-radius: 18px; border-color: #CFDAD2; transform: none;
  box-shadow: 0 40px 70px -30px rgba(31, 74, 55, 0.5), 0 2px 6px rgba(0,0,0,.04);
}
.hp__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: inherit; opacity: .8; }
.hp__count { position: relative; display: inline-flex; align-items: center; }
.hp__pdf { transition: opacity .4s; }
.hp__dots { position: absolute; right: 0; display: flex; gap: 4px; opacity: 0; transition: opacity .5s .3s; }
.hp__dots i { width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.hp__dots i.on { width: 18px; background: var(--moss); }
.hp-wrap.is-alive .hp__pdf { opacity: 0; }
.hp-wrap.is-alive .hp__dots { opacity: 1; }
.hp__title { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.7rem); line-height: 1.1; margin: 0; color: inherit; }
.hp__stat { position: relative; align-self: flex-start; font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 3.2rem); line-height: 1; margin: 0; color: #A4A6A2; transition: color .6s; font-variant-numeric: tabular-nums; }
.hp__stat::before {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: 2px; height: 0.42em; background: var(--spark); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .8s .35s var(--ease); z-index: 0;
}
.hp__stat span { position: relative; }
.hp-wrap.is-alive .hp__stat { color: var(--ink); }
.hp-wrap.is-alive .hp__stat::before { transform: scaleX(1); }
.hp__chart { position: relative; }
.hp__bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 10px; height: 124px; border-bottom: 1px solid #D9D9D6; }
.hp__bars li { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.hp__bar {
  position: relative; width: 100%; height: var(--h); padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: #D9D9D6; transition: border-radius .6s; font: inherit;
}
.hp__bar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c);
  transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: var(--d);
}
.hp-wrap.is-alive .hp__bar { border-radius: 5px 5px 0 0; background: transparent; }
.hp-wrap.is-alive .hp__bar::after { transform: scaleY(1); }
.hp__bar[aria-pressed="true"]::after { background: var(--ink); }
.hp__bar:focus-visible { outline-offset: 2px; }
.hp__spot {
  position: absolute; right: 9%; top: -14px; width: 20px; height: 20px; pointer-events: none;
  opacity: 0; transform: scale(.4); transition: opacity .4s 1.1s, transform .5s 1.1s var(--ease);
}
.hp__spot::before, .hp__spot::after { content: ""; position: absolute; border-radius: 50%; }
.hp__spot::before { inset: 4px; background: var(--moss); box-shadow: 0 0 0 3px #fff; }
.hp__spot::after { inset: 0; border: 2px solid var(--moss); animation: ld-ring 2.2s ease-out infinite; }
.hp-wrap.is-alive .hp__spot { opacity: 1; transform: none; }
.hp-wrap.has-picked .hp__spot { opacity: 0; transition-delay: 0s; }
.hp__lines { display: flex; flex-direction: column; gap: 8px; transition: opacity .5s, max-height .6s var(--ease); max-height: 60px; overflow: hidden; }
.hp__lines i { display: block; height: 8px; border-radius: 4px; background: #E9E9E6; }
.hp__lines i:nth-child(2) { width: 86%; }
.hp__lines i:nth-child(3) { width: 62%; }
.hp-wrap.is-alive .hp__lines { opacity: 0; max-height: 0; }
.hp__readout {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--moss-soft); color: var(--ink); border-radius: 10px; padding: 0 14px; font-size: 0.92rem;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s .6s var(--ease), opacity .5s .7s, padding .6s .6s var(--ease);
}
.hp__readout strong { font-variant-numeric: tabular-nums; }
.hp-wrap.is-alive .hp__readout { max-height: 80px; opacity: 1; padding: 10px 14px; }
.hp__hint { font-size: 0.82rem; margin: -4px 0 0; opacity: 0; transition: opacity .2s; color: var(--stone); }
.hp-wrap.is-alive .hp__hint { opacity: 1; transition: opacity .5s 1s; }
.hp-toggle { position: relative; }
.hp-toggle .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--moss); animation: breathe 3s ease-in-out infinite; }

/* Problem */
.problem__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .problem__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.files { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
.file {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--tide); border: 1px solid var(--tide-line); color: var(--foam-2); font-size: 0.95rem;
}
.file svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--haze); }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__tag { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--tide-line); white-space: nowrap; }
.file:nth-child(2) { margin-left: 18px; opacity: .94; }
.file:nth-child(3) { margin-left: 36px; opacity: .88; }
.file:nth-child(4) { margin-left: 54px; opacity: .82; }
.problem__list { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; gap: 1px; background: var(--tide-line); border: 1px solid var(--tide-line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .problem__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .problem__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.problem__list li { background: var(--abyss); padding: clamp(24px, 3vw, 32px); }
.problem__list h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; color: var(--foam); }
.problem__list p { margin: 0; color: var(--foam-2); font-size: 1rem; }
.problem__close { margin: clamp(40px, 6vw, 64px) 0 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em; }
.problem__close span { color: var(--sea); }

/* Feature tour */
.tour { display: grid; gap: 24px; }
@media (min-width: 960px) { .tour { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; } }
.tour__list {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.tour__list::-webkit-scrollbar { display: none; }
.tour__tab {
  font: inherit; font-weight: 600; font-size: 0.95rem; white-space: nowrap; scroll-snap-align: start;
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
}
.tour__tab .n { font-family: var(--serif); font-weight: 400; color: var(--stone); font-size: 0.95rem; }
.tour__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tour__tab[aria-selected="true"] .n { color: var(--spark); }
@media (min-width: 960px) {
  .tour__list { flex-direction: column; margin: 0; padding: 0; overflow: visible; gap: 2px; position: sticky; top: calc(var(--header-h) + 24px); }
  .tour__tab { width: 100%; border: 0; border-radius: 12px; padding: 12px 16px; font-size: 1.02rem; justify-content: flex-start; white-space: normal; text-align: left; }
  .tour__tab:hover { background: var(--mist); }
  .tour__tab[aria-selected="true"] { background: var(--ink); }
}
.tour__panel { outline-offset: 6px; }
.tour__frame {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 24px; min-height: 420px;
  box-shadow: 0 30px 60px -40px rgba(18, 26, 36, 0.35);
}
.tour__frame.ld-scope {
  --ld-font-display: var(--serif); --ld-ink: var(--ink); --ld-ink-2: var(--ink-2); --ld-surface: #FFFFFF;
  --ld-surface-2: var(--moss-soft); --ld-line: var(--line); --ld-accent: var(--moss); --ld-accent-soft: var(--mist);
  --ld-highlight: var(--spark); --ld-focus: var(--moss);
}
.tour__head { display: flex; flex-direction: column; gap: 6px; }
.tour__head .h3 { margin: 0; }
.tour__head p { margin: 0; color: var(--ink-2); }
.tour__demo { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tour__note { font-size: 0.82rem; color: var(--stone); margin: 0; display: flex; gap: 8px; align-items: center; }
.tour__note::before { content: ""; width: 6px; height: 6px; background: var(--moss); border-radius: 1px; }

.basics { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .basics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.basics li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.basics svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--moss); margin-top: 2px; }
.basics strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.basics span { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }

/* Demo */
.demo { background: var(--abyss); overflow: hidden; }
.demo__switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--tide); border: 1px solid var(--tide-line); margin-bottom: 28px;
}
.demo__switch button {
  font: inherit; font-weight: 600; font-size: 0.98rem; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: transparent; color: var(--foam-2); cursor: pointer;
}
.demo__switch button[aria-pressed="true"] { background: var(--foam); color: var(--abyss); }
.demo__stage { position: relative; padding: 0 0 26px; }
.demo__stage::before, .demo__stage::after {
  content: ""; position: absolute; border-radius: 26px; z-index: 0; left: 3%; right: 3%; top: 18px; bottom: 6px;
}
.demo__stage::before { background: var(--tide); transform: rotate(1.6deg); }
.demo__stage::after { background: var(--tide-2); transform: rotate(-1deg); left: 1.5%; right: 1.5%; top: 9px; bottom: 16px; }
.demo__frame {
  position: relative; z-index: 1; width: 100%; height: min(78svh, 700px); min-height: 520px;
  border: 1px solid var(--tide-line); border-radius: 24px; overflow: hidden; background: var(--tide);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
@media (min-width: 760px) { .demo__frame { height: auto; aspect-ratio: 16 / 10; min-height: 0; max-height: 80vh; } }
.demo__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 20px; color: var(--foam-2); font-size: 0.95rem; }
.demo__bar a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.demo__bar svg { width: 18px; height: 18px; }
.keys { display: inline-flex; gap: 6px; align-items: center; }
.keys kbd {
  font: inherit; font-size: 0.8rem; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--tide-line);
  display: inline-grid; place-content: center; color: var(--foam);
}

/* Security */
.security { background: var(--tide); }
.security__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .security__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; align-items: start; } }
.secure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .secure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.secure-list li { padding: 24px; border-radius: 18px; background: var(--abyss); border: 1px solid var(--tide-line); }
.secure-list svg { width: 26px; height: 26px; color: var(--sea); margin-bottom: 14px; display: block; }
.secure-list h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; color: var(--foam); }
.secure-list p { margin: 0; color: var(--foam-2); font-size: 0.98rem; }
.access {
  background: var(--abyss); border: 1px solid var(--tide-line); border-radius: 24px; padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
@media (min-width: 1000px) { .access { position: sticky; top: calc(var(--header-h) + 24px); } }
.access__url {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tide); color: var(--foam);
  font-size: 0.95rem; overflow: hidden;
}
.access__url svg { width: 18px; height: 18px; color: var(--sea); flex-shrink: 0; }
.access__url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.access__head h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--foam); }
.access__live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--foam-2); white-space: nowrap; }
.access__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--sea); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tide-line); }
.people .av {
  width: 38px; height: 38px; border-radius: 50%; background: var(--tide-2); color: var(--foam); display: grid; place-content: center;
  font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.people .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.people .who strong { color: var(--foam); font-weight: 600; font-size: 0.98rem; }
.people .who span { color: var(--haze); font-size: 0.86rem; }
.people .state { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.people .state--open { background: rgba(142, 214, 193, 0.16); color: var(--sea); }
.people .state--wait { border: 1px solid var(--tide-line); color: var(--haze); }
.people .state--removed { color: var(--haze); text-decoration: line-through; }
.people li.is-removed .who strong { color: var(--haze); }
.people .remove {
  font: inherit; font-size: 0.84rem; font-weight: 600; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--tide-line); background: transparent; color: var(--foam-2); cursor: pointer;
}
.people .remove:hover { border-color: var(--foam-2); color: var(--foam); }
.access__foot { margin: 0; font-size: 0.86rem; color: var(--haze); }

/* Who it's for */
.who-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .who-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .who-card { grid-column: span 2; } .who-card:nth-child(4) { grid-column: 1 / span 3; } .who-card:nth-child(5) { grid-column: span 3; } }
.who-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
}
.who-card svg { width: 30px; height: 30px; color: var(--moss); margin-bottom: 8px; }
.who-card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.01em; }
.who-card p { margin: 0; color: var(--ink-2); }
.who-card .docs { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.who-card .docs span { font-size: 0.82rem; padding: 5px 11px; border-radius: 999px; background: var(--moss-soft); color: var(--moss-deep); font-weight: 500; }
.who-card--agency { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.who-card--agency svg { color: var(--spark); }
.who-card--agency p { color: #C5CBD3; }
.who-card--agency .docs span { background: rgba(221, 244, 107, 0.14); color: var(--spark); }
.who-card--agency a { color: var(--spark); }

/* How it works */
.how { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; position: relative; }
.step__n { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--moss); letter-spacing: -0.03em; }
.step h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.step p { margin: 0; color: var(--ink-2); }
.step__deck { position: absolute; right: 24px; top: 30px; width: 34px; height: 40px; }
.step__deck i { position: absolute; width: 24px; height: 30px; border-radius: 5px; }
.step__deck i:nth-child(1) { left: 0; top: 10px; background: var(--line-2); }
.step__deck i:nth-child(2) { left: 5px; top: 5px; background: #8FB19C; }
.step__deck i:nth-child(3) { left: 10px; top: 0; background: var(--moss); }

/* Pricing */
.prices { display: grid; gap: 14px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3.4vw, 36px);
  display: flex; flex-direction: column; gap: 16px;
}
.price--main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); }
.price--main .price__label { color: var(--spark); }
.price h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.price__amount { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.025em; }
.price__amount small { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; color: var(--ink-2); display: block; margin-top: 8px; }
.price--main .price__amount small { color: #C5CBD3; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; }
.price li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--moss); }
.price--main li svg { color: var(--spark); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price--main .btn--primary { background: var(--spark); color: var(--ink); }
.price--main .btn--primary:hover { background: var(--paper); color: var(--ink); }
.prices__note { margin: 24px 0 0; color: var(--ink-2); font-size: 0.98rem; max-width: 52em; }

/* Proof and about */
.proof__quote { margin: 0 0 clamp(64px, 9vw, 110px); max-width: 60rem; }
.proof__quote blockquote { margin: 0; }
.proof__quote blockquote p {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 28px;
}
.proof__quote blockquote p::before { content: "\201C"; color: var(--sea); margin-left: -0.45em; padding-right: 0.06em; }
.proof__quote blockquote p::after { content: "\201D"; color: var(--sea); }
.proof__quote figcaption { color: var(--foam-2); display: flex; align-items: center; gap: 14px; }
.proof__quote figcaption::before { content: ""; width: 32px; height: 1px; background: var(--haze); }
.about { display: grid; gap: 40px; border-top: 1px solid var(--tide-line); padding-top: clamp(48px, 7vw, 72px); }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about .h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; }
.about__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about__facts li { padding: 20px; border-radius: 18px; background: var(--tide); border: 1px solid var(--tide-line); }
.about__facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.05; color: var(--foam); letter-spacing: -0.02em; }
.about__facts span { color: var(--foam-2); font-size: 0.95rem; }
.about__people { grid-column: 1 / -1; }
.endorse { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--foam-2); margin-top: 8px; }
.endorse svg { width: 22px; height: 22px; color: var(--sea); }

/* FAQ */
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } .faq__grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.25; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; position: relative; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: var(--paper); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq summary:hover .plus { border-color: var(--ink); }
.faq .answer { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 40em; }
.faq .answer p:last-child { margin: 0; }

/* Contact */
.contact { background: var(--abyss); }
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.contact__aside ul { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--foam-2); }
.contact__aside li { display: flex; gap: 12px; align-items: flex-start; }
.contact__aside li svg { width: 20px; height: 20px; color: var(--sea); flex-shrink: 0; margin-top: 3px; }
.form {
  background: var(--tide); border: 1px solid var(--tide-line); border-radius: 24px; padding: clamp(22px, 4vw, 40px);
  display: grid; gap: 18px;
}
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.98rem; color: var(--foam); }
.field label .opt { font-weight: 400; color: var(--haze); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--foam); background: var(--abyss);
  border: 1.5px solid var(--tide-line); border-radius: 12px; padding: 13px 14px; min-height: 52px; width: 100%;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23B9C8C4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #7C918D; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3A5F66; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
.field [aria-invalid="true"] { border-color: #F0A08C; }
.field__error { color: #F4B3A2; font-size: 0.9rem; margin: 0; }
.field__error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__foot .btn { min-width: 200px; }
.form__small { font-size: 0.88rem; color: var(--haze); margin: 0; }
.form__status { margin: 0; padding: 16px 18px; border-radius: 12px; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { background: rgba(142, 214, 193, 0.14); color: var(--sea); }
.form__status.is-error { background: rgba(240, 160, 140, 0.12); color: #F4B3A2; }
.form.is-sent .field, .form.is-sent .form__foot, .form.is-sent .cf-turnstile { display: none; }
.cf-turnstile { min-height: 65px; }

/* Footer */
.site-footer { background: var(--abyss); color: var(--foam-2); border-top: 1px solid var(--tide-line); padding: 56px 0 40px; font-size: 0.95rem; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--foam); font-size: 2.2rem; margin-bottom: 14px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--foam); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--sea); text-decoration: underline; }
.endorsed-by { display: inline-flex; align-items: center; gap: 10px; color: var(--foam); }
.endorsed-by svg { width: 20px; height: 20px; color: var(--sea); }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--tide-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.86rem; color: var(--haze); }
.footer__legal p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Simple pages: privacy, thanks, 404 */
.page-simple { padding: clamp(48px, 9vw, 110px) 0; min-height: 60vh; }
.page-simple .prose { max-width: 44rem; }
.page-simple .prose h2 { font-family: var(--serif); font-size: 1.7rem; margin: 2em 0 0.5em; }
.page-simple .prose ul { padding-left: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Keyframes shared with components */
@keyframes ld-ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Refinements after the first desktop and phone check */
.h2:not(:last-child) { margin-bottom: 22px; }
.section-head--split .lede + p { margin-top: 14px; }
.about__facts { align-content: start; }
.about__facts strong { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
.site-footer .endorsed-by { display: inline-flex; }
.site-footer .wordmark { display: inline-flex; }
@media (max-width: 640px) {
  .demo__switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .demo__switch button { border-radius: 14px; padding: 8px 10px; line-height: 1.25; font-size: 0.92rem; }
  .step__n { font-size: 2.6rem; }
  .form__foot .btn { width: 100%; }
  .basics li { padding: 18px; }
}
@media (hover: none) { .demo__bar .keys { display: none; } }
@media (max-width: 440px) { .people .av { display: none; } }
@media (max-width: 959px) {
  .tour__list { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 64px; }
}
.tour__count { display: none; font-size: 0.85rem; color: var(--stone); margin: -10px 0 0; }
@media (max-width: 959px) { .tour__count { display: block; } }

/* ===== Hero with the live sample straight underneath ===== */
.hero { padding: clamp(28px, 6vw, 72px) 0 0; overflow: visible; }
.hero__intro { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__intro .eyebrow { margin-bottom: 14px; }
.hero__intro .display { font-size: clamp(2.75rem, 8vw, 6.2rem); max-width: 12ch; margin-bottom: 20px; }
.hero__intro .lede { margin: 0 auto 26px; max-width: 34em; }
.hero__intro .hero__ctas { justify-content: center; margin-bottom: clamp(28px, 5vw, 48px); }
@media (max-width: 480px) {
  .hero__intro .hero__ctas .btn { flex: 0 1 auto; padding: 0.75em 1.2em; }
  .hero__intro .lede { font-size: 1.05rem; margin-bottom: 20px; }
  .hero__intro .eyebrow { font-size: 0.72rem; }
}
.hero__stage {
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 40%, var(--abyss) 40%, var(--abyss) 100%);
  padding-bottom: clamp(8px, 2vw, 16px);
}
.hero__stage .wrap { position: relative; }
.hero__stage .wrap::before, .hero__stage .wrap::after {
  content: ""; position: absolute; z-index: 0; border-radius: 30px; pointer-events: none;
  left: calc(var(--gutter) + 2.5%); right: calc(var(--gutter) + 2.5%); top: -12px; bottom: 64px;
}
.hero__stage .wrap::before { background: var(--mist); transform: rotate(-1.3deg); }
.hero__stage .wrap::after { background: #B9CDBF; transform: rotate(0.9deg); left: calc(var(--gutter) + 1.2%); right: calc(var(--gutter) + 1.2%); top: -6px; bottom: 70px; }
.stage {
  position: relative; z-index: 1; background: var(--abyss); border: 1px solid var(--tide-line); border-radius: 28px; padding: 8px;
  box-shadow: 0 50px 100px -40px rgba(11, 23, 25, 0.6), 0 0 80px -20px rgba(142, 214, 193, 0.35);
}
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 4px 4px 10px 12px; color: var(--foam); }
.stage__label { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.stage__label-more { color: var(--foam-2); font-weight: 400; }
.stage__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sea); flex-shrink: 0; animation: pulse 2.4s ease-in-out infinite; }
.stage .demo__switch { display: inline-flex; width: auto; margin: 0; padding: 4px; border-radius: 999px; gap: 2px; }
.stage .demo__switch button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 0.92rem; }
.stage .demo__frame {
  border-radius: 20px; border: 0; box-shadow: none; min-height: 0;
  height: clamp(470px, calc(100svh - var(--header-h) - 120px), 660px);
}
@media (min-width: 760px) {
  .stage .demo__frame { height: auto; aspect-ratio: 16 / 10; max-height: min(76vh, 720px); }
}
.hero__stage .demo__bar { color: var(--foam-2); margin-top: 18px; position: relative; z-index: 1; }
.hero__stage .demo__bar a { color: var(--sea); }
.hero__stage .demo__bar a:hover { color: var(--foam); }
.hero__stage :focus-visible { outline-color: var(--sea); }
.hero__stage .demo__bar > span { max-width: 36em; }
@media (max-width: 560px) {
  .stage { border-radius: 22px; padding: 6px; }
  .stage .demo__frame { border-radius: 16px; }
  .stage__bar { padding: 2px 2px 8px 8px; }
  .stage__label-more { display: none; }
  .stage .demo__switch button { padding: 0 12px; font-size: 0.86rem; min-height: 38px; }
  .hero__stage .wrap::before, .hero__stage .wrap::after { border-radius: 24px; }
}
/* the dark band carries straight on into the problem section */
.hero + .is-dark { padding-top: clamp(64px, 9vw, 120px); }

/* The PDF page that wakes up, now in the problem section */
.bridge { display: grid; gap: 40px; align-items: center; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 960px) { .bridge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.bridge .problem__close { margin: 0 0 14px; }
.bridge .hp-wrap::before { background: radial-gradient(closest-side, rgba(142, 214, 193, 0.28), rgba(142, 214, 193, 0)); }
.problem__grid > *, .bridge > * { min-width: 0; }
.hero { padding-top: clamp(24px, 5vw, 56px); }
.hero__intro .display { font-size: clamp(2.75rem, 7.4vw, 5.6rem); }
@media (max-width: 560px) {
  .stage__bar { flex-wrap: nowrap; }
  .stage__label { font-size: 0.88rem; gap: 8px; white-space: nowrap; }
  .stage__label-word { display: none; }
}
@media (max-width: 400px) {
  .hero__intro .lede { font-size: 1rem; line-height: 1.5; }
  .hero__intro .display { margin-bottom: 14px; }
}

/* Sharing modes and duration */
.modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode { padding: clamp(24px, 3vw, 32px); border-radius: 20px; background: var(--abyss); border: 1px solid var(--tide-line); display: flex; flex-direction: column; gap: 10px; }
.mode h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--foam); }
.mode p { margin: 0; color: var(--foam-2); }
.mode__tag { align-self: flex-start; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(142, 214, 193, 0.14); color: var(--sea); }
.mode:first-child { background: var(--foam); border-color: var(--foam); }
.mode:first-child h3 { color: var(--abyss); }
.mode:first-child p { color: #3C524F; }
.mode:first-child .mode__tag { background: var(--abyss); color: var(--spark); }
.mode__eg { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--tide-line); font-size: 0.92rem; }
.mode:first-child .mode__eg { border-top-color: #C9D6D2; }
.duration { margin-top: 14px; display: grid; gap: 1px; background: var(--tide-line); border: 1px solid var(--tide-line); border-radius: 20px; overflow: hidden; }
@media (min-width: 700px) { .duration { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duration > div { background: var(--tide); padding: 24px clamp(24px, 3vw, 32px); }
.duration h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--foam); margin-bottom: 6px; }
.duration p { margin: 0; color: var(--foam-2); }
.security__sub { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.015em; color: var(--foam); margin: clamp(56px, 8vw, 88px) 0 24px; }

/* Who it's for: six cards */
@media (min-width: 1100px) {
  .who-grid .who-card, .who-grid .who-card:nth-child(4), .who-grid .who-card:nth-child(5) { grid-column: span 2; }
}

/* ===== Before and after: a report page as a PDF, then as a LiveDeck ===== */
.compare-head { max-width: 46rem; margin: clamp(56px, 8vw, 96px) 0 28px; }
.compare-head .problem__close { margin: 0 0 14px; }
.compare__switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 18px; background: var(--tide); border: 1px solid var(--tide-line); margin-bottom: 18px; }
.compare__switch button { font: inherit; font-weight: 600; font-size: 0.92rem; min-height: 44px; padding: 6px 10px; border-radius: 14px; border: 0; background: transparent; color: var(--foam-2); cursor: pointer; line-height: 1.2; }
.compare__switch button[aria-pressed="true"] { background: var(--foam); color: var(--abyss); }
.compare__panes { display: grid; gap: 28px; align-items: start; }
@media (max-width: 959px) {
  .compare:not(.show-after) .pane--after { display: none; }
  .compare.show-after .pane--before { display: none; }
}
@media (min-width: 960px) {
  .compare__switch { display: none; }
  .compare__panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
.pane { margin: 0; min-width: 0; }
.pane figcaption { display: flex; align-items: center; gap: 12px; color: var(--foam); font-weight: 600; margin-bottom: 14px; }
.pane__tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: #3A4A4D; color: var(--foam); }
.pane__tag--after { background: var(--spark); color: var(--ink); }
.pane__note { margin: 12px 0 0; font-size: 0.9rem; color: var(--foam-2); }
.compare__credit { margin: 24px 0 0; font-size: 0.84rem; color: var(--haze); }

/* The PDF viewer */
.pdfview { border-radius: 14px; overflow: hidden; background: #525659; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.pdfview__bar {
  height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 14px; background: #323639; color: #E8EAED;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 13px; white-space: nowrap;
}
.pdfview__bar svg { width: 16px; height: 16px; flex-shrink: 0; }
.pdfview__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pdfview__box { background: #191B1C; padding: 2px 7px; border-radius: 3px; }
.pdfview__zoom, .pdfview__tools, .pdfview__pages { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .pdfview__zoom, .pdfview__tools { display: none; } }
.pdfview__canvas { padding: clamp(12px, 3vw, 28px); display: flex; justify-content: center; }
.pdfpage {
  container-type: inline-size; width: 100%; max-width: 540px; aspect-ratio: 210 / 297; overflow: hidden;
  background: #FFFFFF; color: #222; box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.pdfpage__in {
  height: 100%; padding: 7cqi 8cqi 5cqi; display: flex; flex-direction: column;
  font-family: Georgia, 'Times New Roman', Times, serif; font-size: 2.05cqi; line-height: 1.45; text-align: left;
}
.pdfpage p { margin: 0; }
.pdfpage__running { display: flex; justify-content: space-between; font-family: Arial, Helvetica, sans-serif; font-size: 1.6cqi; color: #6E6E6E; border-bottom: 0.2cqi solid #999; padding-bottom: 1cqi; margin-bottom: 4cqi; }
.pdfpage__h { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 3.5cqi; color: #1A1A1A; margin-bottom: 2.4cqi !important; }
.pdfpage__p { text-align: justify; hyphens: auto; margin-bottom: 2cqi !important; }
.pdfpage__cap { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 1.75cqi; color: #333; margin: 1.6cqi 0 1.2cqi !important; }
.pdfpage__table { width: 100%; border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 1.7cqi; line-height: 1.25; }
.pdfpage__table th, .pdfpage__table td { border: 0.15cqi solid #9A9A9A; padding: 0.65cqi 1.2cqi; text-align: left; font-weight: 400; }
.pdfpage__table th { background: #D9D9D9; font-weight: 700; }
.pdfpage__table td:not(:first-child), .pdfpage__table th:not(:first-child) { text-align: right; width: 16%; }
.pdfchart { position: relative; height: 20cqi; margin: 0 0 4.5cqi 3cqi; border-left: 0.2cqi solid #666; border-bottom: 0.2cqi solid #666; }
.pdfchart__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.pdfchart__grid i { display: block; border-top: 0.12cqi solid #D9D9D9; }
.pdfchart__bars { position: absolute; inset: 0 0 0 0; display: flex; justify-content: space-around; align-items: flex-end; }
.pdfchart__bars > div { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 0.6cqi; }
.pdfchart__bars span { display: block; width: 4.4cqi; background: #A5A5A5; }
.pdfchart__bars span + span { background: #4472C4; }
.pdfchart__bars b { position: absolute; left: 50%; bottom: -3.2cqi; transform: translateX(-50%); font: 400 1.6cqi Arial, Helvetica, sans-serif; color: #333; }
.pdfchart__key { position: absolute; right: 1cqi; top: -0.5cqi; display: flex; align-items: center; gap: 0.8cqi; font: 400 1.5cqi Arial, Helvetica, sans-serif; color: #333; background: #fff; padding: 0 0.6cqi; }
.pdfchart__key i { width: 1.6cqi; height: 1.6cqi; background: #A5A5A5; display: inline-block; }
.pdfchart__key i.b { background: #4472C4; margin-left: 1cqi; }
.pdfpage__foot { margin-top: auto !important; font: 400 1.5cqi Arial, Helvetica, sans-serif; color: #666; }
.pdfpage__num { font: 400 1.6cqi Arial, Helvetica, sans-serif; color: #666; text-align: center; margin-top: 1.6cqi !important; }

/* The LiveDeck page, in an invented client's brand */
.livepage.ld-scope {
  --ld-ink: #14262B; --ld-ink-2: #4A5D61; --ld-surface: #FFFFFF; --ld-surface-2: #E6F0EF; --ld-line: #D7E3E1;
  --ld-accent: #0F5257; --ld-accent-ink: #FFFFFF; --ld-accent-soft: #CFE3E0; --ld-highlight: #F28C28; --ld-focus: #0F5257;
  --ld-font-display: 'Hanken Grotesk', system-ui, sans-serif; --ld-radius: 14px;
  background: #F5F8F7; color: var(--ld-ink); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
.livepage__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #FFFFFF; border-bottom: 1px solid var(--ld-line); }
.livepage__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livepage__brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.livepage__count { font-size: 0.85rem; color: var(--ld-ink-2); font-variant-numeric: tabular-nums; }
.livepage__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.livepage__progress span { display: block; width: 33%; height: 100%; background: #F28C28; }
.livepage__body { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.livepage__eyebrow { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ld-accent); }
.livepage__title { margin: 0; font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--ld-ink); font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.livepage__hl { background: linear-gradient(rgba(242, 140, 40, 0.45), rgba(242, 140, 40, 0.45)) no-repeat 0 88% / 100% 0.38em; }
.livepage__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.livepage .ld-stat { padding: 14px 16px; gap: 2px; }
.livepage .ld-stat__num { font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.03em; }
.livepage .ld-stat:first-child .ld-stat__num { color: var(--ld-accent); }
.livepage .ld-stat__label { font-size: 0.86rem; }
.livepage .ld-chart { gap: 10px; background: #FFFFFF; border: 1px solid var(--ld-line); border-radius: 14px; padding: 14px 16px 12px; }
.livepage__charthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.livepage__charttitle { margin: 0; font-weight: 700; font-size: 0.92rem; }
.livepage .ld-toggles button { min-height: 36px; padding: 0 14px; font-size: 0.86rem; }
.livepage .ld-chart__bars { height: clamp(110px, 14vw, 150px); margin-top: 14px; }
.livepage .ld-chart__bars li .ld-chart__bar { background: var(--ld-accent); }
.livepage .ld-chart__bars li:nth-child(3) .ld-chart__bar { background: #F28C28; }
.livepage .ld-acc summary { min-height: 46px; padding: 10px 16px; font-size: 0.95rem; }
.livepage .ld-acc details > div { font-size: 0.92rem; }
.livepage__nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #FFFFFF; border-top: 1px solid var(--ld-line); margin-top: auto; }
.livepage__btn { font-size: 0.85rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ld-line); color: var(--ld-ink-2); }
.livepage__btn--next { background: var(--ld-accent); border-color: var(--ld-accent); color: #FFFFFF; }
.livepage__dots { display: flex; gap: 5px; }
.livepage__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ld-line); }
.livepage__dots i.on { width: 18px; background: #F28C28; }

/* ===== Local and guide pages ===== */
.local-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.local-hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14ch; margin-bottom: 22px; }
.local-hero .lede { margin-bottom: 26px; }
.local-hero .hero__ctas { margin-bottom: 40px; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.answer-box { max-width: 52rem; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); border-left-width: 1px; }
.answer-box__label { margin: 0 0 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); }
.answer-box p:last-child { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.local-copy { padding-top: 0; }
.local-copy__grid { display: grid; gap: 20px 72px; }
@media (min-width: 960px) { .local-copy__grid { grid-template-columns: 0.9fr 1.1fr; } }
.prose-block p { color: var(--ink-2); font-size: 1.08rem; }
.sector-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sector-grid .who-card { background: var(--paper); border-color: transparent; }
.cta-band__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .cta-band__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: end; } }
.cta-band__sub { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); margin-bottom: 14px; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .area-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--tide-line); background: var(--tide); color: var(--foam) !important; text-decoration: none; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.area-card svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sea); transition: transform .2s var(--ease); }
.area-card:hover { border-color: var(--sea); }
.area-card:hover svg { transform: translateX(3px); }
.area-card--light { background: var(--paper); border-color: transparent; color: var(--ink) !important; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; min-height: 72px; }
.area-card--light svg { color: var(--moss); }
.area-card--light:hover { border-color: var(--moss); }
.guide__body { max-width: 44rem; }
.guide__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -0.015em; margin: 1.8em 0 0.5em; }
.guide__body h2:first-child { margin-top: 0; }
.guide__body p { color: var(--ink-2); font-size: 1.08rem; }
.guide__cta { margin-top: 2em; }
@media (min-width: 1100px) { .footer__grid--4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
@media (min-width: 640px) and (max-width: 1099px) { .footer__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sector-grid .who-card { grid-column: auto !important; }
.section:not(.how) .step { background: var(--card); border: 1px solid var(--line); }
.local-hero__title { max-width: 16ch; }

/* ===== Case study ===== */
.cs-top { padding-top: 0; }
.cs-hero { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(18, 26, 36, 0.45); border: 1px solid var(--line); }
.cs-hero img, .cs-feature img, .cs-phone img, .case-teaser img { display: block; width: 100%; height: auto; }
.cs-facts { margin: 28px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 760px) { .cs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-facts > div { background: var(--card); padding: 18px 20px; }
.cs-facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.cs-facts dd { margin: 0; font-weight: 500; }
.cs-live { margin: 24px 0 0; }
.cs-feature { margin: 0 0 clamp(40px, 6vw, 72px); display: grid; gap: 20px 56px; align-items: center; }
@media (min-width: 960px) {
  .cs-feature { grid-template-columns: 1.4fr 0.9fr; }
  .cs-feature--flip { grid-template-columns: 0.9fr 1.4fr; }
  .cs-feature--flip img { order: 2; }
}
.cs-feature img { border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(18, 26, 36, 0.5); }
.cs-feature h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 10px; }
.cs-feature p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.cs-also { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--paper); }
.cs-also h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.cs-also ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-also li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; }
.cs-phone { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cs-phone { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.cs-phone img { border-radius: 20px; }

/* Homepage case study teaser */
.case-teaser {
  display: grid; gap: 24px; align-items: center; margin: 0 0 clamp(64px, 9vw, 110px);
  padding: clamp(14px, 2vw, 18px); border-radius: 26px; background: var(--tide); border: 1px solid var(--tide-line);
  text-decoration: none; color: var(--foam) !important; transition: border-color .2s;
}
@media (min-width: 900px) { .case-teaser { grid-template-columns: 1.2fr 1fr; gap: 48px; padding-right: 48px; } }
.case-teaser:hover { border-color: var(--sea); }
.case-teaser img { border-radius: 16px; }
.case-teaser__body { padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 12px; }
.case-teaser__title { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--foam); }
.case-teaser p { margin: 0; color: var(--foam-2); }
.case-teaser__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sea); }
.case-teaser__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.case-teaser:hover .case-teaser__link svg { transform: translateX(3px); }
.cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 400px) { .cs-facts > div { padding: 14px 16px; } .cs-facts dd { font-size: 0.95rem; } }

/* Case study cards (index page and homepage) */
.case-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.case-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink) !important;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .2s, transform .3s var(--ease);
}
.case-card:hover { border-color: var(--moss); transform: translateY(-2px); }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card__body { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 3vw, 28px); }
.case-card__body .eyebrow { margin-bottom: 2px; }
.case-card__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.case-card__text { color: var(--ink-2); }
.case-card__more { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--moss); }
.case-card__more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.case-card:hover .case-card__more svg { transform: translateX(3px); }
.is-dark .case-card { background: var(--tide); border-color: var(--tide-line); color: var(--foam) !important; }
.is-dark .case-card:hover { border-color: var(--sea); }
.is-dark .case-card__text { color: var(--foam-2); }
.is-dark .case-card__more { color: var(--sea); }
.case-studies-home { margin: 0 0 clamp(64px, 9vw, 110px); }
.case-studies-home__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 22px; }
.case-studies-home__head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; color: var(--foam); }

/* ===== Mobile test pass fixes ===== */
/* Phone hero frame: as tall as the screen allows */
@media (max-width: 759px) {
  .stage .demo__frame { height: clamp(500px, calc(100svh - var(--header-h) - 84px), 720px); }
  .hero__stage .demo__bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__stage .demo__bar a[data-demo-open] {
    justify-content: center; min-height: 52px; border-radius: 999px; background: var(--sea); color: var(--abyss) !important; font-weight: 600; text-decoration: none;
  }
}
/* Tablets held upright: use the height */
@media (min-width: 760px) and (max-width: 1100px) and (orientation: portrait) {
  .stage .demo__frame { aspect-ratio: auto; height: min(70vh, 860px); max-height: none; }
}
/* Phones on their side */
@media (orientation: landscape) and (max-height: 500px) {
  .stage .demo__frame { aspect-ratio: auto; height: max(300px, calc(100svh - var(--header-h) - 24px)); max-height: none; }
}
/* Narrow phones: shorter switch labels */
@media (max-width: 380px) {
  .demo__switch .long { display: none; }
  .stage__label { font-size: 0.82rem; }
}
/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .site-footer a, .crumbs a, .demo__bar a, .case-studies-home__head a, .wordmark, .privacy-home, .endorse, .endorsed-by { min-height: 44px; display: inline-flex !important; align-items: center; }
  .stage .demo__switch button, .compare__switch button { min-height: 44px; }
  .people .remove { min-height: 44px; }
}
/* Nothing under 12px */
.eyebrow { font-size: max(0.75rem, 12px); }
@media (max-width: 480px) { .hero__intro .eyebrow { font-size: 0.75rem; } }
.pane__tag { font-size: 0.78rem; }

/* Full-screen sample on phones */
.deck-overlay { position: fixed; inset: 0; z-index: 200; background: var(--abyss); display: flex; flex-direction: column; }
.deck-overlay[hidden] { display: none; }
.deck-overlay__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(6px, env(safe-area-inset-top)) 10px 6px 16px; color: var(--foam); font-weight: 600; font-size: 0.92rem; }
.deck-overlay__bar button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--tide-line); background: var(--tide); color: var(--foam); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.deck-overlay__bar button svg { width: 16px; height: 16px; }
.deck-overlay iframe { flex: 1; width: 100%; border: 0; background: var(--tide); }
html.has-overlay, html.has-overlay body { overflow: hidden; }
@media (pointer: coarse) { .contact__aside a, .site-footer li a { min-height: 44px; display: inline-flex; align-items: center; } .site-footer ul { gap: 0; } }
@media (max-width: 759px) { .hero__stage .wrap::before, .hero__stage .wrap::after { bottom: 150px; } }

/* =====================================================================
   Brand texture
   One system everywhere: a smooth colour field (where there is one)
   with the same fine grain on top. Art comes from scripts/brand_art.py.
   ===================================================================== */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
:root {
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --lilac: #C3B1F4;
  --grain: url('/assets/img/brand/grain.png');
  --grain-size: 200px;
}
@supports (background-image: image-set(url('a.png') 1x)) {
  :root { --grain: image-set(url('/assets/img/brand/grain.png') 1x, url('/assets/img/brand/grain@2x.png') 2x); }
}

/* the grain on every surface */
body,
.section, .is-dark, .site-footer, .how__panel {
  background-image: var(--grain);
  background-size: var(--grain-size);
}

/* Labels in mono, with a small square, like a proof mark */
.eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; font-size: max(0.76rem, 12px); }
.eyebrow::before { content: "\25A0"; display: inline-block; margin-right: 0.7em; font-size: 0.8em; transform: translateY(-0.08em); color: var(--moss); }
.is-dark .eyebrow::before { color: var(--spark); }
.tag {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.55em 1.3em;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--mono); font-weight: 500; font-size: max(0.74rem, 12px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}

/* Hero: a soft colour field behind the headline */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--header-h) * -1); height: 88%;
  background: var(--grain) 0 0 / var(--grain-size), url('/assets/img/brand/field-light.webp') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
/* the dark band behind the live sample gets the colour field */
.hero__stage { position: relative; isolation: isolate; background: transparent; }
.hero__stage::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 40%; bottom: 0;
  background: var(--grain) 0 0 / var(--grain-size), url('/assets/img/brand/field-dark.webp') center bottom / cover no-repeat, var(--abyss);
}
.hero__stage::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(transparent, var(--abyss));
}
.hero__stage .demo__bar { color: var(--foam); }

/* How it works: the pixel panel beside the mint panel */
.how__split { display: grid; border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 760px) { .how__split { grid-template-columns: 1fr 1fr; } }
.how__dither {
  min-height: 200px; background: var(--lilac) url('/assets/img/brand/dither.png') left top / 900px auto repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
@media (min-width: 760px) { .how__dither { min-height: 380px; } }
.how__panel { background-color: var(--sea); color: #102620; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.how__panel .eyebrow, .how__panel .eyebrow::before { color: #102620; }
.how__panel .h2 { color: #102620; margin-bottom: 18px; }
.how__panel .lede { color: #1D4038; margin: 0; }
.how__panel .tag { align-self: flex-start; color: #102620; }

/* Dark sections with a quiet field in the corner */
#about, .contact {
  background-color: var(--abyss);
  background-image: var(--grain), url('/assets/img/brand/field-quiet.webp');
  background-size: var(--grain-size), cover;
  background-position: 0 0, right top;
  background-repeat: repeat, no-repeat;
}
@media (max-height: 640px) {
  .mobile-nav { padding-top: 12px; }
  .mobile-nav a:not(.btn) { font-size: 1.6rem; padding: 8px 0; }
  .mobile-nav .btn { margin-top: 16px; }
}

/* How it works: two ways in */
.ways { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 760px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.way__label { display: block; font: 500 max(0.74rem, 12px)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); margin-bottom: 12px; }
.way h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
.way p { margin: 0; color: var(--ink-2); max-width: 34em; }
.price__amount small { line-height: 1.45; }

/* Pricing typography: the name leads, the price terms sit under a rule */
.price { gap: 0; }
.price__label { font-family: var(--mono); font-weight: 500; font-size: max(0.74rem, 12px); letter-spacing: 0.08em; margin-bottom: 14px; }
.price h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.35rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 22px; }
.price__amount {
  font-family: var(--sans); font-weight: 600; font-size: 1.08rem; line-height: 1.35; letter-spacing: 0;
  margin: 0 0 24px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.price__amount small { font-weight: 400; font-size: 0.93rem; line-height: 1.5; margin-top: 4px; }
.price--main .price__amount { border-color: rgba(243, 241, 236, 0.16); }
.price ul { gap: 12px; margin-bottom: 30px; }
.price li { font-size: 0.97rem; line-height: 1.5; }
.price li svg { margin-top: 4px; }
