/* mytestbox.shop — hand-written stylesheet (no framework).
   Visual parity with the previous build; tokens live in :root. */

:root {
  --ink: #070816;
  --ink-2: #10122a;
  --panel: #151733;
  --panel-2: #1b1f42;
  --paper: #f7f7fb;
  --paper-ink: #16172a;
  --paper-muted: #44465c;
  --gold: #ffcf5a;
  --purple: #8c5cff;
  --green: #14d87c;
  --haze: #b8bad5;
  --text: #f7f7ff;
  --line: rgba(255, 255, 255, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(140, 92, 255, .35), transparent 32%),
    radial-gradient(circle at 85% 5%, rgba(255, 207, 90, .20), transparent 28%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }
p { margin: 0; }

/* Visually hidden helper (always off-screen) */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  left: 16px; top: 16px;
  position: absolute; z-index: 60;
  width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  white-space: normal;
}

/* ---------- Layout ---------- */

.shell { width: calc(100% - 22px); margin-inline: auto; }
@media (min-width: 521px) { .shell { width: min(1160px, calc(100% - 2rem)); } }
.shell--narrow { max-width: 980px; }

.band { padding: 56px 0; }
.band--top0 { padding-top: 0; }

/* ---------- Page opening (hero) ---------- */

.opening { position: relative; overflow: hidden; padding: 46px 0 52px; }
@media (min-width: 768px) { .opening { min-height: 700px; padding-top: 78px; } }
.opening--short { padding-bottom: 32px; }
@media (min-width: 768px) { .opening--short { min-height: 0; } }
@media (min-width: 768px) { .opening--plain { min-height: 0; } }

.opening__wrap { display: grid; align-items: center; gap: 36px; }
@media (min-width: 1024px) { .opening__wrap { grid-template-columns: 1.1fr .9fr; } }
@media (min-width: 1024px) { .opening__wrap--list { grid-template-columns: 1.05fr .95fr; } }

.opening__visual { justify-self: center; }
@media (min-width: 1024px) { .opening__visual { justify-self: end; } }

/* ---------- Type ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 90, .25);
  background: rgba(255, 207, 90, .10);
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.headline {
  margin: 20px 0 16px;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -.05em;
  color: var(--text);
}
.headline--section {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.headline--brand { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.headline--list { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
.headline--narrow { margin: 0; font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.025em; }

.lede { font-size: 19px; line-height: 1.65; color: var(--haze); margin: 0 0 12px; max-width: 680px; }
.lede--mid { max-width: 720px; }
.lede--wide { max-width: 760px; margin-top: 12px; }
.lede--sm { font-size: 17px; max-width: 720px; margin-top: 12px; }
.lede strong { color: #fff; }

.muted { color: var(--haze); }

.note { margin-top: 16px; font-size: 14px; line-height: 1.4286; font-style: italic; color: var(--haze); opacity: .8; }
.tiny-note { margin-top: 16px; font-size: 14px; line-height: 1.4286; font-style: italic; color: var(--haze); opacity: .8; }

.section-head { margin-bottom: 24px; }
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.section-sub { margin-top: 12px; max-width: 760px; color: var(--haze); }

.prose-note { max-width: 720px; color: var(--haze); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .15s cubic-bezier(.4, 0, .2, 1),
              background-color .15s cubic-bezier(.4, 0, .2, 1),
              color .15s cubic-bezier(.4, 0, .2, 1),
              box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background-image: linear-gradient(135deg, #8c5cff, #6b3dff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(140, 92, 255, .35);
}
.btn--primary:hover { background-image: linear-gradient(135deg, #8c5cff, #7b4fff); }
.btn--go {
  background-color: var(--green);
  color: #06130d;
  box-shadow: 0 10px 28px rgba(20, 216, 124, .35);
}
.btn--go:hover { background-color: #2aed96; }
.btn--sm { font-size: 14px; line-height: 1.4286; }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

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

.card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .10);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  padding: 24px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}
.card--lift { display: block; transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.card--lift:hover { transform: translateY(-4px); }
.card--stack { display: flex; flex-direction: column; }
.card--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.card__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.card__text { color: var(--haze); }
.card__name { margin: 0; font-size: 19px; font-weight: 700; }
.card__sub { margin-top: 4px; font-size: 14px; line-height: 1.4286; color: var(--haze); }
.card__arrow { color: var(--gold); font-size: 20px; line-height: 1.4; }

.tile {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: rgba(255, 207, 90, .15);
  color: var(--gold);
  font-size: 22px;
}

.triptych { margin-top: 24px; display: grid; gap: 20px; }
@media (min-width: 768px) { .triptych { grid-template-columns: repeat(3, 1fr); } }

.criteria { display: grid; gap: 16px; }
@media (min-width: 640px) { .criteria { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .criteria { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sheet (light content paper) ---------- */

