/* ==========================================================================
   zonChess — Temporary Site (interim build)
   One stylesheet for the whole interim portal. Dark premium tournament look:
   navy base, cyan signal, gold for celebration moments.
   ========================================================================== */

:root {
  --ink-900: #040b16;
  --ink-850: #07111f;
  --ink-800: #0b1a2d;
  --ink-700: #12263f;
  --ink-600: #1b3555;

  --line: rgba(148, 197, 255, 0.14);
  --line-strong: rgba(148, 197, 255, 0.28);

  --text: #e8f1fb;
  --text-soft: #a8c0d8;
  --text-dim: #7d94ad;

  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #38bdf8;
  --blue-deep: #0284c7;
  --gold: #f5c451;
  --gold-deep: #b98518;
  --green: #34d399;
  --violet: #a78bfa;
  --rose: #fb7185;

  --font-display: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 24px 60px -30px rgba(34, 211, 238, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(34, 211, 238, 0.11), transparent 58%),
    radial-gradient(950px 520px at 92% 2%, rgba(56, 189, 248, 0.09), transparent 55%),
    radial-gradient(800px 500px at 50% 108%, rgba(245, 196, 81, 0.06), transparent 60%),
    var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1rem; }

::selection { background: rgba(34, 211, 238, .3); }

.shell { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }

/* --------------------------------------------------------------- skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cyan); color: var(--ink-900); padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ interim flag */
.interim-bar {
  background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(34, 211, 238, .14));
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-soft);
}
.interim-bar__inner {
  display: flex; gap: .75rem; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: .55rem 0; text-align: center;
}
.interim-bar b { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(4, 11, 22, .82);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.1rem;
  padding: .7rem 0; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: .01em; }
.brand small { font-size: .58rem; letter-spacing: .19em; color: var(--text-dim); font-weight: 600; }

.nav { display: flex; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text-soft); font-size: .88rem; font-weight: 600;
  padding: .45rem .68rem; border-radius: var(--radius-sm); transition: all .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(148, 197, 255, .08); }
.nav a[aria-current="page"] { color: var(--cyan); background: rgba(34, 211, 238, .1); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; background: rgba(148, 197, 255, .09); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm); padding: .45rem .7rem;
  font-size: 1.05rem; cursor: pointer; line-height: 1;
}

@media (max-width: 520px) {
  /* The tagline wraps to two lines and crowds the burger on narrow phones. */
  .site-header .brand small { display: none; }
  .site-header .brand strong { font-size: 1.15rem; }
}

@media (max-width: 940px) {
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(5, 14, 26, .98); border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .68rem .4rem; border-bottom: 1px solid rgba(148, 197, 255, .07); border-radius: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: .92rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue-deep));
  color: #041018; box-shadow: 0 12px 30px -14px rgba(34, 211, 238, .9);
}
.btn--primary:hover { color: #041018; box-shadow: 0 16px 38px -14px rgba(34, 211, 238, 1); }
.btn--ghost { background: rgba(148, 197, 255, .07); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(148, 197, 255, .13); color: var(--text); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1b1200; }
.btn--gold:hover { color: #1b1200; }
.btn--sm { padding: .48rem .9rem; min-height: 36px; font-size: .82rem; }

/* ------------------------------------------------------------------ chips */
.chip {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); background: rgba(148, 197, 255, .07); color: var(--text-soft);
}
.chip--live { color: var(--cyan); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .1); }
.chip--new { color: var(--gold); border-color: rgba(245, 196, 81, .4); background: rgba(245, 196, 81, .1); }
.chip--done { color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.chip--soon { color: var(--violet); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .1); }

.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip--live i { animation: breathe 2.6s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { opacity: .35; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(34, 211, 238, .16); }
}
@media (prefers-reduced-motion: reduce) {
  .chip--live i { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.4rem) 0; }
.section--panel { background: rgba(7, 17, 31, .55); border-block: 1px solid var(--line); }

.kicker {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
  margin: 0 0 .7rem;
}
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p.lead { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 0; }

