/*
 * AuraFilm public site - landing page (/) plus the two legal pages.
 *
 * The palette below mirrors src/theme/colors.ts one-for-one and the wordmark
 * uses the same display face as the app (fonts.ts -> Playfair 700 Bold Italic).
 * If a token changes in the app, change it here too - these pages are the only
 * public surface where the brand appears outside the store listing.
 *
 * Playfair is self-hosted rather than pulled from fonts.googleapis.com on
 * purpose: a Google Fonts request hands the reader's IP address to a third
 * party, which is an odd thing for a privacy policy to do. Licence in
 * playfair-OFL.txt.
 */

@font-face {
  font-family: "Playfair";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/playfair-italic.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;
}

/* ------------------------------------------------------------------ tokens */

/*
 * Dark is the base rather than the override. The app has no light mode, so the
 * black page is the real design and light is the courtesy - and a browser that
 * cannot evaluate prefers-color-scheme should land on the real one.
 */
:root {
  /* Brand marks. Identical in both themes; these are the app icon's colours. */
  --accent: #ffd24a;
  --accent-end: #ff8a1f;
  --accent-gradient: linear-gradient(100deg, var(--accent), var(--accent-end));

  --display: "Playfair", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* src/theme/colors.ts */
  --bg: #000000;
  --surface: #121212;
  --surface-elevated: #1e1e1e;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #a0a0a0;

  /*
   * Accent for ink rather than for decoration. #ffd24a reads at 14.6:1 on
   * black and at 1.4:1 on paper white, so light mode cannot reuse it for text.
   */
  --accent-ink: var(--accent);
  --accent-underline: rgba(255, 210, 74, 0.35);
  --on-accent: #000000;

  /*
   * Same split, one step up: --accent-gradient fills shapes that carry their
   * own dark text (the PRO chips) or sit on top of a photograph, so it stays
   * bright in both themes. --accent-gradient-ink is for gradients read against
   * the page itself - the big numerals, the wordmark, the callout rail - and it
   * has to darken on paper or it disappears.
   */
  --accent-gradient-ink: var(--accent-gradient);

  --hairline: rgba(255, 255, 255, 0.08);
  --veil: rgba(0, 0, 0, 0.72);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  --gutter: 20px;

  color-scheme: dark;
}

/*
 * The light values live in two identical blocks on purpose. One answers the
 * system preference, the other answers an explicit choice from the toggle, and
 * a single selector list cannot express "system says light, unless the reader
 * overrode it to dark".
 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf9f5;
    --surface: #ffffff;
    --surface-elevated: #f3efe7;
    --border: #e3dcd0;
    --text: #17140f;
    --muted: #6b6355;
    --accent-ink: #8a5200;
    --accent-underline: rgba(138, 82, 0, 0.32);
    --on-accent: #ffffff;
    --accent-gradient-ink: linear-gradient(100deg, #8a5200, #b3560c);
    --hairline: rgba(23, 20, 15, 0.08);
    --veil: rgba(251, 249, 245, 0.78);
    --shadow: 0 18px 40px rgba(58, 46, 26, 0.12);

    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --surface-elevated: #f3efe7;
  --border: #e3dcd0;
  --text: #17140f;
  --muted: #6b6355;
  --accent-ink: #8a5200;
  --accent-underline: rgba(138, 82, 0, 0.32);
  --on-accent: #ffffff;
  --accent-gradient-ink: linear-gradient(100deg, #8a5200, #b3560c);
  --hairline: rgba(23, 20, 15, 0.08);
  --veil: rgba(251, 249, 245, 0.78);
  --shadow: 0 18px 40px rgba(58, 46, 26, 0.12);

  color-scheme: light;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding: 0 0 80px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Film-edge hairline: the one place the accent gradient reads full width. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  z-index: 30;
}

::selection {
  background: var(--accent);
  color: #000000;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Landing sections breathe wider than a column of legal prose. */
.wrap-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- wordmark */

.brand {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-bottom: 24px;
}

.brand .aura {
  color: var(--accent-ink);
}

