/* Bootsführerschein (SBF Trainer) – website styles. No build step. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext-900-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (mirrors src/theme/colors.ts of the app) ---------- */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f1f5fa;
  --surface-strong: #e4ecf5;
  --card: #ffffff;
  --line: #e1e8f0;
  --line-strong: #c9d5e3;
  --ink: #0b1b2e;
  --ink-soft: #4a5b70;
  --ink-muted: #6b7d93;

  --brand: #1665d8;
  --brand-edge: #0d4ca6;
  --brand-soft: #e3edfc;
  --on-brand: #ffffff;
  --brand-ink: #0d4ca6;

  --navy: #0b1b2e;
  --navy-2: #0d3a7a;
  --on-navy: #ffffff;
  --on-navy-soft: #c4d6ee;

  --sun: #ffc94a;
  --sun-edge: #d99a00;
  --sun-soft: #fff4d6;
  --hull: #ff5a36;

  --success: #2fb36d;
  --success-edge: #23955a;
  --success-soft: #e5f6ec;
  --success-ink: #1b7a47;

  --danger: #e5484d;
  --danger-soft: #fcebec;

  --info: #0b97ae;
  --info-soft: #dff4f7;
  --flame: #ff8a1f;
  --flame-soft: #fff0e0;

  --phone-bezel: #0b1b2e;
  --phone-ring: #22344d;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --gutter: 20px;

  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061527;
    --surface: #0d2138;
    --surface-strong: #142c48;
    --card: #0d2138;
    --line: #16304d;
    --line-strong: #224166;
    --ink: #eef4fb;
    --ink-soft: #a6b6ca;
    --ink-muted: #7d93ad;

    --brand: #3d8bff;
    --brand-edge: #1f5fc4;
    --brand-soft: #10294b;
    --brand-ink: #7fb2ff;

    --navy: #030d19;
    --navy-2: #0b2a52;

    --sun-edge: #a87700;
    --sun-soft: #2e2510;

    --success: #34c477;
    --success-edge: #228a52;
    --success-soft: #12291c;
    --success-ink: #5bd892;

    --danger: #f2555a;
    --danger-soft: #30171a;

    --info: #2bc0d6;
    --info-soft: #0c2c38;
    --flame: #ff9a3d;
    --flame-soft: #33220f;

    --phone-bezel: #01070f;
    --phone-ring: #224166;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

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