.lead { color: var(--text-soft); font-size: 1.08rem; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(148, 197, 255, .04) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(148, 197, 255, .04) 0 1px, transparent 1px 74px);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { margin-bottom: .7rem; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--cyan), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 60ch; font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-signals { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 214px), 1fr)); }

.card {
  background: linear-gradient(160deg, rgba(18, 38, 63, .72), rgba(7, 17, 31, .82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-soft); font-size: .94rem; margin-bottom: 0; }
.card p + p { margin-top: .6rem; }
.card__index {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  color: var(--cyan); letter-spacing: .16em; display: block; margin-bottom: .55rem;
}
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.15rem; margin-bottom: .85rem;
  background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .28); color: var(--cyan);
}
.card--gold .card__icon { background: rgba(245, 196, 81, .12); border-color: rgba(245, 196, 81, .3); color: var(--gold); }
.card--violet .card__icon { background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .3); color: var(--violet); }
.card--green .card__icon { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: var(--green); }

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__more { display: inline-block; margin-top: .8rem; font-weight: 700; font-size: .86rem; color: var(--cyan); }

/* product cards on the hub */
.product-card {
  display: grid; gap: 1.2rem; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(18, 38, 63, .8), rgba(5, 13, 24, .9));
  padding: 1.5rem; overflow: hidden;
}
.product-card__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.product-card__media img { width: 100%; }
.product-card ul { margin: .9rem 0 1.1rem; padding-left: 1.1rem; color: var(--text-soft); font-size: .93rem; }
.product-card li { margin-bottom: .35rem; }
@media (min-width: 860px) {
  .product-card { grid-template-columns: 1.05fr 1fr; gap: 1.8rem; padding: 1.8rem; }
  .product-card--flip .product-card__media { order: -1; }
}

/* ------------------------------------------------------------- stat strip */
.stats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
  background: rgba(7, 17, 31, .6);
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--cyan); line-height: 1.1; }
.stat.stat--gold b { color: var(--gold); }
.stat span { font-size: .84rem; color: var(--text-soft); }

/* -------------------------------------------------------------- galleries */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(7, 17, 31, .7);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: .8rem .95rem; font-size: .86rem; color: var(--text-soft); }
.shot figcaption b { display: block; color: var(--text); font-size: .93rem; margin-bottom: .12rem; }

.note {
  font-size: .82rem; color: var(--text-dim); margin-top: 1rem;
}

/* ------------------------------------------------------------ before/after */
.ba { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ba__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.ba__col--before { background: rgba(251, 113, 133, .05); border-color: rgba(251, 113, 133, .22); }
.ba__col--after { background: rgba(34, 211, 238, .05); border-color: rgba(34, 211, 238, .25); }
.ba__col h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.ba__col--before h3 { color: var(--rose); }
.ba__col--after h3 { color: var(--cyan); }
.ba__col ul { margin: 0; padding-left: 1.15rem; color: var(--text-soft); font-size: .94rem; }
.ba__col li { margin-bottom: .45rem; }

/* --------------------------------------------------------------- timeline */
.timeline { position: relative; display: grid; gap: 1.1rem; }
.release {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 38, 63, .55), rgba(7, 17, 31, .8));
  padding: 1.4rem 1.4rem 1.2rem;
}
.release--head { border-color: rgba(245, 196, 81, .3); box-shadow: 0 0 0 1px rgba(245, 196, 81, .08); }
.release__top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.release__ver { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.release__date { font-size: .8rem; color: var(--text-dim); margin-left: auto; }
.release__sum { color: var(--text-soft); font-size: .97rem; margin-bottom: .9rem; }
.release ul { margin: 0; padding-left: 1.15rem; color: var(--text-soft); font-size: .93rem; }
.release li { margin-bottom: .5rem; }
.release li b { color: var(--text); }

/* --------------------------------------------------------------- roadmap */
.lane { display: grid; gap: .9rem; }
.lane__item {
  display: grid; gap: .45rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm); background: rgba(7, 17, 31, .55);
}
.lane__item[data-state="done"] { border-left-color: var(--green); }
.lane__item[data-state="now"] { border-left-color: var(--cyan); }
.lane__item[data-state="next"] { border-left-color: var(--blue); }
.lane__item[data-state="later"] { border-left-color: var(--violet); }
.lane__item[data-state="parked"] { border-left-color: var(--text-dim); }
.lane__item h3 { font-size: 1.02rem; margin: 0; }
.lane__item p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* ---------------------------------------------------------------- pricing */
.pricing {
  border: 1px solid rgba(245, 196, 81, .3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 50% -20%, rgba(245, 196, 81, .12), transparent 65%),
    linear-gradient(160deg, rgba(18, 38, 63, .75), rgba(5, 13, 24, .9));
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}
.pricing__badge {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--gold), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .6rem 0 .3rem;
}
.pricing__note { color: var(--text-soft); max-width: 58ch; margin-inline: auto; }
.pricing__grid { display: grid; gap: .9rem; margin-top: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); text-align: left; }
.pricing__cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem; background: rgba(7, 17, 31, .6); }
.pricing__cell b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--gold); margin-bottom: .3rem; }
.pricing__cell span { font-size: .88rem; color: var(--text-soft); }

