/* ═══════════════════════════════════════════════════════════════════════════
   Recoatly — public website

   The same product as the app (public/css/app.css), set for reading instead
   of working: a quiet grey canvas, white cards lifted by a shadow rather than
   outlined, ink for words, and one blue for the things you press. Large,
   tightly tracked headlines; generous air; nothing decorative.

   Light and dark are both first-class and follow the system setting. Motion
   is a short rise on arrival and nothing at all for anyone who has asked
   their system for less.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Surfaces */
  --canvas: #F5F5F7;
  --paper: #FFFFFF;
  --field: #FFFFFF;

  /* Ink. --ink-3 is for decoration only; it is too light for text. */
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #86868B;

  /* Hairlines and fills */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.16);
  --field-line: #86868B;
  --fill: rgba(120, 120, 128, 0.10);
  --fill-2: rgba(120, 120, 128, 0.18);

  /* The one blue. Filled buttons use --accent (white text, 4.7:1); text
     links use the slightly deeper --link so they hold 4.5:1 on the canvas. */
  --accent: #0071E3;
  --accent-press: #0062C4;
  --link: #0066CC;

  /* Status — information, never decoration */
  --good: #137333;
  --good-bg: rgba(48, 209, 88, 0.14);
  --good-solid: #34C759;
  --bad: #CE2A21;
  --bad-bg: rgba(255, 59, 48, 0.10);

  /* Elevation */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.05);

  /* Geometry */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 980px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4.5vw, 32px);
  --header-h: 56px;

  /* Motion */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --paper: #1C1C1E;
    --field: #000000;

    --ink: #F5F5F7;
    --ink-2: #A1A1A6;
    --ink-3: #8E8E93;

    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.20);
    --field-line: #86868B;
    --fill: rgba(120, 120, 128, 0.24);
    --fill-2: rgba(120, 120, 128, 0.36);

    --accent: #0071E3;
    --accent-press: #0062C4;
    --link: #2997FF;

    --good: #55D97A;
    --good-bg: rgba(48, 209, 88, 0.18);
    --good-solid: #30D158;
    --bad: #FF6961;
    --bad-bg: rgba(255, 69, 58, 0.16);

    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.10);
    --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  }
}

/* ── Base ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
a { color: var(--link); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, 0.22); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
main:focus { outline: none; }

.sr-only {
  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 {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }

.icon { display: inline-block; vertical-align: middle; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

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

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0; }

.section-head { max-width: 780px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head .lede { margin: 16px auto 0; }
.section-more { margin: 32px 0 0; }

.center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-2.flip > :first-child { order: 2; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}
.actions.center { justify-content: center; }

/* ── Type ────────────────────────────────────────────────────────────────── */

.display {
  font-size: clamp(38px, 8vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-md { font-size: clamp(34px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.028em; }
.h-display-sm { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.026em; }
.h-section { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.026em; }
.h-card { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.16; letter-spacing: -0.02em; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

.lede {
  text-wrap: pretty;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 720px;
}
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }

.body-lg { font-size: 19px; line-height: 1.47; letter-spacing: -0.014em; color: var(--ink-2); margin-top: 18px; }

.fine { font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-2); }
.muted { color: var(--ink-2); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ── Buttons and links ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--fill);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms var(--ease), transform 160ms var(--spring);
}
.btn:hover { text-decoration: none; background: var(--fill-2); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-press); }

.btn-lg { min-height: 52px; padding: 0 30px; }
.btn-block { display: flex; width: 100%; }

/* Small on screen, still a 44px target: the ::after widens the hit area. */
.btn-sm { position: relative; min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: 17px;
  letter-spacing: -0.012em;
}
.more-chev { margin-top: 1px; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
/* The mark and the name are ink, in one colour — never the accent. */
.brand-mark { width: 13px; height: 24px; color: var(--ink); }
.brand-word { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

.nav { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: -0.006em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 4px; }

.menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--fill); }
.menu-icon { position: relative; display: block; width: 18px; height: 12px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 260ms var(--spring), top 260ms var(--spring);
}
.menu-icon::before { top: 2px; }
.menu-icon::after { top: 9px; }
.menu[open] .menu-icon::before { top: 5.25px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 5.25px; transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.28);
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.menu-panel a:hover { text-decoration: none; color: var(--ink-2); }

