/* Einbürgerungstest – 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: 800;
  font-display: swap;
  src: url("/fonts/nunito-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@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: #f6f5f1;
  --surface-strong: #eceae4;
  --card: #ffffff;
  --line: #e8e6e0;
  --line-strong: #d6d3cb;
  --ink: #16161a;
  --ink-soft: #55555f;
  --ink-muted: #8e8e98;

  --brand: #ffc52e;
  --brand-edge: #e0a100;
  --brand-soft: #fff4d1;
  --on-brand: #16161a;

  --dark: #16161a;
  --dark-edge: #000000;
  --on-dark: #ffffff;

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

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

  --info: #3478f6;
  --info-soft: #e8f0fe;
  --flame: #ff8a1f;
  --flame-soft: #fff0e0;

  --flag-black: #000000;
  --flag-red: #dd0000;
  --flag-gold: #ffce00;

  --phone-bezel: #16161a;
  --phone-ring: #2c2c33;

  --radius: 20px;
  --radius-sm: 14px;
  --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: #0e0e11;
    --surface: #18181d;
    --surface-strong: #222228;
    --card: #18181d;
    --line: #26262d;
    --line-strong: #34343c;
    --ink: #f3f3f5;
    --ink-soft: #ababb5;
    --ink-muted: #73737e;

    --brand-edge: #b88600;
    --brand-soft: #2e2610;

    --dark: #f3f3f5;
    --dark-edge: #a9a9b2;
    --on-dark: #16161a;

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

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

    --info: #5b93fa;
    --info-soft: #16213a;
    --flame: #ff9a3d;
    --flame-soft: #33220f;

    --phone-bezel: #050507;
    --phone-ring: #3a3a42;
  }
}

/* ---------- 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.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.6vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
}

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(--info);
  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-head {
  max-width: 680px;
  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);
}

.mark {
  background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%);
  padding: 0 0.04em;
}
@media (prefers-color-scheme: dark) {
  .mark {
    background: none;
    color: var(--brand);
  }
}

/* ---------- Flag bar + header ---------- */

.flagbar {
  display: flex;
  height: 4px;
}
.flagbar span {
  flex: 1;
}
.flagbar span:nth-child(1) {
  background: var(--flag-black);
}
.flagbar span:nth-child(2) {
  background: var(--flag-red);
}
.flagbar span:nth-child(3) {
  background: var(--flag-gold);
}
@media (prefers-color-scheme: dark) {
  .flagbar span:nth-child(1) {
    background: #3a3a40;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, 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: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  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: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
.site-header .btn {
  margin-left: auto;
}
@media (min-width: 820px) {
  .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: 16px;
  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.03);
}
.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: 13px;
  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-block {
  width: 100%;
}

/* ---------- 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 #3b3b42;
  transition: transform 80ms ease, box-shadow 80ms ease;
  -webkit-tap-highlight-color: transparent;
}
.store:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #3b3b42;
}
.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;
}
@media (prefers-color-scheme: dark) {
  .store {
    box-shadow: 0 4px 0 #2a2a30;
  }
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy p.lead {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
}
.hero-copy .stores {
  margin-top: 30px;
}

.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(--ink-soft);
}
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.checks svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px;
}
.phones::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(440px, 92%);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-6deg);
  border-radius: 64px;
  background: var(--brand);
  box-shadow: 0 10px 0 var(--brand-edge);
}
.phones .phone {
  position: relative;
}
.phones .phone + .phone {
  margin-left: -48px;
  margin-top: 64px;
}

.phone {
  width: clamp(168px, 44vw, 268px);
  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(10, 10, 14, 0.45);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 37px;
  background: var(--surface);
}
@media (max-width: 420px) {
  .phone {
    padding: 6px;
    border-radius: 30px;
  }
  .phone img {
    border-radius: 25px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
  }
  .phones::before {
    width: min(560px, 106%);
    top: 10%;
  }
}

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

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  padding: 26px 8px;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.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);
  }
  .stats li + li {
    border-left: 1px solid var(--line);
  }
}

/* ---------- 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-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: 14px;
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}
.tone-gold {
  background: var(--brand-soft);
  color: var(--brand-edge);
}
.tone-green {
  background: var(--success-soft);
  color: var(--success);
}
.tone-blue {
  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-gold {
    color: var(--brand);
  }
}

.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: 8px;
  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: 12% 8% 6%;
  border-radius: 48px;
  background: 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;
  }
}

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

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 28px 24px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  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);
  }
}

/* ---------- Languages ---------- */

.lang-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .lang-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
}
.lang-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.lang-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 10px 14px 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: start;
  transition: transform 80ms ease, box-shadow 80ms ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-pill:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--line);
}
.lang-pill b {
  font-weight: 800;
  font-size: 1.05rem;
}
.lang-pill span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.lang-pill[aria-pressed="true"] {
  border-color: var(--brand-edge);
  background: var(--brand-soft);
  box-shadow: 0 3px 0 var(--brand-edge);
}
.lang-note {
  margin-top: 22px;
  color: var(--ink-soft);
}

