/* PolymarKit holding site. Colours and type follow the approved brand tokens
   (PolymarKit_Brand_Handoff/06_Source/brand-tokens.css); layout follows 03_Website/starter. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pm-ink: #061015;
  --pm-midnight: #08141b;
  --pm-card: #0c1b24;
  --pm-card-raised: #10222f;
  --pm-aqua: #00e5ce;
  --pm-aqua-soft: #55f5e4;
  --pm-blue: #2c98ff;
  --pm-purple: #8654ff;
  --pm-white: #f6f9fa;
  --pm-muted: #9db1be;
  --pm-line: #24414e;
  --pm-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pm-radius-card: 18px;
  --pm-radius-button: 12px;

  /* Derived UI values (from the approved starter). */
  --text-soft: #bed0d8;
  --text-faint: #849aa5;
  --purple-text: #ac8bff; /* accessible purple for text on dark surfaces */
  --field-border: #30505e;
  --danger: #ff9b9b;
  --button-text: #01191a;
  --gutter: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 68% 12%, rgba(0, 229, 206, 0.07), transparent 42%),
    linear-gradient(180deg, var(--pm-ink) 0%, var(--pm-ink) 70%, #08131a 100%);
  background-color: var(--pm-ink);
  color: var(--pm-white);
  font-family: var(--pm-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--pm-aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1220px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pm-aqua);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  color: var(--pm-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.accent {
  color: var(--pm-aqua);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Buttons ------------------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--pm-radius-button);
  background: var(--pm-aqua);
  color: var(--button-text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s,
    filter 0.18s,
    background-color 0.18s;
}

.button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.button-small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

.button-secondary {
  background: transparent;
  color: var(--pm-white);
  box-shadow: inset 0 0 0 1px var(--field-border);
}

.button-secondary:hover {
  background: rgba(157, 177, 190, 0.08);
  filter: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pm-aqua);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Header ------------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(157, 177, 190, 0.09);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
  border-radius: 6px;
}

/* Logo widths keep the approved scale: the SVG canvas is 613.5/604 of the original
   (236px, 208px, 160px and 180px) since the r–K gap was opened. */
.brand img {
  display: block;
  width: 239.7px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #d7e0e4;
  font-size: 14px;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  white-space: nowrap;
}

.header-cta .label-short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: transparent;
  color: var(--pm-white);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

/* Hero --------------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 24px;
  min-height: 640px;
  padding-block: 40px 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 28px 0 26px;
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 550px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.independence {
  margin-top: 22px;
  color: #8ba3af;
  font-size: 13px;
}

.hero-art {
  position: relative;
  margin-right: -48px;
  display: flex;
  justify-content: center;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% -6% 10% 6%;
  background: radial-gradient(ellipse at 60% 50%, rgba(0, 229, 206, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-art picture {
  position: relative;
  display: block;
  width: min(100%, 640px);
}

.hero-art img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.45));
  /* The approved art is cropped from the reference screenshot: feather its edges into the page
     (the left fade also hides a sliver of headline text captured in the crop). */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 13%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 13%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

/* Signup form -------------------------------------------------------------------------- */

.signup {
  position: relative;
  max-width: 570px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pm-white);
  font-size: 14px;
  font-weight: 600;
}

.signup-row {
  display: flex;
  align-items: stretch;
  min-height: 60px;
  border: 1px solid var(--field-border);
  border-radius: var(--pm-radius-button);
  background: rgba(4, 15, 21, 0.84);
  transition: border-color 0.18s;
}

.signup-row:focus-within {
  border-color: var(--pm-aqua);
}

.signup[data-state='error'] .signup-row:has(input[aria-invalid='true']) {
  border-color: var(--danger);
}

.signup-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.signup-field .icon-mail {
  width: 22px;
  height: 22px;
  margin: 0 12px 0 18px;
  color: #a4b8c2;
}

.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--pm-white);
  font-size: 16px;
}