@media (min-width: 860px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
  .menu { display: none; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: -0.006em;
}
.footer-top { display: grid; gap: 32px; }
.footer-brand p { margin: 12px 0 0; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.footer-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: -0.006em; color: var(--ink); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .footer-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 3.4fr); gap: 48px; }
  .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1040px) and (pointer: fine) {
  .footer-col a { min-height: 32px; }
}

/* ── Cards, lists, chips ─────────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.check-icon { margin-top: 4px; color: var(--ink); }
.checks.small { gap: 10px; margin: 16px 0 0; font-size: 15px; }
.checks.small .check-icon { margin-top: 3px; }

.dashes { list-style: none; padding: 0; margin: 16px 0; }
.dashes li { position: relative; padding-left: 22px; margin: 10px 0; }
.dashes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 9px; height: 1.5px;
  background: var(--ink-2);
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15px;
  transition: box-shadow 200ms var(--ease);
}
.chip:hover { box-shadow: var(--shadow-lift); text-decoration: none; }

.h-card + .table-scroll, .h-card + .help-list { margin-top: 20px; }
.card > .tile-icon + h2, .card > .tile-icon + h3 { margin-top: 16px; }
.card > h2 + p, .card > h3 + p { margin-top: 10px; }

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--ink);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: 20px; }
.hero-title { text-wrap: wrap; }
.hero-title > span { display: inline-block; }
.hero-fine { margin: 20px 0 0; }
.hero-stage { margin-top: clamp(40px, 6vw, 80px); }
.hero-plain { padding-bottom: clamp(16px, 3vw, 32px); }

.hero-split .grid-2 { align-items: center; }
.hero-split .actions { margin-top: 28px; }
.hero-split .fine { margin: 16px 0 0; }

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
}
.hero-visual .hv-side { display: none; }
@media (min-width: 1100px) {
  .hero-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; }
  .hero-visual .hv-side { display: block; width: 100%; }
  .hv-left { transform: translateY(36px); }
  .hv-right { transform: translateY(64px); }
  .hv-center { width: 100%; }
  .hero-visual .ui-card { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: site-rise 700ms var(--spring) both; }
  .hero .wrap > :nth-child(2) { animation-delay: 70ms; }
  .hero .wrap > :nth-child(3) { animation-delay: 140ms; }
  .hero .wrap > :nth-child(n + 4) { animation-delay: 200ms; }
  .hero .wrap.hero-stage > * { animation-delay: 260ms; }
  html { scroll-behavior: smooth; }
}
@keyframes site-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes site-drop { from { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* ── The loop ────────────────────────────────────────────────────────────── */

.loop { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; }
.loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 28px;
}
.loop-step::before {
  content: "";
  position: absolute;
  left: 23.5px; top: 56px; bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.loop-step:last-child { padding-bottom: 0; }
.loop-step:last-child::before { display: none; }
.loop-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.loop-step h3 { font-size: 19px; letter-spacing: -0.016em; margin: 2px 0 4px; }
.loop-step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.loop-after { margin: 40px 0 0; text-align: center; color: var(--ink-2); font-size: 19px; letter-spacing: -0.014em; }

@media (min-width: 960px) {
  .loop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; max-width: none; }
  .loop-step { display: block; padding: 0; text-align: center; }
  .loop-step::before { left: calc(50% + 32px); right: calc(16px - 50%); top: 24px; bottom: auto; width: auto; height: 1px; }
  .loop-icon { margin: 0 auto 16px; }
}

/* ── Feature rows ────────────────────────────────────────────────────────── */

.feature-copy .checks { margin-bottom: 20px; }
.feature-visual { min-width: 0; }

.tiles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.tile {
  position: relative;
  padding: 24px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--spring);
}
.tile:hover { box-shadow: var(--shadow-lift); }
.tile h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -0.016em; }
.tile-link { color: var(--ink); }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-link:hover { text-decoration: none; }
.tile-link:focus-visible { outline: none; }
.tile:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 599px) {
  .tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .tile .tile-icon { grid-row: span 2; }
  .tile h3 { margin: 0 0 4px; }
}
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.group-head { margin-bottom: clamp(32px, 5vw, 56px); }
.feature-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feature-card h3 { margin: 16px 0 8px; font-size: 21px; letter-spacing: -0.018em; }
.feature-card p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.not-yet h2, .not-yet h3 { margin-bottom: 10px; }
.not-yet p { color: var(--ink-2); }
.not-yet .fine { margin: 8px 0 0; }
.not-yet.compact { max-width: 800px; margin: 40px auto 0; }
.not-yet.compact h3 { font-size: 19px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

/* One explicit column: an implicit one sizes to the comparison table's width
   and pushes the card past the edge of a 320px screen. */
.price-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: clamp(28px, 5vw, 64px); }
.price-card .h-section { margin-top: 4px; }
.price-copy .actions { margin-top: 28px; }
.price-compare .table-scroll { box-shadow: none; border-radius: 0; background: transparent; }
.price-compare .fine { margin: 16px 0 0; }
@media (min-width: 1000px) {
  .price-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
}

