/* Rooftop OS sales page.
 * Tokens and shell patterns copied from the current site theme
 * (assets/index-*.css :root, plus the site-header / page-hero / site-footer
 * rules used by the SPA). New work uses these tokens directly — see CLAUDE.md. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/instrument-sans-latin-400-normal-DRC__1Mx.woff2) format("woff2"), url(/assets/instrument-sans-latin-400-normal-D1W7dsQl.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/instrument-sans-latin-500-normal-Dk9ku72i.woff2) format("woff2"), url(/assets/instrument-sans-latin-500-normal-Z6ESRlEs.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/instrument-sans-latin-600-normal-B7fBEWYG.woff2) format("woff2"), url(/assets/instrument-sans-latin-600-normal-B9e8oLYv.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/instrument-sans-latin-700-normal-CYfAanHo.woff2) format("woff2"), url(/assets/instrument-sans-latin-700-normal-DfAjL1vF.woff) format("woff"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/space-mono-latin-400-normal-Rg4St2Dn.woff2) format("woff2"), url(/assets/space-mono-latin-400-normal-_3DlpgIW.woff) format("woff"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/space-mono-latin-700-normal-mWgeinG7.woff2) format("woff2"), url(/assets/space-mono-latin-700-normal-D7A851RN.woff) format("woff"); }

:root {
  --phosphor-500: oklch(.88 .26 153);
  --phosphor-700: oklch(.65 .21 153);
  --ink-950: oklch(.13 .015 155);
  --ink-900: oklch(.17 .017 155);
  --ink-800: oklch(.23 .018 155);
  --paper-100: oklch(.94 .015 145);
  --paper-200: oklch(.88 .018 145);
  --paper-500: oklch(.58 .02 145);
  --background: var(--ink-950);
  --foreground: var(--paper-100);
  --signal: var(--phosphor-500);
  --paper: var(--paper-100);
  --line-dark: oklch(.31 .025 155);
  --line-light: oklch(.76 .025 145);
  --muted-dark: oklch(.7 .02 155);
  --muted-light: oklch(.4 .02 145);
  --font-sans: "Instrument Sans", sans-serif;
  --font-mono: "Space Mono", monospace;
  --page-x: clamp(20px, 4.5vw, 76px);
  --section-y: clamp(76px, 9vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--ink-950);
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--signal);
  color: var(--ink-950);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ---- header (SPA site-header) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-x);
  border-bottom: 1px solid var(--line-dark);
  background: color-mix(in oklch, var(--ink-950) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 44px;
  color: var(--signal);
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand > span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}
.brand small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.29em;
  color: var(--muted-dark);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
}
.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
}
.desktop-nav a:hover,
.desktop-nav a.nav-active { color: var(--signal); }
.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: var(--signal);
  transition: right 0.2s ease;
}
.desktop-nav a:hover:after,
.desktop-nav a.nav-active:after { right: 0; }
.header-cta {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
}
.header-cta:hover { color: var(--paper-100); border-color: var(--paper-100); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--paper-100);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

/* ---- buttons ---- */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--signal); color: var(--ink-950); }
.button-primary:hover { background: var(--paper-100); }
.button-outline { border-color: var(--line-dark); background: transparent; color: var(--paper-100); }
.button-outline:hover { border-color: var(--signal); color: var(--signal); }

