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

:root {
  --bg:       #0c0c0e;
  --surface:  #141417;
  --card:     #1c1c21;
  --border:   #2a2a30;
  --gold:     #f5b731;
  --gold-dim: #c4922a;
  --text:     #f0f0f3;
  --muted:    #68686f;
  --key-or:   #e0803a;
  --key-gr:   #48a84a;
  --key-bl:   #4b9fd6;
  --key-rd:   #d44b4b;
  --key-pu:   #c068a8;
  --key-tl:   #4ab8c0;
  --key-ye:   #f5b731;
  --key-pi:   #d97b9a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(12,12,14,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-fcp {
  display: inline-block;
  background: var(--gold);
  color: #1a1500;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-left: 2px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold) !important;
  color: #1a1500 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85 !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(245,183,49,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,183,49,0.1);
  border: 1px solid rgba(245,183,49,0.25);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
  max-width: 860px;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 72px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #1a1500;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 32px rgba(245,183,49,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,183,49,0.35);
}

.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ── HERO LIFESTYLE IMAGE ── */
.hero-device {
  position: relative;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 60px 140px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-device img {
  width: 100%;
  display: block;
}

.hero-lifestyle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(12,12,14,0.55) 100%);
  pointer-events: none;
}

/* ── SECTION BASE ── */
section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── WHAT IS ── */
.what-is {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.what-is-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

/* Studio placeholder */
.studio-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #0a0a0c;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.studio-placeholder svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  background: rgba(0,0,0,0.6);
  padding: 3px 8px;
  border-radius: 4px;
}

.what-is-content .section-sub {
  margin-bottom: 32px;
}

.what-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.what-stat h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.what-stat p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── COLOR SYSTEM ── */
.color-system-bg {
  background: var(--surface);
  padding: 100px 0;
}

.color-system-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.color-system-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

.color-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chip-swatch {
  width: 20px; height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.chip-name {
  font-weight: 600;
  font-size: 14px;
}

.chip-desc {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

.keyboard-screenshot {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
}

.keyboard-screenshot img {
  width: 100%;
  display: block;
}

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}

.how-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(245,183,49,0.15);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.how-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── IPHONE SECTION ── */
.iphone-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iphone-content {
  display: flex;
  flex-direction: column;
}

.ipad-landscape-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ipad-landscape-device {
  position: relative;
  background: #111113;
  border-radius: 20px;
  border: 3px solid #2a2a32;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: visible;
  max-width: 520px;
  width: 100%;
}

/* Side camera bump — left edge */
.ipad-landscape-device::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 40px;
  background: #1e1e24;
  border-radius: 3px 0 0 3px;
  border: 1px solid #2a2a32;
}

/* Home bar — bottom edge */
.ipad-landscape-device::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #2a2a32;
  border-radius: 2px;
}

.ipad-landscape-inner {
  border-radius: 17px;
  overflow: hidden;
  position: relative;
}

