/* KiloNord website stylesheet.
 *
 * Colours mirror the app's palette (ios/Packages/DesignSystem/Sources/DesignSystem/Tokens/KNPalette.swift),
 * radii and spacing mirror KNLayout.swift. Deep green means Business / the brand; everything else stays
 * calm and neutral. No web fonts, no images from other hosts, no data: URIs, no inline styles needed,
 * so the site works under a strict Content-Security-Policy (default-src 'self').
 *
 * Classes shared with the legal pages: .page, .page-hero, .legal-layout, .legal-toc,
 * .legal (+ .updated, .summary, .table-wrap), .site-header, .brand, .site-footer, .button, .muted.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  /* KNPalette, light */
  --bg: #F2F4F2;                /* background */
  --surface: #FFFFFF;           /* surface */
  --surface-2: #F5F7F5;         /* surfaceSecondary */
  --separator: #DDE2DF;         /* separator */
  --text: #0F1714;              /* textPrimary */
  --text-2: #56615C;            /* textSecondary (AA on bg and surface) */
  --text-3: #7E8883;            /* textTertiary (large text and glyphs only) */
  --accent: #0E6B4A;            /* business, the app tint */
  --on-accent: #FFFFFF;         /* onBusiness */
  --accent-tint: #E2F1E9;       /* businessTint */
  --personal: #5F6B66;
  --personal-tint: #ECEEED;
  --passenger: #55617D;
  --passenger-tint: #E8EBF2;
  --warning: #A85200;
  --warning-tint: #FFF1DB;
  --shadow: 0 4px 12px rgba(0, 0, 0, .06);          /* KNElevation.card */
  --shadow-lifted: 0 12px 24px rgba(0, 0, 0, .14);  /* KNElevation.lifted */

  /* KNRadius */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --r-card: 30px;

  /* KNSpacing (4-pt scale) */
  --s-xs: 4px;
  --s-s: 8px;
  --s-m: 12px;
  --s-l: 16px;
  --s-xl: 20px;
  --s-xxl: 24px;
  --s-3xl: 32px;
  --s-huge: 48px;

  --gutter: 16px;               /* screenMargin */
  --max: 1080px;
  --measure: 46rem;             /* long-form reading width */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji";
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* KNPalette, dark */
    --bg: #0A0C0B;
    --surface: #171A18;
    --surface-2: #212522;
    --separator: #2D322F;
    --text: #F1F4F2;
    --text-2: #A6AEA9;
    --text-3: #7A837E;
    --accent: #3CC48A;
    --on-accent: #03170E;
    --accent-tint: #0F2A1E;
    --personal: #A7B0AB;
    --personal-tint: #262A28;
    --passenger: #A3AFCB;
    --passenger-tint: #22263A;
    --warning: #F5B83D;
    --warning-tint: #2E2210;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
    --shadow-lifted: 0 12px 28px rgba(0, 0, 0, .5);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17 px, iOS body */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 var(--s-m);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; }

p, ul, ol { margin: 0 0 var(--s-l); }
p { text-wrap: pretty; }

hr { border: 0; border-top: 1px solid var(--separator); margin: var(--s-3xl) 0; }

code, kbd { font-family: var(--font-mono); font-size: .9em; }

strong { font-weight: 600; }

.muted { color: var(--text-2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: var(--s-s) var(--s-l);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-lifted);
}
.skip-link:focus { top: var(--s-s); }

/* ---------- Header and footer ---------- */

