/* TPee website. Colours match the app (ios/TPee/DesignSystem/Theme.swift). */
:root {
  --brand: #1A6FE0;
  --brand-navy: #0B2D6B;
  --accent: #2E9E4C;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --line: #E2E8F0;
  --text: #0F172A;
  --text-2: #475569;
  --warning: #9A5B00;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5B9DFF;
    --brand-navy: #C9DAFF;
    --accent: #5CCB78;
    --bg: #0B121F;
    --surface: #151E2E;
    --line: #2A3447;
    --text: #F1F5F9;
    --text-2: #A3AEC2;
    --warning: #FFB74D;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none; font-size: 17px;
}
.btn-primary { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: #fff; color: #000; } }
.btn-primary svg { width: 22px; height: 22px; fill: currentColor; }
.btn-primary small { display: block; font-size: 11px; font-weight: 600; opacity: .85; line-height: 1.1; }
.btn-primary span { display: block; line-height: 1.15; }
.btn-secondary { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 20px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(320px, 70vw); filter: drop-shadow(0 18px 30px rgb(26 111 224 / .25)); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 12px; }
.section-intro { color: var(--text-2); font-size: 18px; margin: 0 0 28px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--text-2); font-size: 16px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.cta { text-align: center; }
.cta img { width: 96px; border-radius: 22px; box-shadow: var(--shadow); }

/* Documents */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--text-2); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc li { margin: 6px 0; }
.note { background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 14px; padding: 14px 18px; margin: 20px 0; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
details p, details ul { color: var(--text-2); margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-2); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; }
  .grid, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease; }
  .btn:hover { transform: translateY(-1px); }
}
