:root {
  --bg: #fafaf7;
  --bg-alt: #f1f3ef;
  --surface: #ffffff;
  --text: #121816;
  --muted: #5a6560;
  --border: #e3e5df;
  --accent: #17604d;
  --accent-hover: #114b3c;
  --accent-text: #ffffff;
  --accent-soft: #e3f1eb;
  --amber: #c97a14;
  --amber-soft: #fdf0d9;
  --bad: #b3362a;
  --bad-soft: #fbe6e3;
  --legal: #b3362a;
  --official: #1f5f8b;
  --practice: #5a6560;
  --upcoming: #8a6100;
  --dark: #0f1a17;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(16 24 22 / 4%), 0 8px 24px rgb(16 24 22 / 6%);
  --shadow-lg: 0 2px 6px rgb(16 24 22 / 6%), 0 24px 60px rgb(16 24 22 / 14%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --bg-alt: #151c19;
    --surface: #1a2220;
    --text: #e9eeeb;
    --muted: #a0aba6;
    --border: #2b3532;
    --accent: #4dbb98;
    --accent-hover: #6cceac;
    --accent-text: #08110e;
    --accent-soft: #19302a;
    --amber: #e6a54a;
    --amber-soft: #33281a;
    --bad: #ef7d70;
    --bad-soft: #3a1f1c;
    --legal: #ef7d70;
    --official: #78b6e3;
    --practice: #a0aba6;
    --upcoming: #e0c062;
    --dark: #070b0a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 30%), 0 24px 60px rgb(0 0 0 / 50%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 0 0 .7rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.08rem; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 2rem; padding-bottom: 4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand b { color: var(--accent); font-weight: inherit; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 8px; top: 5px; width: 7px; height: 12px; border: solid var(--accent-text); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--text); }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .site-nav { gap: .9rem; font-size: .9rem; }
  .site-nav a:not(.button):nth-child(2) { display: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; padding: 2.5rem 0; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-inner p { max-width: 560px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-inner nav a { color: var(--muted); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .85rem 1.4rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); transform: translateY(-1px); }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--text); color: var(--text); }
.button-sm { padding: .5rem 1rem; font-size: .9rem; border-radius: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.4rem 0; }

/* Text helpers */
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.2rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Cards and notices */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin: 1rem 0; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.notice { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.success { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }

/* Pills */
.pill { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: .15rem .65rem; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* Checker */
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: .5rem 0 .5rem; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.2rem; }

.choice { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: .6rem 0; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); flex: none; }

input[type=email], input[type=text], input[type=number], textarea {
  width: 100%;
  font: inherit;
  padding: .8rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
input[type=number] { max-width: 10rem; }
label.field { display: block; font-weight: 600; margin: 1.1rem 0 .35rem; }
.errorlist, .error { color: var(--bad); }
.errorlist { padding-left: 1.2rem; }

.badge { display: inline-block; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.badge.legal_requirement { color: var(--legal); }
.badge.official_recommendation { color: var(--official); }
.badge.good_practice { color: var(--practice); }
.badge.upcoming { color: var(--upcoming); }

.req { box-shadow: none; }
.req h3 { margin: .25rem 0 .35rem; }
.req p { margin: .3rem 0; }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: .7rem 0 0; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .92rem; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }

.checklist { list-style: none; padding: 0; margin: .5rem 0; }
.checklist li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .box { flex: none; width: 1.2rem; height: 1.2rem; border: 2px solid var(--text); border-radius: 4px; margin-top: .2rem; }

/* QR + log */
.qr { background: #fff; padding: 14px; border-radius: var(--radius-lg); width: 240px; max-width: 100%; box-shadow: var(--shadow); border: 1px solid var(--border); }
.qr img { display: block; width: 100%; height: auto; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .split { grid-template-columns: auto 1fr; align-items: start; } }

table.log { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.log th, table.log td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.log th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-alt); }
table.log tr:last-child td { border-bottom: 0; }
.ok { color: var(--accent); font-weight: 650; }
.fail { color: var(--bad); font-weight: 650; }

/* Landing */
.hero { padding: 4rem 0 3rem; background: radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); padding: 0; list-style: none; }
.hero-note li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .4rem; }

