/* KickoffAPI — "The Wire" landing styles */

:root, html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C1018;
  --panel: #121826;
  --panel-2: #161D2E;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F6F7F4;
  --dim: #98A2B8;
  --faint: #8A93A6;
  --accent: #FF3D2E;
  --accent-ink: #1A0805;
  --accent-dim: rgba(255, 61, 46, 0.12);
  --accent-border: rgba(255, 61, 46, 0.35);
  --gold: #FFD60A;
  --ok: #3DDC84;
  --card-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --hero-glow: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(255, 61, 46, 0.10), transparent 60%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F5F7;
  --panel: #FFFFFF;
  --panel-2: #EBEDF1;
  --line: rgba(12, 16, 24, 0.12);
  --text: #14181F;
  --dim: #4E586B;
  --faint: #5B6472;
  --accent: #C8261A;
  --accent-ink: #FFFFFF;
  --accent-dim: rgba(200, 38, 26, 0.08);
  --accent-border: rgba(200, 38, 26, 0.3);
  --gold: #946C00;
  --ok: #15803D;
  --card-shadow: 0 24px 60px -30px rgba(20, 24, 31, 0.25);
  --hero-glow: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(226, 45, 31, 0.06), transparent 60%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

/* Backstop: no page may scroll sideways. Individual wide elements (tables,
   code blocks) scroll inside their own containers — see .table-scroll. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', 'Barlow-fallback', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.theme-transitioning {
  transition: background 0.25s ease, color 0.25s ease;
}

.mono { font-family: 'Space Mono', 'SpaceMono-fallback', 'Courier New', monospace; }

.display {
  font-family: 'Barlow Condensed', 'BarlowCondensed-fallback', 'Arial Narrow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.nav { position: relative; }
.nav-burger { display: none; background: transparent; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-burger svg { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.nav-inner > * { min-width: 0; flex-shrink: 1; }
.nav-inner > .nav-actions { flex-shrink: 0; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text, #F6F7F4); }
.logo:hover { text-decoration: none; }

.logo-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #FFFFFF;
}

html[data-theme="light"] .logo-word {
  color: #000000;
}

.logo-word em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.15s;
}

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

.nav-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }

.nav-actions .btn { white-space: nowrap; flex-shrink: 0; }

.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.nav-signin:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  padding: 11px 22px;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px var(--accent); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-ghost:hover { border-color: var(--faint); }

.btn-lg.btn-primary { font-size: 16px; padding: 16px 30px; }
.btn-lg.btn-ghost { font-size: 16px; padding: 15px 28px; }

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}

.theme-btn:hover { color: var(--text); border-color: var(--faint); }
.theme-btn svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 92px 0 72px;
  background: var(--hero-glow);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: wirePulse 1.4s ease-in-out infinite; }
  .wire-cursor { animation: wirePulse 0.9s steps(2) infinite; }
}

@keyframes wirePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero h1 {
  font-size: clamp(52px, 8vw, 112px);
  margin: 0 0 26px;
  line-height: 1.05;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 19px;
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 38px;
}

.hero-ctas { display: flex; justify-content: center; gap: 14px; }

.hero-chips {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- Vidiprinter ---------- */
.vidiprinter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.vp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
}

.vp-live { color: var(--accent); display: flex; align-items: center; gap: 7px; }
.vp-live .pulse-dot { width: 6px; height: 6px; }

.vp-body {
  padding: 18px 0 22px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 2;
  min-height: 150px;
}

.vp-current { color: var(--text); white-space: pre-wrap; }
.vp-current .goal { color: var(--gold); }
.wire-cursor { color: var(--accent); }
.vp-history div { color: var(--faint); }
.vp-history div:nth-child(2) { opacity: 0.72; }
.vp-history div:nth-child(3) { opacity: 0.44; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }

.section-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(40px, 5vw, 60px);
  margin: 0 0 14px;
}

.section-sub { font-size: 17.5px; color: var(--dim); max-width: 560px; margin: 0; }