/* Matches the amber-to-orange ring in the app icon. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .brand .aura {
    background-image: var(--accent-gradient-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.brand .film {
  color: var(--text);
}

.app-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/*
 * The masthead on the two legal pages. Scoped to `.wrap >` because .topbar is
 * also a <header>, and it wants none of this.
 */
.wrap > header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

/* ------------------------------------------------------------------- type */

h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.effective {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 48px 0 12px;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 32px 0 8px;
}

p,
li {
  color: var(--text);
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--muted);
}

a {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-underline);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--accent-end);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

strong {
  font-weight: 650;
}

/* --------------------------------------------------------------- callouts */

.callout {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px 20px 26px;
  margin: 28px 0;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent-gradient-ink);
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------- index rows */

.index-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-links li {
  margin-bottom: 10px;
}

.index-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.index-links a::after {
  content: "\203A";
  color: var(--accent-ink);
  font-size: 22px;
  line-height: 1;
}

.index-links a:hover {
  background: var(--surface-elevated);
  border-color: var(--accent-ink);
  color: var(--text);
}

/* ===================================================================
 * Shared chrome - top bar and theme toggle, on all three pages.
 * =================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--veil);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.topbar .brand {
  font-size: 22px;
  margin: 0;
  margin-right: auto;
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-ink);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/*
 * The button shows the theme it would switch you to, so the sun appears while
 * the page is dark. Same three-way structure as the tokens: dark is the base,
 * the media query answers the system, the attribute answers the reader.
 */
.theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: block;
  }
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ===================================================================
 * Landing page
 * =================================================================== */

/*
 * padding-top, never the `padding` shorthand: these elements are also
 * .wrap-wide, and the shorthand silently resets its padding-inline, which
 * leaves every section flush against the screen edge on a phone.
 */
.section {
  padding-top: 72px;
}

.section > h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ------------------------------------------------------------------- hero */

/*
 * Centred rather than left-aligned. The comparison below runs the full content
 * width, and a left-hung column of copy above it leaves a conspicuous hole on
 * the right at desktop sizes.
 */
.hero {
  padding-top: 56px;
  text-align: center;
}

.hero .app-icon {
  margin: 0 auto 20px;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 16px;
  font-size: clamp(38px, 7vw, 62px);
}

.hero-sub {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-sub strong {
  color: var(--text);
}

/*
 * Store row. Our own pills, not Apple's and Google's official badge artwork -
 * that artwork comes from their marketing resources and can replace these
 * without touching anything else. Both pills are live links
 * (.store-pill-live); a bare .store-pill is the muted, inert look for a store
 * whose listing does not exist yet.
 */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: default;
}

.store-pill svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text);
}

/* The one that goes somewhere reads at full strength and answers the pointer. */
.store-pill-live {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.store-pill-live:hover {
  color: var(--text);
  border-color: var(--muted);
  background: var(--surface-elevated);
}

.store-pill-live:focus-visible {
  border-radius: 999px;
}

.store-note {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.store-note .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-gradient-ink);
  vertical-align: 1px;
}

/* ------------------------------------------------- before / after compare */

.ba {
  --pos: 50%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 0;
  touch-action: pan-y;
}

.ba-img {
  display: block;
  width: 100%;
  height: auto;
}

.ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent-gradient);
  pointer-events: none;
}

.ba-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* The two chevrons on the handle. */
.ba-divider::before {
  content: "\2039\00a0\203A";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: #000000;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

/*
 * The real control. Invisible, full-bleed, and the only thing that moves the
 * divider - which is what gives the comparison keyboard and touch support for
 * free instead of a pointer-event handler that only works with a mouse.
 */
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  background: transparent;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 46px;
  height: 200px;
  cursor: ew-resize;
}

.ba-range::-moz-range-thumb {
  width: 46px;
  height: 200px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
}

/* Focus lives on the frame, since the input itself is transparent. */
.ba:has(.ba-range:focus-visible) {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  pointer-events: none;
}

.ba-tag-l {
  left: 14px;
}

.ba-tag-r {
  right: 14px;
  color: var(--accent);
}

