/* IKnowABot — @introu sweatshirt + garage light + ZiNe cream */

:root {
  /* the two site colours + zine third */
  --c-sweat: #b1a990;   /* @introu sweatshirt / banner sand */
  --c-light: #dbcca3;   /* garage light average pick */
  --c-zine: #f3efe4;    /* uncopyrighted ZiNe cream ([Z]ezima · i=iTouch · ne=any) */
  /* licensed Impact.ttf from user zip (Microsoft Desktop EULA) */
  --font-display: "Impact", "Impact Licensed", "MLGPro", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --radius: 14px;
  --max: 960px;
}

/* dark: sweatshirt sand on deep ink (banner luminance) */
:root,
[data-theme="dark"] {
  --bg: #1c1914;
  --bg-elevated: #2a261f;
  --text: #f3efe4;
  --muted: var(--c-sweat);
  --dim: #8a8270;
  --border: rgba(177, 169, 144, 0.28);
  --btn-bg: var(--c-sweat);
  --btn-fg: #1c1914;
  --accent-phone-a: var(--c-sweat);
  --accent-phone-b: var(--c-light);
  color-scheme: dark;
}

/* light: garage light fill */
[data-theme="light"] {
  --bg: var(--c-light);
  --bg-elevated: #e8dcb8;
  --text: #1c1914;
  --muted: #5c5340;
  --dim: #7a7058;
  --border: rgba(28, 25, 20, 0.16);
  --btn-bg: #1c1914;
  --btn-fg: var(--c-light);
  --accent-phone-a: var(--c-sweat);
  --accent-phone-b: #c4b48a;
  color-scheme: light;
}

/* cream: uncopyrighted ZiNe paper */
[data-theme="cream"] {
  --bg: var(--c-zine);
  --bg-elevated: #e8e2d4;
  --text: #1a1814;
  --muted: #5c564c;
  --dim: #8a8276;
  --border: rgba(26, 24, 20, 0.16);
  --btn-bg: #1a1814;
  --btn-fg: var(--c-zine);
  --accent-phone-a: var(--c-sweat);
  --accent-phone-b: var(--c-light);
  color-scheme: light;
}

/* Bought font: Microsoft Corporation/Impact™/Impact.ttf
   source zip: c77e430c-34c2-4a31-9508-22061d24a477.zip */
@font-face {
  font-family: "Impact";
  src:
    url("fonts/Impact.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* alias so older rules / cache still hit the same file */
@font-face {
  font-family: "Impact Licensed";
  src: url("fonts/Impact.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MLGPro";
  src: url("fonts/mlgpro.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  overflow-wrap: break-word;
}

.bg-grid,
.bg-glow,
.flag-bar {
  display: none;
}

#landing {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.logo-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo-home:hover .logo-text {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-se {
  appearance: none;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1.2;
}

.logo-se.is-on,
.logo-se[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--c-z-gold, #c9a227);
  outline: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--btn-fg) !important;
  background: var(--btn-bg);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

#zine-filter-toggle[aria-pressed="true"] {
  background: var(--c-z-gold, #c9a227);
  color: #1c1914;
  border-color: transparent;
}

/* —— ZiNe filter overlay ——
   [Z]=Zezima gold grain · i=Apple/iTouch soft glass · ne=any theme */
:root {
  --c-z-gold: #c9a227; /* Zezima-inspired high-score gold (uncopyrighted) */
  --c-z-ink: #1a1814;
  --c-z-glass: rgba(255, 255, 255, 0.12);
}

body.zine-filter {
  position: relative;
  /* i = soft Apple/iTouch contrast curve */
  filter: contrast(1.06) saturate(0.92) brightness(1.02);
}

/* grain + warm paper (photocopy zine) — sits above bg, under UI */
body.zine-filter::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E"),
    linear-gradient(
      165deg,
      rgba(201, 162, 39, 0.14) 0%,
      transparent 42%,
      rgba(243, 239, 228, 0.08) 100%
    );
  background-size: 180px 180px, 100% 100%;
}

/* soft glass wash (iTouch / Apple-ish, not trade dress) */
body.zine-filter::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(255, 255, 255, 0.16),
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(201, 162, 39, 0.04) 100%
    );
}

body.zine-filter #landing,
body.zine-filter .reveal {
  position: relative;
  z-index: 1;
}

/* Zezima gold accents when filter on */
body.zine-filter .accent {
  text-decoration-color: var(--c-z-gold);
  color: inherit;
}