.trust { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: .8rem; max-width: 32rem; }

/* Phone mockup (links to the live demo) */
.mock { display: flex; flex-direction: column; align-items: center; padding: .5rem 0; color: inherit; text-decoration: none; }
.mock-stage { display: flex; align-items: center; gap: 1.2rem; }
.mock-side { display: none; flex-direction: column; gap: 1rem; }
@media (min-width: 1100px) { .mock-stage { margin-left: -1rem; } .mock-side { display: flex; } }
.mock .phone { transition: transform .25s ease; }
.mock:hover .phone { transform: translateY(-4px) rotate(-1deg); }
.mock-hint { margin-top: 1.2rem; font-size: .9rem; font-weight: 650; color: var(--accent); }
.phone { width: 290px; max-width: 100%; background: var(--dark); border-radius: 42px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone-screen { background: var(--surface); border-radius: 32px; overflow: hidden; color: var(--text); }
.phone-bar { display: flex; justify-content: center; padding: 10px 0 4px; }
.phone-bar span { width: 90px; height: 22px; border-radius: 999px; background: var(--dark); }
.phone-head { padding: .6rem 1.1rem .8rem; border-bottom: 1px solid var(--border); }
.phone-head small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.phone-head strong { display: block; font-size: 1.05rem; }
.phone-list { list-style: none; margin: 0; padding: .4rem 1.1rem; font-size: .86rem; }
.phone-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.phone-list li:last-child { border-bottom: 0; }
.tick { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); flex: none; position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--accent-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tick.empty { background: transparent; border: 2px solid var(--border); }
.phone-cta { margin: .4rem 1.1rem 1.2rem; background: var(--accent); color: var(--accent-text); text-align: center; font-weight: 700; border-radius: 12px; padding: .7rem; font-size: .9rem; }
.float-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .8rem .95rem; font-size: .8rem; line-height: 1.4; display: flex; align-items: center; gap: .6rem; width: 215px; }
.float-card strong { display: block; font-size: .88rem; }
.float-log { flex-direction: column; align-items: stretch; gap: .35rem; }
.log-row { display: flex; justify-content: space-between; align-items: center; gap: .4rem; color: var(--muted); }
.mini-qr { flex: none; width: 38px; height: 38px; border-radius: 6px; background:
  conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 12px 12px; border: 3px solid var(--text); }

.section { padding: 4.5rem 0; }

/* Bento grid */
.bento { display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile-hero { grid-column: span 2; }
}
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.tile h3 { margin: .3rem 0 0; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile a { margin-top: auto; padding-top: .6rem; font-weight: 650; text-decoration: none; }
.tile-hero { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .tile-hero { grid-template-columns: 1.3fr 1fr; } }
.tile-hero-text { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.mini-log { list-style: none; margin: 0; padding: .4rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .85rem; width: 100%; }
.mini-log li { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.mini-log li:last-child { border-bottom: 0; }
.mini-log li span:first-child { color: var(--muted); }
.tile-hero h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.tile-hero p { font-size: 1.05rem; max-width: 34rem; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 .7rem; letter-spacing: -0.03em; }

.grid-4 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: .9rem; }
.step h3 { margin: 0 0 .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-value.bad { color: var(--bad); }
.stat-value.amber { color: var(--amber); }
.stat p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

.cta-band { background: var(--dark); color: #e9eeeb; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.cta-band p { margin: 0; color: #a9b5b0; }
.cta-band .button { background: #4dbb98; border-color: #4dbb98; color: #08110e; }
.cta-band .button:hover { background: #6cceac; border-color: #6cceac; }

@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card { box-shadow: none; }
}
