/* ============================================================
   astrocrew.ai — site.css
   Design system for the marketing site, from DESIGN-GUIDE.md.
   Two palettes: Night Shift (navy sections), Mission Control (paper).
   Fonts are self-hosted from ../assets/fonts/ (OFL licences beside
   them). No CDNs, no third-party scripts.
   ============================================================ */

/* ---------- Fonts (self-hosted; system fallbacks below) ---------- */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-wdth-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../assets/fonts/AtkinsonHyperlegibleNext-wght.woff2')
    format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Mission Control (paper sections) */
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #3a4658;
  --muted: #5b687b;
  --border: #b4becc;
  --border-soft: #d9dfe7;
  --beacon: #f0a43a;
  --beacon-text: #9a5a00;
  --orbit: #2f5d9a;
  --go: #2e7a55;
  --no-go: #b23b2e;

  /* Night Shift (navy sections) */
  --navy-paper: #0b1220;
  --navy-surface: #121b2d;
  --navy-ink: #e8edf5;
  --navy-ink-2: #b4bfd0;
  --navy-muted: #8794a8;
  --navy-border: rgba(232, 237, 245, 0.14);
  --navy-beacon: #ffb547;
  --navy-orbit: #86ace8;
  --navy-orbit-dim: rgba(134, 172, 232, 0.25);

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', 'Arial Nova', Arial, sans-serif;
  --font-body:
    'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui,
    -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale (desktop; phone overrides near the bottom) */
  --fs-hero: 72px;
  --lh-hero: 76px;
  --fs-h2: 44px;
  --lh-h2: 52px;
  --fs-h3: 24px;
  --lh-h3: 32px;
  --fs-lede: 20px;
  --lh-lede: 32px;
  --fs-body: 18px;
  --lh-body: 30px;
  --fs-small: 15px;
  --lh-small: 24px;
  --fs-eyebrow: 13px;

  /* Layout */
  --max-w: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --radius: 12px;
  --radius-lg: 14px;
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--orbit);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--orbit);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--beacon);
  color: var(--ink);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--navy-ink);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: top var(--motion-fast) var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* ---------- Palette contexts ---------- */

.tone-navy {
  background: var(--navy-paper);
  color: var(--navy-ink);
}
.tone-navy a {
  color: var(--navy-orbit);
}
.tone-navy :focus-visible {
  outline-color: var(--navy-orbit);
}
.tone-navy ::selection {
  background: var(--navy-beacon);
  color: var(--navy-paper);
}
.tone-navy .eyebrow {
  color: var(--navy-beacon);
}
.tone-navy .lede {
  color: var(--navy-ink-2);
}
.tone-navy .section-lede {
  color: var(--navy-ink-2);
}
/* Paper sections sit inside the navy body: take Mission Control back. */
.tone-paper a {
  color: var(--orbit);
}
.tone-paper :focus-visible {
  outline-color: var(--orbit);
}
.tone-paper ::selection {
  background: var(--beacon);
  color: var(--ink);
}
.tone-paper .eyebrow {
  color: var(--beacon-text);
}
.tone-paper .lede,
.tone-paper .section-lede {
  color: var(--ink-2);
}

/* Paper sections sit inside a navy body, so they re-declare Mission Control. */
.tone-paper {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Layout: 12-column grid ---------- */

.container {
  max-width: calc(var(--max-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.col-3 {
  grid-column: span 3;
}
.col-4 {
  grid-column: span 4;
}
.col-5 {
  grid-column: span 5;
}
.col-6 {
  grid-column: span 6;
}
.col-7 {
  grid-column: span 7;
}
.col-8 {
  grid-column: span 8;
}

.section {
  padding-block: var(--section-y);
}
.section-tight {
  padding-block: calc(var(--section-y) * 0.6);
}

/* Section reveal: fades in, rises 8px, 240ms ease-out, once only.
   The .is-visible class is added by a tiny observer script per page. */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: inherit;
  margin: 0;
}
.display {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  font-stretch: expanded;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  font-stretch: expanded;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
}
.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--ink-2);
}
.body-copy {
  max-width: 65ch;
}
.small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  font-stretch: expanded;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beacon-text);
  margin: 0 0 12px;
}

