/* airprem landing. Ported from airprem-kit/web (globals.css + landing.module.css).
   Colors come only from the tokens below (brand rule). */

/* airprem design tokens. Source of truth: airprem-kit/brand/tokens.json */
:root {
  --ink: #1e1c1a;
  --ivory: #f4f1eb;
  --paper: #fbfaf8;
  --linen: #eae4da;
  --chassis: #d9d8d4;
  --wheat: #d9a84e;
  --amber: #c98f3a;
  --brick: #a8432f;
  --accent-app: #c2410c;
  --accent-site: #2f3e5c;
  --sage: #6e7f64;
  --ok: #2fa36b;
  --ok-on-dark: #7cd69e;
  --warn: #e0a022;
  --alert: #d9342b;
  --text-muted: #4a4540;
  --text-subtle: #6e675f;
  --rule: #d3d0c9;

  --font-ui: "Nunito", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Landing-only tokens (literals from landing.module.css, named here). */
  --rule-soft: #b8b0a4;
  --rule-warm: #c9c0b2;
  --rule-spec: #e3ded5;
  --error: #a8241d;
  --metal-1: #f3f2ef;
  --metal-2: #dcdad5;
  --metal-3: #eceae6;
  --metal-4: #d2d0ca;
  --metal-edge: #bebbb4;
  --key-bottom: #e9e7e2;
  --ok-dot: #3e8e63;
  --screen-label: #a8a097;
  --screen-rule: #3a3632;
  --screen-note: #d8d2c9;
  --white: #ffffff;
  --shadow-warm: rgba(40, 34, 26, 0.14);
  --shadow-warm-soft: rgba(40, 34, 26, 0.08);
  --shade: rgba(0, 0, 0, 0.06);
  --shade-deep: rgba(0, 0, 0, 0.5);
  --gloss: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-site);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-serif);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Page */
.page {
  background: var(--ivory);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
}

/* Header */
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.logo {
  display: block;
  height: 36px;
  width: auto;
}
.wordmark {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--accent-site);
}
.nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--ink);
  font-weight: 700;
}

/* Shared type */
.eyebrow {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 0;
}
.h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.h1 em,
.h2 em,
.quote em {
  font-weight: 300;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 112px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 72px;
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  color: var(--text-subtle);
}
.kicker > span:first-child {
  white-space: nowrap;
}
.kicker-rule {
  flex: 0 0 auto;
  width: 40px;
  height: 1px;
  background: var(--rule-soft);
}
.hero-body {
  margin: 0;
  max-width: 500px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}
.hero-visual {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.caption {
  font-size: 14px;
  font-style: italic;
  color: var(--text-subtle);
  margin: 0;
}

/* Form */
#join {
  scroll-margin-top: 24px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
  padding-top: 8px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}
.field {
  flex: 999 1 240px;
  min-width: 0;
  height: 52px;
  padding: 0 2px;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.field::placeholder {
  color: var(--text-subtle);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: var(--accent-site);
  color: var(--ivory);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.help {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
}
.help.is-error {
  color: var(--error);
}
.thanks {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  max-width: 500px;
}
.thanks-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 300;
}
.thanks-body {
  margin: 0;
  color: var(--text-muted);
}

/* Brushed-metal product panel */
.metal {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 28px;
  background: linear-gradient(175deg, var(--metal-1) 0%, var(--metal-2) 48%, var(--metal-3) 52%, var(--metal-4) 100%);
  box-shadow: inset 0 1px 0 var(--gloss), inset 0 -1px 0 var(--shade), 0 2px 0 var(--metal-edge),
    0 28px 50px var(--shadow-warm);
}
.float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.metal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.metal-title {
  display: block;
  height: 18px;
  width: auto;
}
.metal-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.dot-ok {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-dot);
  display: inline-block;
}
.window {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 3px 8px var(--shade-deep);
}
.window-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--screen-label);
}
.big-number {
  margin: 0;
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
}
.big-number span {
  font-size: 28px;
}
.meter {
  height: 3px;
  background: var(--screen-rule);
  border-radius: 2px;
}
.meter-fill {
  width: 64%;
  height: 100%;
  background: var(--ivory);
  border-radius: 2px;
}
.window-note {
  margin: 0;
  border-top: 1px solid var(--screen-rule);
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--screen-note);
}
.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 2px 4px;
}
.key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--paper), var(--key-bottom));
  box-shadow: inset 0 1px 0 var(--white), 0 2px 0 var(--metal-edge), 0 4px 8px var(--shadow-warm-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}
.key-accent {
  color: var(--accent-site);
  font-weight: 800;
}

/* Ownership band */
.band {
  background: var(--linen);
  padding: 96px 0;
}
.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}
.figure {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.node-illustration {
  width: 100%;
  height: auto;
}
.figure figcaption {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}
.band .eyebrow {
  color: var(--text-muted);
}
.band-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.band-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid var(--rule-warm);
  padding-top: 16px;
}
.values p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.values p:first-child {
  font-size: 22px;
  color: var(--ink);
}

.accent-fill {
  fill: var(--accent-site);
}
.accent-stroke {
  stroke: var(--accent-site);
}

/* Generic section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 112px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
.lede {
  margin: 0;
  max-width: 380px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Configurator: real radios styled as chips */
.config-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.config-choices {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.fieldset legend {
  margin-bottom: 16px;
  padding: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.chip:hover {
  border-color: var(--ink);
}
.chip:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent-site);
  outline-offset: 3px;
}
.note {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-subtle);
}
.config-grid .metal {
  flex: 1 1 380px;
  max-width: none;
}
.spec {
  background: var(--paper);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 1px 3px var(--shade);
}
.spec-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dep-icon {
  flex: 0 0 auto;
}
.spec-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}
.spec-sub {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-subtle);
}
.spec-list {
  margin: 0;
  border-top: 1px solid var(--rule-spec);
}
.spec-list div {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-spec);
}
.spec-list div:last-child {
  border-bottom: none;
}
.spec-list dt {
  flex: 0 0 92px;
  font-size: 11px;
  color: var(--text-subtle);
  padding-top: 3px;
}
.spec-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.btn-block {
  width: 100%;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.step-num {
  font-size: 26px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent-site);
}

/* Closing */
.closing {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 64px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Footer */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-subtle);
}
.footer .serif {
  font-style: italic;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-site);
}

/* Small screens (360px): tighter gutters so nothing overflows. */
@media (max-width: 520px) {
  .header,
  .hero,
  .band-inner,
  .section,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    gap: 48px;
    padding-bottom: 80px;
  }
  .hero-copy,
  .hero-visual,
  .figure,
  .band-copy,
  .config-choices,
  .config-grid .metal {
    flex-basis: 100%;
  }
  .section {
    padding-top: 80px;
  }
  .band {
    padding: 72px 0;
  }
  .btn {
    width: 100%;
  }
  .metal {
    padding: 16px;
  }
  .spec-list dt {
    flex-basis: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
