/* Grainprint design system.
   Visual language taken from the logo: glossy 3D forms, iridescent gradients
   running cream to amber to green to cyan to violet to magenta, sitting on a
   near black ground. Depth comes from layered shadows plus an inset top
   highlight, which is what reads as "lit from above" and therefore solid. */

:root {
  /* ground */
  --bg:        #07060d;
  --bg-2:      #0b0912;
  --surface:   rgba(28, 23, 46, 0.62);
  --surface-2: rgba(38, 31, 60, 0.55);
  --surface-3: rgba(52, 43, 80, 0.45);
  --line:      rgba(255, 255, 255, 0.085);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* type */
  --text:   #f2effa;
  --text-2: #c3bcd9;
  --muted:  #8a82a8;
  --faint:  #6b6489;

  /* logo palette */
  --cream:   #ffe6cf;
  --peach:   #ffc9a3;
  --amber:   #ffd166;
  --green:   #8ce86f;
  --cyan:    #3fe0d8;
  --blue:    #4b6bff;
  --violet:  #7a3ff5;
  --magenta: #ff5cc8;

  /* semantic */
  --ai:   #ff5cc8;
  --cam:  #3fe0d8;
  --warn: #ffd166;
  --ok:   #8ce86f;

  --brand: linear-gradient(115deg, #ffe6cf 0%, #ffd166 15%, #8ce86f 32%, #3fe0d8 49%, #4b6bff 67%, #7a3ff5 83%, #ff5cc8 100%);

  /* depth: inset gloss + inset floor + drop + coloured bloom */
  --lift-1:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 10px 26px -12px rgba(0, 0, 0, 0.85);
  --lift-2:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 22px 48px -18px rgba(0, 0, 0, 0.9),
    0 6px 22px -14px rgba(122, 63, 245, 0.55);
  --lift-3:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 34px 70px -24px rgba(0, 0, 0, 0.95),
    0 10px 34px -16px rgba(122, 63, 245, 0.6);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
          system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* iridescent ambient mesh, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 14% 2%,  rgba(122, 63, 245, 0.30), transparent 70%),
    radial-gradient(32% 26% at 86% 8%,  rgba(255, 92, 200, 0.22), transparent 70%),
    radial-gradient(34% 28% at 78% 62%, rgba(75, 107, 255, 0.18), transparent 70%),
    radial-gradient(30% 24% at 10% 74%, rgba(63, 224, 216, 0.14), transparent 70%),
    radial-gradient(26% 20% at 50% 108%, rgba(255, 209, 102, 0.10), transparent 70%);
  filter: blur(28px) saturate(1.25);
}

/* fine grain overlay, a nod to what the tool measures */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
}

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

/* ============================ nav ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.88), rgba(7, 6, 13, 0.62));
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }

.mark img {
  width: 36px; height: 36px;
  filter: drop-shadow(0 3px 10px rgba(122, 63, 245, 0.6));
}

.mark span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { margin-left: auto; display: flex; gap: 4px; align-items: center; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  padding: 8px 15px;
  border-radius: 999px;
  transition: color 0.16s, background 0.16s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: var(--lift-1);
}

/* ============================ type ============================ */

h1, h2, h3, h4 { letter-spacing: -0.028em; line-height: 1.18; margin: 0; }

.hero { padding: 44px 0 22px; text-align: center; }

.hero-orb {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  position: relative;
  animation: float 7s ease-in-out infinite;
}

.hero-orb img { width: 100%; height: 100%; filter: drop-shadow(0 18px 34px rgba(122, 63, 245, 0.55)); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1.5deg); }
}

.hero h1 { font-size: clamp(34px, 5.6vw, 54px); font-weight: 780; margin-bottom: 12px; }

.grad {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--lift-1);
  margin-bottom: 16px;
}

.page-head { padding: 52px 0 26px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 750; margin-bottom: 12px; }
.page-head p { color: var(--text-2); font-size: 17px; max-width: 62ch; margin: 0; }