body.zine-filter .logo-mark {
  color: var(--c-z-gold);
}

body.zine-filter .eyebrow {
  border-color: rgba(201, 162, 39, 0.45);
}

body.zine-filter .card,
body.zine-filter .phone,
body.zine-filter .stats,
body.zine-filter .cta-band {
  /* i = rounded glass panels */
  border-radius: 16px;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px rgba(28, 25, 20, 0.08);
}

body.zine-filter .btn-primary {
  background: var(--c-z-gold);
  color: #1c1914;
  border-color: transparent;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

body.zine-filter .nav-cta {
  background: var(--c-z-gold) !important;
  color: #1c1914 !important;
}

body.zine-filter .phone-rokr .phone-bezel {
  background: linear-gradient(90deg, var(--c-sweat), var(--c-z-gold));
}

body.zine-filter .phone-itouch .phone-bezel {
  /* i = clean light bar */
  background: linear-gradient(90deg, var(--c-light), #f5f0e4);
}

body.zine-filter .bubble-out {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

/* cream theme + filter = full paper zine */
body.zine-filter[data-theme="cream"] {
  filter: contrast(1.08) saturate(0.88) brightness(1.03);
}

body.zine-filter[data-theme="cream"]::before {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.zine-legend {
  margin-top: 0.35rem;
}

.zine-legend em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 2.75rem 0 2rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.accent {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
}

.fine-lede {
  max-width: 40rem;
  font-size: 0.95rem;
}

/* —— ROKR E8 ↔ iPod touch SMS duel —— */
.sms-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  max-width: 40rem;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.phone {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

/* ROKR = sweatshirt sand chrome */
.phone-rokr {
  border-radius: 10px 10px 14px 14px;
  border-color: var(--c-sweat);
  box-shadow: 0 0 0 1px rgba(177, 169, 144, 0.25);
}

.phone-rokr .phone-bezel {
  background: var(--c-sweat);
  color: #1c1914;
  border-bottom-color: rgba(28, 25, 20, 0.18);
}

.phone-rokr .phone-name,
.phone-rokr .phone-mode {
  color: #1c1914;
}

.phone-rokr .phone-mode {
  opacity: 0.75;
}

/* iTouch = garage light chrome */
.phone-itouch {
  border-radius: 14px;
  border-color: var(--c-light);
  box-shadow: 0 0 0 1px rgba(219, 204, 163, 0.3);
}

.phone-itouch .phone-bezel {
  background: var(--c-light);
  color: #1c1914;
  border-bottom-color: rgba(28, 25, 20, 0.14);
}

.phone-itouch .phone-name,
.phone-itouch .phone-mode {
  color: #1c1914;
}

.phone-itouch .phone-mode {
  opacity: 0.75;
}

.phone-bezel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phone-name {
  font-weight: 700;
  color: var(--text);
}

.phone-mode {
  color: var(--dim);
  font-size: 0.65rem;
}

.phone-screen {
  flex: 1;
  padding: 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 140px;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .phone-screen,
[data-theme="cream"] .phone-screen {
  background: rgba(28, 25, 20, 0.06);
}

.bubble {
  max-width: 92%;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  line-height: 1.35;
  word-break: break-word;
  animation: bubble-in 0.25s ease;
}

.bubble-out {
  align-self: flex-end;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.phone-rokr .bubble-out {
  background: var(--c-sweat);
  color: #1c1914;
}

.phone-itouch .bubble-out {
  background: var(--c-light);
  color: #1c1914;
}

.bubble-in {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.bubble-typing {
  opacity: 0.55;
  font-style: italic;
}

.phone-keys {
  padding: 0.35rem 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--dim);
  font-family: var(--font-body);
  text-transform: none;
}

.phone-rokr .phone-keys {
  background: rgba(177, 169, 144, 0.12);
}

.phone-itouch .phone-keys {
  background: rgba(219, 204, 163, 0.14);
}

.sms-controls {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
  text-transform: none;
}

/* —— Homevideo L…l aim (Laughable) · try here —— */
.aim-card,
.homevideo-aim {
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  padding: 0.9rem 1rem 1rem;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.aim-tag {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.aim-code {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.4vw, 0.95rem);
  line-height: 1.35;
  word-break: break-all;
  color: var(--text);
  letter-spacing: 0.02em;
}

.aim-decode {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}

.aim-decode strong {
  color: var(--text);
  font-weight: 700;
}

.aim-note {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--dim);
}

.homevideo-aim .btn {
  min-width: 10rem;
}

body.zine-filter .homevideo-aim {
  border-color: rgba(201, 162, 39, 0.4);
}

body.zine-filter .aim-code {
  color: var(--c-z-gold, #c9a227);
}

/* Zapitalize page aim: L…l + 22 222   2 + L0 */
.zap-aim {
  max-width: 40rem;
}

.aim-2-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.aim-2-block {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--c-z-gold, #c9a227);
  background: var(--bg);
}

.aim-2-l0 {
  color: var(--text);
  border-color: rgba(201, 162, 39, 0.5);
}

.aim-2-pulse {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}

.aim-2-message {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.aim-2-message strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

body.zine-filter .zap-aim {
  border-color: rgba(201, 162, 39, 0.4);
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: normal;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
}

.fine-print {
  margin: 0;
  color: var(--dim);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.5rem 0 2rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}

.card-icon {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  margin-bottom: 2rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: none;
}

.stats-note {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--dim);
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-transform: none;
}

.cta-band {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  text-transform: uppercase;
}

.cta-band p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-family: var(--font-body);
  text-transform: none;
}

.footer {
  text-align: center;
  padding: 1.75rem 1.25rem 2.5rem;
  color: var(--dim);
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-transform: none;
}

.footer a {
  color: inherit;
}

.palette-note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Reveal */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: clip;
}

[data-theme="light"] .reveal,
[data-theme="cream"] .reveal {
  background: rgba(0, 0, 0, 0.85);
}

.reveal[hidden] {
  display: none;
}

.reveal-inner {
  width: min(900px, 100%);
  text-align: center;
  color: #f2f2f2;
}

.reveal-eyebrow {
  margin: 0 0 0.4rem;
  color: #a4a4a4;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.reveal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-transform: uppercase;
}

.reveal-sub {
  margin: 0.35rem 0 1rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  text-transform: none;
}

.player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  margin-bottom: 0.85rem;
}

#player,
#player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal-tag,
.share-hint {
  color: #a4a4a4;
  font-family: var(--font-body);
  text-transform: none;
  font-size: 0.9rem;
}

.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.reveal .btn-primary {
  background: #f2f2f2;
  color: #0d0d0d;
}

.reveal .btn-ghost {
  color: #f2f2f2;
  border-color: rgba(255, 255, 255, 0.25);
}

/* —— iPhone / small phones —— */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .topbar {
    padding: 0.75rem max(0.75rem, env(safe-area-inset-left))
      0.75rem max(0.75rem, env(safe-area-inset-right));
    flex-wrap: wrap;
  }

  .logo-se {
    display: none;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* keep product links; only drop in-page hash jumps on tiny chrome */
  .nav a[href^="#"] {
    display: none;
  }

  .nav-cta,
  .theme-toggle,
  #zine-filter-toggle {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
  }

  main {
    padding: 0 max(0.85rem, env(safe-area-inset-left))
      max(1.75rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-right));
  }

  .hero {
    padding: 1.5rem 0 1.25rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  .lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .cta-band {
    padding: 1.35rem 1rem;
  }

  .sms-duel {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .phone {
    min-height: 180px;
  }

  .phone-screen {
    max-height: 160px;
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .reveal {
    align-items: start;
    padding: max(0.65rem, env(safe-area-inset-top))
      max(0.65rem, env(safe-area-inset-right))
      max(0.65rem, env(safe-area-inset-bottom))
      max(0.65rem, env(safe-area-inset-left));
  }

  .reveal-actions {
    flex-direction: column;
  }

  .reveal .btn {
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 800px) {
  .features {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .nav a[href^="#"] {
    display: none;
  }
}

/* 2 shelves on the lift */
.pvp-lift-section {
  grid-column: 1 / -1;
  margin: 1.1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.pvp-lift-section-rs {
  color: var(--c-sweat);
}

.pvp-lift-section-d2 {
  color: var(--c-z-gold, #c9a227);
}

.pvp-lift-shelf {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

body.pulse-2 .aim-2-pulse {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.55);
}

.aim-2-message kbd {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--c-z-gold, #c9a227);
}

#zap-aim-copy {
  margin-top: 0.65rem;
}

.pvp-lift-search-row {
  max-width: 28rem;
  margin: 0 auto 0.85rem;
  text-align: left;
}

.pvp-lift-search-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pvp-lift-search {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
}

.pvp-lift-deep {
  margin: 0.35rem 0 0;
}

.pvp-lift-deep code {
  font-size: 0.78rem;
  word-break: break-all;
}

.home-zap-teaser {
  margin-top: 1.5rem;
}

.l35-aim {
  max-width: 40rem;
  margin-top: 1rem;
}

.l35-aim .aim-code {
  letter-spacing: 0.01em;
}

body.zine-filter .l35-aim {
  border-color: rgba(177, 169, 144, 0.45);
}

/* —— Your Look RNG (AOL AIM basis · Cerebasiere · imagined .gov poles) —— */
.your-look {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* classic AIM chrome (fiction) */
.aim-window {
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.aim-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(90deg, #3a6ea5, #5b8ec4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.aim-window-title {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: none;
}

.aim-window-status {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

.aim-window-body {
  padding: 0.75rem 0.85rem 0.9rem;
  max-height: 22rem;
  overflow: auto;
  background: #f4f7fb;
  color: #1a1a1a;
}

[data-theme="dark"] .aim-window-body {
  background: #121820;
  color: var(--text);
}

.aim-msg {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.aim-msg:last-child {
  margin-bottom: 0;
}

.aim-who {
  display: inline-block;
  font-weight: 700;
  margin-right: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aim-msg-you .aim-who {
  color: #0b57d0;
}

.aim-msg-grok .aim-who {
  color: var(--c-z-gold, #c9a227);
}

.aim-msg-sys .aim-who {
  color: var(--dim);
}

.aim-lcode {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  word-break: break-all;
  letter-spacing: 0.01em;
  max-width: 100%;
}

.aim-lcode-meta {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.your-look-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  text-align: left;
}

.your-look-duo-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.your-look-duo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 784 / 1168;
  object-fit: cover;
  background: var(--bg);
}

.your-look-duo-card figcaption {
  padding: 0.55rem 0.65rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.your-look-duo-card figcaption strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
}

.your-look-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.your-look-basis-link {
  color: var(--c-z-gold, #c9a227);
  font-weight: 600;
}

.your-look-poles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
  margin: 1rem 0 1rem;
}

.your-look-pole {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 0.75rem 0.6rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.your-look-pole.is-hot {
  border-color: var(--c-z-gold, #c9a227);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.pole-domain {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.pole-empty .pole-domain {
  color: var(--muted);
}

.pole-real .pole-domain {
  color: var(--c-z-gold, #c9a227);
}

.pole-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.35;
}

.your-look-pole-vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.your-look-stage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

.your-look-layout {
  display: grid;
  grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.your-look-portrait {
  margin: 0;
  text-align: center;
}

.your-look-img {
  display: block;
  width: 100%;
  max-width: 11.5rem;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  object-fit: cover;
  aspect-ratio: 784 / 1168;
}

.your-look-img[hidden] {
  display: none;
}

.your-look-caption {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--dim);
}

.your-look-npc {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.your-look-stage[data-pole="real"] .your-look-portrait {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--bg);
}

.your-look-stage[data-pole="real"] .your-look-caption {
  margin: 0;
}

.your-look-stage[data-pole="empty"] {
  border-color: rgba(177, 169, 144, 0.45);
}

.your-look-stage[data-pole="real"] {
  border-color: rgba(201, 162, 39, 0.45);
}

.your-look-seed {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.your-look-domain {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.your-look-domain[data-pole="real"] {
  color: var(--c-z-gold, #c9a227);
}

.your-look-vibe {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.your-look-kit {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.your-look-kit li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: var(--bg);
}

.your-look-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.your-look-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.55rem;
}

@media (max-width: 560px) {
  .your-look-poles {
    grid-template-columns: 1fr;
  }

  .your-look-pole-vs {
    padding: 0.15rem 0;
  }

  .your-look-kit {
    grid-template-columns: 1fr;
  }

  .your-look-layout {
    grid-template-columns: 1fr;
  }

  .your-look-img {
    max-width: 14rem;
    margin: 0 auto;
  }

  .your-look-duo {
    grid-template-columns: 1fr;
  }
}

body.zine-filter .your-look-stage,
body.zine-filter .your-look-pole {
  border-radius: 16px;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
}

.home-zap-title {
  font-size: clamp(1.1rem, 3.5vw, 1.55rem) !important;
  word-break: normal !important;
  letter-spacing: 0.03em;
}

.home-zap-actions {
  margin-top: 0.35rem;
}

.home-zap-actions .btn {
  text-decoration: none;
}

.z-word {
  color: var(--c-z-gold, #c9a227);
}

/* —— PVP}Zapitalize{ page (capitalize as in zapitalize · Oda Z) —— */
.z-word {
  color: var(--c-z-gold, #c9a227);
}

.z-accent {
  text-decoration-color: var(--c-z-gold, #c9a227);
}

.pvp-hero .pvp-brace {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.pvp-lane-zap {
  border-color: rgba(201, 162, 39, 0.45);
}

.pvp-lane-zap .pvp-noun {
  color: var(--c-z-gold, #c9a227);
}

.pvp-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.pvp-lane {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1rem 0.9rem 1.1rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pvp-lane.is-win {
  border-color: var(--c-z-gold, #c9a227);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.pvp-lane-lower {
  border-color: rgba(177, 169, 144, 0.45);
}

.pvp-lane-cap {
  border-color: rgba(219, 204, 163, 0.55);
}

.pvp-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pvp-mode {
  color: var(--text);
  opacity: 0.9;
}

.pvp-noun {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.pvp-lane-lower .pvp-noun {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.pvp-lane-cap .pvp-noun {
  text-transform: none;
}

.pvp-score {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.pvp-score strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.pvp-vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0 0.15rem;
}

.pvp-controls {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.pvp-label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pvp-label em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.pvp-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.pvp-input {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  min-width: min(100%, 14rem);
  max-width: 100%;
}

.pvp-input:focus {
  outline: 2px solid var(--c-sweat);
  outline-offset: 2px;
}

.pvp-readout {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pvp-readout code {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.pvp-rules {
  margin-bottom: 1.5rem;
}

body.zine-filter .pvp-lane {
  border-radius: 16px;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px rgba(28, 25, 20, 0.08);
}

body.zine-filter .pvp-lane.is-win {
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

@media (max-width: 560px) {
  .pvp-arena {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .pvp-vs {
    padding: 0.15rem 0;
  }

  .pvp-input-row .btn {
    flex: 1 1 auto;
  }

  .pvp-input {
    width: 100%;
    min-width: 0;
  }
}

/* —— PVP builds lift (list ↔ lift) —— */
.pvp-lift {
  margin: 0 0 2.5rem;
  padding-top: 0.5rem;
}

.pvp-lift-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pvp-lift-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pvp-lift-lede {
  margin-bottom: 1rem;
}

.pvp-lift-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.pvp-filter.is-on {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
}

body.zine-filter .pvp-filter.is-on {
  background: var(--c-z-gold, #c9a227);
  color: #1c1914;
}

.pvp-lift-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.pvp-lift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.65rem;
}

.pvp-build-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 0.85rem 0.9rem 0.95rem;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.pvp-build-game {
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.pvp-build-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.pvp-build-badge-pure {
  color: var(--c-sweat);
  border-color: rgba(177, 169, 144, 0.55);
}

.pvp-build-badge-lld {
  color: var(--c-z-gold, #c9a227);
  border-color: rgba(201, 162, 39, 0.5);
}

.pvp-build-tag-pure {
  color: var(--c-sweat);
  border-color: rgba(177, 169, 144, 0.5);
}

.pvp-build-tag-lld {
  color: var(--c-z-gold, #c9a227);
  border-color: rgba(201, 162, 39, 0.45);
}

.pvp-build-rs {
  border-left: 3px solid var(--c-sweat);
}

.pvp-build-d2 {
  border-left: 3px solid var(--c-z-gold, #c9a227);
}

.pvp-build-d2 .pvp-build-game {
  color: var(--c-z-gold, #c9a227);
}

.pvp-build-rs .pvp-build-game {
  color: var(--c-sweat);
}

.pvp-build-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pvp-build-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pvp-build-cb {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-z-gold, #c9a227);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pvp-build-note {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.pvp-build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pvp-build-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--dim);
}

body.zine-filter .pvp-build-card {
  border-radius: 16px;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 18px rgba(28, 25, 20, 0.06);
}


/* placement glossary L0 |L2L &[&] */
#placement-glossary.aim-card,
#placement-glossary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  background: var(--bg-elevated);
  text-align: left;
}
.glossary-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-z-gold, #c9a227);
}
.glossary-dl { margin: 0; }
.glossary-dl > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.3rem 0.65rem;
  margin: 0.35rem 0;
  font-size: 0.88rem;
}
.glossary-dl dt {
  font-family: var(--font-display);
  font-weight: 700;
}
.glossary-dl dd { margin: 0; color: var(--muted); }
