:root {
  color-scheme: dark;
  --bg: #090d16;
  --panel: #111827;
  --line: #342633;
  --text: #f8f2f5;
  --muted: #c6b6c0;
  --burgundy: #71182e;
  --crimson: #9b2d42;
  --focus: #f2bfce;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 14% 0%, rgba(113, 24, 46, .35), transparent 38rem),
    linear-gradient(180deg, #10070f 0%, var(--bg) 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 12px; border-radius: 8px; background: var(--text); color: #160a10; }
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(155, 45, 66, .42);
  background: rgba(12, 7, 14, .94);
  backdrop-filter: blur(14px);
}
.header-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 10px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.brand-name { color: #fff7fb; font-size: 17px; font-weight: 900; letter-spacing: .15em; white-space: nowrap; }
.brand-status { padding: 3px 8px; border: 1px solid rgba(242, 191, 206, .26); border-radius: 999px; color: #e9c5cf; font-size: 11px; white-space: nowrap; }
.language-switch { display: flex; gap: 4px; margin-left: auto; }
.language-switch button { min-width: 40px; min-height: 38px; padding: 6px 8px; border: 1px solid #4b3742; border-radius: 9px; color: var(--muted); background: #17121a; font-weight: 800; }
.language-switch button[aria-pressed="true"] { border-color: #c36479; color: #fff; background: #54182b; }
.primary-nav { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.primary-nav a { padding: 5px 11px; border-radius: 999px; color: #e0d4dc; font-size: 13px; text-decoration: none; }
.primary-nav a:hover { background: rgba(155, 45, 66, .2); color: #fff; }

.page-shell { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 56px; }
.panel { border: 1px solid rgba(177, 126, 145, .22); border-radius: 24px; background: linear-gradient(145deg, rgba(35, 15, 26, .96), rgba(14, 17, 27, .98)); box-shadow: 0 22px 56px rgba(0, 0, 0, .26); }
.hero { position: relative; overflow: hidden; padding: clamp(24px, 6vw, 58px); }
.hero::after { content: ""; position: absolute; width: 250px; height: 250px; right: -95px; bottom: -135px; border: 1px solid rgba(195, 100, 121, .3); border-radius: 50%; box-shadow: 0 0 0 28px rgba(113, 24, 46, .09), 0 0 0 58px rgba(113, 24, 46, .055); pointer-events: none; }
.eyebrow { margin: 0 0 10px; color: #efa9bc; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 820px; margin: 0; font-size: clamp(36px, 7vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 730px; margin: 22px 0 0; color: #e0d5dc; font-size: clamp(17px, 2vw, 20px); }
.hero-note { max-width: 730px; margin: 17px 0 0; padding-left: 14px; border-left: 3px solid var(--crimson); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.button.primary { background: linear-gradient(135deg, #85203a, #a1374e); color: #fff; }
.button.secondary { border-color: #59404a; background: rgba(18, 17, 25, .7); color: #f2e7ec; }

.section { margin-top: 52px; scroll-margin-top: 118px; }
.section-heading { max-width: 760px; margin-bottom: 20px; }
.section-heading h2, .limits h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.12; letter-spacing: -.025em; }
.section-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.status-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(18, 20, 30, .86); }
.status-pill { display: inline-flex; padding: 3px 9px; border: 1px solid rgba(242, 191, 206, .32); border-radius: 999px; color: #f0bdca; background: rgba(113, 24, 46, .2); font-size: 11px; font-weight: 800; }
.status-card h3, .step-card h3 { margin: 14px 0 6px; font-size: 19px; line-height: 1.25; }
.status-card p, .step-card p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.step-card { min-width: 0; padding: 20px; border-top: 2px solid #8b334b; border-radius: 14px; background: rgba(20, 18, 27, .85); }
.step-number { color: #f0a4b8; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.step-card h3 { margin-top: 10px; }
.limits { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 26px; margin-top: 52px; padding: clamp(20px, 4vw, 32px); }
.limits ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #ded2d9; }
.limits li { padding-left: 4px; }
.site-footer { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 0 0 28px; color: var(--muted); font-size: 12px; }
.site-footer a { color: #f0b3c2; }
.language-status { min-height: 1.4em; }

@media (min-width: 860px) {
  .header-inner { flex-wrap: nowrap; }
  .primary-nav { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 640px) {
  .header-inner { width: min(100% - 24px, 1120px); gap: 8px; padding: 9px 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; letter-spacing: .12em; }
  .brand-status { font-size: 10px; padding-inline: 6px; }
  .language-switch button { min-width: 36px; min-height: 36px; padding-inline: 6px; }
  .primary-nav { justify-content: space-between; gap: 2px; }
  .primary-nav a { padding: 5px 8px; font-size: 12px; }
  .page-shell { width: min(100% - 24px, 1060px); padding-top: 16px; }
  .hero { border-radius: 19px; }
  .status-grid, .steps, .limits { grid-template-columns: minmax(0, 1fr); }
  .section { margin-top: 38px; }
  .limits { gap: 14px; margin-top: 38px; }
  .hero-actions .button { width: 100%; }
  .site-footer { width: min(100% - 24px, 1060px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Public beta brand lockup and first-screen identity. The approved WebP artwork has a pure-black field. */
.site-header {
  background: #000;
  border-bottom-color: rgba(155, 45, 66, .5);
  backdrop-filter: none;
}
/* One approved 560x132 WebP, visually cropped twice: original crystal wordmark on
   the left and jester crest on the true viewport centre. No duplicate lettering. */
.site-header .header-inner { position: relative; min-height: 86px; }
.site-header .brand { display: block; width: 214px; height: 72px; position: relative; overflow: hidden; flex: 0 0 auto; }
.site-header .brand .brand-logo {
  display: block; position: absolute; left: -85px; top: 0;
  width: 300px; max-width: none; height: auto; aspect-ratio: 560 / 132;
  object-fit: initial;
}
.site-header .brand-status, .site-header .brand .brand-name { display: none; }
.site-header::after {
  content: ""; pointer-events: none; position: absolute; z-index: 1;
  left: 50%; top: 11px; transform: translateX(-50%);
  width: 74px; height: 74px;
  background: #000 url("/assets/brand/undersmer-header-lockup-red.webp") no-repeat left center / 344px auto;
  filter: brightness(1.2) saturate(1.14);
}
.hero.panel::after { display: none; }
.hero.panel {
  border-color: rgba(177, 126, 145, .2);
  background: #000;
  box-shadow: none;
}
.hero-grid {
  display: grid;
  grid-template-areas: "art" "copy";
  gap: 16px;
  align-items: center;
}
.hero-identity {
  grid-area: art;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
}
.hero-logo {
  display: block;
  width: min(210px, 64vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero-copy h1 { max-width: 700px; font-size: clamp(34px, 4.6vw, 58px); }
.hero-copy .lead { margin-top: 16px; }
.hero-copy .hero-actions { margin-top: 22px; }
.hero-copy .hero-note { margin-top: 18px; }
@media (min-width: 960px) {
  /* The centred crest overlays the header independently; keep link text clear. */
  .site-header .primary-nav { padding-inline-start: 96px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    grid-template-areas: "copy art";
    gap: 26px;
  }
  .hero-logo { width: min(360px, 29vw); }
}
@media (min-width: 641px) and (max-width: 959px) {
  .hero-logo { width: min(260px, 38vw); }
}
@media (max-width: 640px) {
  .site-header .header-inner { min-height: 66px; padding-top: 10px; }
  .site-header .brand { width: 132px; height: 48px; }
  .site-header .brand .brand-logo { width: 190px; left: -54px; }
  .site-header::after { top: 9px; width: 56px; height: 57px; background-size: 260px auto; }
  .site-header .primary-nav { padding-top: 5px; }
  .language-switch { margin-left: auto; flex: 0 0 auto; }
  .primary-nav { flex-basis: 100%; }
  .hero { padding: 20px 18px; }
  .hero-grid { gap: 13px; }
  .hero-logo { width: min(210px, 64vw); }
  .hero-copy h1 { font-size: clamp(32px, 8.6vw, 42px); line-height: 1.08; }
  .hero-copy .lead { margin-top: 14px; font-size: 17px; }
  .hero-copy .hero-actions { margin-top: 18px; }
  .hero-actions .button { width: 100%; }
}