.sheet {
  border-radius: 34px;
  background: var(--paper);
  padding: 36px;
  color: var(--paper-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.sheet h2 { margin: 32px 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.25; color: #111225; }
.sheet h2:first-child { margin-top: 0; }
.sheet h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.375; color: #111225; }
.sheet p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--paper-muted); }
.sheet ul { margin: 0 0 16px; padding-left: 24px; list-style: disc; color: var(--paper-muted); }
.sheet li { margin-bottom: 8px; }
.sheet strong { color: #111225; }
.sheet a { font-weight: 800; color: #4b32c3; }
.sheet table { margin: 0 0 24px; width: 100%; border-collapse: collapse; font-size: 16px; text-align: left; }
.sheet th {
  border: 1px solid #e2e2ef; background: #ecebfa;
  padding: 12px 16px; vertical-align: top;
  font-weight: 800; color: #111225; text-align: left;
}
.sheet td { border: 1px solid #e2e2ef; padding: 12px 16px; vertical-align: top; color: var(--paper-muted); }
.sheet tr:first-child td { background: #ecebfa; font-weight: 800; color: #111225; }
.sheet tr:nth-child(even) td { background: #fbfbff; }
.sheet table a { font-weight: 800; color: #4b32c3; }
.sheet .fineprint { margin-top: 24px; font-size: 14px; line-height: 1.4286; }

/* ---------- Masthead / navigation ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: rgba(7, 8, 22, .80);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px;
}

.brandmark { display: flex; flex-shrink: 0; align-items: center; }
.brandmark img { width: 200px; height: auto; }

.burger {
  order: 9999;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}
@media (min-width: 900px) { .burger { display: none; } }

.menu {
  position: absolute; left: 16px; right: 16px; top: 78px;
  display: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: var(--ink-2);
  padding: 16px;
}
.menu.is-open { display: block; }
@media (min-width: 900px) {
  .menu {
    position: static; margin-left: auto; display: block;
    border: 0; background: transparent; padding: 0;
  }
}

.menu__list { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 900px) { .menu__list { flex-direction: row; align-items: center; gap: 4px; } }

.menu__link,
.menu__trigger {
  display: block;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--haze);
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1);
}
.menu__link:hover,
.menu__trigger:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.menu__trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
@media (min-width: 900px) { .menu__trigger { width: auto; } }

.menu__row { position: relative; }

.headcta { display: none; align-items: center; gap: 10px; }
@media (min-width: 900px) { .headcta { display: flex; } }

/* Submenu panels — no overflow, flush against trigger */
.drawer {
  display: none;
  margin-top: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: var(--panel);
  padding: 8px;
  overflow: visible;
}
.drawer.is-open { display: block; }
.drawer--sub { background: var(--panel-2); }
@media (min-width: 900px) {
  .drawer { position: absolute; left: 0; top: 100%; margin-top: 0; width: 280px; }
  .drawer--sub { left: 100%; top: 0; margin-left: 0; width: 240px; }
}

.drawer__all {
  display: block; margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  padding: 10px 16px;
  font-size: 14px; line-height: 1.4286; font-weight: 900; color: #fff;
}
.drawer__all:hover { background: var(--purple); }

.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px; line-height: 1.4286; font-weight: 600; color: #d7d7d7;
}
.drawer__link:hover { background: var(--purple); color: #fff; }

.drawer__row { position: relative; }
.drawer__child { display: flex; align-items: center; }
.drawer__sublink {
  flex: 1;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px; line-height: 1.4286; font-weight: 700; color: #d7d7d7;
}
.drawer__sublink:hover { background: var(--purple); color: #fff; }
.drawer__more {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--haze);
}
.drawer__more:hover { background: rgba(255, 255, 255, .10); color: #fff; }

.pip {
  display: inline-block;
  border-radius: 999px;
  background: rgba(0, 0, 0, .30);
  padding: 2px 8px;
  font-size: 11px;
  color: var(--haze);
}

/* ---------- Colophon (footer) ---------- */

.colophon {
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: #050611;
  padding: 48px 0 20px;
}
.colophon__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .colophon__grid { grid-template-columns: 1.4fr .8fr 1fr; } }

.colophon__brand { margin-bottom: 12px; display: inline-flex; }
.colophon__brand img { width: 150px; height: auto; }
.colophon__text { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--haze); }
.colophon__contact { margin-top: 16px; font-size: 15px; font-style: normal; color: var(--haze); }
.colophon__contact p { margin: 0 0 4px; }
.colophon__contact .lbl { font-weight: 600; color: #fff; }
.colophon__label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: #fff;
}
.colophon__title { margin-bottom: 12px; font-size: 16px; line-height: 1.5; font-weight: 800; color: #fff; }
.colophon__list { font-size: 15px; color: var(--haze); }
.colophon__list li { margin-bottom: 8px; }
.colophon__list a:hover { color: #fff; }
.colophon__base {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.4286;
  color: var(--haze);
}

/* ---------- Hero images ---------- */

.heroimg { width: 100%; max-width: 520px; border-radius: 32px; }
.heroimg--md { max-width: 400px; border-radius: 28px; }
.heroimg--soft { max-width: 400px; border-radius: 24px; }
.heroimg--brand { max-width: 320px; border-radius: 28px; }

/* ---------- Tag links (metric categories) ---------- */

.taglinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.taglink {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .05);
  padding: 8px 16px;
  font-size: 14px; line-height: 1.4286; font-weight: 700; color: var(--haze);
  transition: border-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1);
}
.taglink:hover { border-color: rgba(255, 255, 255, .30); color: #fff; }
.taglink.is-active { border-color: transparent; background: var(--purple); color: #fff; }
.taglink .pip { background: rgba(0, 0, 0, .25); font-size: 12px; color: inherit; }

/* ---------- Brand cards (listing) ---------- */

.brandgrid { display: grid; gap: 20px; }
@media (min-width: 768px) { .brandgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .brandgrid { grid-template-columns: repeat(3, 1fr); } }

.brandcard__stage {
  margin-bottom: 16px;
  display: flex; height: 110px;
  align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #222532;
}
.brandcard__logo { max-height: 92px; max-width: 86%; object-fit: contain; }
.brandcard__fallback { font-size: 24px; line-height: 1.3333; font-weight: 900; color: rgba(255, 255, 255, .70); }
.brandcard__name { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.brandcard__excerpt { margin-bottom: 16px; font-size: 14px; line-height: 1.625; color: var(--haze); }

.brandstats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.brandstats__cell { border-radius: 12px; background: rgba(0, 0, 0, .25); padding: 8px; }
.brandstats__k { font-size: 11px; text-transform: uppercase; letter-spacing: .025em; color: var(--haze); }
.brandstats__v { font-size: 14px; line-height: 1.4286; font-weight: 900; color: var(--gold); }
.brandstats__v--white { color: #fff; }

/* ---------- Facts (brand page) ---------- */

.facts { display: grid; gap: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact__label { font-size: 12px; text-transform: uppercase; letter-spacing: .025em; color: var(--haze); }
.fact__value { margin-top: 4px; font-size: 24px; line-height: 1.3333; font-weight: 900; color: var(--gold); }

/* ---------- Contact page ---------- */

.contact-head { margin-bottom: 24px; }
.contactgrid { display: grid; gap: 32px; }
@media (min-width: 768px) { .contactgrid { grid-template-columns: repeat(2, 1fr); } }

.panel-paper {
  border-radius: 24px;
  background: #fff;
  padding: 28px;
  color: var(--paper-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.panel-paper h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3333; font-weight: 800; color: #111827; }

.contact-line { font-size: 16px; line-height: 1.65; color: #334155; }
.contact-line p { margin: 0 0 8px; }
.contact-line strong { color: #111827; }
.contact-line a { font-weight: 700; color: #6558ee; }

.maplink { margin-top: 20px; overflow: hidden; border-radius: 12px; border: 1px solid #e5e7eb; }
.maplink iframe { display: block; height: 320px; width: 100%; border: 0; }

.form { display: flex; flex-direction: column; gap: 12px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 700; color: #111827; }
.field__input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px 12px;
  color: #111827;
  font: inherit;
}
.field__input--area { min-height: 140px; resize: vertical; }

.checkrow { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #334155; }
.checkrow input { margin-top: 4px; }
.checkrow label { font-weight: 600; }

.captcha { font-weight: 700; color: #111827; }
.captcha input { margin-left: 8px; width: 90px; border-radius: 8px; border: 1px solid #cbd5e1; padding: 8px 10px; color: #111827; }

.honeypot { position: absolute; left: -9999px; }

.form__submit {
  display: inline-block; width: auto;
  cursor: pointer; border: 0; border-radius: 10px;
  background: #6558ee;
  padding: 14px 28px;
  font-weight: 800; color: #fff;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.form__submit:hover { background: #7a6cff; }
.form__hint { font-size: 13px; color: #64748b; }

.notice { margin-bottom: 16px; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.notice--ok { border: 1px solid #86efac; background: #dcfce7; color: #166534; }
.notice--warn { border: 1px solid #fca5a5; background: #fee2e2; color: #991b1b; }