.site-header,
.site-footer {
  /* Content stays within --max without a wrapper element. */
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-l);
  flex-wrap: wrap;
  padding-block: var(--s-l);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -.01em;
  text-decoration: none;
  min-height: 44px;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;            /* iOS icon squircle, approximated */
  box-shadow: 0 0 0 1px var(--separator);
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-l);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-xs);
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* "Sign in": the way into the dashboard. Caddy redirects /signin to dashboard.SITE_DOMAIN. */
.site-header nav a.nav-signin {
  min-height: 40px;
  align-self: center;
  padding: 0 var(--s-l);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.site-header nav a.nav-signin:hover { color: var(--on-accent); filter: brightness(1.08); }

.site-footer {
  margin-top: auto;
  padding-block: var(--s-3xl) var(--s-huge);
  border-top: 1px solid var(--separator);
  color: var(--text-2);
  font-size: .9375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-m) var(--s-xxl);
}
.site-footer p { margin: 0; }
.site-footer nav a {
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer nav a:hover { color: var(--text); }

/* ---------- Page container ---------- */

.page {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s-xl) var(--gutter) var(--s-huge);
  flex: 1 0 auto;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-s);
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;          /* buttons are capsules in the app */
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button:active { filter: brightness(.95); }

.button.secondary {
  background: var(--accent-tint);
  color: var(--accent);
}

/* ---------- Long-form text (legal pages, support) ---------- */

.legal {
  max-width: var(--measure);
  min-width: 0;
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: var(--s-huge);
  padding-top: var(--s-l);
  border-top: 1px solid var(--separator);
  scroll-margin-top: var(--s-l);
}
.legal h3 {
  font-size: 1.125rem;
  margin-top: var(--s-3xl);
}
.legal h2 + h3 { margin-top: var(--s-l); }
.legal p,
.legal li { max-width: var(--measure); }
.legal ul,
.legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: var(--s-s); }
.legal li > ul,
.legal li > ol { margin-top: var(--s-s); margin-bottom: 0; }
.legal li::marker { color: var(--text-2); }
.legal dt { font-weight: 600; margin-top: var(--s-m); }
.legal dd { margin: 0 0 var(--s-s); color: var(--text-2); }
.legal address { font-style: normal; }

/* Scroll container for wide tables: <div class="table-wrap"><table>…</table></div> (optional). */
.table-wrap {
  overflow-x: auto;
  margin: var(--s-xl) 0 var(--s-xxl);
  border: 1px solid var(--separator);
  border-radius: var(--r-m);
  background: var(--surface);
}
.table-wrap > table { margin: 0; border: 0; border-radius: 0; }

.legal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--s-xl) 0 var(--s-xxl);
  font-size: .9375rem;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-m);
  overflow: hidden;
}
.legal caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0 0 var(--s-s);
}
.legal th,
.legal td {
  padding: 10px var(--s-m);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--separator);
}
.legal tr:last-child > th,
.legal tr:last-child > td { border-bottom: 0; }
.legal thead th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-2);
}
.legal tbody th { font-weight: 600; }