.section {
  padding: 88px 0;
}
.section.tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.section-head {
  max-width: 700px;
  margin-bottom: 44px;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.muted {
  color: var(--ink-soft);
}

/* ---------- Tide bar + header ---------- */

.tidebar {
  height: 5px;
  background: linear-gradient(90deg, var(--brand-edge) 0%, var(--brand) 45%, var(--info) 75%, var(--sun) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--brand-edge);
}

.nav {
  display: none;
  margin-left: auto;
  gap: 2px;
}
.nav a {
  padding: 8px 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}
.site-header .btn {
  margin-left: auto;
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
  .site-header .btn {
    margin-left: 8px;
  }
}

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

.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-edge: var(--brand-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 4px 0 var(--btn-edge);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--btn-edge);
}
.btn-sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--btn-edge);
}
.btn-sm:active {
  transform: translateY(3px);
}
.btn-ghost {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-edge: var(--line-strong);
  border: 2px solid var(--line-strong);
}
.btn-sun {
  --btn-bg: var(--sun);
  --btn-fg: #0b1b2e;
  --btn-edge: var(--sun-edge);
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Store badges ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  min-width: 192px;
  padding: 0 18px 0 14px;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 0 #22344d;
  transition: transform 80ms ease, box-shadow 80ms ease;
  -webkit-tap-highlight-color: transparent;
}
.store:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #22344d;
}
.store svg {
  flex: none;
  width: 26px;
  height: 26px;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.store-text small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.store-text strong {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.store-text small.caps {
  text-transform: uppercase;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.soon {
  display: none;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.is-soon .soon {
  display: block;
}

/* ---------- Hero (dark, with a wave at the bottom) ---------- */

.hero {
  position: relative;
  padding: 48px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 201, 74, 0.22) 0, rgba(255, 201, 74, 0) 32%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 62%, var(--brand-edge) 100%);
  color: var(--on-navy);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 .accent {
  color: var(--sun);
}
.hero-copy p.lead {
  margin-top: 20px;
  max-width: 36ch;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--on-navy-soft);
}
.hero-copy .stores {
  margin-top: 30px;
}
.hero .soon {
  color: var(--on-navy-soft);
}
.hero .store {
  box-shadow: 0 4px 0 #000814;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--on-navy-soft);
}
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.checks svg {
  width: 18px;
  height: 18px;
  color: var(--sun);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
}
.hero-wave path {
  fill: var(--bg);
}
.hero-wave path.back {
  fill: var(--bg);
  opacity: 0.35;
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px;
}
.phones::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(420px, 90%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffd979 0, var(--sun) 55%, #f2b21c 100%);
  box-shadow: 0 0 0 18px rgba(255, 201, 74, 0.12), 0 0 0 44px rgba(255, 201, 74, 0.06);
}
.phones .phone {
  position: relative;
}
.phones .phone + .phone {
  margin-left: -44px;
  margin-top: 70px;
}

.phone {
  position: relative;
  width: clamp(164px, 43vw, 262px);
  flex: none;
  padding: 9px;
  border-radius: 46px;
  background: var(--phone-bezel);
  box-shadow:
    0 0 0 2px var(--phone-ring),
    0 30px 60px -24px rgba(1, 7, 15, 0.55);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 37px;
  background: var(--surface);
}
/* Shown by site.js when a screenshot file is missing. */
.screen-fallback {
  display: none;
  place-items: center;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 37px;
  background: linear-gradient(180deg, #2183f2 0%, #0a3570 100%);
}
.screen-fallback svg {
  width: 44%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
}
.phone.is-missing picture {
  display: none;
}
.phone.is-missing .screen-fallback {
  display: grid;
}
@media (max-width: 420px) {
  .phone {
    padding: 6px;
    border-radius: 30px;
  }
  .phone img,
  .screen-fallback {
    border-radius: 25px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 150px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
  }
  .phones::before {
    width: min(500px, 100%);
    top: 8%;
  }
  .hero-wave {
    height: 96px;
  }
}

/* ---------- Stats ---------- */

.stats ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  padding: 22px 12px;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}
.stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .stats ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.stats {
  margin-top: -8px;
  padding-bottom: 8px;
}

/* ---------- Cards / features ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--line);
}

.grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 26px 24px 28px;
}
.feature h3 {
  margin-top: 18px;
}
.feature p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}
.tone-brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.tone-sun {
  background: var(--sun-soft);
  color: var(--sun-edge);
}
.tone-green {
  background: var(--success-soft);
  color: var(--success);
}
.tone-teal {
  background: var(--info-soft);
  color: var(--info);
}
.tone-red {
  background: var(--danger-soft);
  color: var(--danger);
}
.tone-orange {
  background: var(--flame-soft);
  color: var(--flame);
}
@media (prefers-color-scheme: dark) {
  .tone-sun {
    color: var(--sun);
  }
}

.extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Showcase rows ---------- */

.showcase {
  display: grid;
  gap: 40px;
  align-items: center;
}
.showcase + .showcase {
  margin-top: 88px;
}
.showcase .phone {
  margin: 0 auto;
}
.showcase-copy p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 44ch;
}
.ticks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  margin-top: 1px;
}
.showcase-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.showcase-art::before {
  content: "";
  position: absolute;
  inset: 14% 6% 4%;
  border-radius: 50% 50% 40px 40px;
  background: linear-gradient(180deg, var(--brand-soft), var(--surface));
  border: 2px solid var(--line);
}
.showcase-art .phone {
  position: relative;
}
@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .showcase.flip .showcase-art {
    order: 2;
  }
}

/* ---------- Licences ---------- */

