/* The public pages (#12). Same palette as the app (styles.css :root). */
:root {
  --brand: #2a64ad;
  --brand-deep: #1b4880;
  --brand-tint: #eef3fa;
  --surface: #fcfcfb;
  --page: #f2f5f9;
  --ink: #0b0b0b;
  --ink-2: #4c5361;
  --muted: #5f6673;
  --hairline: #dde3eb;
  --shadow-card: 0 1px 2px rgb(27 72 128 / 6%), 0 2px 8px rgb(27 72 128 / 6%);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: 2.1rem;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.5em;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4em;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.small {
  font-size: 0.88rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.button {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--brand);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-deep);
}

.button.small {
  padding: 0.35em 0.9em;
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 0.8em;
}

/* ── Header and footer ───────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.95rem;
}

.site-header nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
}

.site-header nav a:not(.button):hover,
.site-header nav a[aria-current='page'] {
  color: var(--brand-deep);
  text-decoration: underline;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  background: var(--page);
  padding: 24px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

/* ── Home ────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, var(--brand-tint), var(--surface));
  padding: 48px 0 32px;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.band {
  margin-top: 56px;
}

.example {
  margin: 0;
  font-size: 0.92rem;
}

.example figcaption {
  margin-bottom: 10px;
}

.example table {
  width: 100%;
  border-collapse: collapse;
}

.example th,
.example td {
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.example thead th {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.example tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
}

.example .verdict {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--ink);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

.closing {
  text-align: center;
  padding: 32px 20px;
  background: var(--brand-tint);
  border-radius: 16px;
}

.closing h2 {
  margin-top: 0;
}

/* ── Text pages ──────────────────────────────────────────── */

.text-page {
  max-width: 760px;
  padding-top: 40px;
}

.text-page section h2 {
  font-size: 1.2rem;
}

.limits {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
  color: var(--ink-2);
}

.faq dt {
  font-weight: 700;
  margin-top: 1.3em;
}

.faq dd {
  margin: 0.3em 0 0;
  color: var(--ink-2);
}

.plan {
  max-width: 460px;
  margin: 24px 0;
}

.plan h2 {
  margin-top: 0;
}

.plan .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.plan .price span {
  font-size: 1rem;
  font-weight: 400;
}

.plan ul {
  padding-left: 1.2em;
  margin: 0 0 20px;
}

/* ── Phones ──────────────────────────────────────────────── */

@media (max-width: 820px) {
  .hero-row,
  .cards.three,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .example {
    font-size: 0.85rem;
  }
}