/* Narrow screens: a table that's too wide scrolls inside itself instead of widening the page. */
@media (max-width: 599px) {
  .legal table:not(.table-wrap > table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .legal th,
  .legal td { min-width: 8rem; }
}

.updated {
  color: var(--text-2);
  font-size: .9375rem;
}

/* Legal pages: contents beside the text on wide screens, a collapsed list above it on phones. */
.legal-layout {
  display: grid;
  gap: var(--s-xxl);
}
.legal-toc details {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-l);
}
.legal-toc summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--s-m) 52px var(--s-m) var(--s-xl);
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border: solid var(--text-3);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.legal-toc details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0 var(--s-xl) var(--s-l);
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: var(--s-s);
  padding: 7px 0;
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.35;
  text-decoration: none;
}
.legal-toc a::before {
  content: counter(toc);
  min-width: 1.6em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover { color: var(--accent); }

@media (min-width: 1000px) {
  .legal-layout {
    grid-template-columns: 15rem minmax(0, var(--measure));
    gap: var(--s-huge);
    align-items: start;
  }
  .legal-toc {
    position: sticky;
    top: var(--s-xl);
    max-height: calc(100vh - 2 * var(--s-xl));
    overflow-y: auto;
  }
  /* Always open here: the summary becomes a plain label. */
  .legal-toc details { background: none; border: 0; }
  .legal-toc details::details-content { content-visibility: visible; }
  .legal-toc summary {
    min-height: 0;
    padding: 0 0 var(--s-s);
    pointer-events: none;
    color: var(--text-2);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .legal-toc summary::after { display: none; }
  .legal-toc ol { padding: 0; border-left: 2px solid var(--separator); }
  .legal-toc a { padding: 6px 0 6px var(--s-m); margin-left: -2px; border-left: 2px solid transparent; }
  .legal-toc a:hover { border-left-color: var(--accent); }
}

.summary {
  margin: var(--s-xxl) 0 var(--s-3xl);
  padding: var(--s-xl) var(--s-xxl);
  background: var(--accent-tint);
  border-radius: var(--r-l);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.summary > :first-child { margin-top: 0; }
.summary > :last-child { margin-bottom: 0; }
.summary h2,
.summary h3 {
  font-size: 1.0625rem;
  margin: 0 0 var(--s-s);
  padding: 0;
  border: 0;
  color: var(--accent);
}
.summary ul { padding-left: 1.2em; }
.summary li { margin-bottom: var(--s-xs); }

/* ---------- Shared building blocks (home, support, 404) ---------- */

.section {
  padding-block: var(--s-huge);
  border-top: 1px solid var(--separator);
}
.section:first-child { border-top: 0; }
.section > header { max-width: 40rem; margin-bottom: var(--s-3xl); }
.section > header p { color: var(--text-2); font-size: 1.125rem; margin: 0; }

.eyebrow {
  display: block;
  margin-bottom: var(--s-s);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34rem;
}

.card {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: var(--s-xxl);
  box-shadow: var(--shadow);
  border: 1px solid var(--separator);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s-s); }
.card p { color: var(--text-2); }

.grid {
  display: grid;
  gap: var(--s-l);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-m);
  border-radius: var(--r-m);
  background: var(--accent-tint);
  color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-l);
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--s-s);
}
.checklist li::before {
  /* a check mark drawn with borders (no images, CSP-safe) */
  content: "";
  position: absolute;
  left: 6px;
  top: .32em;
  width: 7px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-s);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--separator);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.notice {
  padding: var(--s-l) var(--s-xl);
  border-radius: var(--r-m);
  background: var(--surface-2);
  border: 1px solid var(--separator);
  color: var(--text-2);
  font-size: .9375rem;
}
.notice > :last-child { margin-bottom: 0; }

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  gap: var(--s-3xl);
  align-items: center;
  padding-block: var(--s-l) var(--s-huge);
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: var(--s-huge); padding-block: var(--s-huge) 72px; }
}
.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: var(--s-xl);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead { margin-bottom: var(--s-xxl); }