/* ------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .7rem; }
details.qa {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(7, 17, 31, .6); padding: 0 1.2rem;
}
details.qa[open] { border-color: var(--line-strong); }
details.qa summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 700; font-size: .99rem;
  list-style: none; display: flex; gap: .8rem; align-items: flex-start;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; margin-left: auto; color: var(--cyan); font-size: 1.3rem; line-height: 1; flex-shrink: 0;
}
details.qa[open] summary::after { content: "−"; }
details.qa p { color: var(--text-soft); font-size: .94rem; padding-bottom: .4rem; }
details.qa p:last-child { margin-bottom: 1rem; }

/* ------------------------------------------------------------------- CTA */
.cta {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(34, 211, 238, .16), transparent 65%),
    linear-gradient(160deg, rgba(18, 38, 63, .8), rgba(5, 13, 24, .92));
  padding: clamp(1.8rem, 5vw, 3rem); text-align: center;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--text-soft); max-width: 58ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* ------------------------------------------------------------------- blog */
.post-list { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 38, 63, .6), rgba(7, 17, 31, .85));
  transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card p { font-size: .9rem; color: var(--text-soft); margin: 0; }
.post-card__read { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--cyan); }

/* article */
.article { max-width: 74ch; margin-inline: auto; }
.article__meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: .8rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: var(--text-soft); font-size: 1.02rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .55rem; }
.article figure { margin: 2rem 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.article figcaption { font-size: .82rem; color: var(--text-dim); margin-top: .6rem; text-align: center; }
.article blockquote {
  margin: 1.8rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, .06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: 1.03rem;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article__back { display: inline-block; margin-bottom: 1.4rem; font-size: .88rem; font-weight: 700; }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; min-width: 520px; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(34, 211, 238, .05); }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(4, 11, 22, .8); padding: 3rem 0 2rem; margin-top: 3rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.site-footer nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer nav strong { font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: .3rem; }
.site-footer nav a { color: var(--text-dim); font-size: .89rem; }
.site-footer nav a:hover { color: var(--cyan); }
.site-footer__about p { font-size: .85rem; color: var(--text-dim); max-width: 34ch; }
.site-footer__legal {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .79rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
}

/* -------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: .85rem; }

/* --------------------------------------------- podium character line-up */
/* Source art has opaque backgrounds and inconsistent intrinsic sizes, so each
   slot is a fixed-height frame with contain-fitting art. Varying frame heights
   plus align-items:end produce the podium silhouette without transforms. */
.podium-line {
  display: grid; gap: .7rem; margin: 2.2rem 0 1.4rem;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}
.podium-line figure { margin: 0; text-align: center; }
.podium-line .podium-line__frame {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(4, 11, 22, .6); overflow: hidden;
  display: grid; place-items: center; height: 130px;
}
.podium-line img { width: 100%; height: 100%; object-fit: contain; }
.podium-line figure[data-place="1"] .podium-line__frame { height: 190px; border-color: rgba(245, 196, 81, .45); }
.podium-line figure[data-place="2"] .podium-line__frame,
.podium-line figure[data-place="3"] .podium-line__frame { height: 160px; }
.podium-line figcaption { margin-top: .55rem; font-size: .78rem; color: var(--text-dim); line-height: 1.35; }
.podium-line b {
  display: block; font-family: var(--font-display); font-size: .9rem; color: var(--text-soft);
}
.podium-line figure[data-place="1"] b { color: var(--gold); }
@media (max-width: 620px) {
  .podium-line { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .podium-line .podium-line__frame,
  .podium-line figure[data-place="1"] .podium-line__frame,
  .podium-line figure[data-place="2"] .podium-line__frame,
  .podium-line figure[data-place="3"] .podium-line__frame { height: 110px; }
}

/* ======================================================= September 2026 update */
.chip--dev { color: var(--rose); border-color: rgba(251, 113, 133, .38); background: rgba(251, 113, 133, .1); }

/* Waitlist / early-trial banner */
.early {
  display: grid; gap: 1.2rem; align-items: center;
  border: 1px solid rgba(52, 211, 153, .35); border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(52, 211, 153, .14), transparent 70%),
    radial-gradient(520px 220px at 100% 100%, rgba(34, 211, 238, .12), transparent 70%),
    linear-gradient(160deg, rgba(18, 38, 63, .8), rgba(5, 13, 24, .92));
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.early h2 { margin: .4rem 0 .6rem; }
.early p { color: var(--text-soft); margin: 0 0 .6rem; }
.early__steps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; counter-reset: early; }
.early__steps li {
  counter-increment: early; position: relative; padding: .85rem 1rem .85rem 3.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 17, 31, .6);
  color: var(--text-soft); font-size: .92rem;
}
.early__steps li::before {
  content: counter(early); position: absolute; left: .9rem; top: .8rem;
  width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 211, 153, .18); color: var(--green); font-weight: 800; font-size: .85rem;
}
.early__steps b { color: var(--text); }
@media (min-width: 900px) { .early { grid-template-columns: 1.1fr 1fr; gap: 2rem; } }