.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-num {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 24px;
  margin: 0;
}

.feature-card p { margin: 0; font-size: 14.5px; color: var(--dim); }

.feature-stat {
  margin-top: auto;
  padding-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: var(--gold);
}

/* Code section */
.code-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.code-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.code-card-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.code-card pre {
  margin: 0;
  padding: 20px 22px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
  flex: 1;
}

.tok-c { color: var(--faint); }
.tok-k { color: var(--accent); }
.tok-s { color: var(--gold); }
.tok-d { color: var(--dim); }
.tok-ok { color: var(--ok); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.price-card.popular {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-dim), transparent 45%), var(--panel);
}

.popular-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}

.price-for { font-size: 12.5px; color: var(--faint); min-height: 36px; }

.price-amount { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 46px; line-height: 1; margin: 10px 0 2px; }
.price-amount .cur { font-size: 24px; vertical-align: 14px; color: var(--dim); font-weight: 600; }
.price-period { font-family: 'Space Mono', monospace; font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.price-annual-note { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--dim); margin-bottom: 18px; letter-spacing: 0.02em; min-height: 18px; }
.price-annual-note strong { color: var(--text); font-weight: 600; }

.price-cta { width: 100%; text-align: center; margin-bottom: 18px; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--dim);
}

.price-list li { display: flex; gap: 9px; align-items: baseline; }
.price-list li::before { content: "▸"; color: var(--accent); font-size: 11px; }
.price-list li strong { color: var(--text); font-weight: 600; }

.billing-rules {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rule {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--dim);
  background: var(--panel);
}

.rule strong { display: block; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--text); margin-bottom: 4px; }

/* Free strip + Enterprise band */
.free-strip {
  max-width: 980px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border: 1px dashed var(--line);
  border-radius: 99px;
  padding: 12px 26px;
  font-size: 14.5px;
  color: var(--dim);
  background: var(--panel);
}

.free-strip .mono { font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold); }
.free-strip strong { color: var(--text); font-weight: 600; }
.free-strip a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.free-strip a:hover { text-decoration: underline; }