/* Big round check marks, like a benefits list. */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3xl);
  display: grid;
  gap: var(--s-m);
}
.ticks li {
  position: relative;
  padding-left: 40px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 28px;
  padding-top: 2px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 13px;
  border: solid var(--on-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.ticks small {
  display: block;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-m) var(--s-l);
}

/* "Coming soon" call to action. Deliberately not an App Store badge. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: var(--s-m);
  min-height: 56px;
  padding: 10px 24px 10px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  line-height: 1.2;
}
.soon img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}
.soon strong { display: block; font-size: 1.0625rem; }
.soon span { display: block; font-size: .8125rem; opacity: .75; }

/* ---------- Phone frame (CSS only) ---------- */

.phone {
  position: relative;
  width: min(72%, 290px);
  padding: 9px;
  border-radius: 54px;
  background: #0E100F;
  box-shadow:
    0 0 0 1.5px #3A403C,
    0 30px 60px -20px rgba(15, 23, 20, .45),
    0 12px 24px -12px rgba(15, 23, 20, .3);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 45px;
  background: var(--bg);
}
.phone::before {
  /* the Dynamic Island */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 29%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0E100F;
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1.5px #4A514C, 0 30px 60px -20px rgba(0, 0, 0, .8); }
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  padding-block: var(--s-l);
}

/* Floating chips around the phone: they mirror what the app really shows. */
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 66%;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-lifted);
  font-size: .875rem;
  line-height: 1.3;
}
.float img,
.float .glyph {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.float .glyph {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}
.float .glyph svg { width: 18px; height: 18px; }
.float strong { display: block; font-weight: 600; }
.float span { display: block; color: var(--text-2); font-size: .8125rem; }
.float.notify { top: 14%; left: 0; }
.float.toast { bottom: 9%; right: 0; }
@media (min-width: 880px) {
  .float.notify { left: -4%; }
  .float.toast { right: -2%; }
}
@media (max-width: 380px) {
  .float { font-size: .8125rem; padding: 8px 10px 8px 8px; gap: 8px; }
  .float img, .float .glyph { width: 28px; height: 28px; }
  .float span { font-size: .75rem; }
}

/* ---------- Home: trust strip ---------- */

.trust {
  list-style: none;
  margin: 0 0 var(--s-l);
  padding: var(--s-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-l) var(--s-xxl);
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-l);
}
@media (min-width: 560px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .trust { grid-template-columns: repeat(4, 1fr); padding: var(--s-xxl) var(--s-3xl); }
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-m);
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--text-2);
}
.trust strong { display: block; color: var(--text); font-size: 1rem; }
.trust .icon { margin: 0; width: 40px; height: 40px; flex: none; }
.trust .icon svg { width: 22px; height: 22px; }

/* ---------- Home: numbered steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-l);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  --tint: var(--accent-tint);
  --ink: var(--accent);
  display: flex;
  flex-direction: column;
  padding: var(--s-xxl) var(--s-xxl) var(--s-xxl);
  border-radius: var(--r-card);
  background: var(--tint);
}
.step.passenger { --tint: var(--passenger-tint); --ink: var(--passenger); }
.step.personal { --tint: var(--personal-tint); --ink: var(--personal); }
.step .num {
  display: block;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: var(--s-m);
}
.step h3 { font-size: 1.375rem; margin-bottom: var(--s-s); }
.step p { color: var(--text-2); margin-bottom: var(--s-xl); }
.step .visual { margin-top: auto; }

/* Mini drawings inside the steps, mirroring real app UI. */
.mini {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: var(--s-m);
  box-shadow: var(--shadow);
  font-size: .875rem;
  line-height: 1.35;
}
.mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-head img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.mini-head strong { display: block; }
.mini-head span { display: block; color: var(--text-2); font-size: .8125rem; }
.mini-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--s-m);
}
.mini-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 4px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .8125rem;
  text-align: center;
}
.mini-actions .personal { background: var(--personal-tint); color: var(--personal); }
.mini-actions .passenger { background: var(--passenger-tint); color: var(--passenger); }
.mini-actions .business { background: var(--accent); color: var(--on-accent); }
.mini-actions.plain span { background: var(--surface-2); color: var(--accent); }
.mini-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--s-m);
}
.mini-files span {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: .8125rem;
}
.mini-files svg { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Home: feature rows (text beside a screenshot) ---------- */

.feature-row {
  display: grid;
  gap: var(--s-3xl);
  align-items: center;
  padding-block: var(--s-3xl);
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-row.reverse .media { order: -1; }
}
.feature-row h3 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--s-m);
}
.feature-row .text > p { color: var(--text-2); font-size: 1.125rem; }

/* A tinted panel the phone rises out of; the bottom of the screen is cropped. */
.media {
  position: relative;
  display: flex;
  justify-content: center;
  height: 420px;
  padding-top: var(--s-3xl);
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--accent-tint);
}
.media.passenger { background: var(--passenger-tint); }
.media .phone { width: min(70%, 270px); align-self: flex-start; }
@media (min-width: 860px) {
  .media { height: 500px; padding-top: var(--s-huge); }
  .media .phone { width: min(62%, 290px); }
}

