/* Styles for the public pages (About, Pricing, Terms, Privacy ...).  The app itself has its own styles. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --note-bg: #fef3c7;
  --note-border: #f59e0b;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2a44;
    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-soft: #1e3a8a;
    --note-bg: #3b2f0b;
    --note-border: #b45309;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--primary); }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--primary); }
.bar nav a.cta {
  color: #fff;
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
}
.bar nav a.cta:hover { background: var(--primary-hover); color: #fff; }

/* ---------- document ---------- */
main { max-width: 860px; margin: 0 auto; padding: 40px 20px 72px; }
main.wide { max-width: 1000px; }

h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0; }
.grid .card { margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
td small { display: block; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { background: var(--primary-hover); color: #fff; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--surface); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 32px 20px 40px; display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); font-size: 14.5px; }
.foot-in h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 10px; }
.foot-in ul { list-style: none; padding: 0; margin: 0; }
.foot-in li { margin-bottom: 6px; }
.foot-in a { text-decoration: none; color: var(--text); }
.foot-in a:hover { color: var(--primary); }
.foot-in p { margin: 0 0 8px; color: var(--muted); }
.legal-line { max-width: 1080px; margin: 0 auto; padding: 0 20px 28px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .bar nav { margin-left: 0; }
  dl.facts { grid-template-columns: 1fr; }
}
