:root {
  color-scheme: dark;
  --ink: #0d1014;
  --steel: #171d24;
  --steel-2: #222a33;
  --paper: #f4ead8;
  --muted: #b9c0bc;
  --gold: #d6a94d;
  --red: #c44636;
  --green: #6fa06e;
  --line: rgba(244, 234, 216, 0.18);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  --bg: var(--ink);
  --panel: var(--steel);
  --text: var(--paper);
  --accent: var(--gold);
  --accent-strong: #f1c871;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(13, 16, 20, 0.82);
  border-bottom: 1px solid rgba(244, 234, 216, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.site-footer nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: var(--gold);
  border: 1px solid rgba(13, 16, 20, 0.45);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  justify-content: flex-end;
}

.site-menu-toggle {
  align-items: center;
  background: rgba(244, 234, 216, 0.1);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--paper);
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 42px;
  justify-content: center;
  width: 44px;
}

.site-menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.nav-links a,
.site-footer a {
  color: rgba(244, 234, 216, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--paper);
}

.nav-action,
.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-action,
.button.primary {
  background: var(--red);
  color: #fff7ed;
}

.button.secondary {
  background: rgba(244, 234, 216, 0.1);
  border: 1px solid var(--line);
  color: var(--paper);
}

.nav-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.hero {
  min-height: 78vh;
  overflow: hidden;
  position: relative;
}

.hero-art,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-art {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.96) 0%, rgba(13, 16, 20, 0.7) 46%, rgba(13, 16, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 16, 20, 0.92) 0%, rgba(13, 16, 20, 0.18) 42%, rgba(13, 16, 20, 0.48) 100%);
}

.hero-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding: 104px clamp(20px, 6vw, 88px) 44px;
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 760px;
}

