/* Marketing site.
 *
 * Tokens mirror the app's dark palette (client/src/styles/tokens.css) and the
 * rules in DESIGN.md hold here too: Safety Green is for actions, Work Amber is
 * for money, panels are flat with borders, and the glow blooms appear only on
 * the mock app cards, where they mean what they mean in the app — amber over
 * money out, green over money in, blue over the work itself.
 *
 * No inline styles anywhere in the HTML: the CSP is style-src 'self'.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: oklch(0.11 0 0);
  --bg-2: oklch(0.135 0.005 150);
  --surface: oklch(0.17 0.012 150);
  --surface-2: oklch(0.23 0.010 150);
  --ink: oklch(0.95 0.006 150);
  --ink-2: oklch(0.83 0.008 150);
  --muted: oklch(0.67 0.010 150);
  --border: oklch(0.26 0.014 150);
  --border-2: oklch(0.34 0.016 150);

  --primary: oklch(0.62 0.165 150);
  --primary-hover: oklch(0.68 0.155 150);
  --primary-press: oklch(0.54 0.165 150);
  --primary-ink: oklch(0.77 0.150 150);
  --accent: oklch(0.78 0.145 60);
  --info: oklch(0.74 0.115 255);

  --glow-in: oklch(0.70 0.170 150);
  --glow-out: oklch(0.66 0.160 47);
  --glow-work: oklch(0.62 0.150 255);
  --panel-top: oklch(0.215 0.017 150);
  --panel-bottom: oklch(0.132 0.008 150);
  --panel-edge: oklch(0.30 0.020 150);

  --font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-chip: 6px;
  --r-btn: 12px;
  --r-card: 14px;
  --r-panel: 16px;
  --wrap: 1180px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul {
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--primary-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

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

address {
  font-style: normal;
}

.sr-only {
  position: absolute;
  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: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-btn);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 32px;
  }
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.money-out {
  color: var(--accent);
}

.money-in {
  color: var(--primary-ink);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn--primary:active {
  background: var(--primary-press);
}

.btn--ghost {
  border-color: var(--border-2);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--ink);
}

.btn--quiet {
  color: var(--ink-2);
}

.btn--quiet:hover {
  color: var(--ink);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: oklch(0.11 0 0 / 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

/* The mark carries its own glow padding, so it is drawn larger than it reads. */
.brand img {
  width: 40px;
  height: 40px;
  margin: -4px -2px -4px -6px;
}

.brand__lit {
  color: #20d46c;
}

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

.site-nav > a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--ink);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-btn);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    top: -6px;
  }

  .nav-toggle__bars::after {
    top: 6px;
  }

  .nav-open .nav-toggle__bars {
    background: transparent;
  }

  .nav-open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }

  .site-nav__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 16px 0 0;
  }

  .site-nav__actions .btn--quiet {
    border-color: var(--border-2);
  }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding-block: 88px;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .section {
    padding-block: 128px;
  }
}

.section--tint {
  background: var(--bg-2);
}

.section__head {
  max-width: 740px;
  margin-bottom: 56px;
}

.section__head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.035em;
}

.section__head .lede {
  margin-top: 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 96px;
}

/* A job-site plan sheet behind the copy: faint grid, fading out. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60rem;
  height: 44rem;
  background: radial-gradient(closest-side, oklch(0.62 0.165 150 / 0.13), transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding-block: 96px 128px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero .lede {
  margin-top: 26px;
}

.hero .actions {
  margin-top: 36px;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.assurances li,
.ticks li {
  display: flex;
  gap: 9px;
}

.assurances li::before,
.ticks li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.2em;
  background: var(--primary-ink);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.hero__visual {
  position: relative;
}

/* ── Phone mockup ─────────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--border-2);
  border-radius: 46px;
  background: linear-gradient(160deg, oklch(0.30 0.010 150), oklch(0.15 0.008 150));
  box-shadow: 0 50px 90px -40px oklch(0 0 0 / 0.9);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 0;
  border-radius: 36px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.4;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 12px 10px;
  font-size: 12px;
  font-weight: 600;
}

.phone__status i {
  display: block;
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--ink-2);
  border-radius: 3px;
  position: relative;
}

.phone__status i::after {
  content: '';
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1px;
  background: var(--ink-2);
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 8px;
  color: var(--primary-ink);
  font-weight: 500;
}

.app-title {
  padding: 0 4px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.app-chips {
  display: flex;
  gap: 6px;
  padding: 8px 4px 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.chip--job {
  border-color: oklch(0.62 0.165 150 / 0.45);
  background: oklch(0.62 0.165 150 / 0.18);
  color: var(--primary-ink);
}

.chip--work {
  border-color: oklch(0.62 0.150 255 / 0.45);
  background: oklch(0.62 0.150 255 / 0.18);
  color: var(--info);
}

.chip--muted {
  color: var(--muted);
}

.mock-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* The app's aurora card, rebuilt: blooms placed over the figure they report. */
.aurora {
  --lead: var(--glow-out);
  --left: transparent;
  --right: transparent;
  position: relative;
  padding: 16px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--r-panel);
  background-color: var(--panel-bottom);
  background-image:
    radial-gradient(circle 15rem at 18% -16%, color-mix(in oklch, var(--lead) 34%, transparent), transparent),
    radial-gradient(circle 11rem at 0% 116%, color-mix(in oklch, var(--left) 26%, transparent), transparent),
    radial-gradient(circle 11rem at 100% 116%, color-mix(in oklch, var(--right) 26%, transparent), transparent),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07);
}