/* ---------- Home: compact feature cards ---------- */

.grid.four { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
.grid.four .card { padding: var(--s-xl); }
.grid.four .card h3 { font-size: 1.0625rem; }
.grid.four .card p { font-size: .9375rem; }

/* ---------- Home: pricing ---------- */

.plans {
  display: grid;
  gap: var(--s-l);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan h3 { font-size: 1.375rem; margin-bottom: var(--s-xs); }
.plan .price {
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin: var(--s-m) 0 var(--s-xs);
}
.plan .price small {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}
.plan .price-note { color: var(--text-2); font-size: .9375rem; margin-bottom: var(--s-xl); }
.plan .checklist { margin-top: auto; }
.plan.pro {
  border: 2px solid var(--accent);
  background:
    linear-gradient(180deg, var(--accent-tint), transparent 140px),
    var(--surface);
}
.plan .tag {
  align-self: flex-start;
  margin-bottom: var(--s-m);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan .tag.neutral { background: var(--personal-tint); color: var(--personal); }
.fine-print { color: var(--text-2); font-size: .875rem; margin-top: var(--s-xl); max-width: 46rem; }

/* ---------- Home: privacy band ---------- */

.privacy-band {
  display: grid;
  gap: var(--s-xl) var(--s-huge);
  background: var(--accent-tint);
  border-radius: var(--r-card);
  padding: var(--s-3xl) var(--s-xxl);
  border: 0;
  margin-block: var(--s-huge);
}
@media (min-width: 860px) {
  .privacy-band { grid-template-columns: .9fr 1.1fr; padding: var(--s-huge); align-items: start; }
}
.privacy-band h2 { color: var(--text); }
.privacy-band p { color: var(--text-2); }
.privacy-band .checklist { margin: 0; }
.privacy-band .checklist li { margin-bottom: var(--s-m); }
.privacy-band + .section { border-top: 0; }

/* ---------- Home: closing call to action ---------- */

.closing {
  text-align: center;
  padding-block: var(--s-huge) var(--s-xl);
}
.closing > img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-lifted);
  margin-bottom: var(--s-xl);
}
.closing .lead { margin-inline: auto; }
.closing .hero-actions { justify-content: center; }

/* ---------- Inner pages: banner (support, privacy, terms) ---------- */

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xxl);
  margin-bottom: var(--s-3xl);
  padding: var(--s-3xl) var(--s-xxl);
  background: var(--accent-tint);
  border-radius: var(--r-card);
}
@media (min-width: 860px) {
  .page-hero { padding: var(--s-huge); }
}
.page-hero h1 { margin-bottom: var(--s-s); }
.page-hero > div > :last-child { margin-bottom: 0; }
.hero-contact { margin-top: var(--s-l); font-weight: 600; }

/* A big tilted glyph, like an app icon. Decoration only, hidden on phones. */
.hero-art { display: none; }
@media (min-width: 720px) {
  .hero-art {
    display: grid;
    place-items: center;
    flex: none;
    width: 128px;
    height: 128px;
    margin-right: var(--s-l);
    border-radius: 34px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-lifted);
    transform: rotate(-6deg);
  }
  .hero-art svg { width: 68px; height: 68px; }
}

/* ---------- Support ---------- */

.topics {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-huge);
  display: grid;
  gap: var(--s-m);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .topics { grid-template-columns: repeat(4, 1fr); }
}
.topics a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-m);
  align-items: center;
  height: 100%;
  padding: var(--s-l) var(--s-xl);
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.topics a:hover { border-color: var(--accent); transform: translateY(-2px); }
.topics .icon { grid-row: span 2; margin: 0; }
.topics strong { align-self: end; line-height: 1.3; }
.topics a > span:last-child { align-self: start; color: var(--text-2); font-size: .875rem; line-height: 1.35; }