/* Full-frame screenshots (no cropping) */
.shots--full .shot img, .shot--full img { aspect-ratio: auto; object-fit: contain; background: #03080f; }
.shots--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.shot--tall img { aspect-ratio: auto; max-height: 720px; object-fit: contain; background: #03080f; }
.shot__tag {
  display: inline-block; margin-bottom: .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
}
.shot__tag--dev { color: var(--rose); }

/* Feature list with ticks */
.ticks { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--text-soft); font-size: .93rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.ticks li b { color: var(--text); }

/* Dev-preview panel */
.devpanel {
  border: 1px dashed rgba(251, 113, 133, .4); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(40, 18, 38, .35), rgba(5, 13, 24, .85));
  padding: clamp(1.3rem, 3.5vw, 2rem);
}

/* Mecha teaser + page */
.mecha-teaser {
  display: grid; gap: 1.4rem; align-items: center; overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .35); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 85% 50%, rgba(167, 139, 250, .18), transparent 70%),
    linear-gradient(160deg, rgba(18, 38, 63, .8), rgba(5, 13, 24, .95));
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.mecha-teaser__cast { display: flex; justify-content: center; align-items: flex-end; gap: .2rem; }
.mecha-teaser__cast img { width: 17%; max-height: 210px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.mecha-teaser__cast img:nth-child(3) { width: 22%; max-height: 250px; }
@media (min-width: 860px) { .mecha-teaser { grid-template-columns: 1fr 1.1fr; } }

.mecha-hero { position: relative; overflow: hidden; min-height: min(82vh, 760px); display: flex; align-items: flex-end; }
.mecha-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mecha-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 11, 22, .25) 0%, rgba(4, 11, 22, .55) 55%, var(--ink-900) 100%);
}
.mecha-hero .shell { position: relative; z-index: 1; padding-block: 3rem 3.5rem; }
.mecha-hero h1 { max-width: 16ch; }
.mecha-hero .lead { max-width: 60ch; }
.mecha-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.mecha-card {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(240px 200px at 50% 30%, rgba(167, 139, 250, .16), transparent 70%), rgba(7, 17, 31, .75);
  transition: transform .2s ease, border-color .2s ease;
}
.mecha-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .45); }
.mecha-card img { width: 100%; height: 240px; object-fit: contain; padding: 1rem .6rem 0; }
.mecha-card figcaption { padding: .7rem .9rem 1rem; font-size: .86rem; color: var(--text-soft); }
.mecha-card figcaption b { display: block; font-family: var(--font-display); color: var(--text); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .mecha-card { transition: none; } .mecha-card:hover { transform: none; } }