/* Status bar strip */
.ipad-landscape-statusbar {
  height: 22px;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.ipad-landscape-statusbar span {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(240,240,243,0.7);
  letter-spacing: 0.02em;
}

.ipad-landscape-device img {
  width: 100%;
  display: block;
}

/* ── MAC HELPER ── */
.mac-helper-bg {
  background: linear-gradient(180deg, var(--bg) 0%, #0e0c1a 50%, var(--bg) 100%);
  padding: 100px 0;
}

.mac-helper-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mac-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.mac-step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.mac-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.step-num {
  width: 32px;
  height: 32px;
  background: rgba(245,183,49,0.12);
  border: 1px solid rgba(245,183,49,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.mac-visual {
  position: relative;
}

.mac-screen-mockup {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.mac-screen-bar {
  background: #111113;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.mac-screen-content {
  padding: 24px;
}

.mac-conn-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(72,168,74,0.1);
  border: 1px solid rgba(72,168,74,0.25);
  border-radius: 10px;
  margin-bottom: 16px;
}

.conn-dot {
  width: 8px; height: 8px;
  background: #48a84a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.conn-text {
  font-size: 13px;
  color: #48a84a;
  font-weight: 600;
}

.mac-key-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mac-key {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

.mac-key.active {
  background: rgba(245,183,49,0.15);
  border-color: rgba(245,183,49,0.4);
  color: var(--gold);
}

/* ── CTA STRIP ── */
.cta-strip {
  text-align: center;
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(245,183,49,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-strip h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 16px;
}

.cta-strip p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 12px;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── KEY BAND ── */
.key-band {
  overflow: hidden;
  padding: 32px 0;
  position: relative;
}

.key-band-track {
  display: flex;
  gap: 10px;
  animation: slide 30s linear infinite;
  width: max-content;
}

.key-band-track:hover { animation-play-state: paused; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.kb {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* colors */
.kb-or { background: rgba(224,128,58,0.15); border-color: rgba(224,128,58,0.3); color: var(--key-or); }
.kb-gr { background: rgba(72,168,74,0.15); border-color: rgba(72,168,74,0.3); color: var(--key-gr); }
.kb-bl { background: rgba(75,159,214,0.15); border-color: rgba(75,159,214,0.3); color: var(--key-bl); }
.kb-rd { background: rgba(212,75,75,0.15); border-color: rgba(212,75,75,0.3); color: var(--key-rd); }
.kb-pu { background: rgba(192,104,168,0.15); border-color: rgba(192,104,168,0.3); color: var(--key-pu); }
.kb-tl { background: rgba(74,184,192,0.15); border-color: rgba(74,184,192,0.3); color: var(--key-tl); }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
  .what-is, .color-system-header, .iphone-section, .mac-helper-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr; }
  .what-stat-row { gap: 24px; }
  footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .color-system-inner, .mac-helper-inner { padding: 0 20px; }
}

.btn-coming-soon {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
  position: relative;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: #1a1500;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* FAQ details/summary cross-browser reset */
details summary::-webkit-details-marker { display: none; }
details summary { outline: none; }
details[open] summary span { transform: rotate(45deg); }
details summary span { transition: transform 0.2s ease; display: inline-block; }

/* ══════════════════════════════════════════════════════════════
   SHARED PAGE CHROME — added for multi-page build
   ══════════════════════════════════════════════════════════════ */

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #1a1500;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  font-size: 14px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Visible keyboard focus everywhere ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Nav: dropdown for the app silos ── */
.nav-links li { position: relative; }

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

.nav-links li:hover .nav-drop-panel,
.nav-links li:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}

.nav-drop-panel a:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.nav-drop-panel a small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 1px;
}

/* ── Breadcrumbs ── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li::after { content: '/'; margin-left: 8px; opacity: 0.4; }
.crumbs li:last-child::after { content: none; }
.crumbs li[aria-current] { color: var(--text); }

/* ── Interior page header (shorter than the homepage hero) ── */
.page-head {
  padding: 116px 40px 48px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.page-head-glow {
  position: absolute;
  top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(245,183,49,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 20px;
}

.page-head h1 span { color: var(--gold); }

.page-head .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
}

/* ── Prose blocks ── */
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 56px 0 18px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 18px 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(245,183,49,0.3); }
.prose a:hover { border-bottom-color: var(--gold); }
.prose > *:first-child { margin-top: 0; }

/* ── Inline keycap (used in body copy) ── */
kbd {
  display: inline-block;
  font-family: inherit;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  color: var(--text);
  white-space: nowrap;
  vertical-align: baseline;
}

/* ══════════════════════════════════════════════════════════════
   SHORTCUT REFERENCE — search, filters, keyboard, table
   ══════════════════════════════════════════════════════════════ */

.ref-wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px 40px; }

/* ── Sticky control bar ── */
.ref-controls {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(12,12,14,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 8px;
}

.ref-search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.ref-search {
  flex: 1 1 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.ref-search svg {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: var(--muted);
}

.ref-search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 40px 12px 40px;
  transition: border-color 0.2s;
}

.ref-search input::placeholder { color: var(--muted); }
.ref-search input:focus { border-color: var(--gold); outline: none; }

.ref-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 50%;
  display: none;
}
.ref-search-clear:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.ref-search.has-value .ref-search-clear { display: block; }

.ref-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Category filter chips ── */
.ref-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ref-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.ref-filter:hover { color: var(--text); border-color: #3a3a42; }

.ref-filter .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ref-filter[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}

.ref-filter[data-cat="editing"]  .dot { background: var(--key-or); }
.ref-filter[data-cat="tools"]    .dot { background: var(--key-gr); }
.ref-filter[data-cat="marking"]  .dot { background: var(--key-rd); }
.ref-filter[data-cat="playback"] .dot { background: var(--key-bl); }
.ref-filter[data-cat="timeline"] .dot { background: var(--key-pu); }
.ref-filter[data-cat="audio"]    .dot { background: var(--key-tl); }
.ref-filter[data-cat="project"]  .dot { background: var(--key-ye); }

/* ── Category section headings in the table ── */
.ref-group { margin-top: 44px; scroll-margin-top: 190px; }

.ref-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.ref-group-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ref-group-head .n {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ref-group[data-cat="editing"]  .ref-group-head h2 { color: var(--key-or); }
.ref-group[data-cat="tools"]    .ref-group-head h2 { color: var(--key-gr); }
.ref-group[data-cat="marking"]  .ref-group-head h2 { color: var(--key-rd); }
.ref-group[data-cat="playback"] .ref-group-head h2 { color: var(--key-bl); }
.ref-group[data-cat="timeline"] .ref-group-head h2 { color: var(--key-pu); }
.ref-group[data-cat="audio"]    .ref-group-head h2 { color: var(--key-tl); }
.ref-group[data-cat="project"]  .ref-group-head h2 { color: var(--key-ye); }

/* ── Shortcut rows ── */
.ref-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  padding: 14px 12px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.ref-row:hover { background: rgba(255,255,255,0.025); }

.ref-keys { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.ref-row h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.ref-row p { font-size: 14px; color: var(--muted); line-height: 1.55; }

.ref-row[hidden] { display: none; }
.ref-group[hidden] { display: none; }

/* ── Empty state ── */
.ref-empty {
  display: none;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.ref-empty.show { display: block; }
.ref-empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 8px; }
.ref-empty button {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
}
.ref-empty button:hover { border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   IN-PAGE CTA — the app pitch, dropped between reference sections
   ══════════════════════════════════════════════════════════════ */

.inline-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(245,183,49,0.09), rgba(245,183,49,0.02));
  border: 1px solid rgba(245,183,49,0.22);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 56px 0;
}

.inline-cta h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.inline-cta p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 520px; }

@media (max-width: 700px) {
  .inline-cta { grid-template-columns: 1fr; padding: 24px; }
}

/* ══════════════════════════════════════════════════════════════
   SILO HUB PAGE — feature cards, comparison, related links
   ══════════════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.link-card:hover { border-color: rgba(245,183,49,0.4); transform: translateY(-2px); }

.link-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-card h3 .arrow { color: var(--gold); transition: transform 0.2s; }
.link-card:hover h3 .arrow { transform: translateX(3px); }

.link-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.link-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Comparison table ── */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cmp-table th, .cmp-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.cmp-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmp-table tbody th { font-weight: 600; color: var(--text); width: 34%; }
.cmp-table td { color: var(--muted); }
.cmp-table .yes { color: var(--key-gr); }
.cmp-table .no  { color: var(--muted); opacity: 0.6; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── FAQ (reused pattern, extracted for interior pages) ── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item summary:hover { color: var(--gold); }

.faq-item summary .plus {
  color: var(--gold);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
  display: inline-block;
}

.faq-item[open] summary .plus { transform: rotate(45deg); }

.faq-item .answer { padding: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 640px; }
.faq-item .answer p + p { margin-top: 12px; }
.faq-item .answer a { color: var(--gold); text-decoration: none; }

/* ── Related silo strip ── */
.silo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.silo-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s;
}

.silo-strip a:hover { border-color: var(--gold); }
.silo-strip a .status { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-head { padding: 96px 20px 36px; }
  .ref-wrap { padding: 0 20px 32px; }
  .ref-controls { top: 64px; }
  .ref-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 8px; }
  .ref-group { scroll-margin-top: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .key-band-track { animation: none !important; }
}

/* ── Print: make the reference an actual printable cheat sheet ── */
@media print {
  nav, footer, .ref-controls, .inline-cta, .hero-glow, .page-head-glow,
  .skip-link, .crumbs, .btn-primary, .btn-secondary { display: none !important; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .page-head { padding: 0 0 12pt; }
  .ref-wrap { padding: 0; max-width: none; }
  .ref-group { break-inside: avoid; margin-top: 16pt; }
  .ref-row { break-inside: avoid; padding: 3pt 0; border-bottom: 0.5pt solid #ddd; grid-template-columns: 110pt 1fr; }
  .ref-row p { display: none; }
  .ref-row h3 { color: #000; font-size: 9.5pt; }
  .kb, kbd { background: #f2f2f2 !important; color: #000 !important; border-color: #bbb !important; }
  .ref-group-head h2 { color: #000 !important; font-size: 12pt; }
}

/* ── Not-yet-built silo entries: styled like links, deliberately not links ── */
.nav-drop-soon {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.5;
  cursor: default;
}
.nav-drop-soon small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 1px;
}

.silo-strip .soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

/* ── Category colours for the Premiere and Resolve layouts ── */
.ref-filter[data-cat="tool"]      .dot { background: var(--key-gr); }
.ref-filter[data-cat="pink"]      .dot { background: var(--key-pi); }
.ref-filter[data-cat="workspace"] .dot { background: var(--key-pu); }
.ref-filter[data-cat="timecode"]  .dot { background: var(--key-tl); }
.ref-filter[data-cat="command"]   .dot { background: var(--key-ye); }

.ref-group[data-cat="tool"]      .ref-group-head h2 { color: var(--key-gr); }
.ref-group[data-cat="pink"]      .ref-group-head h2 { color: var(--key-pi); }
.ref-group[data-cat="workspace"] .ref-group-head h2 { color: var(--key-pu); }
.ref-group[data-cat="timecode"]  .ref-group-head h2 { color: var(--key-tl); }
.ref-group[data-cat="command"]   .ref-group-head h2 { color: var(--key-ye); }

.cat-blurb {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 640px;
  margin: 14px 0 8px;
}

/* Keep intrinsic ratio when CSS sizes images by width */
img { max-width: 100%; }
img[width][height] { height: auto; }

/* Stop .prose h2 top margins collapsing when .prose follows a grid or table.
   Without this the first heading in a block sits flush against whatever
   precedes it. */
.card-grid + .prose,
.how-grid + .prose,
.table-scroll + .prose,
.silo-strip + .prose,
.faq-list + .prose,
.cmp-table + .prose {
  margin-top: 72px;
}
.prose + .card-grid,
.prose + .how-grid,
.prose + .table-scroll {
  margin-top: 32px;
}

/* Body links inherit text colour, with a gold underline. :link and :visited
   named explicitly so the browser's purple default can't win. */
.hero-sub a, .hero-sub a:link, .hero-sub a:visited,
.section-sub a, .section-sub a:link, .section-sub a:visited,
p a, p a:link, p a:visited,
li a, li a:link, li a:visited,
.prose a, .prose a:link, .prose a:visited,
.answer a, .answer a:link, .answer a:visited {
  color: inherit !important;
  text-decoration: underline;
  text-decoration-color: rgba(245, 183, 49, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-bottom: 0;
}
.hero-sub a:hover, .section-sub a:hover, p a:hover,
li a:hover, .prose a:hover, .answer a:hover {
  color: inherit !important;
  text-decoration-color: var(--gold);
}

/* The link rules above use li a, which also catches buttons in the nav and
   footer. Exclude anything that's styled as a button. */
.nav-links > li > a, .nav-links > li > a:link, .nav-links > li > a:visited,
.footer-links a, .footer-links a:link, .footer-links a:visited,
.crumbs a, .crumbs a:link, .crumbs a:visited {
  color: var(--muted) !important;
  text-decoration: none;
}
.nav-links > li > a:hover, .footer-links a:hover, .crumbs a:hover {
  color: var(--text) !important;
}
.link-card, .link-card:link, .link-card:visited,
.silo-strip a, .silo-strip a:link, .silo-strip a:visited,
.btn-secondary, .btn-secondary:link, .btn-secondary:visited {
  color: var(--text) !important;
  text-decoration: none;
}
.nav-cta, .nav-cta:link, .nav-cta:visited, .nav-cta:hover,
.btn-primary, .btn-primary:link, .btn-primary:visited, .btn-primary:hover {
  color: #1a1500 !important;
}
