/*! ZK DUCK — identity system.
    Palette and type are lifted straight off the brand board:
    INK #1A2322 · CREAM #FEF5E4 · APRICOT #FE874D */

:root {
  --ink: #1A2322;
  --cream: #FEF5E4;
  --apricot: #FE874D;

  --bg: var(--cream);
  --fg: var(--ink);
  --accent: var(--apricot);
  --panel: #FFFBF1;
  --line: var(--ink);
  --muted: #6B6459;
  --shadow: var(--ink);

  --red: #D8442F;
  --amber: #E08A1E;
  --slate: #7A8B86;

  --border: 2.5px;
  --radius: 4px;
  --gutter: 16px;
  --maxw: 1180px;

  --sans: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

/* Ink mode. The cream is the brand, so this is opt-in, not OS-driven. */
:root[data-theme="dark"] {
  --bg: #141A19;
  --fg: var(--cream);
  --panel: #1C2422;
  --line: #3A4642;
  --muted: #9AA39D;
  --shadow: #000;
  --red: #FF7A63;
  --amber: #FFBC4A;
  --slate: #8C9B96;
}

* { box-sizing: border-box; }

/* The UA rule for [hidden] is display:none, which any author `display`
   silently overrides — and .btn sets one. Put it back. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .2s ease, color .2s ease;
}

/* height:auto matters — width:100% alone lets the HTML height attribute
   through as a used value and the image comes out stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--apricot); color: var(--ink); }

/* ---------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }

.rule { height: var(--border); background: var(--line); border: 0; margin: 0; }

.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); opacity: .45; }
.sec-label b { color: var(--fg); font-weight: 700; }

/* ----------------------------------------------------------------- type */

h1, h2, h3, .display {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
  margin: 0;
}

h1 { font-size: clamp(42px, 9.5vw, 104px); }
h2 { font-size: clamp(30px, 5.6vw, 58px); }
h3 { font-size: clamp(18px, 2.4vw, 25px); line-height: 1.05; }

.sub {
  font-family: var(--mono);
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hand {
  font-family: var(--hand);
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}

p { margin: 0 0 14px; max-width: 62ch; }
.lede { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.65; }
.muted { color: var(--muted); }
.star { color: var(--apricot); }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--panel);
  --btn-fg: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .09s ease, box-shadow .09s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--shadow);
}
.btn-primary { --btn-bg: var(--apricot); --btn-fg: var(--ink); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--cream); }
:root[data-theme="dark"] .btn-ink { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 11px; box-shadow: 3px 3px 0 var(--shadow); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--shadow); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- panels */