.demo {
  padding: 24px;
}
.demo-q {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.demo-t {
  margin-top: 6px;
  color: var(--ink-soft);
}
.demo-answers {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.demo-answers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--line);
}
.demo-answers .letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.demo-answers b {
  display: block;
  font-weight: 800;
}
.demo-answers small {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.demo-answers .ok {
  border-color: var(--success);
  background: var(--success-soft);
  box-shadow: 0 3px 0 var(--success-edge);
}
.demo-answers .ok .letter {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.demo-answers .ok small {
  color: var(--success-ink);
}
.demo-why {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.demo-why b {
  color: var(--ink);
}
[dir="rtl"] {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

/* ---------- 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-edge);
  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 {
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.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);
}
.fine {
  margin-top: 26px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 820px;
}

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

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 2px solid var(--line);
  border-radius: 18px;
  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(--ink-muted);
  border-bottom: 3px solid var(--ink-muted);
  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;
}

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

.cta {
  background: var(--brand);
  color: var(--on-brand);
  padding: 80px 0;
  text-align: center;
}
.cta p {
  margin: 14px auto 0;
  max-width: 40ch;
  font-size: 1.15rem;
  font-weight: 800;
}
.cta .stores {
  justify-content: center;
  margin-top: 30px;
}
.cta .soon {
  color: var(--on-brand);
}
.cta .store {
  box-shadow: 0 4px 0 var(--brand-edge);
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  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: 1fr auto;
    align-items: center;
  }
}

/* ---------- 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-edge);
  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-edge);
  margin: 0;
}
.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;
}
.section-lead {
  margin-top: 16px;
  font-size: 1.125rem;
  max-width: 40ch;
}
.plan-remind {
  margin: 18px 0 20px;
  font-size: 0.95rem;
}
.back-bottom {
  margin-top: 48px;
}
.back-bottom .back {
  margin-bottom: 0;
}
.notfound h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.nowrap {
  white-space: nowrap;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

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

.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 {
  color: var(--ink);
  text-decoration-color: var(--brand-edge);
  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(--surface);
  border: 2px solid var(--line);
  color: var(--ink-soft);
}
.facts b {
  color: var(--ink);
}

.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(--line-strong);
}
.jump .chip span {
  color: var(--ink-muted);
}

.qcard {
  padding: 22px 18px 24px;
}
.qcards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@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-title {
  font-size: clamp(1.5rem, 4.6vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2.q-title {
  font-size: clamp(1.3rem, 3.8vw, 1.65rem);
}

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

.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: 16px;
  box-shadow: 0 3px 0 var(--line);
  font-weight: 800;
  line-height: 1.35;
}
.answers .letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  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: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-soft);
}
.why-title {
  margin-bottom: 4px;
  font-weight: 900;
  color: var(--ink);
}
.q-source {
  margin-top: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.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;
}

.app-cta {
  margin-top: 40px;
  padding: 26px 22px 28px;
  border-color: var(--brand-edge);
  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 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  text-decoration: none;
}
.q-links a:hover {
  border-color: var(--line-strong);
}
.qi-num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 40px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--surface-strong);
  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.35;
}
.qi-text small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--success-ink);
}
.toc {
  margin-top: 28px;
}

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

/* 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 .btn {
  margin-top: 28px;
}
.questions-teaser h3 {
  margin-top: 40px;
}