/* Section header: eyebrow + H2 + lede */
.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-header .lede {
  margin: 16px 0 0;
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}

/* Beacon amber is the one CTA colour; at most one per view. */
.btn-primary {
  background: var(--beacon);
  color: var(--ink);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--beacon), black 8%);
}
.tone-navy .btn-primary {
  background: var(--navy-beacon);
  color: var(--navy-paper);
}
.tone-navy .btn-primary:hover {
  background: color-mix(in oklab, var(--navy-beacon), black 8%);
}
.tone-paper .btn-primary {
  background: var(--beacon);
  color: var(--ink);
}
.tone-paper .btn-primary:hover {
  background: color-mix(in oklab, var(--beacon), black 8%);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: color-mix(in oklab, currentColor, transparent 92%);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 18px;
}

/* Text link styled as a quiet action */
.link-quiet {
  font-weight: 600;
  text-decoration: none;
}
.link-quiet:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--navy-paper), transparent 12%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  transition: background-color var(--motion-base) var(--ease-out);
}
/* Solid paper once scrolled; the page script toggles .is-scrolled on scroll. */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--navy-paper), transparent 4%);
  border-bottom-color: var(--navy-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-ink);
}
.lockup img {
  width: 32px;
  height: 32px;
}
.lockup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.lockup-by {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy-muted);
  letter-spacing: 0.06em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}
