/* Annoy Your Friends — site styles. One theme: the panel is the panel (safety yellow, dark plates).
   Tokens mirror BRAND.md §3 and mocks/direction-c.html. No external requests. */

:root {
  --panel: #F4C20D;
  --panel-2: #E9B800;
  --ink: #121212;
  --ink-soft: #4A3F12;
  --plate: #161616;
  --plate-ink: #F1EDE4;
  --plate-soft: #9A968C;
  --red: #E0261B;
  --red-deep: #8E130B;
  --red-hi: #FF6A4D;
  --steel: #8A8D91;
  --steel-hi: #D9DBDE;
  --lamp-on: #3BD16F;
  --lamp-amber: #FFA10A;
  --lamp-off: #5A5A5A;
  --tape: #141414;
  --tape-ink: #F4F4F0;
  --shadow: rgba(40, 30, 0, .35);
  --line: rgba(18, 18, 18, .22);

  --display: "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font: 16.5px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn-open:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.plate a:focus-visible { outline-color: var(--panel); }

.wrap { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--ink); color: var(--panel); padding: 10px 14px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ hardware bits */

.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--panel) 0 14px, var(--ink) 14px 28px);
}
.hazard--thin { height: 8px; background: repeating-linear-gradient(-45deg, var(--panel) 0 8px, var(--ink) 8px 16px); }

.dymo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tape);
  color: var(--tape-ink);
  font: 700 14px/1 var(--mono);
  letter-spacing: .2em;
  padding: 8px 14px 8px 12px;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 100%, 96% 94%, 4% 100%, 1% 92%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3), 0 -1px 0 rgba(0, 0, 0, .5);
  white-space: nowrap;
}

.label {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.plate {
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: 14px;
  padding: 26px 22px 22px;
  position: relative;
  min-width: 0;
  box-shadow: 0 0 0 2px var(--steel), 0 4px 0 2px var(--shadow);
}
/* four screws */
.plate::before, .plate::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--steel-hi), var(--steel) 60%, #3a3a3a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.plate::before { left: 9px; }
.plate::after { right: 9px; }
.plate .screws::before, .plate .screws::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--steel-hi), var(--steel) 60%, #3a3a3a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.plate .screws::before { left: 9px; }
.plate .screws::after { right: 9px; }
.plate a { color: var(--plate-ink); }

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

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

.nav { border-bottom: 3px solid var(--ink); }
.nav__inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark img { width: 30px; height: 30px; flex: none; }
.mark .dymo { font-size: 13px; }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  font: 500 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 7px 9px;
}
.nav nav a:hover { background: var(--ink); color: var(--panel); }
@media (max-width: 480px) {
  .nav nav a.opt { display: none; }
}

/* ------------------------------------------------------------- sections */

section { padding-block: clamp(52px, 9vw, 96px); }
section + section { border-top: 3px solid var(--ink); }
.band { background: var(--panel-2); }

.section-title { font-size: clamp(2.4rem, 8vw, 4rem); margin-bottom: 14px; }
.section-sub { max-width: 60ch; margin: 0 0 32px; color: var(--ink-soft); font-size: 17px; }
.eyebrow { margin: 0 0 14px; }

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

