/* Stover landing page (docs/index.html). Plain CSS, dark theme. */

:root {
  --bg: #0f110e;
  --bg-2: #12140f;
  --card: #171a15;
  --card-2: #1b1f18;
  --line: #23271f;
  --line-2: #2c3127;
  --line-3: #3a4033;
  --text: #ecebe4;
  --text-2: #b4b7aa;
  --text-3: #8e9384;
  --muted: #a9aca0;
  --accent: #f2c744;
  --accent-hover: #ffd95c;
  --ink: #15170f;
  --residue: #ffd400;
  --canopy: #00c800;
  --soil: #a52a2a;
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #ffe08a; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
h1, h2, h3 { margin: 0; }
h2 {
  font-family: var(--display); font-weight: 650; font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12; letter-spacing: -0.015em;
}
.lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 7px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--card-2); color: var(--text); }
.btn svg { flex-shrink: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 14, .86); backdrop-filter: blur(12px);
       border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand span { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.005em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; flex: 1; }
.nav-links a { color: #c9cbbf; text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav .btn { min-height: 36px; padding: 0 14px; border-radius: 7px; font-size: 14px; margin-left: auto; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 48px; display: grid; gap: 48px; align-items: center;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
}
.swatches { display: inline-flex; gap: 3px; }
.swatches i { width: 8px; height: 8px; border-radius: 2px; }
h1 {
  font-family: var(--display); font-weight: 650; font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06; letter-spacing: -0.02em;
}
.hero-text > p:not(.fine) { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 34em; }
.hero-text .btn { min-height: 46px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 0; font-size: 13.5px; color: var(--text-3); }

.compare {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--card-2);
  box-shadow: 0 0 0 1px var(--line-2); --split: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .mask { image-rendering: pixelated; clip-path: inset(0 0 0 var(--split)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px;
                    background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); pointer-events: none; }
.compare .knob {
  position: absolute; top: 50%; left: var(--split); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45); pointer-events: none;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible ~ .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag {
  position: absolute; top: 14px; padding: 4px 8px; border-radius: 4px; background: rgba(10, 12, 9, .72);
  font-family: var(--mono); font-size: 12px; color: var(--text); pointer-events: none;
}
.hero figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.readout > div { padding: 10px 12px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); }
.readout .lab { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.readout .lab i { width: 10px; height: 10px; border-radius: 3px; }
.readout .val { font-family: var(--mono); font-size: 22px; font-weight: 500; margin-top: 4px; }
.readout .val small { font-size: 14px; color: var(--text-3); }
.readout .total { background: var(--line); border-color: var(--accent); }
.readout .total .lab { color: var(--text); font-weight: 500; }
.readout .total .val { color: var(--accent); }

.hero-dots { display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 2px; background: var(--line-3); cursor: pointer; }
.hero-dots button[aria-pressed="true"] { background: var(--accent); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; gap: 28px;
               grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -0.01em; }
.stat b small { font-size: 20px; color: var(--text-3); }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.seg { display: inline-flex; padding: 3px; border-radius: 7px; background: var(--card); border: 1px solid var(--line-2); }
.seg button { min-height: 34px; padding: 0 14px; border-radius: 5px; border: 0; font: 600 14px var(--sans);
              cursor: pointer; background: transparent; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--card);
        border: 1px solid var(--line); cursor: pointer; }
.tile .pic { position: relative; aspect-ratio: 1 / 1; background: var(--card-2); }
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .mask { transition: opacity .25s ease; opacity: 0; }
.grid.masks .tile .mask { opacity: 1; }
.tile.flip .mask { opacity: 1; }
.grid.masks .tile.flip .mask { opacity: 0; }
@media (hover: hover) {
  .tile:hover .mask { opacity: 1; }
  .grid.masks .tile:hover .mask { opacity: 0; }
}
.tile .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bar span { display: block; height: 100%; }
.tile dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12.5px; }
@media (max-width: 640px) { .tile .body { padding: 10px; } .tile dl { grid-template-columns: 1fr; gap: 4px; } }
.tile dl div { display: flex; justify-content: space-between; gap: 6px; }
.tile dt { color: var(--muted); }
.tile dd { margin: 0; font-family: var(--mono); }
.tile .tot dt { color: var(--text); font-weight: 600; }
.tile .tot dd { color: var(--accent); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
         grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { padding: 24px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
        display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* Field guide */
.guide-figure { margin: 0; padding: 20px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
                display: flex; flex-direction: column; gap: 12px; }
.guide-figure picture { display: block; width: 100%; max-width: 860px; margin: 0 auto; }
.guide-figure img { display: block; width: 100%; height: auto; max-width: 860px; border-radius: 6px; margin: 0 auto; }
.guide-figure figcaption { font-size: 14.5px; color: var(--text-2); text-align: center; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.dodont { padding: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
          display: flex; flex-direction: column; gap: 20px; }
.dodont h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.dodont h3 i { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.dodont ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.dodont li:not(:last-child) { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dodont li { display: flex; gap: 12px; align-items: baseline; }
.dodont li::before { content: ""; flex: 0 0 16px; height: 16px; position: relative; top: 2px;
                     background: center / contain no-repeat; opacity: .9; }
.do li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346b35a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.dont li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0574d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10'/%3E%3Cpath d='M17 7L7 17'/%3E%3C/svg%3E"); }

/* Get Stover */
.get { padding: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
       display: flex; flex-direction: column; gap: 22px; }
.get.main { background: var(--card-2); border-color: var(--line-3); }
.get-head { display: flex; align-items: center; gap: 14px; }
.get-head i { width: 44px; height: 44px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
              background: var(--line); flex-shrink: 0; }
.get.main .get-head i { background: var(--accent); }
.get h3 { font-family: var(--display); font-size: 21px; font-weight: 600; }
.get .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.get p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.get .btn { align-self: flex-start; }
.get .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cite */
.cite { display: grid; gap: 40px; align-items: start; padding-bottom: 96px;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cite blockquote { margin: 0; padding: 24px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
                   font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #d6d6cc; }
.cite blockquote a { overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center;
               justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--text-3); }
footer .brand-sm { display: flex; align-items: center; gap: 10px; }

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 72px; }
  .card, .dodont, .get { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile .mask { transition: none; }
}
