/* ==========================================================================
   Nelson's Wireless — site stylesheet
   Architecting Smarter Technology for Real-World Solutions.
   Design goals: premium charcoal + warm gold, large readable text, high contrast.
   ========================================================================== */

:root {
  /* Surfaces — deep charcoal-slate, not pure black */
  --bg: #141923;
  --bg-2: #192030;
  --surface: #1F2738;
  --surface-2: #283145;
  --surface-3: #313B52;
  --line: #3A4560;
  --line-soft: #2C3548;

  /* Text — high contrast */
  --text: #F3F5F9;
  --text-2: #CDD3DF;
  --text-3: #A9B2C3;

  /* Brand metals + accent (from the logo) */
  --gold: #F5C350;
  --gold-2: #E3A92B;
  --gold-3: #B9861C;
  --gold-ink: #1B1505;
  --gold-soft: rgba(245, 195, 80, 0.12);
  --gold-line: rgba(245, 195, 80, 0.35);
  --blue: #74B9FF;
  --blue-soft: rgba(116, 185, 255, 0.12);
  --green: #6FD69C;
  --red: #FF8A80;

  /* Warm "paper" sections */
  --paper: #F6F2E9;
  --paper-2: #EDE6D6;
  --ink: #1A2030;
  --ink-2: #3D4659;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px var(--gold-line), 0 0 40px rgba(245, 195, 80, 0.16);

  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --base-size: 18px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Text-size preference (set by the A / A+ / A++ control) */
html[data-text="large"] { --base-size: 20px; }
html[data-text="xlarge"] { --base-size: 22px; }

*, *::before, *::after { box-sizing: border-box; }
:where(svg) { width: 1.25em; height: 1.25em; flex-shrink: 0; }

html {
  font-size: var(--base-size);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(116, 185, 255, 0.07), transparent 60%),
    radial-gradient(1000px 600px at 10% -5%, rgba(245, 195, 80, 0.08), transparent 60%),
    var(--bg);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFD777; }
p { margin: 0 0 1em; }
strong { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.05rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--gold); color: var(--gold-ink); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 25, 35, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--glow); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
.brand-sub { font-size: 0.78rem; color: var(--gold); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  border-radius: 10px; white-space: nowrap;
}
.main-nav a.btn-gold, .main-nav a.btn-gold:hover { color: var(--gold-ink); background: linear-gradient(180deg, #FFD36B, var(--gold-2)); }
.main-nav a.btn-gold[aria-current="page"] { box-shadow: 0 0 0 3px var(--gold-line); }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }
.nav-cta { margin-left: 6px; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { min-height: 54px; font-size: 1.05rem; padding: 0 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta a { justify-content: center; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 0.86rem; letter-spacing: 0; }
  .menu-toggle { padding: 0 12px; }
}

/* Text size control */
.text-size { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.text-size button {
  background: var(--surface); color: var(--text-2); border: 0; font: inherit; font-weight: 700;
  min-width: 44px; min-height: 44px; cursor: pointer; padding: 0 8px;
}
.text-size button + button { border-left: 1px solid var(--line); }
.text-size button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.text-size .s1 { font-size: 0.8rem; } .text-size .s2 { font-size: 0.95rem; } .text-size .s3 { font-size: 1.1rem; }
@media (max-width: 640px) { .header-tools .text-size { display: none; } }
.text-size-mobile { display: none; margin-top: 14px; }
@media (max-width: 640px) { .text-size-mobile { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 700; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #FFD36B, var(--gold-2)); color: var(--gold-ink); box-shadow: 0 8px 24px -10px rgba(245,195,80,.7); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: var(--text-3); }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { color: var(--ink); filter: brightness(.95); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper h2, .section-paper h3, .section-paper h4, .section-paper strong { color: var(--ink); }
.section-paper p, .section-paper li { color: var(--ink-2); }
.section-paper a { color: #8A5F00; }
.section-paper .eyebrow { color: #8A5F00; }
.section-paper .eyebrow::before { background: #B9861C; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; color: var(--text-2); }
.section-paper .section-head p { color: var(--ink-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold); font-weight: 700; font-size: 0.9rem; margin-bottom: 22px;
}
.hero h1 .gold { background: linear-gradient(180deg, #FFDD86, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tag { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero p.lead { max-width: 620px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--text-3); font-size: 0.95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold); }

.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark .halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,195,80,.28), rgba(116,185,255,.08) 55%, transparent 70%);
  filter: blur(20px);
}
.hero-mark img {
  position: relative; width: min(100%, 440px); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--gold-line), 0 30px 80px -30px rgba(0,0,0,.9), 0 0 70px rgba(245,195,80,.18);
}
.hero-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--gold-line); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  box-shadow: var(--shadow);
}
.hero-badge b { color: var(--gold); }
.hero-mark picture { display: block; width: min(100%, 440px); }
.hero-mark picture img { width: 100%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark picture { width: min(64%, 280px); }
  .hero-badge { position: static; transform: none; margin-top: 16px; white-space: normal; text-align: center; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); }
.page-hero p { max-width: 760px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), #1C2333);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; position: relative; min-width: 0;
}
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--gold-line); transform: translateY(-2px); }
.card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; margin-top: 8px; }
.card .more svg { width: 18px; height: 18px; }