.signup input[type='email']::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.signup-submit {
  flex: none;
  min-height: 0;
  margin: 4px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 15px;
  white-space: nowrap;
}

.signup-submit[disabled] {
  cursor: progress;
  filter: saturate(0.6);
  transform: none;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(1, 25, 26, 0.3);
  border-top-color: var(--button-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.signup[data-state='loading'] .spinner {
  display: inline-block;
}

.signup[data-state='loading'] .icon-arrow {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 10px;
  color: var(--pm-muted);
  font-size: 14px;
}

.signup[data-state='error'] .form-status {
  color: var(--danger);
  font-weight: 600;
}

.form-note {
  margin-top: 12px;
  color: var(--pm-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.form-note a {
  color: var(--pm-white);
  text-underline-offset: 2px;
}

.turnstile-slot {
  margin-top: 12px;
}

.signup-success {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 229, 206, 0.35);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(0, 229, 206, 0.1), rgba(6, 18, 23, 0.9));
  outline: none;
}

.signup-success[hidden],
.signup-body[hidden] {
  display: none;
}

.success-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 229, 206, 0.14);
  color: var(--pm-aqua);
}

.success-title {
  margin-bottom: 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.signup-success p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.signup-success strong {
  color: var(--pm-white);
  word-break: break-all;
}

.signup-success .success-hint {
  margin: 8px 0 12px;
  color: var(--pm-muted);
  font-size: 13px;
}

/* Honeypot: off-screen for people, still present for naive bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sections ----------------------------------------------------------------------------- */

section h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  letter-spacing: -0.025em;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-top h2 {
  margin-top: 14px;
}

.section-top > p {
  max-width: 360px;
  color: var(--pm-muted);
  font-size: 15px;
}

.modules {
  padding-block: 24px 110px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.module {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 28px 24px;
  border: 1px solid #1b4350;
  border-radius: var(--pm-radius-card);
  background: linear-gradient(144deg, #0c2029, #061217);
}

.module-blue {
  border-color: #183b5a;
  background: linear-gradient(144deg, #0b1d2c, #061217);
}

.module-purple {
  border-color: #30234c;
  background: linear-gradient(144deg, #120f26, #061217);
}

.module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 229, 206, 0.27);
  border-radius: 12px;
  background: rgba(0, 229, 206, 0.07);
}

.module-icon img {
  width: 36px;
  height: 36px;
}

.module-blue .module-icon {
  border-color: rgba(44, 152, 255, 0.3);
  background: rgba(44, 152, 255, 0.07);
}

.module-purple .module-icon {
  border-color: rgba(134, 84, 255, 0.32);
  background: rgba(134, 84, 255, 0.08);
}

.module-number {
  color: var(--pm-aqua);
  font-size: 15px;
  font-weight: 700;
}

.module-blue .module-number {
  color: var(--pm-blue);
}

.module-purple .module-number {
  color: var(--purple-text);
}

.module h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.module p {
  margin-bottom: 24px;
  color: #b5c9d2;
  font-size: 15px;
  line-height: 1.6;
}

.module-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(157, 177, 190, 0.12);
}

.module-tagline {
  color: var(--pm-aqua);
  font-size: 14px;
  font-weight: 700;
}

.module-blue .module-tagline {
  color: var(--pm-blue);
}

.module-purple .module-tagline {
  color: var(--purple-text);
}

.status-pill {
  padding: 4px 10px;
  border: 1px solid rgba(157, 177, 190, 0.25);
  border-radius: 999px;
  color: var(--pm-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-panel {
  padding: 80px 72px;
  border: 1px solid #1a3943;
  border-radius: 24px;
  background: radial-gradient(circle at 82% 30%, rgba(0, 229, 206, 0.08), transparent 34%), #0b1b24;
}

.feature-panel h2 {
  margin: 20px 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.feature-lead {
  max-width: 780px;
  color: var(--pm-muted);
  font-size: 18px;
  line-height: 1.6;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.point-grid li {
  padding-top: 20px;
  border-top: 1px solid #2a4a57;
}

.point-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.point-grid p {
  color: var(--pm-muted);
  font-size: 15px;
  line-height: 1.6;
}

.process {
  padding-block: 110px 96px;
}

.process h2 {
  margin-top: 14px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  padding-top: 26px;
  border-top: 1px solid #31515f;
}

.process-step {
  font-weight: 700;
}

.step-aqua {
  color: var(--pm-aqua);
}

.step-blue {
  color: var(--pm-blue);
}

.step-purple {
  color: var(--purple-text);
}

.process-grid h3 {
  margin: 16px 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.process-grid p {
  color: var(--pm-muted);
  font-size: 16px;
  line-height: 1.6;
}

.about {
  padding-bottom: 96px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding-top: 56px;
  border-top: 1px solid #1b343d;
}

.about h2 {
  margin-top: 14px;
}

.about-copy p {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.about-copy .about-note {
  color: var(--pm-muted);
  font-size: 14px;
}

.early-access {
  padding-bottom: 88px;
  scroll-margin-top: 24px;
}

.early-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 52px;
  border: 1px solid #295563;
  border-radius: 22px;
  background: linear-gradient(110deg, #0a252a, #092025);
}

.early-access-copy h2 {
  margin: 14px 0 12px;
}

.early-access-copy > p {
  color: var(--pm-muted);
  font-size: 17px;
}

.list-title {
  margin: 28px 0 12px;
  font-size: 16px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--pm-muted);
  font-size: 15px;
  line-height: 1.55;
}

.check-list li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--pm-aqua);
  border-left: 2px solid var(--pm-aqua);
  transform: rotate(-45deg);
}

.check-list strong {
  color: var(--pm-white);
}

.early-access-form {
  padding: 28px;
  border: 1px solid rgba(157, 177, 190, 0.14);
  border-radius: 16px;
  background: rgba(6, 16, 21, 0.55);
}

/* Footer ------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid #1b343d;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand img {
  display: block;
  width: 182.8px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #c6d4da;
  text-decoration: none;
}

.footer-legal {
  padding-bottom: 36px;
}

/* Status pages ------------------------------------------------------------------------- */

.status-wrap {
  display: grid;
  place-items: center;
  padding-block: 72px 96px;
}

.status-card {
  width: min(100%, 640px);
  padding: 44px;
  border: 1px solid var(--pm-line);
  border-radius: 22px;
  background: linear-gradient(150deg, #0c1f28, #071319);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(0, 229, 206, 0.12);
  color: var(--pm-aqua);
}

.status-icon .icon {
  width: 26px;
  height: 26px;
}

.status-warning .status-icon {
  background: rgba(44, 152, 255, 0.14);
  color: var(--pm-blue);
}

.status-error .status-icon {
  background: rgba(255, 155, 155, 0.12);
  color: var(--danger);
}

.status-card h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
}

.status-card p {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.6;
}

.status-card p.muted {
  color: var(--pm-muted);
  font-size: 15px;
}

.status-card a:not(.button) {
  color: var(--pm-aqua);
}

.status-code {
  color: var(--pm-aqua);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.status-error-message {
  color: var(--danger) !important;
  font-weight: 600;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.status-form {
  margin: 0;
}

.status-card .signup {
  margin-top: 20px;
}

.mini-modules {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.mini-modules li {
  padding: 12px 16px;
  border-left: 3px solid var(--pm-aqua);
  border-radius: 4px 10px 10px 4px;
  background: rgba(157, 177, 190, 0.05);
  color: var(--pm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.mini-modules strong {
  display: block;
  color: var(--pm-aqua);
  font-size: 15px;
}

.mini-modules .mini-blue {
  border-color: var(--pm-blue);
}

.mini-modules .mini-blue strong {
  color: var(--pm-blue);
}

.mini-modules .mini-purple {
  border-color: var(--pm-purple);
}

.mini-modules .mini-purple strong {
  color: var(--purple-text);
}

/* Privacy policy ----------------------------------------------------------------------- */

.page-narrow {
  padding-block: 56px 96px;
}

.prose {
  max-width: 780px;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.prose h1 {
  margin: 12px 0 8px;
  color: var(--pm-white);
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 40px 0 12px;
  color: var(--pm-white);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--pm-white);
}

.prose a {
  color: var(--pm-aqua);
}

.prose .meta {
  color: var(--pm-muted);
  font-size: 14px;
}

mark.todo {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(134, 84, 255, 0.2);
  color: #ddd2ff;
  font-weight: 600;
}

/* Responsive --------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-nav ul {
    gap: 22px;
  }

  .brand img {
    width: 211.3px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .module {
    padding: 24px;
  }

  .early-access-panel {
    gap: 32px;
    padding: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  /* With JavaScript, the primary nav collapses behind a menu button. Without it, it wraps. */
  .site-header.has-nav-toggle .nav-toggle {
    display: inline-flex;
  }

  .site-header.has-nav-toggle .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--pm-line);
    background: var(--pm-midnight);
  }

  .site-header.has-nav-toggle .site-nav.is-open {
    display: block;
  }

  .site-header.has-nav-toggle .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.has-nav-toggle .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(157, 177, 190, 0.1);
    font-size: 16px;
  }

  .site-header:not(.has-nav-toggle) .header-inner {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .site-header:not(.has-nav-toggle) .site-nav {
    order: 3;
    width: 100%;
  }

  .site-header:not(.has-nav-toggle) .site-nav ul {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 48px 40px;
  }

  .hero-art {
    order: 2;
    margin: 0 auto;
    width: min(100%, 520px);
  }

  .hero-art::before {
    inset: 8% 0 10% 0;
  }

  .module-grid,
  .point-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-top {
    display: block;
  }

  .section-top > p {
    margin-top: 10px;
  }

  .modules {
    padding-block: 24px 72px;
  }

  .module {
    min-height: 0;
  }

  .feature-panel {
    padding: 48px 32px;
  }

  .process {
    padding-block: 72px;
  }

  .about-grid,
  .early-access-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    gap: 20px;
    padding-top: 40px;
  }

  .about {
    padding-bottom: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .header-inner {
    min-height: 76px;
    gap: 10px;
  }

  /* The brand guide's minimum width for the horizontal logo (160px at the original canvas). */
  .brand img {
    width: 162.5px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-cta .label-full,
  .header-cta .icon-arrow {
    display: none;
  }

  .header-cta .label-short {
    display: inline;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(40px, 11.5vw, 56px);
  }

  .hero-lead {
    font-size: 16px;
  }

  /* Stack the email field and button so both stay comfortably tappable. */
  .signup-row {
    flex-direction: column;
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .signup-row:focus-within {
    border-color: transparent;
  }

  .signup-field {
    min-height: 56px;
    border: 1px solid var(--field-border);
    border-radius: var(--pm-radius-button);
    background: rgba(4, 15, 21, 0.84);
  }

  .signup-field:focus-within {
    border-color: var(--pm-aqua);
  }

  .signup[data-state='error'] .signup-field:has(input[aria-invalid='true']) {
    border-color: var(--danger);
  }

  .signup input[type='email'] {
    min-height: 54px;
  }

  .signup-submit {
    min-height: 54px;
    margin: 0;
    border-radius: var(--pm-radius-button);
  }

  .feature-panel {
    padding: 36px 22px;
  }

  .feature-panel h2 {
    font-size: 36px;
  }

  .early-access-panel {
    padding: 28px 20px;
  }

  .early-access-form {
    padding: 20px 16px;
  }

  .status-wrap {
    padding-block: 40px 64px;
  }

  .status-card {
    padding: 28px 22px;
  }

  .status-actions .button,
  .status-form,
  .status-form .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }
}

/* Very narrow screens: the hero signup form sits directly below the header. */
@media (max-width: 350px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