.licences {
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .licences {
    grid-template-columns: 1fr 1fr;
  }
}
.licence {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}
.licence .tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.licence h3 {
  margin-top: 14px;
  font-size: 1.6rem;
  font-weight: 900;
}
.licence > p {
  margin-top: 8px;
  color: var(--ink-soft);
}
.licence dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 20px 0 24px;
}
.licence dt {
  font-weight: 900;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.licence dd {
  margin: 0;
  color: var(--ink-soft);
}
.licence .btn {
  margin-top: auto;
  align-self: flex-start;
}
.later {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 28px 24px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 4px 0 var(--brand-edge);
  font-weight: 900;
  font-size: 1.5rem;
}
.steps h3 {
  margin-top: 20px;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Shuffle demo ---------- */

.demo-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
}
.demo {
  padding: 24px;
}
.demo-q {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.demo-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.demo-tools a {
  font-weight: 800;
  color: var(--brand-ink);
}
.demo-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.plan {
  padding: 30px 26px;
}
.plan h3 {
  font-size: 1.5rem;
  font-weight: 900;
}
.plan-price {
  margin-top: 10px;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-price small {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.plan-sub {
  margin-top: 6px;
  color: var(--ink-soft);
}
.plan ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--success);
}
.plan-plus {
  border-color: var(--brand);
  box-shadow: 0 6px 0 var(--brand-edge);
}
.plan-plus .plus-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1rem;
  vertical-align: 4px;
}
.options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 520px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
}
.option {
  position: relative;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.option.best {
  border-color: var(--sun-edge);
  background: var(--sun-soft);
}
.badge {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sun);
  color: #0b1b2e;
  font-size: 0.78rem;
  font-weight: 900;
}
.option h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.option .plan-price {
  font-size: 2rem;
  margin-top: 6px;
}
.option p {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
}
.option p.ok {
  color: var(--success-ink);
}
.compare {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px dashed var(--line-strong);
  color: var(--ink-soft);
  max-width: 820px;
}
.compare b {
  color: var(--ink);
}
.fine {
  margin-top: 22px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 820px;
}
.fine a {
  color: inherit;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq .answer {
  padding: 0 20px 20px;
  color: var(--ink-soft);
}
.faq .answer p + p {
  margin-top: 10px;
}
.faq .answer a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--brand-edge) 0%, var(--navy) 100%);
  color: var(--on-navy);
  padding: 88px 0;
  text-align: center;
}
.cta p {
  margin: 14px auto 0;
  max-width: 40ch;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--on-navy-soft);
}
.cta .stores {
  justify-content: center;
  margin-top: 30px;
}
.cta .soon {
  color: var(--on-navy-soft);
}
.cta .store {
  box-shadow: 0 4px 0 #000814;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-top {
  display: grid;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (min-width: 820px) {
  .footer-top {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .footer-links {
    justify-content: flex-end;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 48px 0 80px;
}
.legal .wrap {
  max-width: 780px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-soft);
}
.back:hover {
  color: var(--ink);
}
.back svg {
  width: 18px;
  height: 18px;
}
.legal h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.legal .stand {
  margin-top: 10px;
  color: var(--ink-muted);
}
.prose {
  margin-top: 36px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.12rem;
}
.prose p,
.prose ul,
.prose ol,
.prose address {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 6px;
}
.prose address {
  font-style: normal;
}
.prose a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose .box {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.prose .box > :last-child {
  margin-bottom: 0;
}

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

.notfound {
  padding: 96px 0 120px;
  text-align: center;
}
.notfound .big {
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  margin: 0;
}
.notfound h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.notfound p {
  margin: 16px auto 32px;
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Small helpers ---------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.plan-remind {
  margin: 18px 0 20px;
  font-size: 0.95rem;
}
.back-bottom {
  margin-top: 48px;
}
.back-bottom .back {
  margin-bottom: 0;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Question pages (generated by website/scripts/build_pages.py) ---------- */

.qpage {
  padding: 24px 0 80px;
}
.qpage .wrap {
  max-width: 820px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.crumbs li + li::before {
  content: "›";
  margin: 0 8px;
}
.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.page-head h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.page-head .lead {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.page-head .lead a,
.facts a,
.related-more a,
.q-source a,
.prose-block a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.page-head .stand {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.facts {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 2px solid var(--line);
  color: var(--ink-soft);
}
.facts b {
  color: var(--ink);
}
.facts p + p {
  margin-top: 8px;
}

.prose-block {
  margin-top: 18px;
  color: var(--ink-soft);
}
.prose-block p + p {
  margin-top: 10px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.jump .chip,
.link-chips .chip {
  color: var(--ink);
  text-decoration: none;
}
.jump .chip:hover,
.link-chips .chip:hover {
  border-color: var(--brand);
}
.jump .chip span,
.link-chips .chip span {
  color: var(--ink-muted);
}

.qcard {
  padding: 22px 18px 24px;
}
@media (min-width: 640px) {
  .qcard {
    padding: 30px 30px 32px;
  }
}
.q-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.q-cat {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  text-decoration: none;
}
.q-cat:hover {
  text-decoration: underline;
}
.q-lic {
  padding: 3px 11px;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink-soft);
}
.q-title {
  font-size: clamp(1.45rem, 4.4vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* The catalogue images are drawn for a white background, also in dark mode. */
.q-img {
  margin: 20px 0 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: #ffffff;
}
.q-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Small symbols inside a sentence (sound signals), from the catalogue. */
img.inl {
  display: inline-block;
  width: auto;
  height: 1.35em;
  max-width: none;
  margin: 0 0.15em;
  padding: 2px 4px;
  border-radius: 5px;
  background: #ffffff;
  vertical-align: middle;
}
.qi-text img.inl,
.q-solution img.inl {
  height: 1.2em;
}

.answers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.answers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--line);
  font-weight: 800;
  line-height: 1.4;
}
.answers .letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.answers .a-text {
  min-width: 0;
  overflow-wrap: break-word;
}
.answers .ok {
  border-color: var(--success);
  background: var(--success-soft);
  box-shadow: 0 3px 0 var(--success-edge);
}
.answers .ok .letter {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}
.a-badge {
  flex: none;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--success-ink);
}
.q-solution {
  margin-top: 18px;
  font-weight: 800;
}
.q-solution b {
  color: var(--success-ink);
}
.why {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 5px solid var(--brand);
  background: var(--surface);
  color: var(--ink-soft);
}
.why-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 6px;
  font-weight: 900;
  color: var(--ink);
}
.why-title small {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.q-source {
  margin-top: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.q-source b {
  color: var(--ink-soft);
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.pager a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.pager .prev,
.pager .next {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
}
.pager .prev {
  justify-self: start;
  padding-left: 10px;
}
.pager .next {
  justify-self: end;
  padding-right: 10px;
}
.pager svg {
  width: 18px;
  height: 18px;
}
.pager .all {
  color: var(--ink-soft);
}
.pager .all:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 480px) {
  .pager .all {
    display: none;
  }
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}

.app-cta {
  margin-top: 40px;
  padding: 26px 22px 28px;
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 6px 0 var(--brand-edge);
}
@media (min-width: 640px) {
  .app-cta {
    padding: 34px 32px 36px;
  }
}
.app-cta h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
}
.app-cta > p {
  margin-top: 12px;
  color: var(--ink-soft);
}
.app-cta .ticks {
  margin-top: 18px;
}
.app-cta .stores {
  margin-top: 24px;
}
.app-cta .ticks svg {
  background: var(--card);
}
.cta-note {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.related,
.idx-section {
  margin-top: 52px;
}
.related h2,
.idx-section h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
}
.idx-section > p {
  margin-top: 6px;
  color: var(--ink-soft);
}
.related-more {
  margin-top: 18px;
  font-weight: 800;
}

.q-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.q-links a,
.q-links .static {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  text-decoration: none;
}
.q-links a:hover {
  border-color: var(--brand);
}
.qi-num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 900;
  font-size: 0.9rem;
}
.qi-text {
  min-width: 0;
  overflow-wrap: break-word;
}
.qi-text b {
  display: block;
  font-weight: 800;
  line-height: 1.4;
}
.qi-text small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--success-ink);
}
.qi-text small.later-note {
  color: var(--ink-muted);
}

/* Overview tiles (sections, topics, sheets) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
  }
}
.tiles.small {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.tiles a,
.tiles .static {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  text-decoration: none;
}
.tiles a:hover {
  border-color: var(--brand);
}
.tiles a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 3px 0 var(--brand-edge);
}
.tiles b {
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tiles span {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Exam format table */
.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.rules {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.rules th,
.rules td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.rules thead th {
  background: var(--surface);
  font-weight: 900;
  white-space: nowrap;
}
.rules tbody tr:last-child th,
.rules tbody tr:last-child td {
  border-bottom: 0;
}
.rules tbody th {
  font-weight: 800;
}
.rules td {
  color: var(--ink-soft);
}

/* Landing page: link block to the question pages */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.questions-teaser h3 {
  margin-top: 40px;
}
.section-lead {
  margin-top: 16px;
  font-size: 1.125rem;
  max-width: 42ch;
}
.center-row {
  justify-content: center;
}
.idx-section h3.sub {
  margin-top: 28px;
}
.qi-thumb {
  flex: none;
  margin-left: auto;
  width: 64px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.later-note .later {
  margin-left: 2px;
}
@media (max-width: 480px) {
  .a-badge {
    display: none;
  }
}