/* Screenshot lightbox */
img.is-zoomable { cursor: zoom-in; }
dialog.lightbox {
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #03080f; max-width: min(96vw, 1800px); max-height: 94vh; overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(2, 6, 12, .86); }
dialog.lightbox img { display: block; max-width: min(96vw, 1800px); max-height: 94vh; width: auto; height: auto; cursor: zoom-out; }
.lightbox__close {
  position: absolute; top: .5rem; right: .5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(4, 11, 22, .8); color: var(--text); font-size: 1.3rem; cursor: pointer;
}

/* Field test videos + developer note */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 17, 31, .7); overflow: hidden; }
.video-card .video-embed { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.video-card__body { padding: .85rem 1rem 1rem; font-size: .88rem; color: var(--text-soft); }
.video-card__body b { display: block; color: var(--text); font-size: .95rem; margin-bottom: .15rem; }
.honest-note {
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  background: rgba(245, 196, 81, .06); padding: 1rem 1.2rem; margin-top: 1.2rem;
  color: var(--text-soft); font-size: .93rem;
}
.honest-note b { color: var(--gold); }
.versions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.letter {
  position: relative; border: 1px solid rgba(245, 196, 81, .3); border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(245, 196, 81, .1), transparent 70%),
    linear-gradient(160deg, rgba(18, 38, 63, .8), rgba(5, 13, 24, .94));
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.letter h2 { margin: .5rem 0 1rem; }
.letter p { color: var(--text-soft); max-width: 68ch; }
.letter p strong { color: var(--text); }
.letter__sign { margin-top: 1.4rem; font-family: var(--font-display); color: var(--gold); letter-spacing: .06em; }
.expect { display: grid; gap: .8rem; margin-top: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.expect div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: rgba(7, 17, 31, .55); font-size: .9rem; color: var(--text-soft); }
.expect b { display: block; color: var(--text); margin-bottom: .25rem; }

/* ============================================ Compact layout (tabs, subnav, strips) */
html { scroll-padding-top: 128px; }
.section--compact { padding: clamp(2.4rem, 5vw, 3.8rem) 0; }

/* Split hero: copy left, visual right */
.hero__split { display: grid; gap: 2rem; align-items: center; }
.hero__visual { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.hero__visual img { width: 100%; display: block; }
@media (min-width: 980px) { .hero__split { grid-template-columns: 1.05fr .95fr; } }

/* Sticky in-page navigation */
.subnav {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(4, 11, 22, .9); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.subnav__inner { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .55rem 0; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto; padding: .42rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: var(--text-soft); border: 1px solid transparent; white-space: nowrap;
}
.subnav a:hover { color: var(--text); border-color: var(--line); }
.subnav a.is-active { color: var(--cyan); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); }

/* Tabs (progressive: without JS every panel shows, stacked) */
.tabs__list {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .35rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.tabs__list [role="tab"] {
  flex: 0 0 auto; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; color: var(--text-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.tabs__list [role="tab"]:hover { color: var(--text); border-color: var(--line-strong); }
.tabs__list [role="tab"][aria-selected="true"] { color: #031018; background: linear-gradient(120deg, var(--cyan), var(--blue)); border-color: transparent; }
.tabs__list [role="tab"] small { font-weight: 600; opacity: .75; margin-left: .3rem; }
.tabs__panel + .tabs__panel { margin-top: 1.4rem; }
.tabs.is-ready .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: var(--radius); }
.tabs__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tabs.is-ready .tabs__panel:not([hidden]) { animation: tabIn .25s ease; }
  @keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Feature panel: text + image */
.feature { display: grid; gap: 1.4rem; align-items: start; }
.feature__media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #03080f; }
.feature__media img { width: 100%; display: block; }
.feature__media figcaption { padding: .6rem .9rem; font-size: .8rem; color: var(--text-dim); border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
.feature p { color: var(--text-soft); }
@media (min-width: 900px) { .feature { grid-template-columns: .8fr 1.2fr; gap: 2rem; } .feature--wide-media { grid-template-columns: .7fr 1.3fr; } }

/* Horizontal, swipeable strip of shots */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: thin;
}
.strip > * { scroll-snap-align: start; }
.strip--wide { grid-auto-columns: minmax(280px, 48%); }
.strip .shot img { aspect-ratio: 4 / 3; object-fit: cover; background: #03080f; }
.strip--contain .shot img { object-fit: contain; }
@media (max-width: 700px) { .strip, .strip--wide { grid-auto-columns: 82%; } }
.strip-hint { font-size: .78rem; color: var(--text-dim); margin-top: .3rem; }

/* Compact cards */
.grid--4c { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card--compact { padding: 1.1rem 1.15rem; }
.card--compact h3 { font-size: 1rem; margin-bottom: .35rem; }
.card--compact p { font-size: .9rem; margin: 0; }

/* Field-test timeline tabs */
.fieldtag { display: inline-flex; gap: .45rem; align-items: center; font-size: .78rem; color: var(--text-dim); margin-bottom: .4rem; }
.fieldtag b { color: var(--gold); font-weight: 700; }
.subnav__inner { position: relative; }

/* Hidden post-credit link */
a.mecha-card-link { display: block; color: inherit; }
a.mecha-card-link .mecha-card { height: 100%; }
.secret-step { text-align: center; margin: 0; padding: 0 0 2.2rem; font-size: .72rem; letter-spacing: .08em; }
.secret-step a { color: rgba(125, 148, 173, .28); }
.secret-step a:hover, .secret-step a:focus-visible { color: var(--violet); }
.strip > figure, .feature__media, .hero__visual, .tabs__panel > figure, figure.shot { margin: 0; }

/* ============================================ Unified header (24 Sep 2026) */
/* Same height, same links, same button on every page; the scrollbar gutter
   is reserved so switching between long and short pages never shifts it. */
html { scrollbar-gutter: stable; scroll-padding-top: 140px; }
.announce {
  background: linear-gradient(90deg, rgba(245, 196, 81, .12), rgba(34, 211, 238, .1));
  border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--text-soft);
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: .7rem; height: 36px; white-space: nowrap; overflow: hidden; }
.announce__tag {
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(245, 196, 81, .35); border-radius: 999px; padding: .08rem .5rem;
}
.announce__text { overflow: hidden; text-overflow: ellipsis; }
.announce__link { font-weight: 700; color: var(--cyan); flex-shrink: 0; }
@media (max-width: 720px) { .announce__text { display: none; } }

.site-header { background: rgba(4, 11, 22, .88); }
.site-header__inner { height: 72px; min-height: 0; padding: 0; gap: 1.4rem; }
.brand img, .site-header .brand img { width: auto; height: 54px; border-radius: 0; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.brand--footer img { height: 96px !important; width: auto !important; border-radius: 0 !important; }
.nav { flex-wrap: nowrap; gap: .15rem; }
.nav a { position: relative; white-space: nowrap; padding: .5rem .75rem; border-radius: 8px; }
.nav a[aria-current="page"] { background: transparent; color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -.9rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.header-actions .btn { width: 148px; }
.subnav { top: 72px; }
@media (max-width: 1120px) {
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(5, 14, 26, .98); border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .72rem .4rem; border-bottom: 1px solid rgba(148, 197, 255, .07); border-radius: 0; }
  .nav a[aria-current="page"] { color: var(--cyan); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: block; margin-left: auto; order: 2; }
  .header-actions { order: 1; margin-left: auto; }
  .header-actions .btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .site-header__inner { height: 64px; }
  .brand img, .site-header .brand img { height: 46px; }
  .subnav { top: 64px; }
  .header-actions .btn { width: auto; padding-inline: .8rem; }
}

/* Home hero with background video */
.home-hero { position: relative; overflow: hidden; min-height: min(86vh, 780px); display: flex; align-items: center; }
.home-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 11, 22, .94) 0%, rgba(4, 11, 22, .78) 42%, rgba(4, 11, 22, .25) 75%, rgba(4, 11, 22, .45) 100%),
    linear-gradient(180deg, rgba(4, 11, 22, .2) 60%, var(--ink-900) 100%);
}
.home-hero__inner { position: relative; z-index: 1; padding-block: 3.2rem 4rem; }
.home-hero__copy { max-width: 640px; }
.home-hero__logo { width: min(250px, 58vw); height: auto; margin-bottom: .6rem; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
.home-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--cyan), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .lead { max-width: 56ch; }
@media (max-width: 720px) {
  .home-hero::after { background: linear-gradient(180deg, rgba(4, 11, 22, .55) 0%, rgba(4, 11, 22, .88) 55%, var(--ink-900) 100%); }
}
dialog.intro-dialog { padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #000; width: min(96vw, 1100px); overflow: hidden; }
dialog.intro-dialog::backdrop { background: rgba(2, 6, 12, .9); }
dialog.intro-dialog video { display: block; width: 100%; height: auto; }
dialog.intro-dialog .lightbox__close { z-index: 2; }
.product-badge { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.product-badge img { width: 84px; height: auto; filter: drop-shadow(0 10px 22px rgba(239, 68, 68, .25)); }
.product-badge .chip { margin-top: .4rem; }
.app-family { display: flex; flex-wrap: wrap; gap: .6rem; margin: -.2rem 0 .9rem; }
.app-family span { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 17, 31, .6); font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.app-family img { width: 34px; height: 34px; object-fit: contain; }

/* Compact hero for inner pages */
.hero--compact { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.2rem, 3vw, 2rem); }
.hero--compact h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.tab-ico { display: inline-block; width: 20px; height: auto; vertical-align: -4px; margin-right: .45rem; border-radius: 4px; }

/* Collapsible older releases */
.release-folds { display: grid; gap: .55rem; }
details.release-fold { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(7, 17, 31, .55); }
details.release-fold[open] { border-color: var(--line-strong); }
details.release-fold summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .3rem .8rem;
  padding: .8rem 1rem;
}
details.release-fold summary::-webkit-details-marker { display: none; }
details.release-fold summary::after { content: "+"; color: var(--cyan); font-size: 1.2rem; grid-column: 4; grid-row: 1; }
details.release-fold[open] summary::after { content: "−"; }
details.release-fold .release__ver { font-size: 1rem; }
details.release-fold .release__date { margin-left: 0; grid-column: 3; justify-self: end; }
details.release-fold .release-fold__sum { grid-column: 1 / -1; font-size: .88rem; color: var(--text-soft); }
details.release-fold ul { margin: 0 1rem 1rem; padding-left: 1.1rem; color: var(--text-soft); font-size: .92rem; }
details.release-fold li { margin-bottom: .45rem; }
details.release-fold li b { color: var(--text); }

/* Roadmap board */
.board__lead { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin: .2rem 0 1rem; }
.board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.board__col { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 17, 31, .5); padding: .8rem; display: grid; gap: .6rem; }
.board__title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-body); font-size: 1rem; margin: 0 0 .1rem; }
.board__title small { color: var(--text-dim); font-weight: 700; }
.board__item { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(4, 11, 22, .6); padding: .75rem .85rem; }
.board__item[data-state="done"] { border-left-color: var(--green); }
.board__item[data-state="now"] { border-left-color: var(--cyan); }
.board__item[data-state="next"] { border-left-color: var(--blue); }
.board__item[data-state="later"] { border-left-color: var(--violet); }
.board__item h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 .3rem; }
.board__item p { margin: 0; font-size: .86rem; color: var(--text-soft); }
.board__later { float: right; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.brand__word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; color: #eef3f9; letter-spacing: .01em; }
.brand__word b { color: inherit; }
.brand__word { background: none; }
.brand__word::first-letter { color: inherit; }
.brand__word small { font-family: var(--font-body); font-size: .56rem; letter-spacing: .2em; color: var(--text-dim); font-weight: 600; text-transform: uppercase; margin-top: .3rem; }
.site-header .brand { gap: .7rem; }
@media (max-width: 520px) { .brand__word small { display: none; } .brand__word { font-size: 1.05rem; } }
.brand__word i { font-style: normal; color: #ef4444; text-shadow: 0 0 14px rgba(239, 68, 68, .35); }
.brand .brand__word > span { display: block; }
@media (max-width: 520px) { .brand .brand__word { display: none; } }

/* Forms (shared) */
.zform { display: grid; gap: 1rem; }
  .zform__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .zform label { display: block; font-size: .84rem; font-weight: 700; letter-spacing: .04em; color: var(--text); margin-bottom: .38rem; }
  .zform input, .zform select, .zform textarea {
    width: 100%; padding: .7rem .85rem; font: inherit; font-size: .94rem;
    color: var(--text); background: rgba(4, 11, 22, .7);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  }
  .zform input:focus, .zform select:focus, .zform textarea:focus {
    outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
  }
  .zform textarea { resize: vertical; min-height: 140px; }
  .zform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .zform__status { font-weight: 600; font-size: .92rem; margin: 0; }
  .zform__status[data-state="ok"] { color: var(--green); }
  .zform__status[data-state="error"] { color: var(--rose); }
.waitlist-card { padding: 1.7rem; border-color: rgba(34, 211, 238, .35); }

/* Blog comments (moderated, api/comments.php) */
.comments { margin-top: 2.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(7, 17, 31, .6); padding: clamp(1.2rem, 3vw, 1.8rem); }
.comments h2 { font-size: 1.35rem; }
.comments__intro, .comment-form .help { color: var(--text-soft); font-size: .92rem; }
.comments-list { display: grid; gap: .7rem; margin: 1rem 0 1.4rem; }
.comments-empty { color: var(--text-dim); font-size: .9rem; margin: 0; }
.comment-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; background: rgba(4, 11, 22, .6); }
.comment-card__top { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-bottom: .3rem; }
.comment-card__top time { color: var(--text-dim); }
.comment-card p { margin: 0; color: var(--text-soft); font-size: .93rem; }
.comment-form h3 { font-size: 1.05rem; }
.comment-form .form-row { margin-bottom: .8rem; }
.form-msg { font-size: .9rem; margin-top: .6rem; }
.form-msg--ok { color: var(--green); }
.form-msg--err { color: var(--rose); }

/* Guide link row */
.guide-links { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: 1.2rem; font-size: .88rem; }
.guide-links span { color: var(--text-dim); font-weight: 700; margin-right: .2rem; }
.guide-links a { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; color: var(--text-soft); background: rgba(7, 17, 31, .6); }
.guide-links a:hover { color: var(--cyan); border-color: rgba(34, 211, 238, .4); }
.article .card h3, .article .board__item h3 { margin-top: 0; }
.comment-card, .comment-card p, .comments-list { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.comments-list { grid-template-columns: minmax(0, 1fr); }

/* Elements with the hidden attribute stay hidden even when a component sets display */
[hidden] { display: none !important; }

/* Malay header button is longer than the English one */
html[lang="ms"] .header-actions .btn { width: auto; }
.brand__word small { white-space: nowrap; }
@media (max-width: 1320px) { html[lang="ms"] .brand__word small { display: none; } }

/* Credits tables */
.credits-table td { vertical-align: top; font-size: .9rem; color: var(--text-soft); }
.credits-table td:first-child { min-width: 190px; }
.credits-table td b { color: var(--text); }
.credits-table .lic { display: inline-block; white-space: nowrap; font-size: .76rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.tabs .tabs .tabs__list [role="tab"] { font-size: .82rem; padding: .38rem .8rem; }
@media (max-width: 640px) { .credits-table td:first-child { min-width: 140px; } }