.aurora--cells-in {
  --left: var(--glow-in);
  --right: var(--glow-in);
}

.aurora--work {
  --lead: var(--glow-work);
}

.figure {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 6px;
  margin: 14px 0 6px;
  overflow: hidden;
  border-radius: 99px;
  background: oklch(1 0 0 / 0.09);
}

.meter__fill {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.meter-caption {
  color: var(--muted);
  font-size: 12px;
}

.cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
}

.cells .num {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.list-title {
  padding: 18px 4px 8px;
}

.rows {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
}

.row + .row {
  border-top: 1px solid var(--border);
}

.row__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.row__icon svg {
  width: 18px;
  height: 18px;
}

.row__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.row__title {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.row__end {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.row__end small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.fab {
  position: absolute;
  right: 18px;
  bottom: 78px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px oklch(0.62 0.165 150 / 0.45);
}

.fab svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Room above the tab bar for the FAB, so it doesn't sit on a row's amount. */
  margin: 76px -14px 0;
  padding: 9px 0 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.tabbar svg {
  width: 21px;
  height: 21px;
}

.tabbar .is-active {
  color: var(--primary-ink);
}

/* A floating confirmation beside the phone — floating, so it may cast a shadow. */
.float-note {
  display: none;
}

@media (min-width: 1100px) {
  /* Low and to the left, over the tab bar's edge rather than any figure. */
  .float-note {
    position: absolute;
    bottom: 5%;
    left: -16%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-card);
    background: var(--surface-2);
    box-shadow: 0 10px 28px oklch(0.05 0 0 / 0.5);
    font-size: 14px;
    line-height: 1.35;
  }

  .float-note__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: oklch(0.62 0.165 150 / 0.2);
    color: var(--primary-ink);
  }

  .float-note__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
  }

  .float-note small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
  }
}

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

.trades {
  padding-block: 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.trades .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.trades__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
}

/* ── Problems ─────────────────────────────────────────────────────────── */

.pains {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--border);
}