/* ============================ surfaces ============================ */

.card {
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-2);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

/* specular sheen across the top of every raised surface */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent);
  pointer-events: none;
}

.card > * { position: relative; }

.card.flat { box-shadow: var(--lift-1); border-radius: var(--r); padding: 18px 20px; }

.grid { display: grid; gap: 16px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* ============================ dropzone ============================ */

.drop {
  position: relative;
  border-radius: var(--r-xl);
  padding: 40px 28px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-2);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.22s cubic-bezier(.2,.8,.3,1), box-shadow 0.22s, border-color 0.22s;
  overflow: hidden;
}

.drop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

/* iridescent rim that lights up on hover */
.drop::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.drop:hover, .drop.hot {
  transform: translateY(-3px);
  box-shadow: var(--lift-3);
}

.drop:hover::after, .drop.hot::after { opacity: 0.85; }
.drop:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }

.drop .ring {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.55),
    inset 0 -6px 14px rgba(0, 0, 0, 0.35),
    0 14px 30px -10px rgba(122, 63, 245, 0.85);
  -webkit-mask: radial-gradient(circle, transparent 44%, #000 46%);
  mask: radial-gradient(circle, transparent 44%, #000 46%);
  animation: spin 14s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.drop h2 { font-size: 20px; font-weight: 680; margin-bottom: 6px; }
.drop p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============================ buttons ============================ */

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 640;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  color: #150627;
  background: var(--brand);
  background-size: 180% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 12px 26px -10px rgba(122, 63, 245, 0.9);
  transition: transform 0.14s, box-shadow 0.18s, background-position 0.5s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { transform: translateY(-2px); background-position: 100% 0; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.32); }
.btn:disabled { opacity: 0.42; cursor: default; transform: none; }

.btn.ghost {
  color: var(--text-2);
  background: var(--surface-2);
  box-shadow: var(--lift-1);
}

.btn.ghost:hover { color: var(--text); }

/* ============================ verdict ============================ */

.verdict {
  border-radius: var(--r-xl);
  padding: 34px 32px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--lift-3);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: linear-gradient(158deg, var(--surface-3), var(--surface));
}

.verdict::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

