/* Fomo Trading: site stylesheet.
   Order: fonts, tokens, base, buttons, header, shared blocks, page types, overlays, responsive. */

/* ---------- fonts (self-hosted, latin) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --bg: #080713;
  --band: #0c0b1c;
  --surface: #121126;
  --surface-2: #191833;
  --line: #26254a;
  --text: #f3f2fa;
  --soft: #cfcee0;
  --muted: #a3a2bd;
  --gold: #c9a961;
  --ink: #11130f;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 40px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2.5'/%3E%3Cpath d='M4.5 15.5A1.5 1.5 0 0 1 3 14V5a2 2 0 0 1 2-2h9a1.5 1.5 0 0 1 1.5 1.5'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video, picture { max-width: 100%; }
img, video { height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: lowercase;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(25px, 2.7vw, 30px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.15; }
.h-xl { font-size: clamp(34px, 4.7vw, 52px); line-height: 1.04; }
.h-lg { font-size: clamp(28px, 3.3vw, 36px); line-height: 1.05; }
.h-sm { font-size: 22px; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 800px; }
.section { padding-bottom: 56px; }
.section-top { padding-top: 36px; }
.section > h2, .section-top > h2 { margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head-start { justify-content: flex-start; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.gold { color: var(--gold); }
.keep-case { text-transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; outline-color: var(--text); }

.eyebrow {
  display: block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-muted { color: var(--muted); font-size: 11px; }
.eyebrow-ink { color: var(--ink); font-size: 11px; }
.mono-meta { font: 12px/1.4 var(--mono); color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }
.dot {
  display: inline-block; width: 3px; height: 3px; margin: 0 .6em;
  border-radius: 50%; background: currentColor; vertical-align: middle;
}
.arrow::after {
  content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .45em;
  background: currentColor; vertical-align: -.08em;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
span.arrow:empty::after { margin-left: 0; }
.lead { color: var(--muted); font-size: 17px; max-width: 460px; text-wrap: pretty; }
.lead-wide { max-width: 600px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; line-height: 1.3; text-align: center; white-space: nowrap;
  transition: opacity .15s, border-color .15s, background-color .15s;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { opacity: 1; border-color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--gold); }
.btn-lg { min-height: 54px; padding: 14px 22px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.more-link { font-size: 14px; color: var(--muted); }
.more-link:hover { color: var(--text); }
.more-link-gold { color: var(--gold); font-weight: 600; font-size: 15.5px; }

/* ---------- referral code blocks ---------- */
.code { font-family: var(--mono); font-weight: 600; color: var(--gold); }
.code-inline { font-family: var(--mono); font-weight: 600; font-size: .95em; letter-spacing: .03em; color: var(--gold); white-space: nowrap; }
.code-md { font-size: 22px; line-height: 1.2; }
.code-lg { font-size: 28px; line-height: 1.2; }
.code-note { font-size: 13.5px; color: var(--muted); margin-bottom: -10px; }
.code-xl { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: .13em; }
.code-chip {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px;
  align-self: flex-start; width: min(100%, 480px); padding: 16px 16px 14px 20px;
  background: linear-gradient(135deg, rgba(201, 169, 97, .17), rgba(201, 169, 97, .03) 58%), var(--surface);
  border: 1px solid rgba(201, 169, 97, .5); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 46px rgba(201, 169, 97, .1), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
/* In a hero the coupon is its own row across the full width; on wide screens its parts sit side by side. */
.hero > .code-chip { grid-column: 1 / -1; width: 100%; }
@media (min-width: 900px) {
  .hero > .code-chip { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0 28px; padding: 18px 20px 18px 26px; }
  .hero > .code-chip .code-chip-top { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .hero > .code-chip .code { font-size: 38px; }
  .hero > .code-chip .code-chip-note { grid-column: auto; grid-row: 1; grid-column-start: 3; margin: 0; padding: 4px 0 4px 28px; border-top: 0; border-left: 1px dashed rgba(201, 169, 97, .38); font-size: 14.5px; max-width: 46ch; }
  .hero > .code-chip .btn-copy { grid-column-start: 4; grid-row: 1; min-height: 54px; padding: 12px 26px; font-size: 16px; }
}
.code-chip-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-chip-label { display: inline-flex; align-items: center; gap: 9px; font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.code-chip-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .22); }
.code-chip-badge {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 13px 7px; white-space: nowrap;
  font: 600 13.5px/1.1 var(--sans); letter-spacing: 0; color: var(--ink);
  background: linear-gradient(180deg, #f4e4b8 0%, #c9a961 78%); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(201, 169, 97, .28), 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.code-chip-badge b { font: 800 17px/1 var(--display); letter-spacing: -.01em; }
.code-chip .code {
  -webkit-user-select: all; user-select: all;
  background: linear-gradient(180deg, #f4e4b8 0%, #c9a961 72%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.code-chip .btn-copy { min-height: 50px; padding: 10px 20px; border-radius: 12px; font-weight: 700; }
.code-chip-note { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 12px; border-top: 1px dashed rgba(201, 169, 97, .38); font-size: 13px; line-height: 1.45; color: var(--muted); }
.btn-copy::before {
  content: ""; flex: none; width: 1.05em; height: 1.05em; margin-right: .5em; background: currentColor;
  -webkit-mask: var(--copy) center / contain no-repeat; mask: var(--copy) center / contain no-repeat;
}
.btn-copy.is-copied::before { -webkit-mask-image: var(--check); mask-image: var(--check); }
.code-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
}
.code-bar-text { flex: 1; min-width: 200px; }
.code-box {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.code-box-note { font-size: 13px; color: var(--muted); }
.code-gold {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--ink); border-radius: var(--r-md); padding: 22px;
}
.code-gold .code { color: var(--ink); }
.code-gold-text { font-weight: 600; font-size: 17px; }
.code-gold :focus-visible, .strip :focus-visible { outline-color: var(--ink); }

/* ---------- top strip ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 9px 20px; background: var(--gold); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1.55;
}
.strip-short { display: none; }
.strip-code {
  font-family: var(--mono); font-weight: 600;
  padding: 2px 10px; background: var(--ink); color: var(--gold); border-radius: 4px;
}
.strip-btn, .btn-strip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px;
  border: 1px solid var(--ink); border-radius: 4px;
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.strip-btn { background: transparent; color: var(--ink); }
.btn-strip { background: var(--ink); color: var(--gold); }
.strip-btn:hover, .btn-strip:hover { opacity: .8; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 14.5px; line-height: 1.4; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo picture { display: block; line-height: 0; }
.logo img { display: block; width: auto; height: 60px; }
.logo-sm img { height: 46px; }
.logo-text { font: 700 20px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo-sm .logo-text { font-size: 16px; }
.nav { align-self: stretch; display: flex; }
.nav-list { display: flex; align-items: stretch; gap: 4px; }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); }
.nav-link.is-active { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
/* The referral page link in the menu: an outlined button, gold line, nothing inside. */
.nav-item-btn { align-items: center; margin-left: 6px; }
.nav-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--gold); background: transparent;
  border: 1.5px solid var(--gold); border-radius: var(--r-sm); transition: background-color .15s, color .15s;
}
.nav-btn:hover, .nav-btn.is-active { background: rgba(201, 169, 97, .14); color: #f4e4b8; }
.caret {
  width: 6px; height: 6px; margin-top: -3px; opacity: .7;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.menu {
  display: none; position: absolute; left: 0; top: calc(100% + 1px); z-index: 30;
  min-width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.nav-link[aria-expanded="true"] + .menu { display: block; }
.menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--soft); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-open {
  display: flex; align-items: center; gap: 10px; min-width: 150px; min-height: 42px; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--muted); text-align: left;
}
.search-open:hover { border-color: var(--gold); color: var(--text); }
.search-icon { position: relative; flex: none; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after {
  content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px;
  background: currentColor; border-radius: 1px; transform: rotate(45deg);
}
.header-cta { min-height: 42px; padding: 9px 18px; font-size: 14.5px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-landing { padding-top: 56px; }
.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo h1 { max-width: 820px; }
.hero-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.hero-head h1 { max-width: none; }
.hero { align-items: start; row-gap: 28px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-figure { display: flex; justify-content: center; }
.hero-video { min-width: 0; }
.hero-video .player.is-portrait video { width: min(100%, calc(min(60vh, 520px) * var(--vw) / var(--vh))); }

/* ---------- figures and covers ---------- */
.figure img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.hero-figure img { max-height: 480px; }
.figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.feature-figure img { width: 100%; max-height: none; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; border: 0; border-radius: 8px; }
.cover {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover picture { height: 100%; }
.cover-empty { background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); }
.cover-badge {
  position: absolute; right: 10px; bottom: 10px; padding: 1px 7px;
  background: var(--gold); color: var(--ink); border-radius: 4px; font: 500 11px/1.6 var(--mono);
}
.cover-video { aspect-ratio: 16 / 9; }
.cover-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 68'%3E%3Cpath d='M28 22v24l19-12z' fill='%2311130f'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px;
  transition: border-color .15s;
}
a.card:hover, .post-card:hover .cover, .featured:hover .cover, .video-card:hover .cover, .pn:hover { border-color: var(--gold); }
.card strong { font-size: 17px; line-height: 1.3; }
.card-title { font: 600 16px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.card-text { color: var(--muted); font-size: 14px; }
.card-arrow { color: var(--gold); margin-top: 8px; }
.feature { padding: 18px; gap: 10px; }

.link-list { display: flex; flex-direction: column; }
.link-list > h2 { margin-bottom: 10px; }
.row-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.row-link .arrow { color: var(--muted); flex: none; }
.row-link:hover, .row-link:hover .arrow { color: var(--gold); }
.row-link-sm { padding: 10px 0; font-size: 14.5px; }
.row-link-all, .row-link-all .arrow { color: var(--gold); font-weight: 600; }
.rule-list { display: flex; flex-direction: column; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.rule-list li { padding: 10px 0; border-top: 1px solid var(--line); }

/* home */
.split-video { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split-video.is-single { grid-template-columns: minmax(0, 1fr); }
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video-card-title { font-size: 18px; line-height: 1.3; }
.video-card .cover-badge { right: auto; left: 16px; bottom: 14px; background: var(--bg); color: var(--text); }
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.about-solo { grid-template-columns: minmax(0, 1fr); }
.about-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.about-text .rule-list { align-self: stretch; }
.about .figure img { max-height: 420px; }

.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-meta { font: 11px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.post-title { font: 600 17px/1.3 var(--sans); letter-spacing: 0; text-transform: none; text-wrap: pretty; }
.post-card:hover .post-title, .video-card:hover .video-card-title { color: var(--gold); }

/* steps */
.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step strong { font-size: 17px; line-height: 1.3; }
.step-num { font: 12px/1.4 var(--mono); text-transform: uppercase; color: var(--gold); }
.steps-cards .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.steps-lines .step { border-top: 2px solid var(--gold); padding-top: 14px; gap: 6px; }
.steps-lines .step-num { color: var(--muted); }
.steps-lines .step strong { font-size: 15.5px; }

/* article band and prose */
.band { margin-bottom: 56px; padding: 64px var(--gutter); background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose > * + * { margin-top: 18px; }
.prose a:not([class]) { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not([class]):hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--gold); }
.prose h2, .prose h3 { scroll-margin-top: 20px; }
.prose-band { max-width: 720px; margin-inline: auto; font-size: 17px; line-height: 1.7; }
.prose-band p, .prose-band li, .post-article p, .post-article li { color: var(--soft); }
.prose-band .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.band-title { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; margin-top: 12px; }
.prose-band h3 { font-size: 24px; margin-top: 32px; }
.callout {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  font-size: 14.5px;
}
.callout p { color: var(--text); }
.callout-label { flex: none; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; text-align: left; }
.table-wrap th, .table-wrap td { padding: 12px 16px; font-weight: 400; vertical-align: top; }
.table-wrap thead th, .table-wrap thead td { background: var(--surface); font-weight: 600; color: var(--text); }
.table-wrap tbody tr { border-top: 1px solid var(--line); }
.table-wrap tbody th { color: var(--text); }
.table-wrap tbody td { color: var(--soft); }
.compare tbody th { width: 40%; }
.compare tbody td { color: var(--muted); }
.compare tbody td:nth-child(2) { color: var(--text); }
.compare thead th:nth-child(2) { color: var(--gold); }
.table-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* faq */
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.faq-split > h2 { font-size: clamp(28px, 3.3vw, 36px); line-height: 1.05; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 28px 16px 0; color: var(--muted); }
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* closing band */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 44px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.cta-band-text { display: flex; flex-direction: column; gap: 6px; }
.cta-band h2 { font-size: clamp(27px, 3.1vw, 34px); line-height: 1.05; }
.cta-band p { color: var(--muted); }

/* ---------- video page ---------- */
.player-section { padding-top: 28px; }
.player { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.player video { display: block; width: 100%; height: auto; aspect-ratio: var(--vw) / var(--vh); background: #000; }
.player.is-portrait {
  display: flex; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
}
.player.is-portrait video { width: min(100%, calc(min(72vh, 640px) * var(--vw) / var(--vh))); }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 36px; padding-bottom: 56px; }
.video-main { display: flex; flex-direction: column; gap: 18px; }
.sticky { position: sticky; top: 20px; }
.chapters { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapter { display: flex; gap: 16px; width: 100%; padding: 13px 16px; background: none; border: 0; text-align: left; }
.chapter:hover, .chapter.is-active { background: var(--surface); }
.chapter:focus-visible { outline-offset: -2px; }
.chapter-time { flex: none; width: 44px; font-family: var(--mono); color: var(--muted); }
.chapter.is-active .chapter-time { color: var(--gold); }

/* ---------- guide home ---------- */
.hub-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 58px 0 44px; }
.hub-hero h1 { margin-bottom: 16px; }
.hub-hero .lead { margin-bottom: 18px; }
.hub-search {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 640px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px;
  color: var(--muted);
}
.hub-search:focus-within { border-color: var(--gold); }
.search-input { flex: 1; min-width: 0; min-height: 46px; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.inline-results {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 10;
  max-height: 360px; overflow-y: auto; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5); color: var(--text);
}
.start-card { gap: 10px; padding: 18px; height: 100%; }
.start-card strong { font-size: 16px; }
.start-num {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--gold); color: var(--ink); font: 600 14px var(--mono);
}
.topic { padding: 22px; gap: 4px; align-self: start; scroll-margin-top: 20px; }
.topic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.topic-title { font-size: 20px; letter-spacing: 0; text-transform: none; }
.topic-head .mono-meta { flex: none; }
.topic-text { margin-bottom: 10px; }
.topic-more {
  align-self: flex-start; padding: 12px 0 0; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line);
  color: var(--gold); font-weight: 600; font-size: 14px;
}
.hub-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 48px; padding-bottom: 48px; }
.hub-bottom h2 { margin-bottom: 10px; }
.recent-row { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.recent-row time { flex: none; width: 96px; }
.recent-title { flex: 1; min-width: 0; }
.recent-topic { flex: none; }
.recent-row:hover .recent-title { color: var(--gold); }
.hub-aside { display: flex; flex-direction: column; gap: 14px; }
.hub-aside .code-gold { padding: 20px; }
.hub-aside .code-gold .code-lg { font-size: 24px; }
.support-note { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; }
.support-note strong { font-size: 15px; }

/* ---------- guide article ---------- */
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px; gap: 36px; align-items: start; padding-top: 40px; padding-bottom: 56px; }
.topic-nav { font-size: 14px; }
.topic-nav .eyebrow { margin-bottom: 10px; }
.topic-nav ul { display: flex; flex-direction: column; gap: 4px; }
.topic-nav a { display: block; padding: 7px 10px; border-left: 2px solid transparent; border-radius: 6px; color: var(--muted); }
.topic-nav a:hover { color: var(--text); }
.topic-nav a[aria-current="page"] { background: var(--surface); border-left-color: var(--gold); color: var(--text); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; list-style: none; }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; }
.crumbs [aria-current="page"] { color: var(--text); }
.prose .crumbs a:not([class]) { color: inherit; text-decoration: none; }
.prose .crumbs a:not([class]):hover { color: var(--gold); text-decoration: none; }
.h-guide { font-size: clamp(31px, 4vw, 44px); line-height: 1.06; }
.guide-article .meta { font-size: 13px; margin-top: 10px; }
.guide-article h2 { font-size: 22px; line-height: 1.2; letter-spacing: 0; margin-top: 32px; }
.meta-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px;
}
.meta-box div { display: flex; flex-direction: column; gap: 2px; }
.prose .faq { margin-top: 32px; }
.prose .faq > h2 { margin-bottom: 14px; }
.prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.pn { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.pn-next { text-align: right; background: var(--surface); }
.pn-next .eyebrow::after, .pn-prev .eyebrow::before {
  content: ""; display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -.15em;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.pn-next .eyebrow::after { margin-left: .5em; }
.pn-prev .eyebrow::before { margin-right: .5em; transform: rotate(180deg); }
.vote { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.vote-buttons { display: flex; gap: 8px; }
.vote-thanks { color: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; transition: border-color .15s, transform .15s; }
.related-card:hover { border-color: rgba(201, 169, 97, .6); transform: translateY(-2px); }
.related-kicker { font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.related-title { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; color: var(--text); }
.related-text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.related-go { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .related-card:hover { transform: none; } }
.related-list { margin-top: 28px; }
.related-list .row-link strong { display: block; font-weight: 600; }
.related-list .row-link small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.related-list > h2 { margin-bottom: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; }
.toc { font-size: 13.5px; color: var(--muted); }
.toc ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.toc a:hover, .toc a.is-current { color: var(--text); }

/* ---------- blog ---------- */
.page-title { display: flex; flex-direction: column; gap: 10px; padding-top: 48px; padding-bottom: 8px; }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; padding: 32px 0; }
.featured-solo { grid-template-columns: minmax(0, 1fr); }
.featured-text { display: flex; flex-direction: column; gap: 12px; }
.featured .h-lg { font-size: clamp(28px, 3.5vw, 38px); }
.featured:hover .h-lg { color: var(--gold); }
.featured .meta { font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.chip { min-height: 34px; padding: 5px 14px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13.5px; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.post-grid { gap: 28px 16px; }
.post-head { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; }
.post-h1 { max-width: 820px; }
.post-cover { margin-top: 10px; }
.post-cover img { width: 100%; max-height: none; aspect-ratio: 21 / 9; object-fit: cover; }
.post-head .player { margin-top: 10px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 56px; }
.post-article { font-size: 16.5px; line-height: 1.65; }
.post-article h2 { margin-top: 30px; }
.post-article h3 { margin-top: 26px; }
.post-lead, .post-article .post-lead { font-size: 19px; color: var(--text); }
.post-aside { display: flex; flex-direction: column; gap: 20px; }
.post-aside .toc { font-size: 14px; }
.post-aside .code-box { padding: 20px; border-radius: var(--r-md); gap: 10px; }
.post-aside .code-lg { font-size: 24px; }
.simple-page { padding-top: 56px; padding-bottom: 72px; }
.simple-page h2 { margin-top: 32px; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 96px; padding-bottom: 120px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.directory h2 { margin-bottom: 13px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; }
.directory ul { display: flex; flex-direction: column; gap: 9px; }
.directory a { color: var(--muted); }
.directory a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 24px;
  padding-top: 28px; padding-bottom: 28px;
}
.footer-bottom .logo { color: var(--text); }
.footer-mail { color: var(--soft); }
.footer-mail:hover { color: var(--gold); }
.disclosure { flex: 1; min-width: 280px; max-width: 640px; }

/* ---------- search overlay and popup ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(4, 4, 12, .78); }
.search {
  width: min(640px, calc(100% - 32px)); max-height: min(560px, calc(100% - 96px));
  margin: 12vh auto auto; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.search[open] { display: flex; flex-direction: column; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-head:focus-within { border-bottom-color: var(--gold); }
.search-head .search-input { font-size: 17px; min-height: 48px; }
.search-close { flex: none; min-height: 32px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 12px var(--mono); }
.search-close:hover { color: var(--text); border-color: var(--gold); }
.search-status { padding: 10px 18px 0; font-size: 12.5px; color: var(--muted); }
.search-status:empty { display: none; }
.search-results { overflow-y: auto; padding: 8px; }
.search-results li + li { margin-top: 2px; }
.search-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.search-results strong { font-weight: 600; }
.search-results .result-kind { font: 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.search-results .result-text { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline-results a:hover, .inline-results a:focus-visible { background: var(--surface); }

/* Download dialog (includes/parts/get-app.php): install steps, platform tabs, QR code, store button, the code. */
.dl {
  width: min(900px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 34px 36px 28px; overflow: auto;
  background: radial-gradient(90% 46% at 18% 0%, rgba(201, 169, 97, .16), rgba(201, 169, 97, 0) 62%), var(--surface);
  border: 1px solid rgba(201, 169, 97, .38); border-radius: 26px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.dl [hidden] { display: none !important; }
.dl:focus, .dl:focus-visible { outline: none; }
.dl-head { text-align: center; padding: 0 34px; }
.dl-head h2 { margin-top: 10px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -.02em; }
.dl-head p { margin: 12px auto 0; max-width: 54ch; color: var(--soft); text-wrap: balance; }
.dl-steps-wrap { margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); text-align: center; }
.dl-steps-title { display: block; margin-bottom: 18px; font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dl-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 720px; margin: 0 auto; }
.dl-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: linear-gradient(90deg, rgba(201, 169, 97, .15), rgba(201, 169, 97, .6), rgba(201, 169, 97, .15)); }
.dl-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.dl-steps .tx { max-width: 16ch; }
.dl-steps .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 0 0 6px var(--surface); color: var(--gold); }
.dl-steps .ic svg { width: 22px; height: 22px; }
.dl-steps .is-code .ic { background: var(--gold); border-color: transparent; color: var(--ink); box-shadow: 0 0 0 6px var(--surface), 0 0 30px rgba(201, 169, 97, .45); }
.dl-steps .is-code b { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.dl-tabs { margin-top: 20px; text-align: center; }
.dl-tabs > div { display: inline-flex; gap: 4px; padding: 4px; background: rgba(8, 7, 19, .6); border: 1px solid var(--line); border-radius: 999px; }
.dl-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; background: transparent; border: 0; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.dl-tab svg { width: 16px; height: 16px; }
.dl-tab[aria-selected="true"] { background: var(--text); color: var(--ink); }
.dl-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
.dl-qr { text-align: center; }
.dl-qr-box { position: relative; display: inline-block; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.dl-qr-img { display: block; width: 196px; height: 196px; }
.dl-qr-logo { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 12px; box-shadow: 0 0 0 4px #fff; }
.dl-qr-hint { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.dl-qr-actions { margin-top: 2px; color: var(--soft); font-size: 13.5px; }
.dl-link { padding: 6px 4px; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.dl-link:hover, .dl-link.is-copied { color: var(--gold); }
.dl-store { width: 100%; min-height: 54px; gap: 10px; font-size: 16px; font-weight: 700; border-radius: 14px; box-shadow: 0 12px 34px rgba(201, 169, 97, .28); }
.dl-store svg { width: 20px; height: 20px; }
.dl-perks { display: grid; gap: 10px; margin-top: 18px; }
.dl-perks li, .dl-why li { display: flex; align-items: flex-start; gap: 10px; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.dl-perks b, .dl-why b { color: var(--text); }
.dl-perks svg, .dl-why svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--gold); }
.dl-code { margin-top: 18px; padding: 16px; background: linear-gradient(135deg, rgba(201, 169, 97, .15), rgba(201, 169, 97, .03) 60%), var(--bg); border: 1px solid rgba(201, 169, 97, .5); border-radius: 18px; }
.dl-code-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dl-code-label { display: block; margin-bottom: 4px; font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dl-code .code { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: .13em; }
.dl-why-title { margin: 14px 0 8px; padding-top: 12px; border-top: 1px dashed rgba(201, 169, 97, .38); font: 600 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dl-why { display: grid; gap: 8px; }
.dl-why li { font-size: 14px; }
/* Phones (by screen width, or by device when the script says so): their own store only, steps as rows. */
.dl.is-phone .dl-tabs, .dl.is-phone .dl-qr { display: none; }
.dl.is-phone .dl-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) {
  .dl { padding: 34px 16px 18px; border-radius: 22px; }
  .dl-head { padding: 0 20px; }
  .dl-head p { font-size: 14.5px; }
  .dl-tabs, .dl-qr, .dl-perks { display: none; }
  .dl-body { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .dl-steps-wrap { margin-top: 18px; padding-bottom: 0; border-bottom: 0; }
  .dl-steps-title { margin-bottom: 10px; text-align: left; }
  .dl-steps { grid-template-columns: minmax(0, 1fr); }
  .dl-steps::before { display: none; }
  .dl-steps li { grid-template-columns: 36px minmax(0, 1fr); align-items: center; justify-items: start; gap: 12px; padding: 8px 10px; text-align: left; font-size: 14.5px; background: rgba(8, 7, 19, .4); border: 1px solid var(--line); border-radius: 12px; }
  .dl-steps .tx { max-width: none; }
  .dl-steps .ic, .dl-steps .is-code .ic { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
  .dl-steps .ic svg { width: 18px; height: 18px; }
  .dl-steps .is-code { border-color: rgba(201, 169, 97, .5); }
  .dl-code .code { font-size: 24px; }
  .dl-code-top .btn-copy { width: 100%; }
}

.popup {
  width: min(540px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 44px 44px 30px; overflow: auto; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(201, 169, 97, .17), rgba(201, 169, 97, 0) 62%), var(--surface);
  border: 1px solid rgba(201, 169, 97, .38); border-radius: 26px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.popup[open] { display: flex; flex-direction: column; align-items: center; }
.popup-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 15px;
  font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  background: rgba(201, 169, 97, .1); border: 1px solid rgba(201, 169, 97, .34); border-radius: 999px;
}
.popup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .22); }
.popup-mark { position: relative; margin-top: 26px; width: 88px; height: 88px; }
.popup-mark::before { content: ""; position: absolute; inset: -34%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 169, 97, .5) 0%, rgba(201, 169, 97, .1) 46%, rgba(201, 169, 97, 0) 70%); }
.popup-mark img { position: relative; display: block; width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .5); }
.popup-title { margin-top: 24px; font-size: 40px; line-height: 1.04; letter-spacing: -.02em; }
.popup-text { margin: 14px 0 0; max-width: 44ch; color: var(--soft); font-size: 15.5px; line-height: 1.6; }
.popup-perks { display: grid; gap: 9px; width: 100%; margin: 24px 0 0; padding: 0; list-style: none; text-align: left; }
.popup-perks li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; line-height: 1.4; color: var(--text);
}
.popup-perks svg { flex: none; padding: 3px; width: 22px; height: 22px; border-radius: 50%; color: var(--ink); background: var(--gold); }
.popup-cta { margin-top: 22px; min-height: 56px; font-size: 16.5px; font-weight: 700; border-radius: 14px; box-shadow: 0 12px 34px rgba(201, 169, 97, .28); }
.popup-later { margin-top: 12px; padding: 8px 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.popup-later:hover { color: var(--text); text-decoration: underline; }
.popup-close {
  position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; cursor: pointer;
  background: rgba(8, 7, 19, .6); border: 1px solid var(--line); border-radius: 50%;
}
.popup-close:hover { border-color: var(--gold); }
.popup-close span, .popup-close span::after { position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; background: var(--text); border-radius: 1px; }
.popup-close span { transform: rotate(45deg); }
.popup-close span::after { content: ""; left: 0; top: 0; transform: rotate(90deg); }

/* Phones get a slim bar at the bottom of the screen, never a full-screen layer. */
.offer-bar {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  background: var(--surface); border: 1px solid rgba(201, 169, 97, .45); border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .65);
}
.offer-bar[hidden] { display: none; }
.offer-bar-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.offer-bar-text b { font-family: var(--mono); letter-spacing: .04em; color: var(--gold); }
.offer-bar-cta { flex: none; min-height: 40px; padding: 8px 14px; font-size: 13.5px; }
.offer-bar-close { position: relative; flex: none; width: 32px; height: 32px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.offer-bar-close span, .offer-bar-close span::after { position: absolute; left: 9px; top: 14px; width: 12px; height: 2px; background: var(--muted); border-radius: 1px; }
.offer-bar-close span { transform: rotate(45deg); }
.offer-bar-close span::after { content: ""; left: 0; top: 0; transform: rotate(90deg); }

/* ---------- podcast ---------- */
.pod-apps { display: flex; flex-direction: column; gap: 10px; }
.pod-latest { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; }
.pod-cover { display: block; width: 100%; height: auto; border-radius: 14px; }
.pod-latest-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pod-latest-title { font-size: 26px; line-height: 1.12; }
.pod-audio { display: block; width: 100%; height: 44px; }
.pod-intro { margin-bottom: 22px; }
.pod-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pod-episode { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(240px, 340px); gap: 8px 20px; align-items: center; padding: 20px 22px; }
.pod-no { font: 700 30px/1 var(--display); color: var(--gold); }
.pod-episode-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pod-episode-title { font-size: 20px; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.pod-follow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pod-all-apps { margin-top: 20px; }
.pod-feed { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pod-feed-url { display: block; padding: 12px 14px; overflow-wrap: anywhere; font: 500 14px/1.4 var(--mono); color: var(--gold); background: var(--bg); border: 1px dashed rgba(201, 169, 97, .4); border-radius: 10px; }
.pod-steps { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pod-steps li + li { margin-top: 6px; }
@media (max-width: 900px) {
  .pod-latest { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .pod-latest-title { font-size: 21px; }
  .pod-episode { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
  .pod-episode .pod-audio { grid-column: 1 / -1; }
  .pod-no { font-size: 24px; }
  .pod-follow { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive: tablet ---------- */
@media (max-width: 1040px) {
  :root { --gutter: 28px; }
  .header-inner { gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
  }
  .nav-open .nav { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav-link { justify-content: space-between; width: 100%; min-height: 52px; padding: 0; border-bottom: 0; font-size: 16px; color: var(--text); }
  .nav-link.is-active { color: var(--gold); }
  .nav-item-btn { margin: 0; padding: 12px 0; border-bottom: 0; }
  .nav-btn { justify-content: center; width: 100%; min-height: 48px; font-size: 16px; }
  .menu { position: static; min-width: 0; padding: 0 0 10px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .menu a { padding: 10px 12px; }
  .search-open { min-width: 0; }
  .guide-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .guide-layout > .toc { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
}

/* ---------- responsive: small tablet and phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding-bottom: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 44px; }
  .hero-text { gap: 16px; }
  .lead { font-size: 16px; max-width: none; }
  .hero .btn-row .btn-primary { flex: 1 1 100%; }
  .hero .btn-row .btn-secondary { flex: 1 1 0; }
  .hero-figure img { max-height: 420px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .split-video, .about, .faq-split, .featured, .hub-bottom, .video-layout, .post-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .split-video, .about, .featured { gap: 24px; }
  .faq-split { gap: 16px; }
  .sticky { position: static; }
  .band { margin-bottom: 44px; padding: 44px var(--gutter); }
  .prose-band { font-size: 16px; line-height: 1.65; }
  .prose-band h3 { font-size: 21px; }
  .cta-band { padding: 28px 20px; border-radius: var(--r-lg); }
  .cta-band .btn-row, .cta-band .btn { width: 100%; }
  .code-chip { align-self: stretch; width: 100%; grid-template-columns: minmax(0, 1fr); padding: 14px 14px 12px 16px; }
  .code-chip .btn-copy { width: 100%; }
  .code-xl { font-size: 30px; }
  .code-md { font-size: 19px; }
  .callout { flex-direction: column; gap: 4px; }
  .strip-text { display: none; }
  .strip-short { display: inline; font-weight: 600; }
  .strip { gap: 8px; padding-inline: 12px; }
  .strip-btn, .btn-strip { min-height: 32px; }
  .header-inner { gap: 10px; min-height: 64px; }
  .logo { gap: 8px; }
  .logo img { height: 46px; }
  .logo-sm img { height: 42px; }
  .logo-text { font-size: 17px; }
  .search-open, .nav-toggle { width: 40px; height: 40px; min-height: 40px; }
  .search-open { padding: 0; justify-content: center; }
  .search-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .player-section { padding-top: 16px; }
  .video-layout { padding-top: 24px; padding-bottom: 44px; gap: 24px; }
  .hub-hero { padding: 36px 0 32px; }
  .hub-bottom { padding-top: 36px; gap: 28px; }
  .recent-row { flex-wrap: wrap; gap: 2px 12px; }
  .recent-row time { width: auto; order: 1; }
  .recent-topic { order: 2; }
  .recent-title { flex: 1 1 100%; }
  .guide-layout { padding-top: 24px; padding-bottom: 44px; gap: 36px; }
  .guide-layout > .topic-nav { order: 2; padding-top: 24px; border-top: 1px solid var(--line); }
  .topic-nav a { padding: 10px 12px; }
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .page-title { padding-top: 32px; }
  .featured { padding: 24px 0; }
  .post-head { padding-top: 28px; }
  .post-cover img { aspect-ratio: 16 / 9; }
  .post-layout { padding-top: 24px; padding-bottom: 44px; }
  .post-aside .toc { display: none; }
  .post-article { font-size: 16px; }
  .post-lead, .post-article .post-lead { font-size: 17.5px; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; }
  .disclosure { min-width: 0; }
  .not-found { padding-top: 56px; padding-bottom: 72px; }
  .search { margin-top: 16px; max-height: calc(100% - 32px); }
  .popup { padding: 40px 22px 24px; }
  .popup-title { font-size: 32px; }
}
@media (max-width: 420px) {
  .card { padding: 16px; }
  .card strong { font-size: 16px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
}
@media (max-width: 359px) {
  .header-cta { display: none; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Desktop only: open a dropdown on hover as well as on click. */
@media (min-width: 1041px) and (hover: hover) {
  .has-menu:hover .menu { display: block; }
}

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