:root {
  --paper: #EEE9DF; --paper-2: #E6E0D3; --card: #F7F3EA;
  --ink: #24211B; --ink-soft: #565042; --line: #D6CEBC;
  --moss: #4B6746; --moss-deep: #3A5136; --moss-tint: #DCE4D3;
  --pewter: #7C848B; --tea: #8A5A2B; --warn: #9A7420; --stamp: #B23B2E;
  --on-moss: #F7F3EA;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A1813; --paper-2: #221F18; --card: #26221B;
    --ink: #EFE9DC; --ink-soft: #B4AC99; --line: #3A352B;
    --moss: #93B182; --moss-deep: #A7C296; --moss-tint: #2C3527;
    --pewter: #9BA3A9; --tea: #CC9256; --warn: #D2A64E; --stamp: #C9483A;
    --on-moss: #1A1813;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--moss); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--card); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--moss-deep); letter-spacing: .01em; }
.topbar-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--warn); font-weight: 700;
}

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 80px; } }
.eyebrow {
  display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--warn); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); letter-spacing: -.01em; margin-bottom: 20px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 32px; }

.button {
  display: inline-block; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  background: var(--moss); color: var(--on-moss); border: 0; border-radius: 999px;
  padding: 14px 30px; transition: background .15s;
}
.button:hover { background: var(--moss-deep); }
.button:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }
.button-quiet { background: transparent; color: var(--moss); border: 1.5px solid var(--moss); padding: 10px 22px; }
.button-quiet:hover { background: var(--moss-tint); }

.hero-portrait { position: relative; margin: 0; }
.hero-portrait img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
}
.hero-portrait figcaption { margin-top: 12px; font-family: var(--mono); font-size: .75rem; color: var(--pewter); text-align: center; }
.stamp {
  position: absolute; top: 22px; right: -6px; background: var(--stamp); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 4px; transform: rotate(5deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
@media (max-width: 859px) { .stamp { right: 12px; } }

/* Tool */
#try { scroll-margin-top: 24px; }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}
@media (min-width: 720px) { .tool { padding: 40px; } }
.tool-head { margin-bottom: 24px; }
.tool-head h2 { font-size: 2rem; margin-bottom: 6px; }
.tool-head p { color: var(--ink-soft); font-size: .95rem; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 220px; padding: 24px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 18px; background: var(--paper-2);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--moss); background: var(--moss-tint); }
.dropzone:focus-within { outline: 3px solid var(--warn); outline-offset: 3px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.dropzone-sub { color: var(--ink-soft); font-size: .9rem; }

.result { display: grid; gap: 28px; align-items: center; }
.result[hidden] { display: none; }
@media (min-width: 720px) { .result { grid-template-columns: 320px 1fr; } }
.result img {
  width: 100%; max-height: 360px; object-fit: contain; border-radius: 16px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.result-status { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); font-weight: 700; margin-bottom: 8px; }
.verdict { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 10px; }
.verdict.is-frog { color: var(--moss-deep); }
.verdict-note { color: var(--ink-soft); margin-bottom: 20px; max-width: 42ch; }
.verdict-note.error { color: var(--stamp); }

.meter { margin-bottom: 24px; max-width: 420px; }
.meter[hidden] { display: none; }
.meter-track { height: 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--moss); border-radius: 999px; transition: width .6s ease-out; }
.meter-label { display: block; margin-top: 8px; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }

/* Quote */
.quote { padding-top: 72px; padding-bottom: 24px; }
.quote blockquote { margin: 0 auto; max-width: 760px; text-align: center; }
.quote p { font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.85rem); line-height: 1.4; margin-bottom: 18px; }
.quote footer { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--pewter); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 48px; padding-bottom: 24px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.stat-value { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--moss-deep); line-height: 1.1; margin-bottom: 6px; }
.stat-label { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }

/* How it works */
.how { padding-top: 56px; padding-bottom: 72px; }
.how h2 { font-size: 2rem; margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 3px solid var(--moss); padding-top: 18px; }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--mono); font-size: .8rem;
  font-weight: 700; color: var(--warn); letter-spacing: .1em; margin-bottom: 8px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* Footer */
.fineprint { border-top: 1px solid var(--line); background: var(--paper-2); padding: 28px 0 40px; }
.fineprint p { font-family: var(--mono); font-size: .74rem; color: var(--pewter); line-height: 1.6; max-width: 80ch; }
.fineprint p + p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter-fill, .button, .dropzone { transition: none; }
}