/* coloured aura behind the verdict, tinted by outcome */
.verdict::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -190px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.verdict.v-ai::after      { background: radial-gradient(circle, var(--magenta), transparent 68%); }
.verdict.v-partial::after { background: radial-gradient(circle, var(--amber), transparent 68%); }
.verdict.v-camera::after  { background: radial-gradient(circle, var(--cyan), transparent 68%); }
.verdict.v-unknown::after { background: radial-gradient(circle, #6b6489, transparent 68%); }

.verdict > * { position: relative; z-index: 1; }

.verdict-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* the 3D result orb */
.orb {
  width: 96px; height: 96px;
  border-radius: 50%;
  flex: none;
  position: relative;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.45),
    inset 0 -12px 24px rgba(0, 0, 0, 0.45),
    0 20px 42px -14px rgba(0, 0, 0, 0.9);
}

.orb::after {
  content: "";
  position: absolute;
  left: 20%; top: 12%;
  width: 34%; height: 26%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  filter: blur(3px);
}

.v-ai      .orb { background: radial-gradient(circle at 34% 28%, #ffd0ee, var(--magenta) 42%, #7a1f66 100%); }
.v-partial .orb { background: radial-gradient(circle at 34% 28%, #fff0cc, var(--amber) 42%, #8a5f10 100%); }
.v-camera  .orb { background: radial-gradient(circle at 34% 28%, #d6fffb, var(--cyan) 42%, #12695f 100%); }
.v-unknown .orb { background: radial-gradient(circle at 34% 28%, #d5d1e6, #6b6489 42%, #2a2540 100%); }

.verdict h2 { font-size: clamp(27px, 4.2vw, 38px); font-weight: 760; margin-bottom: 6px; }
.v-ai      h2 { color: var(--magenta); }
.v-partial h2 { color: var(--amber); }
.v-camera  h2 { color: var(--cyan); }
.v-unknown h2 { color: var(--text-2); }

.verdict .plain { font-size: 18px; color: var(--text); margin: 0; font-weight: 500; }
.verdict .detail { margin: 16px 0 0; color: var(--text-2); max-width: 74ch; font-size: 15px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: var(--lift-1);
}

.chip.declared { color: #0d2a12; background: linear-gradient(180deg, #b6f59d, var(--green)); }
.chip.high     { color: #2e2205; background: linear-gradient(180deg, #ffe2a1, var(--amber)); }

/* ============================ result tabs ============================ */

.tabs {
  display: flex;
  gap: 5px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
  margin: 26px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.tab:hover { color: var(--text-2); }

.tab[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  box-shadow: var(--lift-1);
}

.tab .n {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.tab[aria-selected="true"] .n { background: rgba(255, 255, 255, 0.16); color: var(--text-2); }

.panel[hidden] { display: none; }

/* ============================ evidence ============================ */

.tier-head { display: flex; align-items: center; gap: 11px; margin: 24px 0 11px; flex-wrap: wrap; }

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: var(--lift-1);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.tier-badge b {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #150627;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.tier-head .what { font-size: 13px; color: var(--muted); }

.ev {
  border-radius: var(--r);
  padding: 16px 18px 16px 20px;
  margin-bottom: 10px;
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
  position: relative;
  overflow: hidden;
}

.ev::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--muted);
}

.ev.d-ai::before     { background: linear-gradient(180deg, var(--magenta), var(--violet)); }
.ev.d-camera::before { background: linear-gradient(180deg, var(--cyan), var(--green)); }

.ev h4 { font-size: 16px; font-weight: 660; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; }

.ev .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.ev.d-ai .dot     { background: var(--ai); box-shadow: 0 0 10px var(--ai); }
.ev.d-camera .dot { background: var(--cam); box-shadow: 0 0 10px var(--cam); }

.ev p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.ev .caveat {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.07);
  border-left: 2px solid rgba(255, 209, 102, 0.5);
  color: var(--muted);
  font-size: 13.5px;
}

.ev .caveat b { color: var(--warn); font-weight: 620; }

/* ============================ for nerds ============================ */

details.nerd { margin-top: 11px; }

details.nerd > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  transition: color 0.15s, background 0.15s;
  user-select: none;
}

details.nerd > summary::-webkit-details-marker { display: none; }
details.nerd > summary::after { content: "▾"; font-size: 10px; transition: transform 0.2s; }
details.nerd[open] > summary::after { transform: rotate(180deg); }

details.nerd > summary:hover { color: var(--cyan); background: rgba(63, 224, 216, 0.09); }

details.nerd[open] > summary {
  color: var(--cyan);
  background: rgba(63, 224, 216, 0.09);
  border-color: rgba(63, 224, 216, 0.28);
}

details.nerd .body {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(4, 3, 9, 0.55);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.68;
}

details.nerd .body code,
details.nerd .body .m { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }

/* ============================ panels / canvases ============================ */

.viz {
  border-radius: var(--r);
  padding: 15px;
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
}

.viz h4 { font-size: 14.5px; font-weight: 650; margin-bottom: 4px; }
.viz .cap { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.viz canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #04030a;
  display: block;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 12px rgba(0,0,0,.7);
}

/* ============================ metrics ============================ */

.metric {
  border-radius: var(--r);
  padding: 15px 17px;
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
}

.metric .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.metric .v { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.metric .v.ai  { color: var(--ai); text-shadow: 0 0 22px rgba(255, 92, 200, 0.5); }
.metric .v.cam { color: var(--cam); text-shadow: 0 0 22px rgba(63, 224, 216, 0.5); }
.metric .n { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

/* ============================ disclosures / tables ============================ */

details.raw {
  border-radius: var(--r);
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
  margin-bottom: 10px;
  overflow: hidden;
}

details.raw > summary {
  cursor: pointer;
  padding: 15px 19px;
  font-weight: 620;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

details.raw > summary::-webkit-details-marker { display: none; }
details.raw > summary::after { content: "+"; color: var(--muted); font-size: 19px; font-weight: 400; }
details.raw[open] > summary::after { content: ", "; }
details.raw > summary:hover { background: rgba(255, 255, 255, 0.03); }
details.raw .inner { padding: 2px 19px 18px; }

.tagline { font-size: 12px; color: var(--faint); font-family: var(--mono); font-weight: 400; }

table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kv td { padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
table.kv td:first-child { color: var(--faint); white-space: nowrap; width: 1%; font-family: var(--mono); font-size: 12px; }
table.kv td:last-child { color: var(--text-2); word-break: break-word; }
table.kv tr:last-child td { border-bottom: 0; }

pre.blob {
  margin: 0;
  padding: 14px;
  background: rgba(3, 2, 7, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
}

/* ============================ notes / status ============================ */

.notes {
  border-radius: var(--r);
  padding: 16px 19px;
  background: rgba(255, 209, 102, 0.055);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-left: 3px solid var(--warn);
  margin-top: 18px;
}

.notes h4 { font-size: 13.5px; color: var(--warn); margin-bottom: 9px; font-weight: 680; }
.notes ul { margin: 0; padding-left: 19px; color: var(--text-2); font-size: 14px; }
.notes li { margin-bottom: 7px; }
.notes li:last-child { margin-bottom: 0; }

.err {
  border-radius: var(--r);
  padding: 16px 19px;
  background: rgba(255, 92, 200, 0.09);
  border: 1px solid rgba(255, 92, 200, 0.32);
  color: #ffc9ec;
  margin-top: 22px;
}

.busy { margin-top: 30px; text-align: center; padding: 40px 0; }

.busy .bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto 16px;
}

.busy .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.35s cubic-bezier(.3,.9,.3,1);
  box-shadow: 0 0 18px rgba(122, 63, 245, 0.9);
}

.busy .label { color: var(--muted); font-size: 14.5px; }

.section-head { margin: 30px 0 6px; }
.section-head h3 {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.section-head p { margin: 5px 0 0; font-size: 13.5px; color: var(--faint); }

/* ============================ prose pages ============================ */

.prose h2 { font-size: 26px; font-weight: 720; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 660; margin: 28px 0 10px; }
.prose p { color: var(--text-2); margin: 0 0 15px; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 22px; margin: 0 0 15px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 640; }
.prose a { color: var(--cyan); }
.prose code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--cyan);
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r);
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--lift-1);
  margin-bottom: 12px;
}

.step .num {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 720;
  font-size: 15px;
  color: #150627;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 16px -6px rgba(122,63,245,.8);
}

.step h4 { font-size: 16.5px; font-weight: 650; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-2); }

footer.foot {
  margin-top: 76px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}

footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--cyan); }

.hidden { display: none !important; }
.center { text-align: center; }

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 26px; }
  .card, .verdict { padding: 20px 18px; border-radius: var(--r); }
  .drop { padding: 40px 18px; }
  .orb { width: 68px; height: 68px; }
  .nav-links a { padding: 7px 11px; font-size: 13.5px; }
  .mark span { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================ mode chooser ============================

   Selection has to be unmistakable at a glance. The unselected card sits flat
   and recessed with a hollow tick; the selected one lifts, gains a full
   iridescent rim, a coloured glow, a lit icon and a filled tick. */

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 30px 0 15px;
}

.step-n {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 13.5px;
  color: #150627;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px -6px rgba(122, 63, 245, 0.9);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}

.step-head h3 { font-size: 19px; font-weight: 690; margin-bottom: 3px; }
.step-head p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 68ch; }

.step-head.dim .step-n {
  background: rgba(255, 255, 255, 0.06);
  color: var(--faint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.step-head.dim h3 { color: var(--muted); }

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.mode {
  appearance: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  color: var(--text);
  background: linear-gradient(158deg, rgba(30, 25, 48, 0.72), rgba(18, 15, 30, 0.72));
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 22px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s cubic-bezier(.2,.9,.3,1),
    box-shadow 0.24s, border-color 0.24s, background 0.24s;
}

.mode::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.mode:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(158deg, rgba(40, 33, 62, 0.8), rgba(24, 20, 40, 0.8));
}

.mode:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---- icon ---- */

.mode-icon {
  width: 50px; height: 50px;
  flex: none;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.24s, background 0.24s, box-shadow 0.24s, transform 0.24s;
}

.mode-icon svg { width: 26px; height: 26px; }

/* ---- text ---- */

.mode-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }

.mode-body b {
  font-size: 17px;
  font-weight: 670;
  letter-spacing: -0.02em;
  color: var(--text-2);
  transition: color 0.24s;
}

.mode-body i {
  font-style: normal;
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.45;
  transition: color 0.24s;
}

/* ---- tick ---- */

.mode-check {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.24s, background 0.24s, box-shadow 0.24s, transform 0.24s;
}

.mode-check svg {
  width: 15px; height: 15px;
  color: #14052a;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.28s cubic-bezier(.2,1.5,.4,1);
}

.mode:hover .mode-check { border-color: rgba(255, 255, 255, 0.3); }

/* ---- selected ---- */

.mode[aria-checked="true"] {
  transform: translateY(-3px);
  border-color: transparent;
  background: linear-gradient(158deg, rgba(74, 58, 122, 0.85), rgba(40, 31, 70, 0.85));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 22px 46px -18px rgba(0, 0, 0, 0.95),
    0 10px 34px -10px rgba(122, 63, 245, 0.7);
}

/* full iridescent rim, thicker than the resting border so it reads instantly */
.mode[aria-checked="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mode[aria-checked="true"] .mode-icon {
  color: #14052a;
  background: var(--brand);
  transform: scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 8px rgba(0, 0, 0, 0.25),
    0 8px 20px -6px rgba(122, 63, 245, 0.85);
}

.mode[aria-checked="true"] .mode-body b { color: #fff; }
.mode[aria-checked="true"] .mode-body i { color: var(--text-2); }

.mode[aria-checked="true"] .mode-check {
  border-color: transparent;
  background: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 5px rgba(122, 63, 245, 0.2),
    0 6px 16px -5px rgba(122, 63, 245, 0.9);
}

.mode[aria-checked="true"] .mode-check svg { opacity: 1; transform: scale(1); }

/* ---- locked dropzone ---- */

.drop.is-locked {
  cursor: not-allowed;
  padding: 26px 24px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(158deg, rgba(20, 17, 32, 0.5), rgba(12, 10, 21, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.drop.is-locked h2, .drop.is-locked p { opacity: 0.42; }
.drop.is-locked .ring {
  width: 40px; height: 40px;
  margin-bottom: 12px;
  opacity: 0.22;
  filter: saturate(0.2);
  animation-play-state: paused;
}
.drop.is-locked:hover { transform: none; }
.drop.is-locked:hover::after, .drop.is-locked.hot::after { opacity: 0; }

.drop-lock {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 640;
  color: var(--warn);
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.11);
  border: 1px solid rgba(255, 209, 102, 0.32);
}

.drop-lock::before { content: "\2191"; font-size: 15px; line-height: 1; }

.drop:not(.is-locked) .drop-lock { display: none; }

.drop.nudge { animation: nudge 0.45s cubic-bezier(.36,.07,.19,.97); }

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  35% { transform: translateX(8px); }
  55% { transform: translateX(-5px); }
  75% { transform: translateX(3px); }
}

@media (max-width: 680px) {
  .mode { padding: 16px 17px; gap: 13px; }
  .mode-icon { width: 44px; height: 44px; border-radius: 13px; }
  .mode-icon svg { width: 23px; height: 23px; }
  .mode-body b { font-size: 16px; }
  .modes { grid-template-columns: 1fr; }
}
