/* Unfaffed website. Colours and type match the app (docs/brand, src/constants/theme.ts). */

/* Outfit (SIL Open Font Licence), served from our own site: no request to
   Google, so visitors aren't tracked and the security policy can stay strict. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/fonts/Outfit-400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/fonts/Outfit-500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/Outfit-600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/fonts/Outfit-700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/fonts/Outfit-800ExtraBold.ttf') format('truetype'); }

:root {
  --ink: #1b2a4a;
  --coral: #ff7a59;
  --coral-on-light: #e5573a;
  --mist: #f5f6fa;
  --white: #ffffff;

  --bg: var(--mist);
  --surface: var(--white);
  --raised: #e6e9f0;
  --text: var(--ink);
  --text-2: #4d5873;
  --border: #cdd2de;
  --accent: var(--coral-on-light);
  --button: var(--ink);
  --button-text: var(--white);
  --logo-letters: var(--ink);
  --logo-u: var(--coral-on-light);
  --hero: var(--ink);
  --hero-text: var(--white);
  --hero-text-2: #b7bfd1;
  --focus: var(--ink);
  --error: #b5390f;

  --radius: 16px;
  --radius-button: 12px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1628;
    --surface: #18233a;
    --raised: #222e48;
    --text: #f2f4f8;
    --text-2: #a9b3c7;
    --border: #2d3a57;
    --accent: var(--coral);
    --button: var(--coral);
    --button-text: var(--ink);
    --logo-letters: #f2f4f8;
    --logo-u: var(--coral);
    --hero: #18233a;
    --focus: var(--coral);
    --error: #ff9a7e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; }
/* Focus ring: ink on light backgrounds, coral on the dark hero and in dark mode (3:1 or better). */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.hero a:focus-visible, .hero button:focus-visible, .hero input:focus-visible { outline-color: var(--coral); }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 16px; z-index: 10; }

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

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 30px; width: auto; }
.logo .letters { stroke: var(--logo-letters); }
.logo .u { stroke: var(--logo-u); }
.hero .logo .letters { stroke: var(--white); }
.hero .logo .u { stroke: var(--coral); }
.nav { display: flex; gap: 20px; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--hero); color: var(--hero-text); padding-bottom: 72px; }
.hero .site-header { color: var(--hero-text); }
.hero-body { padding-top: 48px; display: grid; gap: 40px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.eyebrow { color: var(--coral); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: 21px; color: var(--hero-text-2); margin: 0 0 28px; max-width: 34em; }
.invited {
  display: none; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 122, 89, 0.16); color: var(--hero-text); font-weight: 500;
}
.invited.show { display: inline-block; }

/* Waitlist form */
.join { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.join label { position: absolute; left: -999px; }
.join input[type=email] {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px; font: inherit; font-size: 17px;
  border-radius: var(--radius-button); border: 1.5px solid transparent; background: var(--white); color: var(--ink);
}
.button {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--radius-button); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 17px; background: var(--coral); color: var(--ink);
}
.button:hover { filter: brightness(1.05); }
.button[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--hero-text-2); margin: 12px 0 0; }
.form-message { font-weight: 600; margin: 12px 0 0; min-height: 1.5em; }
.form-message.error { color: #ffb4a3; }

/* Phone mock in the hero */
.phone {
  justify-self: center; width: min(320px, 100%); background: var(--mist); color: var(--ink);
  border-radius: 36px; padding: 22px 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); border: 8px solid #0b1222;
}
.phone .phone-title { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.phone .sub { font-size: 13px; color: #4d5873; margin: 0 0 14px; }
.card {
  background: var(--white); border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center;
  margin-bottom: 10px; font-size: 15px;
}
.card strong { display: block; font-size: 16px; }
.card span { color: #4d5873; font-size: 13px; }
.chip { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.chip svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Item type colours, as in the app. */
.chip.appointment { background: #e3ecff; } .chip.appointment svg { stroke: #2d5bd7; }
.chip.renewal { background: #fff1d6; } .chip.renewal svg { stroke: #9a5b00; }
.chip.bill { background: #eee8ff; } .chip.bill svg { stroke: #6a4bd1; }
.chip.chase { background: #ffe6df; } .chip.chase svg { stroke: #b5390f; }

/* Sections */
section { padding: 72px 0; }
h2.section-title { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lede { color: var(--text-2); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.tile h3 { margin: 10px 0 6px; font-size: 20px; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); font-weight: 700;
}
.alt { background: var(--surface); }
.alt .tile { background: var(--bg); }
.promise { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; max-width: 46em; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.tick { flex: none; width: 22px; height: 22px; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
details { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: var(--text-2); margin: 10px 0 0; }

/* Closing call to action */
.cta { text-align: center; }
.centred { margin-left: auto; margin-right: auto; }
.cta .join { margin: 0 auto; justify-content: center; }
.cta .form-note { color: var(--text-2); }
.cta .form-message.error { color: var(--error); }
.cta input[type=email] { border-color: var(--border); }

/* Text pages (privacy, terms, support) */
.page { padding: 24px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: var(--text); }
.page .muted { color: var(--text-2); }
.page table { border-collapse: collapse; width: 100%; font-size: 16px; }
.page th, .page td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--text-2); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 56px 0; }
}