h2 {
  font-size: clamp(1.39rem, 3vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(244, 234, 216, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  max-width: 620px;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 14px;
}

.hero-engine {
  color: rgba(244, 234, 216, 0.74);
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-engine a {
  color: var(--accent-strong);
  text-decoration: none;
}

.countdown {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  margin: 20px 0 26px;
  width: min(520px, 100%);
}

.countdown div,
.brief-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.countdown div {
  background: rgba(13, 16, 20, 0.54);
  padding: 14px 12px;
}

.countdown strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.countdown span,
.mini-stats dt,
.preview-card span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page {
  margin: 0 auto;
  padding: 28px 0 56px;
  width: min(1100px, calc(100vw - 32px));
}

.panel {
  background: rgba(23, 29, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.section-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: 0;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  align-items: center;
  background: rgba(15, 19, 24, 0.7);
  border: 1px dashed rgba(244, 234, 216, 0.22);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
  text-align: center;
}

.admin-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.single {
  grid-template-columns: 1fr;
}

.checks {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
}

.checks label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.align-end {
  align-items: end;
}

.muted {
  color: var(--muted);
}

.brief-section,
.feature-split,
.preview-section,
.download-section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 88px);
}

.brief-section {
  background: var(--ink);
  padding-top: clamp(34px, 5vw, 64px);
}

.section-copy,
.section-heading {
  max-width: 860px;
}

.section-copy p,
.feature-split p,
.download-section p {
  color: rgba(244, 234, 216, 0.76);
  font-size: 1.08rem;
}

.brief-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.brief-grid article {
  background: #151a20;
  padding: 24px;
}

.brief-grid article span {
  color: var(--green);
  display: block;
  font-weight: 900;
  margin-bottom: 34px;
}

.brief-grid p {
  color: rgba(244, 234, 216, 0.72);
  margin-bottom: 0;
}

.feature-split {
  align-items: center;
  background: #11161b;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

figure {
  margin: 0;
}

.feature-split figure,
.preview-card {
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-split figure {
  border-radius: 8px;
}

.feature-split img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.mini-stats {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
}

.mini-stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mini-stats dd {
  margin: 3px 0 0;
}

.preview-section {
  background: #171d24;
}

.preview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.preview-card {
  background: var(--ink);
  border-radius: 8px;
  min-height: 360px;
  position: relative;
}

.preview-card.wide {
  grid-row: span 2;
}

.preview-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.preview-card figcaption {
  background: linear-gradient(0deg, rgba(13, 16, 20, 0.9), rgba(13, 16, 20, 0));
  bottom: 0;
  left: 0;
  padding: 72px 22px 22px;
  position: absolute;
  right: 0;
}

.preview-card strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.1;
  margin-top: 6px;
}

.download-section {
  align-items: start;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 860px);
}

.download-section .eyebrow {
  color: #89512a;
}

.download-section p {
  color: rgba(13, 16, 20, 0.72);
  margin-bottom: 0;
}

.download-section .download-actions {
  margin-top: 22px;
}

.field {
  align-content: start;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: #11161b;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 8px;
  color: var(--paper);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.date-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.95fr);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(214, 169, 77, 0.72);
  box-shadow: 0 0 0 3px rgba(214, 169, 77, 0.14);
  outline: none;
}

.field-hint {
  color: rgba(244, 234, 216, 0.7);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 1.15em;
}

.field-hint.is-pending {
  color: rgba(214, 169, 77, 0.9);
}

.field-hint.is-success {
  color: #77d78a;
}

.field-hint.is-error {
  color: #ff8f8f;
}

.beta-form {
  background: var(--ink);
  border: 1px solid rgba(13, 16, 20, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(13, 16, 20, 0.18);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.beta-form .button {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.beta-form .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  color: rgba(244, 234, 216, 0.82);
  margin: 0;
}

.beta-form .form-status {
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(244, 234, 216, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 0;
  padding: 0;
}

.beta-form .form-status:not(:empty) {
  padding: 12px 14px;
}

.beta-form .form-status.is-pending {
  background: rgba(214, 169, 77, 0.14);
  border-color: rgba(214, 169, 77, 0.42);
}

.beta-form .form-status.is-success {
  background: rgba(111, 160, 110, 0.18);
  border-color: rgba(111, 160, 110, 0.5);
  color: #e9f4e8;
}

.beta-form .form-status.is-error {
  background: rgba(196, 70, 54, 0.18);
  border-color: rgba(196, 70, 54, 0.5);
  color: #ffe6df;
}

.register-grid {
  align-items: start;
  display: grid;
  gap: clamp(18px, 4vw, 42px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
}

.register-copy {
  color: rgba(244, 234, 216, 0.78);
  display: grid;
  gap: 16px;
}

.register-copy p {
  margin-bottom: 0;
}

.expectation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.expectation-list li::marker {
  color: var(--gold);
}

.account-shell {
  display: grid;
  gap: 18px;
  padding-top: 112px;
}

.account-hero {
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.96), rgba(13, 16, 20, 0.7)),
    url("/assets/king-kapture-hero.png") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 280px;
  padding: clamp(28px, 5vw, 54px);
}

.account-hero h1 {
  font-size: clamp(1.5rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

#setup-panel h2,
#login-panel h2 {
  font-size: clamp(1.04rem, 2.25vw, 2.14rem);
}

#login-panel,
#password-reset-request-panel,
#password-reset-panel {
  justify-self: center;
  width: min(620px, 100%);
}

#login-panel .portal-form.compact,
#password-reset-request-panel .portal-form.compact,
#password-reset-panel .portal-form.compact {
  max-width: none;
  width: 100%;
}

.account-dashboard {
  display: grid;
  gap: 18px;
}

.portal-panel {
  background: rgba(23, 29, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.terms-panel {
  color: rgba(244, 234, 216, 0.84);
  font-size: 1rem;
  line-height: 1.72;
}

.terms-panel h2,
.terms-panel h3 {
  color: var(--paper);
  line-height: 1.12;
  margin: 28px 0 12px;
}

.terms-panel h2:first-child,
.terms-panel h3:first-child,
.terms-panel p:first-child {
  margin-top: 0;
}

.terms-panel p {
  margin-bottom: 14px;
}

.terms-panel ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.terms-panel li {
  margin-bottom: 8px;
}

.terms-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.portal-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form.compact {
  max-width: 520px;
}

.portal-form .button,
.portal-form .form-status,
.portal-form .check-row {
  grid-column: 1 / -1;
}

.check-row {
  align-items: start;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.check-row input {
  margin-top: 5px;
}

.check-row a {
  color: var(--accent-strong);
}

.status-pill {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

button.status-pill {
  cursor: pointer;
  font-family: inherit;
}

button.status-pill:hover {
  border-color: rgba(244, 234, 216, 0.34);
}

.status-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-pill.good {
  background: rgba(111, 160, 110, 0.2);
  border-color: rgba(111, 160, 110, 0.5);
}

.status-pill.warn {
  background: rgba(214, 169, 77, 0.18);
  border-color: rgba(214, 169, 77, 0.5);
}

.status-pill.bad {
  background: rgba(196, 70, 54, 0.2);
  border-color: rgba(196, 70, 54, 0.5);
}

.portal-summary,
.download-meta,
.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-summary article,
.download-meta article,
.stat-card,
.faq-item {
  background: #11161b;
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.portal-summary span,
.download-meta span,
.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.portal-summary strong,
.download-meta strong,
.stat-card strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.portal-summary strong {
  font-size: clamp(0.54rem, 1.2vw, 0.88rem);
}

.summary-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-card-head span {
  margin-bottom: 0;
}

.summary-card-spacer {
  flex: 0 0 70px;
  min-height: 30px;
}

.summary-pill {
  background: rgba(244, 234, 216, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  min-height: 30px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.summary-pill:hover {
  border-color: rgba(244, 234, 216, 0.34);
}

.summary-pill:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.modal-screen {
  align-items: center;
  background: rgba(5, 7, 10, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.modal-panel {
  background: rgba(23, 29, 36, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  width: min(520px, 100%);
}

.modal-form {
  grid-template-columns: 1fr;
}

.download-meta strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.compatibility-card {
  background: rgba(15, 19, 24, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.compatibility-card.good {
  background: rgba(111, 160, 110, 0.14);
  border-color: rgba(111, 160, 110, 0.46);
}

.compatibility-card.warn {
  background: rgba(214, 169, 77, 0.14);
  border-color: rgba(214, 169, 77, 0.46);
}

.compatibility-card span {
  color: var(--paper);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.compatibility-card p {
  color: rgba(244, 234, 216, 0.78);
  margin: 0;
}

.defender-guide {
  background: rgba(15, 19, 24, 0.9);
  border: 1px solid rgba(214, 169, 77, 0.34);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 16px;
}

.defender-guide-copy {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.defender-guide .eyebrow,
.defender-guide h3,
.defender-guide p {
  margin: 0;
}

.defender-guide h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.defender-guide p {
  color: rgba(244, 234, 216, 0.78);
}

.defender-guide strong {
  color: var(--accent-strong);
}

.defender-guide-image {
  background: #064976;
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 6px;
  height: auto;
  width: min(750px, 100%);
}

.beta-expectations {
  background: rgba(17, 22, 27, 0.94);
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  padding: 16px;
}

.beta-expectations .eyebrow,
.beta-expectations h3,
.beta-expectations p {
  margin: 0;
}

.beta-expectations div {
  display: grid;
  gap: 8px;
}

.beta-expectations h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.beta-expectations p,
.beta-expectations-list {
  color: rgba(244, 234, 216, 0.78);
}

.beta-expectations-list {
  align-self: center;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.beta-expectations-list li::marker {
  color: var(--gold);
}

.stat-card p,
.faq-item p {
  color: rgba(244, 234, 216, 0.74);
  margin: 8px 0 0;
}

.faq-search {
  max-width: 620px;
}

.collapsible-panel {
  gap: 0;
}

.collapsible-head {
  align-items: center;
}

.collapsible-body {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item mark {
  background: rgba(214, 169, 77, 0.28);
  border-radius: 4px;
  color: var(--paper);
  padding: 0 2px;
}

.site-footer {
  align-items: center;
  background: #0a0d10;
  border-top: 1px solid rgba(244, 234, 216, 0.12);
  color: rgba(244, 234, 216, 0.7);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 88px);
}

.site-footer-brand {
  display: grid;
  gap: 4px;
}

.site-footer-brand span {
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer-brand p {
  color: rgba(244, 234, 216, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.site-footer-brand a {
  color: var(--accent-strong);
  font-size: inherit;
  text-decoration: none;
  text-transform: none;
}

.site-footer nav {
  gap: 18px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    background: rgba(13, 16, 20, 0.98);
    border: 1px solid rgba(244, 234, 216, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    gap: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    justify-items: stretch;
    overflow: hidden;
    width: 100%;
  }

  .site-header.is-open .nav-links {
    display: grid;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(244, 234, 216, 0.1);
    padding: 14px 16px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-action {
    justify-self: end;
  }

  .site-menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .admin-grid,
  .brief-grid,
  .feature-split,
  .portal-form,
  .portal-summary,
  .beta-expectations,
  .download-meta,
  .preview-grid,
  .stats-grid,
  .register-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .feature-split {
    padding-top: 74px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.82rem;
    min-width: 0;
  }

  .brand span:last-child {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-summary strong {
    font-size: 0.92rem;
    line-height: 1.24;
  }

  .date-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-action {
    display: none;
  }

  .site-header.is-open .nav-action {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding: 82px 16px 30px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5.8rem);
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .preview-card {
    min-height: 300px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