.header-nav a {
  color: var(--navy-ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav a:hover {
  color: var(--navy-ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-actions .signin {
  color: var(--navy-ink-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-actions .signin:hover {
  color: var(--navy-ink);
}

/* Phone menu sheet */
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  color: var(--navy-ink);
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px auto;
  transition:
    transform var(--motion-fast) var(--ease-out),
    opacity var(--motion-fast) var(--ease-out);
}
.menu-toggle[aria-expanded='true'] .bars {
  transform: none;
}
.menu-toggle[aria-expanded='true'] .bars::before {
  transform: translateY(-6px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .bars::after {
  transform: translateY(6px) rotate(-45deg);
}
.menu-toggle[aria-expanded='true'] .bars {
  background: transparent;
}
.menu-sheet {
  display: none;
  border-top: 1px solid var(--navy-border);
  background: var(--navy-surface);
  padding: 8px var(--gutter) 24px;
}
.menu-sheet.is-open {
  display: block;
}
.menu-sheet a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--navy-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 1px solid var(--navy-border);
}
.menu-sheet a:last-child {
  border-bottom: none;
}

/* ---------- Hero (structure now; poster/video slotted later) ---------- */

.hero {
  padding-top: 120px;
  padding-bottom: var(--section-y);
  text-align: center;
}
.hero .display {
  max-width: 15ch;
  margin-inline: auto;
}
.hero .lede {
  max-width: 62ch;
  margin: 24px auto 0;
}
.hero-media {
  margin: 48px auto 0;
  max-width: 960px;
}
.hero-media img,
.hero-media video {
  border-radius: var(--radius-lg);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Cards: shared surface ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--motion-fast) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
}
.card-body {
  padding: 24px;
}

/* ---------- Step card (How it works) ---------- */

.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--beacon);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 {
  padding-inline: 24px;
}
.step-card p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.step-shot {
  margin: 0;
  padding: 0 24px;
}
/* Decorative crop to 3:2: the full app frames are 16:9; these are mood crops, not content images. */
.step-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
}

/* ---------- Crew card ---------- */

.crew-card {
  text-align: center;
  padding: 32px 24px;
}
.crew-chip {
  width: 120px;
  height: 120px;
  margin-inline: auto;
}
.crew-chip img,
.crew-chip svg {
  width: 100%;
  height: 100%;
}
.crew-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 20px;
  margin: 16px 0 2px;
}
.crew-role {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beacon-text);
  margin: 0 0 10px;
}
/* Suit colours only on crew labels, never as backgrounds. */
.crew-role--lyra {
  color: #2f5d9a;
}
.crew-role--sirius {
  color: var(--beacon-text);
}
.crew-role--nova {
  color: #6d62a8;
}
.crew-role--vega {
  color: #2e7a55;
}
.crew-line {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.crew-gear {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Feature row (product shot + copy, alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: 96px;
}
.feature-copy {
  grid-column: span 5;
}
.feature-shot {
  grid-column: span 7;
}
.feature-row--flip .feature-copy {
  order: 2;
}
.feature-row--flip .feature-shot {
  order: 1;
}
.feature-copy h3 {
  margin-bottom: 12px;
}
.feature-copy p {
  margin: 0;
  color: var(--ink-2);
}
.feature-copy .small {
  margin-top: 12px;
}

/* Device frame for product shots */
.device-frame {
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(14, 23, 38, 0.14);
}
.device-frame img {
  border-radius: 8px;
  width: 100%;
}
.device-frame figcaption {
  padding: 12px 4px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--navy-muted);
  letter-spacing: 0.04em;
}

/* ---------- Approval demo card (Your go) ---------- */

.approval-demo {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(14, 23, 38, 0.1);
}
/* Beacon marker at the top edge */
.approval-demo::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--beacon);
}
.approval-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 0;
}
.approval-agent {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--beacon);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approval-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 18px;
}
.approval-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beacon-text);
  border: 1px solid color-mix(in srgb, var(--beacon), transparent 55%);
  border-radius: 999px;
  padding: 5px 12px;
}
.approval-body {
  padding: 16px 24px 24px;
}
.approval-file {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 4px;
}
.approval-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.approval-using {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--border-soft);
}
.approval-using li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 3px 0 3px 16px;
  position: relative;
}
.approval-using li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--beacon-text);
}
.approval-note {
  margin: 16px 0 0;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.approval-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.approval-approve {
  background: var(--go);
  color: #ffffff;
}
.approval-approve:hover {
  background: color-mix(in oklab, var(--go), black 8%);
}
.approval-reject {
  background: transparent;
  color: var(--no-go);
  border-color: var(--no-go);
}
.approval-reject:hover {
  background: color-mix(in srgb, var(--no-go), transparent 92%);
}
.approval-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.approval-log {
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* Demo state chips (go / no-go always carry a word) */
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.state-chip--go {
  color: var(--go);
}
.state-chip--nogo {
  color: var(--no-go);
}

/* ---------- Privacy band (navy) ---------- */

.privacy-band .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.fact {
  padding: 24px;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
}
.fact-icon {
  width: 32px;
  height: 32px;
  color: var(--navy-orbit);
  margin-bottom: 16px;
}
.fact-icon svg {
  width: 100%;
  height: 100%;
}
.fact h3 {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 8px;
}
.fact p {
  margin: 0;
  color: var(--navy-ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.privacy-extra {
  margin-top: 32px;
  color: var(--navy-muted);
  font-size: var(--fs-small);
}
.privacy-extra a {
  color: var(--navy-orbit);
}

/* ---------- Can-do checklist (What your crew can do today) ---------- */

.can-do-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.can-do-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
}
.can-do-row:first-child {
  border-top: none;
  padding-top: 0;
}
.can-do-icon {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--orbit);
}
.can-do-icon svg {
  width: 100%;
  height: 100%;
}
.can-do-row h3 {
  font-size: 20px;
  line-height: 28px;
}
.can-do-row p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  max-width: 60ch;
}

/* ---------- Coming next list (labelled, quiet) ---------- */

.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.next-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}
.next-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.next-row h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.next-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  max-width: 60ch;
}
.next-row div {
  min-width: 0;
}