.plan-card { display: grid; gap: 32px; max-width: 920px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); }
.plan-name { font-size: 21px; letter-spacing: -0.018em; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 8px; }
.plan-amount { font-size: clamp(56px, 9vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 19px; color: var(--ink-2); }
.plan-terms { color: var(--ink-2); margin: 0 0 28px; }
/* The yearly price sits under the monthly one, its saving in a green tag:
   a saving is information, so it takes the status colour, not the blue. */
.plan-yearly { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
.plan-yearly strong { color: var(--ink); font-weight: 600; }
.deal {
  padding: 0 10px; border-radius: var(--pill); background: var(--good-bg); color: var(--good);
  font-size: 13px; font-weight: 600; line-height: 24px; letter-spacing: -0.003em; white-space: nowrap;
}
.price-copy .plan-yearly { margin: 18px 0 0; }
.plan-main .fine { margin: 12px 0 0; }
.plan-sub { font-size: 17px; letter-spacing: -0.014em; }
.plan-included { padding-top: 28px; border-top: 1px solid var(--line); }
.plan-included .checks { margin-bottom: 0; }
@media (min-width: 800px) {
  .plan-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .plan-included { padding: 0 0 0 56px; border-top: 0; border-left: 1px solid var(--line); }
}

.include-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.include-group h3 { font-size: 19px; letter-spacing: -0.016em; }
@media (min-width: 640px) { .include-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .include-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.compare-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin: 24px 0 0; }
.compare-more { margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }

.price-band { display: flex; flex-direction: column; gap: 12px; }
.price-band p { margin: 10px 0 0; color: var(--ink-2); }
.price-band .actions { margin-top: 0; gap: 0 24px; }
@media (min-width: 860px) {
  .price-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .price-band .actions { flex: none; }
}

/* ── Comparison tables ───────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.table-scroll:focus-visible { outline-offset: 2px; }

.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.compare-table.two, .compare-table.teaser { min-width: 0; }
.compare-table:not(.two):not(.teaser) { table-layout: fixed; }
.compare-table:not(.two):not(.teaser) thead th:first-child { width: 22%; }
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
.compare-table thead th.ours { color: var(--ink); }
.compare-table tbody th { font-weight: 600; }
.compare-table .num { text-align: right; white-space: nowrap; }
.compare-table .ours { background: var(--fill); }
.compare-table tr.ours > * { background: var(--fill); }
.compare-table:not(.two):not(.teaser) tbody th,
.compare-table:not(.two):not(.teaser) thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  min-width: 140px;
}
.cell-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.opt-line { display: block; }
.opt-line + .opt-line { margin-top: 10px; }
.table-scroll + .fine { margin: 14px 0 0; }

/* ── Trades ──────────────────────────────────────────────────────────────── */

.trade-grid { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.trade-grid > li { display: flex; }
.trade-grid .trade-card { flex: 1; }
.trade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 18px 48px 18px 22px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: box-shadow 200ms var(--ease);
}
.trade-card:hover { box-shadow: var(--shadow-lift); text-decoration: none; }
.trade-name { font-size: 17px; font-weight: 600; letter-spacing: -0.014em; }
.trade-hook { font-size: 15px; color: var(--ink-2); }
.trade-chev { position: absolute; right: 18px; top: 50%; margin-top: -8px; color: var(--link); }
@media (min-width: 600px) { .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* With an odd number of trades the first takes the whole row, so no card is left alone at the end. */
@media (min-width: 600px) and (max-width: 999.98px) { .trade-grid > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .trade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.point-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.point h3 { font-size: 19px; letter-spacing: -0.016em; margin-bottom: 8px; }
.point p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 700px) { .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .point-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .point-grid > .point { grid-column: span 2; }
  /* Five points: three across, then two wider ones. */
  .point-grid > .point:nth-child(4):nth-last-child(2), .point-grid > .point:nth-child(5):last-child { grid-column: span 3; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-2); text-align: left; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.016em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--ink-2); }
.faq-chev { color: var(--ink-2); transition: transform 280ms var(--spring); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq-a p { margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { text-decoration: underline; }

/* ── Closing call to action ──────────────────────────────────────────────── */

.cta-band .lede { margin-top: 16px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact-aside .lede { margin-top: 18px; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.contact-points li > svg { margin-top: 12px; color: var(--ink); }
.contact-points li > span { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
}

.contact-form { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea, .help-search input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--field);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.47; }
.field input:focus, .field select:focus, .field textarea:focus, .help-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.32);
}
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--bad); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select-chev { position: absolute; right: 16px; top: 50%; margin-top: -8px; color: var(--ink-2); pointer-events: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; background: var(--fill); }
.form-status.is-error { background: var(--bad-bg); color: var(--bad); }
.form-status.is-ok { background: var(--good-bg); color: var(--good); }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-actions .fine { margin: 0; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
@media (min-width: 600px) {
  .form-actions { flex-direction: row; align-items: center; gap: 20px; }
}

.sent-card { padding: clamp(32px, 6vw, 64px); }
.sent-card .lede { margin-top: 14px; }
.sent-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good);
}
.contact-form .sent-card { padding: 8px 0; box-shadow: none; text-align: center; }

/* ── Help center ─────────────────────────────────────────────────────────── */

.help-search { position: relative; display: flex; gap: 8px; max-width: 580px; margin: 32px auto 0; }
.help-search input { min-height: 52px; padding-left: 46px; border-radius: var(--pill); }
.help-search input::-webkit-search-cancel-button { cursor: pointer; }
.help-search-icon { position: absolute; left: 17px; top: 50%; margin-top: -9px; color: var(--ink-2); pointer-events: none; display: flex; }
.help-search .btn { min-height: 52px; flex: none; }

.help-cats { display: grid; gap: 40px; }
.help-cat-desc { margin: 6px 0 0; color: var(--ink-2); }
.help-list { list-style: none; margin: 16px 0 0; padding: 0; overflow: hidden; }
.help-list.card { padding: 0; border-radius: var(--r); }
.help-item a { display: block; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.help-item:last-child a { border-bottom: 0; }
.help-item a:hover { text-decoration: none; background: var(--fill); }
.help-item a:hover .help-item-title { text-decoration: underline; }
.help-item-title { display: block; font-weight: 600; letter-spacing: -0.014em; }
.help-item-summary { display: block; margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.help-item[hidden], .help-cat[hidden] { display: none; }
.help-count { color: var(--ink-2); }
.help-empty { margin: 0; text-align: center; color: var(--ink-2); }

.empty-state { text-align: center; padding: clamp(32px, 6vw, 56px); margin-top: 24px; }
.empty-state p { color: var(--ink-2); }
.empty-state .btn { margin-top: 8px; }

.stuck { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stuck p { margin: 8px 0 0; color: var(--ink-2); }
@media (min-width: 640px) { .stuck { flex-direction: row; align-items: center; justify-content: space-between; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 0 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.help-article h1 { margin-bottom: 12px; }
.help-article .lede { margin: 0 0 8px; }
.help-article .fine { margin: 0; }
.help-article .prose { margin-top: 24px; }
.related { margin-top: 48px; }
.back-link { margin: 24px 0 0; }

/* Trusted article and policy bodies. */
.prose { font-size: 17px; line-height: 1.6; }
.card.prose { padding: clamp(24px, 4.5vw, 48px); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.prose h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.016em; }
.prose h4 { margin: 24px 0 8px; font-size: 17px; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose pre { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose a { text-decoration: underline; }
.prose strong { font-weight: 600; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--fill); font-family: var(--mono); font-size: 0.9em; }
.prose pre { padding: 16px; overflow-x: auto; border-radius: var(--r-sm); background: var(--fill); }
.prose pre code { padding: 0; background: none; }
.prose kbd { padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 -1px 0 var(--line-2), 0 0 0 1px var(--line-2); font-family: var(--font); font-size: 0.88em; }
.prose blockquote { padding: 12px 18px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }

/* ── Legal ───────────────────────────────────────────────────────────────── */

.legal-hero .wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.legal-dates { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.legal-intro { margin-top: 20px; max-width: 760px; color: var(--ink-2); }
.legal-intro p:last-child { margin-bottom: 0; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: clamp(56px, 8vw, 104px); }
.toc ol { list-style: none; margin: 4px 0 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--link); }
.legal-body {
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.legal-section + .legal-section { margin-top: 40px; }
.legal-section h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.legal-others { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.legal-others ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.legal-others a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .legal-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
}

/* ═══ Illustrations ═════════════════════════════════════════════════════════
   Pieces of the product drawn in markup. Grey bars stand in for names and
   addresses; the only dark pill is the customer's own action.            */

.ill { display: flex; justify-content: center; width: 100%; }

.ui-card {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
}
.ui-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* The title side gives way to the status pill on a 320px screen, instead
   of pushing the pill (and the page) past the edge. */
.ui-head > div { flex: 1 1 auto; min-width: 0; }
.ui-kicker { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.ui-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
/* min(), not a fixed 150px: a fixed width would set the card's narrowest
   size, and the home page's hero card is sized to fit its content. */
.ui-bars { display: grid; gap: 6px; width: min(150px, 100%); margin-top: 8px; }
.ui-bar { display: block; height: 7px; border-radius: 4px; background: var(--fill-2); }
.ui-job > .ui-bars { margin: 0 0 4px; }

.ui-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--fill);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.ui-pill.good { background: var(--good-bg); color: var(--good); }

.ui-lines { list-style: none; margin: 0; padding: 0; }
.ui-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-name { flex: 1; min-width: 0; font-weight: 500; }
.ui-detail { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.ui-amt { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.ui-amt.off { color: var(--ink-3); }
.ui-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.ui-check.on { background: var(--ink); box-shadow: none; color: var(--paper); }
/* One of a choice (good / better / best): round, with a dot when chosen. */
.ui-check.radio { border-radius: 50%; }
.ui-check.radio.on { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ui-check.radio.on::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ui-total {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ui-sub-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ui-sign { margin-top: 14px; }
.ui-sign-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--ink-2); }
.ui-field { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ui-field .ui-bar { height: 9px; background: var(--ink-3); opacity: 0.55; }
.ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
}

.ui-stops { list-style: none; margin: 0; padding: 0; }
.ui-stop {
  display: grid;
  grid-template-columns: 40px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ui-time { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.ui-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ui-num.on { background: var(--ink); color: var(--paper); }
.ui-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.ui-total + .ui-foot { border-top: 0; padding-top: 4px; }

.ui-table { display: grid; }
.ui-tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ui-th { padding-top: 0; border-top: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.ui-th > :nth-child(n + 2) { text-align: right; }
.ui-rate { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-margin { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-note { margin-top: 10px; font-size: 12px; color: var(--ink-2); }

.ui-avatars { display: flex; flex: none; }
.ui-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill-2);
  box-shadow: 0 0 0 2px var(--paper);
  font-size: 12px;
  font-weight: 600;
}
.ui-avatar + .ui-avatar { margin-left: -6px; }
.ui-checklist { margin-top: 10px; }
.ui-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ui-photo { position: relative; height: 84px; border-radius: var(--r-sm); background: var(--fill-2); }
.ui-photo.after { background: var(--fill); }
.ui-photo span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--paper);
  font-size: 11px;
  font-weight: 600;
}

.ui-review .ui-title { margin: 6px 0 8px; font-size: 21px; }
.ui-text { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ui-stars { display: flex; gap: 6px; color: var(--ink); }
.ui-star path { fill: currentColor; }

.ui-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--fill-2); }
.ui-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.ui-switch.on { background: var(--good-solid); }
.ui-switch.on::after { left: 18px; }

/* ── Phone menu motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: site-drop 260ms var(--spring) both; }
}

/* ── Less motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print (policies get printed) ────────────────────────────────────────── */

@media print {
  .site-header, .site-footer, .skip, .legal-aside, .cta-band, .back-link, .legal-others { display: none !important; }
  body { background: #FFFFFF; color: #000000; font-size: 12pt; }
  .card, .legal-body, .table-scroll { box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: underline; }
}