.help-layout {
  display: grid;
  gap: var(--s-3xl);
}
@media (min-width: 960px) {
  .help-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-huge); align-items: start; }
  .contact-card { position: sticky; top: var(--s-xl); }
}
.help-topic { scroll-margin-top: var(--s-l); }
.help-topic + .help-topic { margin-top: var(--s-3xl); }
.help-topic h2 { font-size: 1.375rem; margin-bottom: var(--s-m); }
.help-topic .faq { margin: 0; }

.contact-card {
  padding: var(--s-xxl);
  background: var(--accent-tint);
  border-radius: var(--r-l);
}
.contact-card .icon { background: var(--surface); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: var(--s-s); }
.contact-card p { color: var(--text-2); }
.contact-card .checklist li { font-size: .9375rem; color: var(--text-2); }
.contact-card .button { width: 100%; }
.contact-address { margin: var(--s-s) 0 0; text-align: center; font-size: .875rem; }

/* FAQ: native <details>, no JavaScript. */
.faq {
  margin: var(--s-l) 0 var(--s-xxl);
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--r-l);
  overflow: hidden;
}
.faq details { border-top: 1px solid var(--separator); }
.faq details:first-child { border-top: 0; }
.faq summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: var(--s-l) 52px var(--s-l) var(--s-xl);
  font-weight: 600;
  line-height: 1.4;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border: solid var(--text-3);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq .answer {
  padding: 0 var(--s-xl) var(--s-xl);
  color: var(--text-2);
}
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }
.faq .answer ol,
.faq .answer ul { padding-left: 1.3em; }
.faq .answer li { margin-bottom: var(--s-xs); }

.path {
  /* an in-app location, e.g. Settings › Tracking Health */
  font-weight: 600;
  color: var(--text);
}

/* ---------- 404 ---------- */

.not-found {
  max-width: 34rem;
  margin: 0 auto;
  padding-block: 10vh var(--s-huge);
  text-align: center;
}
.not-found .odometer {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  margin-bottom: var(--s-xxl);
  border-radius: 16px;
  background: #1B201D;
  box-shadow: var(--shadow-lifted);
}
.not-found .odometer span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 68px;
  border-radius: 10px;
  background: linear-gradient(#C9CECB, #FFFFFF 30%, #FFFFFF 70%, #C9CECB);
  color: #0F1714;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-size: 2.5rem;
  font-weight: 700;
}
.not-found .odometer span:last-child {
  background: linear-gradient(#0B5A3E, #168A60 30%, #168A60 70%, #0B5A3E);
  color: #E9F5EF;
}
.not-found .lead { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; margin-top: var(--s-xxl); }

.popular {
  margin-top: var(--s-huge);
  padding-top: var(--s-xxl);
  border-top: 1px solid var(--separator);
}
.popular p {
  margin-bottom: var(--s-m);
  color: var(--text-2);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.popular ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-s);
}
.popular a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--separator);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.popular a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Small screens ---------- */

@media (max-width: 380px) {
  body { font-size: 1rem; }
  .card { padding: var(--s-xl); }
  .page-hero { padding: var(--s-xxl) var(--s-xl); }
  .faq summary { padding-left: var(--s-l); }
  .faq .answer { padding-inline: var(--s-l); }
  .not-found .odometer span { width: 44px; height: 58px; font-size: 2rem; }
}

/* ---------- Print ---------- */

@media print {
  :root { --bg: #fff; --surface: #fff; }
  body { font-size: 11pt; }
  .site-header nav, .site-footer nav, .skip-link, .legal-toc, .hero-art { display: none; }
  .legal-layout { display: block; }
  .legal { max-width: none; }
  .legal table { display: table; }
  a { color: inherit; }
  .legal a[href^="http"]::after,
  .legal a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .9em; }
  .faq details > .answer { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
