/* Generated from design/uauto-ds/tokens.json by apps/site/src/css.ts. */
:root {
  --surface: #f3f5f7;
  --surface-raised: #ffffff;
  --surface-sunken: #e7ecf0;
  --line: #dae1e7;
  --line-strong: #7a8894;
  --ink: #0e1620;
  --ink-secondary: #43515e;
  --ink-tertiary: #5b6874;
  --brand: #1c6497;
  --brand-pressed: #144c74;
  --on-brand: #ffffff;
  --brand-soft: #e3eef7;
  --brand-logo: #4e8ebb;
  --brand-green: #73b06d;
  --night: #0a0d10;
  --on-night: #f2f5f7;
  --marker: #3b8a37;
  --above: #8a4f00;
  --above-soft: #fbefd9;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --focus: #1c6497;
  --scrim: rgba(5, 8, 12, 0.5);
  --shadow-card: 0 1px 2px rgba(14, 22, 32, 0.06), 0 2px 8px rgba(14, 22, 32, 0.04);
  --shadow-bar: 0 -1px 0 rgba(14, 22, 32, 0.08), 0 -4px 16px rgba(14, 22, 32, 0.05);
  --shadow-sheet: 0 -8px 32px rgba(14, 22, 32, 0.16);
  --shadow-fab: 0 4px 12px rgba(28, 100, 151, 0.35);
  --on-night-muted: #b2bdc7;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --size-tap: 44px;
  --size-button: 48px;
  --size-chip: 32px;
  --size-tabbar: 56px;
  --size-fab: 52px;
  --size-frame: 390px;
  --font-sans: Manrope, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0a0d10;
    --surface-raised: #151b21;
    --surface-sunken: #1d252d;
    --line: #2a343e;
    --line-strong: #6b7987;
    --ink: #eef2f5;
    --ink-secondary: #b2bdc7;
    --ink-tertiary: #91a0ad;
    --brand: #6faedb;
    --brand-pressed: #94c5e8;
    --on-brand: #06233a;
    --brand-soft: #13283a;
    --brand-logo: #4e8ebb;
    --brand-green: #73b06d;
    --night: #0a0d10;
    --on-night: #f2f5f7;
    --marker: #7cc277;
    --above: #f2bc5a;
    --above-soft: #3a2a10;
    --danger: #ff8a7e;
    --danger-soft: #3d1b18;
    --focus: #94c5e8;
    --scrim: rgba(0, 0, 0, 0.64);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-bar: 0 -1px 0 rgba(255, 255, 255, 0.06);
    --shadow-sheet: 0 -8px 32px rgba(0, 0, 0, 0.5);
    --shadow-fab: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

/* The site (#69), from the brand book (design/uauto-ds/README.md): light
   content in a night brand frame, Uauto Blue as the one action colour,
   Manrope, tabular numbers. Every value is a token; tokens.json's are above. */

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--brand);
  font-weight: 600;
}

.skip:focus {
  top: var(--space-4);
}

main:focus {
  outline: none;
}

/* ── The night frame: the badge's black, its ring and its green bar ───── */

.night {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}

/* Night is the dark page's own colour: a line keeps the frame a frame. */
@media (prefers-color-scheme: dark) {
  .night {
    border-bottom: 1px solid var(--line);
  }
}

.night a {
  color: var(--on-night);
}

.night :focus-visible {
  outline-color: var(--brand-logo);
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 10px solid var(--brand-logo);
  pointer-events: none;
}

.gbar {
  display: block;
  width: 32px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
}

.masthead-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--size-tap);
  color: var(--on-night);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-tap);
  padding: 0 var(--space-2);
  font-weight: 600;
  text-decoration: none;
}

.masthead-nav a:hover {
  text-decoration: underline;
}

.masthead {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* The ring would cross the Support link while the page is narrow: it shows
   only where there is room right of the content. */
.masthead .ring {
  display: none;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -110px;
}

@media (min-width: 1024px) {
  .masthead .ring {
    display: block;
  }
}

/* ── The landing page's hero ───────────────────────────────────────────── */

.hero {
  border-radius: 0 0 28px 28px;
  padding-bottom: 64px;
}

/* Narrow: a small ring in the bottom-right corner, inside the hero's bottom
   padding, so it never crosses a word. Wide: a large one top right, beside
   the text. */
.hero .ring {
  width: 160px;
  height: 160px;
  right: -64px;
  bottom: -112px;
}

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 600px;
  padding-top: var(--space-6);
}

.hero h1 {
  color: var(--on-night);
  font-size: 34px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-secondary);
}

.night .lead {
  color: var(--on-night-muted);
}

@media (min-width: 720px) {
  .hero h1 {
    font-size: 48px;
    line-height: 56px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: var(--space-10);
  }

  .hero .ring {
    width: 420px;
    height: 420px;
    right: -100px;
    top: -120px;
    bottom: auto;
  }
}

/* ── Buttons, badges, cards ────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-button);
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 180ms cubic-bezier(0.2, 0, 0, 1),
    transform 120ms cubic-bezier(0.2, 0, 0, 1);
}

.night a.button {
  color: var(--on-brand);
}

.button:active {
  transform: scale(0.98);
  background: var(--brand-pressed);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--ink-secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.night .badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-night-muted);
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-secondary);
}

.night .soon {
  color: var(--on-night-muted);
}

.card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.caption,
.meta {
  font-size: 13px;
  line-height: 18px;
}

.caption {
  color: var(--ink-secondary);
  font-weight: 600;
}

.meta {
  color: var(--ink-tertiary);
}

.price-hero {
  font-size: 36px;
  line-height: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Landing sections ──────────────────────────────────────────────────── */

.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-10);
}

.section h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.features {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.features h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.features p {
  color: var(--ink-secondary);
}

.summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 420px;
  margin: 0;
  padding: var(--space-5);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.summary figcaption {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.points {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--ink-secondary);
}

/* Lines a reader can follow on a wide screen. */
.section > .lead,
.points {
  max-width: 680px;
}

.points li + li {
  margin-top: var(--space-2);
}

.get {
  align-items: flex-start;
  padding-bottom: var(--space-10);
}

/* ── Text pages: support, the legal pages, 404 ─────────────────────────── */

.page {
  max-width: 720px;
  padding-top: var(--space-8);
  padding-bottom: var(--space-10);
}

.page h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.prose {
  font-size: 16px;
  line-height: 26px;
}

.prose h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: var(--space-6);
}

.prose li + li {
  margin-top: var(--space-1);
}

.prose blockquote {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--ink-secondary);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.prose th,
.prose td {
  padding: var(--space-2);
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose th {
  background: var(--surface-sunken);
  font-weight: 600;
}

.prose code {
  font-size: 0.9em;
}

/* A review note left in a draft ([pending #24], [to fill]): words, marked. */
mark.marker {
  padding: 0 2px;
  border-radius: 4px;
  background: var(--above-soft);
  color: var(--above);
  font-weight: 700;
}

.draft {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.draft strong {
  font-size: 15px;
  line-height: 22px;
}

.draft p {
  color: var(--ink-secondary);
}

.steps {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

.actions {
  margin-top: var(--space-6);
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0 var(--space-8);
  color: var(--ink-tertiary);
  font-size: 13px;
  line-height: 18px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-tap);
  color: var(--ink-secondary);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}