@media (min-width: 860px) {
  .pains {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain {
  padding: 32px 28px;
  background: var(--bg);
}

.pain__num {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pain h3 {
  margin-top: 18px;
  font-size: 23px;
}

.pain p {
  margin-top: 12px;
  color: var(--ink-2);
}

/* ── Features ─────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 36px;
}

.feature {
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  color: var(--ink);
}

.feature__icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 20px;
  font-size: 20px;
}

.feature p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-chip);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Spotlights ───────────────────────────────────────────────────────── */

.spotlight {
  display: grid;
  gap: 40px;
  align-items: center;
}

.spotlight + .spotlight {
  margin-top: 104px;
}

@media (min-width: 900px) {
  .spotlight {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .spotlight--flip .stage {
    order: -1;
  }
}

.spotlight h3 {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}

.spotlight p {
  margin-top: 18px;
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  list-style: none;
}

.stage {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background-color: var(--bg);
  background-image:
    linear-gradient(oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  font-size: 14px;
  line-height: 1.4;
}

.clock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clock-job {
  margin-top: 2px;
  color: var(--ink-2);
}

.gps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--info);
  font-size: 13px;
  font-weight: 500;
}

.gps svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.mock-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  border-radius: var(--r-btn);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.rows-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.file-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  font-weight: 600;
}

.file-head svg {
  width: 20px;
  height: 20px;
  color: var(--primary-ink);
}

.file-head span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.step__n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-top: 22px;
  font-size: 21px;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ── Audience ─────────────────────────────────────────────────────────── */

.audience {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .audience {
    grid-template-columns: 1fr 1fr;
  }
}

.persona {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.persona h3 {
  margin-top: 14px;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
}

.persona > p {
  margin-top: 14px;
  color: var(--ink-2);
}

.persona .ticks {
  margin-top: 22px;
}

.grow-note {
  margin-top: 28px;
  max-width: 70ch;
  color: var(--ink-2);
}

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

.plans {
  display: grid;
  gap: 16px;
  max-width: 960px;
}

@media (min-width: 780px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.plan--pro {
  border-color: oklch(0.62 0.165 150 / 0.55);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}

.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan__name {
  font-size: 24px;
}

.plan__for {
  margin-top: 8px;
  color: var(--ink-2);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 26px;
}

.price__amount {
  color: var(--accent);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.price__period {
  color: var(--muted);
}

.plan .ticks {
  flex: 1;
  margin-top: 28px;
  font-size: 16px;
}

.plan .btn {
  margin-top: 32px;
}

.fine {
  max-width: 80ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.fine a {
  color: var(--ink-2);
}

.pricing-note {
  margin-top: 18px;
  color: var(--ink-2);
}

/* ── Promises ─────────────────────────────────────────────────────────── */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 40px 36px;
}

.promise {
  padding-top: 22px;
  border-top: 1px solid var(--border-2);
}

.promise h3 {
  font-size: 20px;
}

.promise p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

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

.faq {
  max-width: 840px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  margin: 6px 4px 0 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.faq details[open] summary::after {
  margin-top: 11px;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--ink);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: 24px;
  color: var(--ink-2);
}

.faq details p + p {
  margin-top: -10px;
}

/* ── Final call to action ─────────────────────────────────────────────── */

.cta {
  padding: clamp(48px, 9vw, 104px) 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(44rem 22rem at 50% 125%, oklch(0.62 0.165 150 / 0.2), transparent 70%),
    var(--bg-2);
  text-align: center;
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(34px, 5.2vw, 60px);
  letter-spacing: -0.04em;
}

.cta .lede {
  margin: 20px auto 0;
}

.cta .actions {
  justify-content: center;
  margin-top: 34px;
}

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

.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 40px;
}

.footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }

  .footer__brand {
    grid-column: auto;
  }
}

.footer__brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer__col ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  list-style: none;
}

.footer__col address {
  margin-top: 16px;
  color: var(--ink-2);
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

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

.legal-shell {
  display: grid;
  gap: 36px;
  padding-block: 44px 96px;
}

@media (min-width: 980px) {
  .legal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
    padding-block: 72px 128px;
  }

  .legal-nav {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  list-style: none;
}

.legal-nav a {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

@media (min-width: 980px) {
  .legal-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .legal-nav a {
    border-color: transparent;
    font-size: 15px;
  }
}

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

.legal-nav a[aria-current='page'] {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--ink);
}

.legal {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.legal h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 54px);
  letter-spacing: -0.035em;
}

.legal__meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin-top: 60px;
  color: var(--ink);
  font-size: 25px;
  scroll-margin-top: 96px;
}

.legal h3 {
  margin-top: 34px;
  color: var(--ink);
  font-size: 18.5px;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal ol,
.legal address,
.legal .table-wrap {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

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

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Disclaimers and liability limits are set in capitals by convention, so they
 * are conspicuous; brighter ink keeps a wall of capitals readable. */
.legal .conspicuous {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.callout {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-card);
  background: var(--surface);
}

.legal .callout h2 {
  margin-top: 0;
  font-size: 17px;
}

.legal .callout ul {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

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

.legal th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.legal tr:last-child td {
  border-bottom: 0;
}

.doc-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.legal .doc-list {
  padding-left: 0;
}

.doc-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}

.doc-list a:hover {
  border-color: var(--border-2);
  color: var(--ink-2);
}

.doc-list strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.notfound {
  padding-block: clamp(80px, 16vw, 160px);
  text-align: center;
}

.notfound h1 {
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.notfound .lede {
  margin: 18px auto 0;
}

.notfound .actions {
  justify-content: center;
  margin-top: 32px;
}

/* ── Motion ───────────────────────────────────────────────────────────── */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