/* ---- hero ---- */
.page-hero {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  align-items: center;
  gap: 50px;
  padding: clamp(64px, 8vw, 120px) var(--page-x);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.page-hero-copy { position: relative; z-index: 2; }
.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--phosphor-700);
}
.page-hero h1 {
  max-width: 1050px;
  margin: 22px 0 28px;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.page-hero-copy > p {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted-dark);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.page-hero-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--phosphor-700);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-visual {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-orbit {
  position: relative;
  width: min(30vw, 380px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.signal-orbit:before,
.signal-orbit:after,
.signal-orbit i {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid var(--line-dark);
  transform: rotate(45deg);
}
.signal-orbit:after {
  inset: 30%;
  border-color: var(--phosphor-700);
  transform: rotate(22.5deg);
}
.signal-orbit i:nth-child(2) { transform: rotate(75deg); }
.signal-orbit i:nth-child(3) { transform: rotate(105deg); }
.signal-orbit > span {
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: var(--signal);
}

/* ---- sections ---- */
.section-pad { padding: var(--section-y) var(--page-x); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(2.55rem, 5vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.section-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.55;
}
.band { border-bottom: 1px solid var(--line-dark); }
.lede {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  color: var(--muted-dark);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}
.lede a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.lede-follow { margin-top: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.field-card {
  border: 0;
  background: var(--ink-900);
  padding: clamp(20px, 2.5vw, 36px);
  min-width: 0;
  overflow-wrap: anywhere;
}
.field-card h3 {
  font-size: 1.25rem;
  margin: 12px 0;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.field-card p,
.field-card li { color: var(--muted-dark); margin: 0; }
.field-card .mono-label { color: var(--signal); }

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin: 2rem 0 0;
}
.fact {
  background: var(--ink-950);
  padding: 22px 24px;
}
.fact strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.fact p { margin: 0; color: var(--muted-dark); font-size: 15px; }

.record-steps {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 2rem;
}
.record-steps li {
  list-style: none;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--ink-900);
  padding: 20px 24px;
}
.record-steps { padding: 0; margin-left: 0; }
.record-steps .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--signal);
  padding-top: 4px;
}
.record-steps h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.03em; }
.record-steps p { margin: 0; color: var(--muted-dark); }

.disclaimer {
  margin: 2rem 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  box-shadow: inset 2px 0 var(--paper-500);
  color: var(--muted-dark);
  font-size: 14px;
  max-width: 52rem;
}
.disclaimer strong { color: var(--paper-200); font-weight: 600; }

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.demo-copy,
.demo-meta { background: var(--ink-900); padding: clamp(24px, 3vw, 40px); }
.demo-copy h3 { margin: 10px 0 12px; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.demo-copy p { color: var(--muted-dark); margin: 0 0 1rem; }
.demo-meta dl { margin: 0; display: grid; gap: 16px; }
.demo-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phosphor-700);
  margin: 0 0 4px;
}
.demo-meta dd { margin: 0; font-size: 1.05rem; }
.note { color: var(--muted-dark); font-size: 14px; }

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.price-row .field-card .value {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 12px 0 14px;
  color: var(--signal);
}
.price-row .field-card .value small {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.systems-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  background: var(--paper);
  color: var(--ink-950);
}
.systems-cta .mono-label { color: var(--ink-800); }
.systems-cta h2 {
  max-width: 850px;
  margin: 15px 0;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.systems-cta p { max-width: 700px; color: var(--muted-light); margin: 0 0 0; }
.systems-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.systems-cta .button-primary { background: var(--ink-950); color: var(--paper-100); }
.systems-cta .button-primary:hover { background: var(--ink-800); }
.systems-cta .button-outline { border-color: var(--ink-950); color: var(--ink-950); }
.systems-cta .button-outline:hover { color: var(--ink-950); background: color-mix(in oklch, var(--ink-950) 8%, transparent); }

.hood-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 2rem;
}
.hood-stats div {
  background: var(--ink-950);
  padding: 22px 24px;
}
.hood-stats strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.hood-stats span { color: var(--muted-dark); font-size: 14px; }

/* ---- footer ---- */
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 42px var(--page-x) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
}
.footer-directory {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-directory a,
.footer-social a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-dark);
}
.footer-directory a:hover,
.footer-social a:hover { color: var(--signal); }
.footer-social { display: flex; justify-content: flex-end; gap: 20px; }
.site-footer > small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-dark);
}
.site-footer > small a { color: var(--signal); }

@media (max-width: 1100px) {
  .page-hero { grid-template-columns: 1fr 300px; }
  .page-hero h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); }
  .card-grid,
  .hood-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) and (min-width: 901px), (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav,
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.is-open {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 14px var(--page-x) calc(22px + env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line-dark);
    background: var(--ink-950);
  }
  .mobile-nav.is-open a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-dark);
    font-size: 20px;
  }
  .mobile-nav.is-open a:last-child {
    margin-top: 12px;
    padding: 0 14px;
    border: 0;
    background: var(--signal);
    color: var(--ink-950);
    font-family: var(--font-mono);
    font-size: 12px;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  :root { --page-x: 20px; --section-y: 72px; }
  .page-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .page-hero-visual {
    position: absolute;
    right: -120px;
    top: 120px;
    z-index: 0;
    width: 400px;
    opacity: 0.28;
    pointer-events: none;
  }
  .signal-orbit { width: 360px; }
  .page-hero-copy { max-width: 800px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .section-heading > p { max-width: 600px; }
  .section-heading h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .fact-list,
  .price-row,
  .demo-panel,
  .card-grid,
  .hood-stats { grid-template-columns: 1fr; }
  .record-steps li { grid-template-columns: 1fr; gap: 8px; }
  .systems-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-directory,
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: 52px; padding-bottom: 60px; }
  .page-hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .page-hero-copy > p { font-size: 16px; }
  .page-hero-meta span { font-size: 7px; }
  .page-hero-visual { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button,
  .systems-cta .button { width: 100%; }
  .footer-directory { gap: 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .button:hover { transform: none; }
}
