/* Diiwaan public pages (docs/design/public-pages.md). White page, green
   #0B6E4F, near-black #0F1412. Roboto when installed, else the system font
   (no font download: CSP allows only 'self' and we ship no font files yet). */
:root {
  --bg: #ffffff;
  --ink: #0f1412;
  --muted: #56615c;
  --line: #e2e7e4;
  --green: #0b6e4f;
  --link: #0b6e4f;
  --red: #b3261e;
  --soft-red: #fff6f5;
  --soft-red-line: #f6d2ce;
  --card: #f6f8f7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --ink: #eceFed;
    --muted: #a9b3ae;
    --line: #2a3330;
    --link: #5fd3a0;
    --card: #18201d;
    --soft-red: #2a1716;
    --soft-red-line: #5a2a26;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--link); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }

.top { height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 20px; margin-left: auto; }
.navlink { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.langs { display: flex; gap: 4px; }
.lang { min-width: 40px; min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.lang.current { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 479px) { .links { display: none; } .langs { margin-left: auto; } }

main { padding: 32px 24px 48px; max-width: 1080px; margin: 0 auto; }
.column { max-width: 760px; margin: 0 auto; }
.column.narrow { max-width: 560px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 24px 0 40px; }
@media (max-width: 639px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; }
.hero h1 span { display: block; }
.green { color: var(--green); }
@media (prefers-color-scheme: dark) { .green { color: #5fd3a0; } }
.lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); max-width: 34em; }
.by { color: var(--muted); font-size: 0.9rem; }
.sample { background: var(--green); color: #fff; border-radius: 28px; padding: 28px; }
.sample-label { font-size: 0.75rem; letter-spacing: 0.08em; margin: 0; opacity: 0.85; }
.sample-total { font-size: 2.6rem; font-weight: 700; margin: 6px 0; font-variant-numeric: tabular-nums; }
.sample-save { margin: 0; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.point { background: var(--card); border-radius: 20px; padding: 20px; }
.point h2 { font-size: 1.1rem; margin: 0 0 6px; }
.point p { margin: 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 24px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none; color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn-primary { background: var(--green); color: #fff; }
.btn-big { min-height: 52px; padding: 0 28px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-outline { border-color: var(--line); }
.btn-text { color: var(--link); padding: 0; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.faq p { margin: 8px 0 0; }
.policy h2 { font-size: 1.25rem; margin-top: 28px; }
.table-wrap { overflow-x: auto; }
.policy table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 10px; }
.note { background: var(--card); border-radius: 12px; padding: 10px 14px; }

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--red); }
.step { font-weight: 600; }
form label { display: block; font-weight: 600; margin: 16px 0 6px; }
form select, form input[type='tel'], form input.code {
  width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #b9c3be; border-radius: 12px; padding: 10px 14px;
}
form input.code { font-family: ui-monospace, 'Roboto Mono', Consolas, monospace; font-size: 1.5rem; letter-spacing: 0.3em; min-height: 56px; }
form .btn { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.error { color: var(--red); margin: 8px 0 0; }
.what { background: var(--soft-red); border: 1px solid var(--soft-red-line); border-radius: 16px; padding: 16px; margin: 20px 0 4px; }
.what h2 { font-size: 1.05rem; margin: 0 0 6px; }
.what p { margin: 0 0 6px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.8rem; margin: 8px 0; }
.email { margin-top: 32px; font-size: 0.9rem; }

.foot { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.foot nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
