/*
 * The product site's one stylesheet. Colours, type and shapes are the app's own tokens
 * (apps/web/src/index.css); change them there first, then here.
 */
@font-face { font-family: 'Montserrat Variable'; src: url('/fonts/montserrat.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3 Variable'; src: url('/fonts/source-sans-3.woff2') format('woff2-variations'); font-weight: 200 900; font-display: swap; }

:root {
  --blue-900: #004165;
  --blue-700: #006094;
  --yellow-300: #f2df74;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #e9eeee;
  --border: #d3dad9;
  --text: #0b1f2a;
  --muted: #4d5c64;
  --primary: var(--blue-900);
  --primary-fill: var(--blue-900);
  --on-primary: #ffffff;
  --primary-soft: #dfeaf1;
  --late: #a8500a;
  --hero: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  --radius: 10px;
  --radius-lg: 14px;
  --font-display: 'Montserrat Variable', Montserrat, system-ui, sans-serif;
  --font-body: 'Source Sans 3 Variable', 'Source Sans 3', 'Segoe UI', Arial, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06171f;
    --surface: #0d2531;
    --surface-2: #14333f;
    --border: #234656;
    --text: #f1f5f6;
    --muted: #a9b2b1;
    --primary: #7cc3e8;
    --primary-fill: var(--blue-700);
    --primary-soft: #113a4e;
    --late: #fbbf24;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2.2rem; }
h3 { font-size: 1.05rem; font-weight: 650; }
p, ul, ol { margin: 0.7rem 0 0; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.3rem; }
a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow-300); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 0.5rem; background: var(--surface); padding: 0.4rem 0.7rem; border-radius: var(--radius); z-index: 2; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1.1rem var(--font-display); color: var(--text); text-decoration: none; min-height: 44px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.1rem; }
.top nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 0.6rem 0; }
.top nav a:not(.btn):hover, .top nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.1rem; border-radius: var(--radius); background: var(--primary-fill); color: var(--on-primary); font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.btn-small { min-height: 40px; padding: 0.35rem 0.9rem; }
.btn-quiet { background: transparent; color: #fff; border-color: rgb(255 255 255 / 60%); }

.band { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.band-tint { background: var(--surface); border-block: 1px solid var(--border); }
.band h2 { margin-top: 0; font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.band .lead { color: var(--muted); max-width: 40rem; font-size: 1.08rem; }

.hero { background: var(--hero); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: center; padding-top: clamp(2rem, 6vw, 4rem); }
.hero-text { padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; max-width: 34rem; opacity: 0.94; }
.hero .btn { background: #fff; color: var(--blue-900); }
.hero .btn.btn-quiet { background: transparent; color: #fff; border-color: rgb(255 255 255 / 60%); }
.hero-note { font-size: 0.95rem !important; opacity: 0.8 !important; margin-top: 1rem; }
.hero-shot { align-self: end; justify-self: center; margin-bottom: -3.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.eyebrow { font: 650 0.8rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin: 0 0 0.6rem; }
.band .eyebrow { color: var(--primary); opacity: 1; }

/* A picture of the app, framed as a phone. */
.phone { display: block; width: min(100%, 17rem); border: 9px solid #0b1f2a; border-radius: 2.2rem; overflow: hidden; background: #0b1f2a; box-shadow: 0 18px 40px rgb(0 20 35 / 28%); line-height: 0; }
.phone img { width: 100%; height: auto; display: block; }
.phone-crop { aspect-ratio: 390 / 640; }
.phone-crop img { height: 100%; object-fit: cover; object-position: top; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem 1.5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps h3 { margin-top: 1.2rem; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: 0.5rem; border-radius: 50%; background: var(--primary-fill); color: #fff; font-size: 0.9rem; vertical-align: 0.1em; }
.steps p { color: var(--muted); max-width: 19rem; margin-top: 0.4rem; }

/* The timing signal, drawn rather than pictured. The colours are the app's own. */
.signal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.4rem; max-width: 34rem; }
.signal div { border-radius: var(--radius); padding: 0.9rem 0.8rem; color: #fff; font-weight: 650; }
.signal span { display: block; font: 700 1.5rem var(--font-display); }
.sig-green { background: #15803d; }
.sig-yellow { background: #facc15; color: #2a2400 !important; }
.sig-red { background: #dc2626; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2rem 3rem; align-items: center; }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.way { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem 1.3rem; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.band-tint .way, .band-tint .card { background: var(--bg); }
.way p { margin: 0; color: var(--muted); flex: 1; }
.way .who { font: 650 0.78rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.way .btn { align-self: flex-start; margin-top: 0.4rem; }
.btn-line { background: transparent; color: var(--primary); border-color: var(--primary); }

.faq { margin-top: 1.2rem; max-width: 44rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 0.2rem 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 0.8rem 0; min-height: 44px; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

.cta { background: var(--hero); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: 0.92; margin-inline: auto; max-width: 34rem; }
.cta .actions { justify-content: center; }
.cta .btn { background: #fff; color: var(--blue-900); }

.path { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem 1.4rem; margin-top: 1.4rem; scroll-margin-top: 1rem; }
.path h2 { margin-top: 0.2rem; }
.path .who { font: 650 0.78rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin: 0; }
.updated { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 46rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { margin-bottom: -5rem; }
  .signal span { font-size: 1.2rem; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.9rem; margin-top: 1rem; padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin: 0; }
.card p { margin-top: 0.35rem; color: var(--muted); }
.note { background: var(--primary-soft); border-radius: var(--radius); padding: 0.8rem 1rem; margin-top: 1.2rem; }
.draft { border-left: 4px solid var(--late); background: var(--surface); border-radius: var(--radius); padding: 0.8rem 1rem; margin-top: 1rem; }
.muted { color: var(--muted); }

.prose { max-width: 46rem; padding-top: 2rem; }
.prose table { border-collapse: collapse; width: 100%; margin-top: 0.8rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-display); font-size: 0.9rem; }

.foot { margin-top: 3rem; border-top: 1px solid var(--border); padding: 1.3rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-top: 0.6rem; }
.foot nav a { padding: 0.5rem 0; }

.facts { margin: 1rem 0 0; }
.facts dt { font-weight: 650; margin-top: 0.6rem; }
.facts dd { margin: 0.1rem 0 0; color: var(--muted); }
