/* Start page and guides (onboarding P3). Plain CSS, system fonts, same look as the dashboard. */
:root {
  --ink: #1a1d21;
  --muted: #5b6370;
  --line: #e3e6ea;
  --bg: #f6f7f9;
  --accent: #1a1d21;
  --ok: #17663a;
  --no: #9a3412;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 16px 48px; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.top, main, .foot { max-width: 1040px; margin: 0 auto; }
.top { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; flex: 1; }
.langs { display: flex; gap: 12px; }
.langs a[aria-current=true] { font-weight: 700; text-decoration: none; }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; margin: 0 0 12px; max-width: 760px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 20px; }
.start-form { max-width: 620px; }
.start-form label, .strong { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 6px; }
input[type=text], input[type=email], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #b8bec7; border-radius: 8px; min-width: 0; background: #fff; color: var(--ink);
}
.row input[type=text] { flex: 1; min-width: 220px; }
button, .button-link {
  font: inherit; padding: 10px 16px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.button-link { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
button[disabled] { opacity: .6; cursor: default; }
.muted { color: var(--muted); font-size: 14px; }
.msg { min-height: 1.5em; margin: 8px 0; }
.msg.error, .problems li { color: var(--no); }
.msg.ok, .ok { color: var(--ok); }
.banner { background: #eef4ff; border: 1px solid #c3d4f5; padding: 10px 14px; border-radius: 8px; margin: 0 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.card h2, .card h3 { margin: 0 0 10px; font-size: 18px; }
section > h2 { font-size: 24px; margin: 32px 0 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.extras { margin-top: 32px; }
.result { margin-top: 16px; }
.progress p { margin: 4px 0; }
.problems { margin: 6px 0 12px; padding-left: 20px; }
.copy-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
textarea.code { flex: 1; width: 100%; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.code-line { display: block; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f3f5; padding: 8px; border-radius: 6px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs [role=tab] { background: none; color: var(--ink); border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; }
.tabs [role=tab][aria-selected=true] { border-color: var(--line); background: var(--bg); font-weight: 600; }
.panel { padding: 12px 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-left: 20px; }
.actions { margin-top: 8px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan.chosen { border: 2px solid var(--ink); }
.plan .price { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.plan ul { padding-left: 18px; margin: 0 0 14px; }
.interval { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot { color: var(--muted); font-size: 14px; margin-top: 32px; }
/* Guides: each page holds an English and an Estonian article; guide.js shows one. */
.guide article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; max-width: 760px; }
.guide ol li { margin-bottom: 8px; }
html[lang=et] .guide article[lang=en], html:not([lang=et]) .guide article[lang=et] { display: none; }
