:root {
  --ink: #101410; --muted: #4A5468; --faint: #5B6475; --ground: #F4FBF7; --card: #FFFFFF;
  --line: #E6E8EE; --field: #CDD2DC; --mint: #3DDC97; --mint-dark: #2FC484; --mint-soft: #D7F5E6;
  --green-text: #0B5E3C; --link: #0B6B47; --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif;
       font-size: 16px; line-height: 1.5; }
a { color: var(--link); }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.3px; margin: 0; line-height: 1.2; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Layout */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(244, 251, 247, 0.92); backdrop-filter: blur(8px);
          border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center;
                justify-content: space-between; gap: 16px; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.5px;
         color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.brand::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--mint); margin-top: 8px; }
.desk-nav { display: flex; gap: 4px; }
.desk-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.desk-nav a[aria-current="page"], .desk-nav a:hover { background: var(--mint-soft); }
main { max-width: 960px; margin: 0 auto; padding: 24px 20px 120px; display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 640px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line);
              display: none; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600;
                color: var(--faint); text-decoration: none; min-width: 60px; padding: 6px 2px; border-radius: 10px; }
.bottom-nav a[aria-current="page"] { color: var(--ink); background: var(--mint-soft); }
.bottom-nav svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .desk-nav { display: none; }
  .bottom-nav { display: flex; }
}

/* Building blocks */
.lead { color: var(--muted); font-size: 16px; margin-top: 6px; }
.small { font-size: 13px; color: var(--faint); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
        display: flex; flex-direction: column; gap: 10px; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--mint); }
.hero { background: var(--mint); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hero p { color: #1E3A2C; }
.dark { background: var(--ink); color: #E3E6EE; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dark h2, .dark h3 { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
       border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--mint-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 12px;
        font-weight: 600; background: #E9EBF0; color: #344054; width: fit-content; }
.pill-mint { background: var(--mint-soft); color: var(--green-text); }
.pill-warn { background: #FFF6ED; color: #93370D; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px;
          border: 1px solid var(--field); background: #fff; }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.risk { background: #FFF6ED; border: 1px solid #F7B27A; color: #7A2E0E; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
ul.clean { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
        font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; flex-shrink: 0;
        background: var(--mint-soft); color: var(--green-text); }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; }
.sources { font-size: 13px; color: var(--faint); display: flex; flex-direction: column; gap: 4px; }
.sources a { font-weight: 600; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--faint); }
input[type=text], input[type=number], input[type=url], textarea, select {
  width: 100%; border: 1px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink);
  padding: 12px 14px; font-size: 16px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--mint); border-color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.error { background: #FEF3F2; color: #B42318; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.result-big { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; }

/* Quiz */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { text-align: left; background: #fff; border: 1px solid var(--field); border-radius: 14px; padding: 14px 16px;
          font-weight: 600; cursor: pointer; min-height: 52px; color: var(--ink); }
.choice:hover { border-color: var(--ink); background: var(--mint-soft); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--mint); }
.step-card { border-left: 0; }
.step-num { width: 32px; height: 32px; border-radius: 16px; background: var(--mint); color: var(--ink); font-weight: 700;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Check verdicts */
.verdict { border: 2px solid; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.verdict h2 { font-size: 22px; }
.v-red { background: #FEF3F2; border-color: #F04438; } .v-red h2 { color: #B42318; } .v-red p { color: #7A271A; }
.v-orange { background: #FFF6ED; border-color: #F79009; } .v-orange h2 { color: #B54708; } .v-orange p { color: #7A2E0E; }
.v-yellow { background: #FFFAEB; border-color: #E0B000; } .v-yellow h2 { color: #7A5200; } .v-yellow p { color: #5C3D00; }
.v-grey { background: #F2F4F7; border-color: #98A2B3; } .v-grey h2, .v-grey p { color: #344054; }

/* Age gate */
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(16, 20, 16, 0.55); display: flex; align-items: flex-end;
        justify-content: center; padding: 16px; }
.gate[hidden] { display: none; }
.gate-box { background: #fff; border-radius: 24px; padding: 24px; width: 100%; max-width: 440px; display: flex;
            flex-direction: column; gap: 14px; margin-bottom: env(safe-area-inset-bottom); }
@media (min-width: 721px) { .gate { align-items: center; } }

footer.site { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 20px; display: flex; flex-direction: column; gap: 10px;
              font-size: 13px; color: var(--faint); }
footer.site a { font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; }
[hidden] { display: none !important; }