.card {
  background: var(--panel);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 22px;
}
.card-flat { box-shadow: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 2px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--panel);
}
.chip-accent { background: var(--apricot); color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: var(--border) solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links > * { flex: none; }
/* :not(.btn) matters — without it this rule flattens the Buy button's
   padding and it collapses to the width of its text. */
.nav-links a:not(.btn) {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover { border-bottom-color: var(--apricot); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-size: 15px; color: inherit; line-height: 1;
}
.icon-btn:hover { background: var(--apricot); color: var(--ink); }
.icon-btn svg { display: block; transition: transform .2s ease; }
:root[data-theme="dark"] .icon-btn svg { transform: scaleX(-1); }
@media (max-width: 860px) { .nav-links a.hide-sm { display: none; } }
/* Below this the bar cannot hold text links, the toggle and the Buy button
   at once. The Buy button wins; the sections are one scroll away. */
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .brand { font-size: 17px; }
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  background: var(--ink);
  color: var(--cream);
  border-bottom: var(--border) solid var(--line);
  overflow: hidden;
  padding: 9px 0;
  white-space: nowrap;
}
:root[data-theme="dark"] .ticker { background: var(--apricot); color: var(--ink); }
.ticker-track { display: inline-block; animation: slide 34s linear infinite; }
.ticker span {
  font-family: var(--sans); font-size: 13px; letter-spacing: .05em;
  text-transform: uppercase; padding: 0 16px;
}
.ticker span::after { content: '✳'; color: var(--apricot); margin-left: 32px; }
:root[data-theme="dark"] .ticker span::after { color: var(--ink); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ----------------------------------------------------------------- hero */

.hero { padding: clamp(32px, 5vw, 60px) 0 0; }
.hero-title {
  font-size: clamp(34px, 7.4vw, 88px);
  text-wrap: balance;
  margin-bottom: 14px;
}
.hero-title .accent-dot { color: var(--apricot); }
.hero-title .star { font-size: .58em; vertical-align: super; color: var(--apricot); }
.hero-band { padding-bottom: clamp(26px, 4vw, 42px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-art { position: relative; max-width: 400px; margin-left: auto; width: 100%; }
.hero-art .plate {
  background: var(--apricot);
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--shadow);
  padding: 14px;
  position: relative;
}
.hero-art img { width: 100%; }
/* Flowed rather than absolutely placed: body has overflow-x:hidden, so
   anything hanging off the right edge just gets cut. */
.hero-note {
  margin: 16px 0 0;
  text-align: right;
  transform: rotate(-3deg);
  transform-origin: right center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .hero-note { text-align: center; transform: none; }
}

/* ------------------------------------------------------------ CA address */

.ca {
  display: flex; align-items: stretch; gap: 0;
  border: var(--border) solid var(--line); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow); background: var(--panel); overflow: hidden;
}
.ca-tag {
  flex: none; display: grid; place-items: center; padding: 0 14px;
  background: var(--ink); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
}
:root[data-theme="dark"] .ca-tag { background: var(--apricot); color: var(--ink); }
.ca-val {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px 14px;
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca-val.empty { color: var(--muted); letter-spacing: .06em; }
.ca-copy {
  flex: none; border: 0; border-left: var(--border) solid var(--line);
  background: var(--apricot); color: var(--ink); cursor: pointer;
  padding: 0 18px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.ca-copy:hover { background: var(--ink); color: var(--cream); }
.ca-copy[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .ca { flex-wrap: wrap; } .ca-tag { width: 100%; padding: 8px; } .ca-copy { padding: 10px 18px; border-left: 0; border-top: var(--border) solid var(--line); width: 100%; } }

/* ----------------------------------------------------------------- grids */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.pad { padding: clamp(44px, 7vw, 82px) 0; }
.pad-sm { padding: clamp(30px, 4.5vw, 50px) 0; }

.card-icon { color: var(--apricot); margin-bottom: 12px; display: block; }

.step-n {
  font-family: var(--sans); font-size: 30px; line-height: 1;
  color: var(--apricot); margin-bottom: 10px; display: block;
}

.stat { text-align: left; }
.stat .k { font-family: var(--sans); font-size: clamp(22px, 3.4vw, 34px); line-height: 1; }
.stat .v { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------- reactions */

.react { text-align: center; }
.react img { width: 100%; max-width: 210px; margin: 0 auto 10px; }
.react .cap { font-family: var(--sans); font-size: 17px; }

/* ------------------------------------------------------------------- faq */

details {
  border-bottom: 2px solid var(--line);
  padding: 16px 0;
}
details:first-of-type { border-top: 2px solid var(--line); }
summary {
  cursor: pointer; list-style: none; font-family: var(--sans);
  font-size: clamp(15px, 2vw, 19px); text-transform: uppercase; letter-spacing: -.01em;
  display: flex; gap: 14px; align-items: flex-start;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-left: auto; color: var(--apricot); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0 0; padding-left: 0; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: var(--border) solid var(--line); padding: 34px 0 44px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.disclaimer {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 26px; font-size: 12px; line-height: 1.7; color: var(--muted);
}
.disclaimer b { color: var(--fg); }

/* =================================================================
   DUCK SCRUB
   ================================================================= */

.drop {
  border: 3px dashed var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: clamp(28px, 6vw, 54px) 22px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.drop:hover, .drop:focus-visible { border-color: var(--apricot); outline: none; }
.drop.over { background: var(--apricot); border-color: var(--ink); border-style: solid; transform: scale(1.005); }
.drop.over .drop-duck { transform: rotate(-7deg) scale(1.06); }
.drop-duck { width: 92px; margin: 0 auto 14px; transition: transform .2s ease; }
.drop h3 { margin-bottom: 8px; }

.queue { display: grid; gap: 20px; margin-top: 26px; }

.file {
  border: var(--border) solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: 5px 5px 0 var(--shadow); overflow: hidden;
}
.file-head {
  display: flex; gap: 16px; padding: 16px; align-items: flex-start;
  border-bottom: 2px solid var(--line); flex-wrap: wrap;
}
.thumb {
  width: 84px; height: 84px; flex: none; object-fit: cover;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.file-id { min-width: 0; flex: 1 1 220px; }
.file-name {
  font-weight: 700; font-size: 14px; word-break: break-all; line-height: 1.35; margin-bottom: 6px;
}
.file-meta { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }

.verdict {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 2px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.verdict-icon { font-size: 19px; line-height: 1; }
.v-critical { background: color-mix(in srgb, var(--red) 16%, var(--panel)); }
.v-high     { background: color-mix(in srgb, var(--amber) 20%, var(--panel)); }
.v-medium   { background: color-mix(in srgb, var(--amber) 11%, var(--panel)); }
.v-clean    { background: color-mix(in srgb, #3FA46A 16%, var(--panel)); }
.v-error    { background: color-mix(in srgb, var(--red) 12%, var(--panel)); }

.gps-alert {
  margin: 0; padding: 14px 16px; border-bottom: 2px solid var(--line);
  background: color-mix(in srgb, var(--red) 12%, var(--panel));
}
.gps-coord { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.gps-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 9px 16px; border-bottom: 2px solid var(--line); font-weight: 700;
}
.tbl td { padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: top; opacity: .999; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .k { white-space: nowrap; font-weight: 700; width: 1%; }
.tbl .v { word-break: break-word; color: var(--muted); }
.grp-row td {
  background: var(--bg); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); padding: 7px 16px;
}

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 9.5px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid;
  white-space: nowrap;
}
.p-critical { color: var(--red); border-color: var(--red); }
.p-high { color: var(--amber); border-color: var(--amber); }
.p-medium { color: var(--slate); border-color: var(--slate); }
.p-low { color: var(--muted); border-color: var(--muted); opacity: .75; }

.disclose { border-top: 2px solid var(--line); }
.disclose summary { padding: 11px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.disclose summary::after { font-size: 18px; }
.disclose[open] summary { border-bottom: 2px solid var(--line); }

.result {
  padding: 14px 16px; border-top: 2px solid var(--line);
  background: color-mix(in srgb, #3FA46A 13%, var(--panel));
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.result .r-text { font-size: 12.5px; flex: 1 1 260px; }
.result .r-text b { font-size: 13.5px; }

.bar { display: flex; height: 8px; border: 2px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--bg); }
.bar i { display: block; height: 100%; }

.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 0 0; margin-top: 18px; border-top: 2px solid var(--line);
}
.toolbar .spacer { flex: 1; }

.toolbar .opt + .opt { margin-left: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .04em; cursor: pointer; }
.opt input { width: 16px; height: 16px; accent-color: var(--apricot); cursor: pointer; }

.privacy-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px;
  border: 2px solid var(--line); border-radius: 100px; background: var(--panel);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3FA46A; box-shadow: 0 0 0 3px color-mix(in srgb, #3FA46A 28%, transparent); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px);
  background: var(--ink); color: var(--cream); border: 2px solid var(--line);
  border-radius: 100px; padding: 11px 22px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; z-index: 90;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2); box-shadow: 4px 4px 0 var(--shadow);
}
:root[data-theme="dark"] .toast { background: var(--apricot); color: var(--ink); }
.toast.show { transform: translate(-50%, 0); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Only hide when JS is there to bring it back. Without this guard a failed
   script or a blocked IntersectionObserver leaves whole sections invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