.hero { padding-block: clamp(36px, 7vw, 80px) clamp(52px, 8vw, 88px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero h1 { font-size: clamp(4rem, 15vw, 7.4rem); line-height: .86; margin: 18px 0 20px; text-wrap: balance; }
.hero__sub { font-size: 18.5px; max-width: 44ch; margin: 0 0 26px; }
.hero__meta { margin: 16px 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #000;
  transition: transform .09s ease, box-shadow .09s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge__lines { display: block; line-height: 1.12; }
.badge__small { display: block; font-size: 11px; letter-spacing: .02em; }
.badge__big { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

/* the machine */
.unit {
  --d: min(78vw, 360px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px 18px 22px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 0 var(--ink);
  position: relative;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}
.unit__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screw {
  width: 20px; height: 20px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--steel-hi), var(--steel) 55%, #444);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.screw::after { content: ""; position: absolute; inset: 9px 3px; background: #333; border-radius: 1px; transform: rotate(35deg); }

.housing {
  width: var(--d); height: var(--d);
  border-radius: 50%;
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--panel) 0 calc(var(--d) * .045), var(--ink) calc(var(--d) * .045) calc(var(--d) * .09));
  box-shadow: 0 10px 0 -2px var(--shadow), inset 0 0 0 3px var(--ink);
}
.bezel {
  width: 80%; height: 80%;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 200deg, #6f7276, #e6e8ea, #8a8d91, #4b4d50, #cfd2d5, #6f7276);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .5), 0 3px 6px rgba(0, 0, 0, .45), 0 0 0 4px var(--ink);
}
.dome {
  width: 82%; height: 82%;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, var(--red-hi) 0, var(--red) 38%, var(--red-deep) 100%);
  box-shadow: 0 calc(var(--d) * .036) 0 var(--red-deep), 0 calc(var(--d) * .055) 18px rgba(0, 0, 0, .45),
              inset 0 -8px 18px rgba(0, 0, 0, .35), inset 0 6px 10px rgba(255, 255, 255, .25);
  transform: translateY(calc(var(--d) * -.02));
  transition: transform .09s ease, box-shadow .09s ease;
  cursor: pointer;
}
.dome:active {
  transform: translateY(calc(var(--d) * .01)) scale(1.03, .95);
  box-shadow: 0 3px 0 var(--red-deep), 0 6px 8px rgba(0, 0, 0, .45), inset 0 -6px 14px rgba(0, 0, 0, .4), inset 0 6px 10px rgba(255, 255, 255, .2);
}
.dome span {
  font: 700 calc(var(--d) * .16)/1 var(--display);
  letter-spacing: .12em;
  padding-left: .12em;
  padding-top: .1em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(110, 14, 7, .75);
}
@media (prefers-reduced-motion: reduce) { .dome, .badge { transition: none; } }

.lamps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lamps i {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lamp-off);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.lamps i.on { background: #FF3B2E; box-shadow: inset 0 0 0 2px var(--ink), 0 0 8px 2px rgba(255, 59, 46, .7); }

.odo { display: flex; gap: 4px; justify-content: center; }
.odo b {
  width: 38px; height: 54px;
  background: linear-gradient(#0c0c0c, #262626 48%, #0c0c0c 52%, #1c1c1c);
  color: var(--plate-ink);
  font: 700 44px/58px var(--display);
  text-align: center;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #000, 0 2px 0 var(--shadow);
}
.odo b.dim { color: #5c5c5c; }
.unit .label { text-align: center; }

.ticket {
  width: 100%;
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: 6px;
  padding: 11px 14px;
  font: 13px/1.3 var(--mono);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  letter-spacing: .04em;
}
.ticket span { display: flex; gap: 10px; align-items: center; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp-on); box-shadow: 0 0 6px var(--lamp-on); flex: none; display: inline-block; }
.lamp.amber { background: var(--lamp-amber); box-shadow: 0 0 6px var(--lamp-amber); }
.lamp.off { background: var(--lamp-off); box-shadow: none; }

/* ---------------------------------------------------------------- points */

.points { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points h3 { font-size: 2.1rem; margin: 6px 0 12px; color: var(--panel); }
.points p { margin: 0; color: var(--plate-ink); }
.points .label { color: var(--plate-soft); }

/* ----------------------------------------------------------------- rules */

.rules { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rules li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 22px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(241, 237, 228, .14);
}
.rules li:last-child { border-bottom: 0; }
@media (min-width: 720px) { .rules li { grid-template-columns: 260px 1fr; align-items: baseline; } }
.rules b { font: 700 1.7rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--panel); }
.rules span { color: var(--plate-ink); }
.rules em { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--plate-soft); }

/* --------------------------------------------------------------- widgets */

.widgets { display: grid; gap: 22px; }
@media (min-width: 820px) { .widgets { grid-template-columns: 1fr 1fr 1.5fr; align-items: stretch; } }
.widget { margin: 0; display: grid; gap: 14px; align-content: start; }
.widget__frame {
  background: radial-gradient(120% 90% at 30% 15%, #3b4a66 0, #1d2433 45%, #0b0d12 100%);
  border-radius: 22px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  display: grid; place-items: center;
  padding: 26px 18px;
  min-height: 250px;
}
.widget__frame svg { width: 100%; height: auto; display: block; }
.widget__frame--sq svg { max-width: 190px; }
.widget__frame--circ svg { max-width: 220px; }
.widget__frame--la svg { max-width: 420px; }
.widget figcaption { font-size: 15px; }
.widget figcaption b { display: block; font: 700 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.svg-display { font-family: var(--display); font-weight: 700; }
.svg-mono { font-family: var(--mono); font-weight: 700; }
.svg-body { font-family: var(--body); }

/* ----------------------------------------------------------- consent */

.consent { display: grid; gap: 28px; }
@media (min-width: 860px) { .consent { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.consent__quote {
  margin: 0;
  font: 700 clamp(2.2rem, 7vw, 3.4rem)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.consent__quote span { display: block; }
.sheet {
  background: #F7F3E6;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 6px 0 var(--ink);
}
.sheet h3 { font-size: 1.8rem; margin: 0 0 10px; }
.sheet p { margin: 0 0 16px; }
.sheet__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.key {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.3rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 18px 9px; border-radius: 6px; min-width: 110px;
}
.key--go { background: var(--ink); color: var(--panel); box-shadow: 0 4px 0 #000; }
.key--no { border: 2px solid var(--ink); color: var(--ink); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.4; }
.facts li::before { content: ""; width: 11px; height: 11px; margin-top: 6px; background: var(--ink); transform: rotate(45deg); }

/* --------------------------------------------------------------- shots */

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
           margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .shots figure { scroll-snap-align: start; }
}
.shots figure { margin: 0; }
.shots img { border-radius: 28px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); width: 100%; background: var(--plate); }
.shots figcaption { margin-top: 12px; font-size: 14.5px; }

/* ----------------------------------------------------------------- pro */

.pro { display: grid; gap: 26px; }
@media (min-width: 860px) { .pro { grid-template-columns: 1fr 1fr; align-items: start; } }
.pro__price { font: 700 clamp(4rem, 14vw, 6rem)/.85 var(--display); color: var(--panel); margin: 10px 0 6px; }
.pro__price small { font-size: .4em; color: var(--plate-soft); letter-spacing: .08em; }
.feat { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.4; }
.feat li::before { content: ""; width: 11px; height: 11px; margin-top: 6px; background: var(--panel); transform: rotate(45deg); }
.notsale { border: 2px dashed var(--ink); border-radius: 8px; padding: 16px 18px; background: var(--panel); }
.notsale b { font: 700 1.6rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.notsale p { margin: 0; }
.free { margin-top: 18px; }

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

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--steel);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 14px 18px;
  font: 700 1.35rem/1.05 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%;
  background: var(--lamp-off);
  box-shadow: inset 0 0 0 2px #000;
}
.faq details[open] summary::after { background: var(--lamp-on); box-shadow: inset 0 0 0 2px #000, 0 0 8px var(--lamp-on); }
.faq details > div { padding: 0 18px 16px; color: var(--plate-ink); }
.faq details p { margin: 0 0 10px; }
.faq details p:last-child { margin-bottom: 0; }
.faq a { color: var(--panel); }

/* ------------------------------------------------------------------ cta */

.cta { text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 10vw, 4.6rem); margin-bottom: 22px; }
.cta p { margin: 16px 0 0; }

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

.foot { background: var(--plate); color: var(--plate-soft); padding-block: 34px 44px; }
.foot__inner { display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot a { color: var(--plate-ink); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot p { margin: 0; font-size: 14px; }

/* ---------------------------------------------------------- legal pages */

.doc { padding-block: clamp(36px, 7vw, 72px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(3rem, 12vw, 5rem); margin: 16px 0 10px; }
.doc h2 { font-size: 1.9rem; margin: 36px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--ink-soft); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.doc .plate { margin: 24px 0; }
.doc .plate p { margin: 0 0 8px; }
.doc .plate p:last-child { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------- invite + 404 */

.invite { min-height: calc(100vh - 14px); min-height: calc(100svh - 14px); display: grid; align-items: center; padding-block: 40px 56px; }
.invite__inner { max-width: 520px; margin-inline: auto; display: grid; gap: 18px; }
.invite h1 { font-size: clamp(3rem, 13vw, 4.6rem); line-height: .88; }
.invite__lead { margin: 0; font-size: 18px; }
.codeplate {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--plate); color: var(--plate-ink);
  border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 0 0 2px var(--steel);
}
.codeplate code { font: 700 clamp(26px, 8vw, 34px)/1 var(--mono); letter-spacing: .16em; color: var(--panel); }
.codeplate code .sep { color: var(--plate-soft); letter-spacing: 0; margin-inline: .08em; }
.codeplate .label { color: var(--plate-soft); }
.btn-open {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: radial-gradient(circle at 50% 0, var(--red-hi), var(--red) 55%, var(--red-deep));
  color: #fff; text-decoration: none;
  border-radius: 8px;
  padding: 16px 18px 13px;
  box-shadow: 0 6px 0 var(--red-deep);
  font: 700 1.9rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .09s ease, box-shadow .09s ease;
}
.btn-open:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--red-deep); }
.btn-open small { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: none; opacity: .85; }
.invite__or { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.invite__or p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.invite .sheet p:last-child { margin-bottom: 0; }
.invite__small { font-size: 14px; color: var(--ink-soft); margin: 0; }
[hidden] { display: none !important; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plate .label { color: var(--plate-soft); }
.foot .dymo { background: var(--panel); color: var(--ink); text-shadow: none; }
@media (min-width: 641px) { .shots { max-width: 900px; } }
@media (max-width: 480px) { .btn-open small { display: none; } }
@media (max-width: 420px) {
  .nav__inner { gap: 10px; }
  .nav nav { gap: 5px; flex-wrap: nowrap; }
  .nav nav a { padding: 7px 7px; font-size: 11px; letter-spacing: .06em; }
}
