/* Colours follow lib/palette.ts: #2B6CD9 is the app's accent (4.9:1 on white), #4F8EF7 its dark twin. */
:root {
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1F2937;
  --muted: #4B5563;
  --accent: #2B6CD9;
  --accent-fill: #2B6CD9;
  --border: #868E99;
  --rule: #E5E7EB;
  --danger: #B91C1C;
  --success: #047857;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --card: #1E293B;
    --text: #F8FAFC;
    --muted: #CBD5E1;
    --accent: #4F8EF7;
    --border: #6B7280;
    --rule: #334155;
    --danger: #F87171;
    --success: #34D399;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 24px; padding-bottom: 8px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
main { padding-bottom: 32px; }
h1 { font-size: 28px; line-height: 1.25; margin: 24px 0 8px; }
h2 { font-size: 20px; margin: 24px 0 8px; }
h3 { font-size: 17px; margin: 16px 0 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--rule); }
footer { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }

.card { background: var(--card); border-radius: 12px; padding: 24px; margin-top: 24px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 600; margin: 16px 0 4px; }
input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
button {
  margin-top: 20px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-fill);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 1; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Home page: wider than the legal pages, which keep their reading width. */
.home header, .home main, .home footer { max-width: 1040px; }
.home header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.home header nav { display: flex; gap: 20px; font-size: 15px; }
.home header nav a { color: var(--text); text-decoration: none; }
.home header nav a:hover { color: var(--accent); text-decoration: underline; }
.home section { padding: 40px 0; border-top: 1px solid var(--rule); }
.home section.hero { border-top: 0; }
.home h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin-top: 8px; }
.home h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 0 0 20px; }
.home h3 { margin-top: 0; }

.hero { display: grid; gap: 32px; align-items: center; }
.lead { font-size: 18px; }
.badge {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
}
.phone { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18)); }
@media (prefers-color-scheme: dark) {
  /* A shadow does not show on a dark page, and the dark screenshot would melt into it. */
  .phone { filter: drop-shadow(0 0 1px var(--border)); }
}
.hero-phone { max-width: 280px; margin: 0 auto; }
.hero-phone img { width: 100%; height: auto; display: block; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 300px; }
  .hero-phone { max-width: none; }
}

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.features p { margin: 0; color: var(--muted); }
.pro {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

.screens { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 520px) {
  .screens { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .screens figure { scroll-snap-align: center; }
}

.panel ul { margin: 0 0 16px; padding-left: 20px; }
.panel li { margin: 6px 0; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.plan-pro { border: 2px solid var(--accent); }
.plan .price { font-weight: 700; margin: 0 0 8px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 4px 0; }

details { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 0 20px; margin: 0 0 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
details p { margin: 0 0 16px; }

.error { color: var(--danger); font-weight: 600; }
.success { color: var(--success); font-weight: 600; }
[hidden] { display: none !important; }