/* Billing period toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: -16px auto 32px;
}
.bt-track {
  display: inline-flex;
  background: var(--panel, #121826);
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  border-radius: 999px;
  padding: 4px;
}
.bt-opt {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-size: .85rem;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--text, #F6F7F4) 62%, transparent);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bt-opt:hover { color: var(--text, #F6F7F4); }
.bt-opt.is-on { background: var(--text, #F6F7F4); color: var(--bg, #0C1018); font-weight: 600; }
.bt-opt:focus-visible { outline: 2px solid var(--accent, #FF3D2E); outline-offset: 2px; }
.bt-save { font-size: .8rem; color: color-mix(in srgb, var(--text, #F6F7F4) 65%, transparent); }
.bt-save strong { color: var(--text, #F6F7F4); }
.price-sub { font-size: .78rem; color: color-mix(in srgb, var(--text, #F6F7F4) 62%, transparent); margin-top: -.35rem; min-height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .bt-opt { transition: none; } }

.enterprise-band {
  max-width: 980px;
  margin: 16px auto 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.enterprise-band .eb-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.enterprise-band .eb-desc { font-size: 14px; color: var(--dim); flex: 1; }
.enterprise-band .eb-price {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .enterprise-band { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Comparison ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14.5px;
}

.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}

.compare-table td:first-child { color: var(--faint); font-size: 13.5px; }
.compare-table td.us { color: var(--text); font-weight: 600; }
.compare-table td.us .mono-tag { color: var(--gold); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

.trust-list { display: flex; flex-direction: column; gap: 14px; }

.trust {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.trust strong {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.trust span { font-size: 14px; color: var(--dim); }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background: var(--hero-glow), var(--panel);
  text-align: center;
  padding: 88px 0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--dim);
}

.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 36px; margin-bottom: 44px; }

.footer-col h3 {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 0 0 14px;
  font-weight: 400;
}

.footer-col a:not(.logo) { display: block; color: var(--dim); padding: 4px 0; }
.footer-col a:not(.logo):hover { color: var(--text); }

.footer-col a.logo,
.footer-col a.logo:hover,
.footer-col a.logo:focus,
.footer-col a.logo:active {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  cursor: default;
  padding: 0;
  margin-bottom: 12px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  outline: none;
}

/* Dark / black background: KICKOFF is pure white, invariant across hover/focus/active */
.footer-col a.logo .logo-word,
.footer-col a.logo:hover .logo-word,
.footer-col a.logo:focus .logo-word,
.footer-col a.logo:active .logo-word,
:root .footer-col a.logo .logo-word,
:root .footer-col a.logo:hover .logo-word,
html[data-theme="dark"] .footer-col a.logo .logo-word,
html[data-theme="dark"] .footer-col a.logo:hover .logo-word {
  color: #FFFFFF !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Light / white background: KICKOFF is pure black, invariant across hover/focus/active */
html[data-theme="light"] .footer-col a.logo .logo-word,
html[data-theme="light"] .footer-col a.logo:hover .logo-word,
html[data-theme="light"] .footer-col a.logo:focus .logo-word,
html[data-theme="light"] .footer-col a.logo:active .logo-word {
  color: #000000 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.footer-col a.logo .logo-word em,
.footer-col a.logo:hover .logo-word em,
.footer-col a.logo:focus .logo-word em,
.footer-col a.logo:active .logo-word em {
  color: var(--accent, #FF3D2E) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.footer-col a.logo svg,
.footer-col a.logo:hover svg,
.footer-col a.logo:focus svg,
.footer-col a.logo:active svg {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.footer-desc { max-width: 280px; font-size: 13.5px; color: var(--faint); margin-top: 12px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-burger { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  /* Sign in + the header CTA live inside the burger menu on phones — keeping
     them in .nav-actions squeezes the CTA to a 4-line sliver off-screen. */
  .nav-actions .nav-signin,
  .nav-actions .btn { display: none; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 6px 0; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .15s ease, transform .15s ease; z-index: 60;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 32px; width: 100%; min-height: 44px; display: flex; align-items: center; }
  .nav-links .btn { margin: 6px 32px 6px; width: auto; min-height: 44px; }
  .code-cols, .about-grid { grid-template-columns: 1fr; }
  .billing-rules { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-chips { flex-wrap: wrap; gap: 14px; }
  .free-strip { border-radius: 16px; }
  .footer-col a:not(.logo) { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Wide tables scroll inside their own container instead of widening the page.
   Wrap any <table class="compare-table"> (or table.cov) in .table-scroll. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll > table { min-width: 560px; }
.code-card pre, .code-block pre, pre { max-width: 100%; }

/* Skip link: first tab stop on every marketing page. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100000;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 12px; }

/* Cookie consent: never wider than the viewport, 44px stacked targets. */
#cookie-consent { max-width: min(560px, calc(100vw - 32px)) !important; width: calc(100vw - 32px); }
#cookie-consent button { min-height: 44px; min-width: 44px; }
@media (max-width: 480px) {
  #cookie-consent { flex-direction: column; align-items: stretch !important; }
  #cookie-consent > span:last-child { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  #cookie-consent button { width: 100%; margin-right: 0 !important; min-height: 44px; }
}

/* Accessibility: visible keyboard focus (WCAG 2.4.7) — additive, brand-red ring */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* keep mouse clicks clean — only show the ring for keyboard users */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), .btn:focus:not(:focus-visible) { outline: none; }

/* Sign in + CTA live in .nav-actions on desktop; their copies inside .nav-links exist only for the mobile menu.
   Without this they showed twice in the desktop header (audit fix 3 Oct 2026). */
@media (min-width: 821px) {
  .nav-links .nav-signin, .nav-links .btn { display: none; }
}

/* Brand scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