/* ---------- Pricing card ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}
.plan {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 22px;
}
.plan-storage {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 32px;
  color: var(--ink);
  margin: 8px 0 0;
}
.plan-price-note {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0 0 16px;
}
.plan ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.plan ul li {
  padding: 4px 0 4px 20px;
  position: relative;
}
.plan ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--beacon-text);
}
.plan .btn {
  margin-top: auto;
}
.plan--featured {
  border-color: var(--beacon);
}

/* ---------- FAQ accordion ---------- */

.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--border-soft);
}
.faq details:first-child {
  border-top: 1px solid var(--border-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--beacon-text);
  transition: transform var(--motion-fast) var(--ease-out);
}
.faq details[open] summary::after {
  content: '−';
}
.faq .faq-answer {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 65ch;
}

/* ---------- Final call to action (navy) ---------- */

.final-cta {
  text-align: center;
}
.final-cta .cta-mark {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}
.final-cta .display {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  max-width: 20ch;
  margin-inline: auto;
}
.final-cta .lede {
  margin: 16px auto 0;
}
.final-cta .btn {
  margin-top: 32px;
}

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

.site-footer {
  background: var(--navy-paper);
  color: var(--navy-ink-2);
  border-top: 1px solid var(--navy-border);
  padding-block: 48px 32px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1 1 260px;
}
.footer-brand .lockup-name {
  color: var(--navy-ink);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: var(--navy-ink-2);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--navy-ink);
}
.footer-legal {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--navy-muted);
}
.footer-legal a {
  color: var(--navy-muted);
}

/* ---------- Contact form (paper) ---------- */

.form {
  max-width: 560px;
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink);
}
.field .hint {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--beacon);
  outline-offset: 2px;
  border-color: var(--beacon);
}
.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--ink-2);
}
.form-consent input {
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.form-consent input:checked {
  background: var(--go);
  border-color: var(--go);
}
.form-consent input:checked::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateY(-1px) rotate(-45deg);
}
.form-consent input:focus-visible {
  outline: 2px solid var(--beacon);
  outline-offset: 2px;
}
.form .btn {
  justify-self: start;
}
.form-note {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Phone (≤ 600px) ---------- */

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section-y: 48px;
    --fs-hero: 44px;
    --lh-hero: 48px;
    --fs-h2: 32px;
    --lh-h2: 40px;
    --fs-h3: 20px;
    --lh-h3: 28px;
    --fs-lede: 18px;
    --lh-lede: 28px;
    --fs-body: 17px;
    --lh-body: 28px;
  }
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .header-nav {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .header-actions {
    margin-left: 0;
  }
  .hero {
    padding-top: 72px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .feature-row {
    gap: 24px;
  }
  .feature-copy,
  .feature-shot {
    grid-column: span 12;
  }
  .feature-row--flip .feature-copy {
    order: 1;
  }
  .feature-row--flip .feature-shot {
    order: 2;
  }
  .feature-row + .feature-row {
    margin-top: 56px;
  }
  .privacy-band .facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .approval-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .approval-actions .btn {
    flex: 1 1 100%;
  }
  .final-cta .cta-mark {
    width: 96px;
    height: 96px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ---------- Tablet (601–1023px) ---------- */

@media (min-width: 601px) and (max-width: 1023px) {
  :root {
    --section-y: 72px;
  }
  .col-3 {
    grid-column: span 6;
  }
  .col-4 {
    grid-column: span 6;
  }
  .header-nav {
    gap: 20px;
  }
  .feature-copy {
    grid-column: span 12;
  }
  .feature-shot {
    grid-column: span 12;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* Phone header: the lockup stays on one line; Sign in lives in the menu sheet. */
@media (max-width: 600px) {
  .lockup-by {
    white-space: nowrap;
  }
  .site-header .signin {
    display: none;
  }
}