.ba-caption,
.section-note {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero .ba-caption {
  margin-inline: auto;
}

.section-note {
  margin-top: 18px;
}

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.stat {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.stat-n {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background-image: var(--accent-gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-l {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------------------------------------- looks rail */

.looks-rail {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.looks-rail::-webkit-scrollbar {
  height: 8px;
}

.looks-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--border);
}

.look {
  position: relative;
  flex: 0 0 clamp(190px, 44vw, 232px);
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.look:hover {
  border-color: var(--accent-ink);
  transform: translateY(-3px);
}

.look img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.look-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 15px 15px;
}

.look-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.look-cat {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.badge-pro {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

/* --------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.feature {
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-elevated);
  color: var(--accent-ink);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

/* -------------------------------------------------------------------- lab */

/*
 * Film Look runs the full width: it is the tool every plan opens, and the one
 * the Lab began as. The six below are .feature cards in two labelled rows.
 */
.lab-lead {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
}

.lab-lead .feature-icon {
  flex: none;
  margin-bottom: 0;
}

.lab-lead p {
  max-width: 62ch;
}

/* Same voice as .eyebrow: it labels a row of cards, it is not a heading to read. */
.lab-group {
  margin: 30px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.lab-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lab-tool {
  position: relative;
}

/* .badge-pro sits 12px in on a photograph; a card's padding wants more. */
.lab-tool .badge-pro {
  top: 18px;
  right: 18px;
}

/* -------------------------------------------------------------- editorial */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-top: 32px;
}

.editorial-copy h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.24;
  margin: 0 0 16px;
}

.editorial-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.editorial-copy p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- privacy */

.facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.facts li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}

.facts li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient-ink);
}

.facts strong {
  color: var(--text);
  font-weight: 650;
}

/* -------------------------------------------------------------------- pro */

.pro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 28px;
  padding: 34px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.pro-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pro-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.25;
}

.pro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.perks li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.perks svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--accent-ink);
}

/* ---------------------------------------------------------------- support */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.support-card {
  padding: 26px 26px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.support-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.support-card p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- footer */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

/*
 * Scoped like `.wrap > header`: this gutter is for the row of links closing the
 * legal pages, and it must not reach an inline link inside a sentence.
 */
.wrap > footer a {
  margin-right: 18px;
}

.site-footer {
  margin-top: 88px;
  padding-top: 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.site-footer .brand {
  font-size: 24px;
  margin: 0;
  margin-right: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-ink);
}

/* Explicit colour: the bare `p` rule outranks the muted one on <footer>. */
.colophon {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------- responsiveness */

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Prose first, picture second - the picture is the payoff, not the setup. */
  .editorial .ba {
    order: 2;
    max-width: 460px;
  }

  .pro-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  /* One per row, icon beside the words, so six tools do not become six screens. */
  .lab-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lab-tool {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 20px 22px;
  }

  .lab-tool .feature-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .lab-tool h3,
  .lab-tool p {
    grid-column: 2;
  }

  /* Room for the PRO chip, which is out of flow in the top-right corner. */
  .lab-tool h3 {
    padding-right: 52px;
  }

  .nav {
    gap: 16px;
  }

  /* The rail and the toggle survive; the in-page anchors are the first to go. */
  .nav a {
    display: none;
  }
}

/*
 * Below this width a three-column table degrades into one word per line, which
 * is exactly the spreadsheet feeling the app avoids. Each row becomes its own
 * card instead, labelled from the td's data-label.
 */
@media (max-width: 560px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
  }

  td {
    padding: 6px 0;
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.6;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  .wrap > header {
    padding-top: 44px;
  }

  .brand {
    font-size: 28px;
  }

  .topbar .brand {
    font-size: 20px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 19px;
  }

  .section {
    padding-top: 56px;
  }

  .section > h2 {
    font-size: 25px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  /* The two pills stack here; one width keeps the stack from looking ragged. */
  .store-pill {
    min-width: 220px;
    justify-content: center;
  }

  .pro-card {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .look:hover {
    transform: none;
  }
}