.icon-hex {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(245,195,80,.22), rgba(245,195,80,.06));
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  color: var(--gold);
}
.icon-hex svg { width: 26px; height: 26px; }
.icon-hex.blue { background: linear-gradient(180deg, rgba(116,185,255,.25), rgba(116,185,255,.06)); color: var(--blue); }

.section-paper .card { background: #FFFFFF; border-color: var(--paper-2); box-shadow: 0 12px 30px -18px rgba(26,32,48,.25); }
.section-paper .card p { color: var(--ink-2); }
.section-paper .icon-hex { background: linear-gradient(180deg, rgba(185,134,28,.22), rgba(185,134,28,.08)); color: #8A5F00; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C350' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--gold-line);
}
.section-paper .check-list li { color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.pill.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(116,185,255,.35); }

/* ---------- Daily tip ---------- */
.tip-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: linear-gradient(135deg, rgba(245,195,80,.14), rgba(116,185,255,.06) 70%), var(--surface);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px);
}
.tip-card .icon-hex { margin: 0; width: 64px; height: 64px; }
.tip-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.tip-card p { color: var(--text-2); margin-bottom: 10px; }
.tip-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tip-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .tip-card { grid-template-columns: 1fr; } }

/* ---------- Learning Center ---------- */
.player-shell { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .player-shell { grid-template-columns: 1fr; } }
.player { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #0B0F17; }
.player-frame iframe, .player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-slate {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(70% 70% at 30% 20%, rgba(245,195,80,.16), transparent), radial-gradient(60% 60% at 80% 85%, rgba(116,185,255,.14), transparent), #0F141F;
}
.player-slate img { width: 88px; height: 88px; border-radius: 16px; margin: 0 auto 14px; box-shadow: var(--glow); }
.player-slate h3 { margin-bottom: 6px; }
.player-slate p { color: var(--text-2); max-width: 460px; margin: 0 auto; }
.player-info { padding: 24px 26px 26px; }
.player-info h2 { font-size: 1.45rem; margin: 10px 0 8px; }
.player-info p { color: var(--text-2); margin-bottom: 0; }

.library-tools { display: grid; gap: 14px; margin-bottom: 24px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
.search-field input { padding-left: 50px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-card {
  text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; padding: 0; transition: border-color .15s, transform .15s;
}
.video-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.video-card[aria-current="true"] { border-color: var(--gold); box-shadow: var(--glow); }
.video-card[disabled] { cursor: default; opacity: 0.92; }
.video-card[disabled]:hover { transform: none; border-color: var(--line-soft); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #0F141F center/cover no-repeat; display: grid; place-items: center; }
.video-thumb .play { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 0 30px rgba(245,195,80,.4); }
.video-thumb .play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-thumb .soon { background: rgba(20,25,35,.85); color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.video-thumb .placeholder-mark { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(245,195,80,.18), transparent 70%); }
.video-body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.video-body h3 { font-size: 1.08rem; margin: 0; }
.video-body p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-state { padding: 28px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: var(--radius); }

.up-next { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; }
.up-next h3 { font-size: 1.1rem; }
.up-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.up-next button {
  width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--bg-2); cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; min-height: 56px;
}
.up-next button:hover { border-color: var(--gold-line); }
.up-next button[aria-current="true"] { border-color: var(--gold); background: var(--gold-soft); }
.up-next button[disabled] { color: var(--text-3); cursor: default; }
.up-next small { color: var(--text-3); font-size: 0.85rem; }

/* ---------- Forms ---------- */
label { font-weight: 700; display: block; margin-bottom: 8px; color: var(--text); }
.field { margin-bottom: 20px; }
.hint { font-size: 0.9rem; color: var(--text-3); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--bg-2); border: 2px solid var(--line); border-radius: 12px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,195,80,.18); }
input::placeholder, textarea::placeholder { color: #8892A6; }
select option { color: #111; }
input[type="range"] { width: 100%; accent-color: var(--gold); min-height: 36px; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--gold); }
.check-row { display: flex; gap: 12px; align-items: center; font-weight: 400; margin-bottom: 10px; color: var(--text-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 700; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(111,214,156,.12); color: var(--green); border: 1px solid rgba(111,214,156,.4); }
.form-status.err { background: rgba(255,138,128,.1); color: var(--red); border: 1px solid rgba(255,138,128,.4); }
.form-status.info { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(116,185,255,.4); }

/* ---------- Copy blocks / prompts ---------- */
.copy-block { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.copy-head h3, .copy-head h4 { margin: 0; font-size: 1rem; }
.copy-head small { color: var(--text-3); display: block; font-size: 0.82rem; }
.copy-body { padding: 18px; margin: 0; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.65; color: var(--text-2); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; flex-shrink: 0;
  background: var(--text); color: var(--ink); border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.done { background: var(--green); color: #08240F; }

/* ---------- Accordion guides ---------- */
.guide { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 12px; }
.guide summary {
  list-style: none; cursor: pointer; padding: 20px 22px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary .tag { margin-left: auto; }
.guide summary::after { content: "+"; font-size: 1.6rem; color: var(--gold); line-height: 1; flex-shrink: 0; }
.guide[open] summary::after { content: "−"; }
.guide[open] summary { border-bottom: 1px solid var(--line-soft); }
.guide .guide-body { padding: 18px 22px 22px; color: var(--text-2); }
.guide ol, .guide ul { padding-left: 1.3em; margin: 0 0 1em; }
.guide li { margin-bottom: 8px; }
.guide .note { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 8px; color: var(--text); margin: 0; }

/* ---------- Tools ---------- */
.tool { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); }
.tool-output {
  font-family: var(--font-mono); font-size: 1.15rem; color: var(--text); background: var(--bg);
  border: 2px dashed var(--gold-line); border-radius: 14px; padding: 18px 20px; word-break: break-word; min-height: 64px;
  display: flex; align-items: center;
}
.meter { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
.flag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flag-list li { padding: 14px 16px; border-radius: 12px; background: rgba(255,138,128,.08); border: 1px solid rgba(255,138,128,.35); color: var(--text); }
.flag-list li b { color: var(--red); display: block; }
.flag-list li.ok { background: rgba(111,214,156,.08); border-color: rgba(111,214,156,.35); }
.flag-list li.ok b { color: var(--green); }

/* ---------- About / story ---------- */
.story-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.profile-card { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.profile-card img { width: 140px; height: 140px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--glow); }
.profile-card .role { color: var(--gold); font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 6px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--gold); }
.stat span { font-size: 0.82rem; color: var(--text-3); }
.quote {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35;
  border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; margin: 28px 0; color: var(--text);
}

/* ---------- Sponsor band ---------- */
.sponsor-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: linear-gradient(120deg, rgba(245,195,80,.14), rgba(116,185,255,.08)), var(--surface);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.sponsor-band img { width: 96px; height: 96px; border-radius: 18px; box-shadow: var(--glow); }
.sponsor-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.sponsor-band p { color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .sponsor-band { grid-template-columns: 1fr; text-align: left; } }

.brand-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .brand-pair { grid-template-columns: 1fr; } }
.brand-pair .card h3 { margin-bottom: 4px; }
.brand-pair .tagline { color: var(--gold); font-weight: 700; font-style: italic; margin-bottom: 12px; }
.embed-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.embed-frame iframe { display: block; width: 100%; border: 0; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700;
}
.link-list a:hover { border-color: var(--gold-line); color: var(--gold); }
.link-list svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter); border-radius: var(--radius-lg);
  background: radial-gradient(80% 120% at 50% 0%, rgba(245,195,80,.2), transparent 60%), var(--surface); border: 1px solid var(--gold-line); }
.cta-band p { color: var(--text-2); max-width: 620px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.step::before {
  content: counter(step); width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--gold-ink);
  background: linear-gradient(180deg, #FFD36B, var(--gold-2));
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}
.step h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.step p { color: var(--text-2); margin: 0; }
.section-paper .step p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #10141D; border-top: 1px solid var(--line-soft); padding: 64px 0 28px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 380px; }
.site-footer h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer ul a:hover { color: var(--gold); }
.footer-sponsor { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--text-3); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-3); }
.notice { background: var(--blue-soft); border: 1px solid rgba(116,185,255,.35); border-radius: 14px; padding: 16px 20px; color: var(--text); }
.notice-gold { background: var(--gold-soft); border-color: var(--gold-line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
noscript .notice { margin: 16px; }

.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; filter: brightness(1.2); }

/* Brand kit voice table */
.voice-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.voice-table th, .voice-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.voice-table thead th { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); background: var(--bg-2); }
.voice-table tbody th { color: var(--text); font-weight: 700; }
.voice-table td { color: var(--text-2); }

/* ==========================================================================
   VIDEO EXPERIENCE — feature player, strip, light Learning Center, modal
   ========================================================================== */
.cat-tint { --tint: #E8EEF5; --tint-ink: #2B3446; }
[data-cat="iPhone & Android"]   { --tint: #FFF0C2; --tint-ink: #6B4A00; }
[data-cat="Mac & PC"]           { --tint: #E6E0FF; --tint-ink: #43308F; }
[data-cat="Wi-Fi & Internet"]   { --tint: #D6F0FF; --tint-ink: #0B4F75; }
[data-cat="Security & Privacy"] { --tint: #FFE0D6; --tint-ink: #8A2E12; }
[data-cat="AI & Productivity"]  { --tint: #DDF5E4; --tint-ink: #1C5E33; }
[data-cat="Creators & Media"]   { --tint: #FCE1F0; --tint-ink: #84205A; }
[data-cat="Kids & Family"]      { --tint: #FFF6D6; --tint-ink: #6B5300; }
[data-cat="Everyday Tech"]      { --tint: #E8EEF5; --tint-ink: #2B3446; }

/* Feature player (homepage + Learning Center hero) */
.fp { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 60px rgba(245,195,80,.12); }
.fp-frame { position: relative; aspect-ratio: 16/9; background: #0B0F17; }
.fp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fp-facade { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: #0B0F17 center/cover no-repeat; display: grid; place-items: center; }
.fp-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.fp-play { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(245,195,80,.25), 0 10px 30px rgba(0,0,0,.5); transition: transform .15s; }
.fp-play svg { width: 36px; height: 36px; margin-left: 5px; }
.fp-facade:hover .fp-play { transform: scale(1.06); }
.fp-info { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.fp-info h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.fp-info p { margin: 0; color: var(--text-3); font-size: 0.92rem; }
.fp-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.fp-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 4px rgba(255,90,78,.2); }

.strip { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strip-card { width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 8px 8px 12px; border-radius: 16px; border: 2px solid transparent; background: var(--tint); color: var(--ink); display: grid; gap: 8px; transition: transform .15s, border-color .15s; }
.strip-card:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.strip-card[aria-current="true"] { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245,195,80,.35); }
.strip-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: #222 center/cover no-repeat; display: grid; place-items: center; }
.strip-play { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; }
.strip-play svg { width: 16px; height: 16px; margin-left: 2px; }
.strip-title { font-weight: 700; font-size: 0.86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

.hero-video .hero-grid { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .hero-video .hero-grid { grid-template-columns: 1fr; } .hero-video .fp-wrap { order: 0; } }

/* ---------- Light Learning Center ---------- */
.learn-light {
  --text: #1A2030; --text-2: #3D4659; --text-3: #5A6375;
  --surface: #FFFFFF; --surface-2: #F6F2E9; --surface-3: #E9E2D2; --bg-2: #FFFFFF;
  --line: #D9D0BC; --line-soft: #E9E2D2;
  --gold: #8A5F00; --gold-soft: rgba(227,169,43,.16); --gold-line: rgba(185,134,28,.45);
  --blue: #0B5CAD;
  background: linear-gradient(180deg, #FFF8E6 0%, #FBF7EE 380px, #F7F3EA 100%);
  color: var(--text);
}
.learn-light h1, .learn-light h2, .learn-light h3 { color: var(--text); }
.learn-light .eyebrow { color: #8A5F00; }
.learn-light .eyebrow::before { background: #B9861C; }
.learn-light .lead { color: var(--text-2); }
.learn-light .btn-gold { color: #1B1505; }
.learn-light .btn-ghost { color: var(--text); border-color: #CFC4AA; background: #FFFFFF; }
.learn-light .btn-ghost:hover { background: #FFF8E6; }
.learn-light .fp { background: #FFFFFF; border-color: #EADFC6; box-shadow: 0 24px 60px -28px rgba(60,45,10,.45); }
.learn-light .fp-badge { color: #8A5F00; }
.learn-light input[type="search"], .learn-light select { background: #FFFFFF; color: var(--text); border-color: #D9D0BC; }
.learn-light .chip { background: #FFFFFF; color: var(--text); border-color: #D9D0BC; }
.learn-light .chip[aria-pressed="true"] { background: #1A2030; color: #FFFFFF; border-color: #1A2030; }
.learn-light .empty-state { color: var(--text-2); border-color: #CFC4AA; }
.learn-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.learn-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid #EADFC6; font-weight: 700; font-size: 0.88rem; color: #6B4A00; margin-bottom: 18px; }
.learn-kicker b { color: #1A2030; }
.learn-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
.learn-hero h1 .accent { color: #B9861C; display: block; font-weight: 700; }

.lib-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.lib-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lib-head h2 .accent { display: block; color: #B9861C; font-size: 0.62em; font-weight: 700; }
.lib-tools { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 14px; }
@media (max-width: 640px) { .lib-tools { grid-template-columns: 1fr; } }
.lib-tools select { min-width: 210px; }
.chip-count { display: inline-block; min-width: 26px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 0.8rem; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255,255,255,.2); }
.lib-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-2); font-weight: 700; margin: 18px 0 16px; }
.lib-status [data-lib-progress] { color: #1C5E33; }

.tut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tut-grid { grid-template-columns: 1fr; } }
.tut-card { border-radius: 20px; background: var(--tint); border: 1px solid rgba(0,0,0,.06); overflow: hidden; transition: transform .15s, box-shadow .15s; outline: none; }
.tut-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(60,45,10,.5); }
.tut-hit { all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%; height: 100%; padding: 12px; gap: 12px; align-content: start; }
.tut-hit:focus-visible { outline: 3px solid #0B5CAD; outline-offset: -3px; border-radius: 20px; }
.tut-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #DDD; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.tut-play svg { width: 24px; height: 24px; margin-left: 3px; }
.tut-hit:hover .tut-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-2); }
.tut-cat { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.95); color: var(--tint-ink); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.tut-seen { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; background: #1C5E33; color: #fff; font-weight: 700; font-size: 0.75rem; padding: 4px 9px; border-radius: 999px; }
.tut-seen svg { width: 14px; height: 14px; }
.tut-body { display: grid; gap: 6px; padding: 0 4px 6px; }
.tut-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: #1A2030; }
.tut-desc { color: #3D4659; font-size: 0.93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tut-meta { color: var(--tint-ink); font-size: 0.85rem; font-weight: 700; }
.lib-more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Modal ---------- */
html.modal-open { overflow: hidden; }
.vmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.vmodal[hidden] { display: none; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(8,10,16,.82); backdrop-filter: blur(4px); }
.vmodal-box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #141923; border: 1px solid rgba(245,195,80,.35); border-radius: 22px; box-shadow: 0 40px 100px rgba(0,0,0,.6); color: #F3F5F9; }
.vmodal-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 10px; }
.vmodal-top .pill { background: var(--tint); color: var(--tint-ink); border: 0; }
.vmodal-close { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A4560; background: #1F2738; color: #F3F5F9; font: inherit; font-weight: 700; cursor: pointer; }
.vmodal-close:hover { background: #283145; }
.vmodal-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-info { padding: 18px 22px 22px; }
.vmodal-info h2 { font-size: 1.35rem; margin-bottom: 4px; color: #F3F5F9; }
.vmodal-meta { color: #A9B2C3; font-size: 0.92rem; margin-bottom: 10px; }
.vmodal-desc { color: #CDD3DF; }
.vmodal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vmodal-actions .btn-ghost { color: #F3F5F9; border-color: #3A4560; }
.vmodal-actions button:disabled { opacity: .45; cursor: default; transform: none; }
@media (max-width: 600px) { .vmodal { padding: 0; } .vmodal-box { border-radius: 0; max-height: 100vh; height: 100%; } }
.learn-grid { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }
.search-field input[type="search"] { padding-left: 52px; }
.fp-play { background: #F5C350; color: #1B1505; }
.learn-hero h1 .accent { font-size: 0.6em; margin-top: 10px; line-height: 1.2; }
.hero-video h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.tut-thumb img[alt=""] { color: transparent; }

/* ---------- Feature player details ---------- */
.fp-info-stack { display: grid; gap: 4px; justify-content: stretch; }
.fp-info-stack .btn-row { margin-top: 10px; }
.fp-meta { color: var(--text-3); font-size: 0.92rem; margin: 0; }
.fp-desc { color: var(--text-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Learning Paths ---------- */
.paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .paths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .paths-grid { grid-template-columns: 1fr; } }
.path-card { background: #FFFFFF; border: 1px solid #EADFC6; border-top: 6px solid var(--tint); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 30px -24px rgba(60,45,10,.5); }
.path-card h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.path-card p { margin: 0; color: #3D4659; }
.path-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); }
.path-icon svg { width: 24px; height: 24px; }
.path-meta { font-weight: 700; color: var(--tint-ink) !important; font-size: 0.92rem; margin-top: 6px !important; }
.path-bar { height: 8px; border-radius: 99px; background: #EEE7D7; overflow: hidden; margin: 6px 0 12px; }
.path-bar span { display: block; height: 100%; background: #1C5E33; }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Modal details ---------- */
.vmodal-path { color: #F5C350; font-weight: 700; font-size: 0.9rem; margin-right: auto; margin-left: 8px; }
.vmodal-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 22px; border-top: 1px solid #2C3548; padding-top: 18px; }
@media (max-width: 760px) { .vmodal-cols { grid-template-columns: 1fr; } }
.vmodal-cols h3 { font-size: 1rem; color: #F5C350; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.vmodal-full a { color: #74B9FF; font-weight: 700; }
.chapters { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.chapters button { width: 100%; text-align: left; font: inherit; color: #F3F5F9; background: #1F2738; border: 1px solid #2C3548; border-radius: 10px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.chapters button:hover { border-color: #F5C350; }
.chapters .ts { display: inline-block; min-width: 52px; font-family: var(--font-mono); color: #F5C350; font-weight: 600; }
.vmodal-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vmodal-related button { width: 100%; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; text-align: left; font: inherit; color: #F3F5F9; background: #1F2738; border: 1px solid #2C3548; border-radius: 12px; padding: 8px; cursor: pointer; }
.vmodal-related button:hover { border-color: #F5C350; }
.vmodal-related strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.92rem; line-height: 1.3; }
.vmodal-related small { color: #A9B2C3; }
.rel-thumb { aspect-ratio: 16/9; border-radius: 8px; background: #0B0F17 center/cover no-repeat; }
.vmodal-sub { display: inline-flex; margin-top: 14px; color: #FF8A80; font-weight: 700; }

/* ---------- Quick Tips reel ---------- */
.fp-frame video.fp-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.fp-yt, .fp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fp-overlay { position: absolute; inset: 0; pointer-events: none; }
.fp-overlay > * { pointer-events: auto; }
.fp-chip { position: absolute; left: 14px; top: 14px; background: rgba(15,18,26,.85); color: #F5C350; font-weight: 800; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245,195,80,.5); }
.fp-sound { position: absolute; right: 14px; top: 14px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(15,18,26,.8); color: #fff; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.fp-watch { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #FFD36B, #E3A92B); color: #1B1505; font-family: var(--font-head); font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap; }
.fp-watch svg { width: 20px; height: 20px; }
.fp-watch:hover { filter: brightness(1.06); }
.fp-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.fp-dot { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.fp-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.fp-dot[aria-current="true"]::before { background: #F5C350; width: 22px; border-radius: 6px; }
.fp-back { position: absolute; left: 12px; top: 12px; z-index: 2; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(15,18,26,.85); color: #fff; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.fp-upnext { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(10,13,20,.9); color: #fff; padding: 20px; }
.fp-upnext p { margin: 0; color: #CDD3DF; }
.fp-upnext h4 { margin: 0 0 6px; font-size: 1.25rem; color: #fff; }
.fp-upnext .btn-row { justify-content: center; margin-top: 10px; }
.fp-upnext .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
@media (max-width: 520px) { .fp-watch { font-size: 0.88rem; padding: 0 16px; min-height: 46px; bottom: 40px; } .fp-sound { font-size: 0.78rem; } }
.strip-head { font-size: 1.2rem; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.strip-head span { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--text-3); }
.strip-thumb { overflow: hidden; }
.strip-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ---------- Shorts ---------- */
.shorts-rail { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shorts-rail > li { scroll-snap-align: start; }
.shorts-rail.shorts-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: visible; }
.short-card { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: 18px; }
.short-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.short-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1B2130; border: 3px solid var(--tint); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); transition: transform .15s; }
.short-card:hover .short-thumb { transform: translateY(-3px); }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.short-thumb::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.short-title { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.short-thumb .tut-play { width: 50px; height: 50px; top: 42%; }
.short-thumb .tut-seen { right: 8px; top: 8px; }
.tut-new { position: absolute; right: 8px; top: 8px; z-index: 1; background: #FF5A4E; color: #fff; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.shorts-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.shorts-head h2 { margin: 0; }
.shorts-toggle-row { display: flex; justify-content: center; margin-top: 18px; }

/* Vertical player for Shorts */
.vmodal-vertical .vmodal-box { width: min(980px, 100%); }
.vmodal-vertical .vmodal-frame { aspect-ratio: auto; height: min(78vh, 720px); width: min(100%, calc(min(78vh, 720px) * 9 / 16)); margin: 0 auto; background: #000; }
.vmodal-vertical .chapters { display: none; }
/* v5: numbered steps (Scam Checker page) */
.num-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.num-list li { padding-left: .2em; }
.num-list li::marker { color: var(--gold); font-weight: 700; }
/* v6: Podcast page */
.pod-hero-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.pod-cover { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--gold-line); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.pod-player { display: grid; grid-template-columns: 160px 1fr; gap: clamp(16px, 3vw, 28px); align-items: center;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.pod-player-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.pod-player-meta { color: var(--gold); font-weight: 700; font-size: .95rem; margin: 0 0 4px; }
.pod-player-title { margin: 0 0 14px; }
.pod-player audio { width: 100%; margin-bottom: 12px; }
.pod-notes { margin-top: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.pod-notes h3 { margin-top: 0; }
.pod-notes p { color: var(--text-2); }
.pod-fallback iframe { border: 0; border-radius: 12px; margin-top: 10px; }
.pod-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pod-item { width: 100%; display: grid; grid-template-columns: 96px 1fr 44px; gap: 18px; align-items: center; text-align: left;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; }
.pod-item:hover, .pod-item[aria-current="true"] { border-color: var(--gold-line); }
.pod-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.pod-item-body { display: grid; gap: 4px; min-width: 0; }
.pod-item-meta { color: var(--gold); font-size: .88rem; font-weight: 700; }
.pod-item-title { font-weight: 700; font-size: 1.08rem; }
.pod-item-sum { color: var(--text-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pod-item-play { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 1rem; }
.pod-hosts { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); }
.pod-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: center;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.pod-promo img { width: 100%; height: auto; border-radius: 14px; }
.pod-promo h2 { margin-top: 0; }
.pod-promo p { color: var(--text-2); }
@media (max-width: 760px) {
  .pod-hero-grid { grid-template-columns: 1fr; }
  .pod-cover { max-width: 200px; }
  .pod-player { grid-template-columns: 1fr; }
  .pod-player-art { max-width: 140px; }
  .pod-item { grid-template-columns: 64px 1fr 40px; gap: 12px; }
  .pod-item img { width: 64px; height: 64px; }
  .pod-promo { grid-template-columns: 1fr; }
}
