/* Layout only. Every visual on the page is a Shapes class from shapes.css
   (vendored verbatim) in the Shapes ai-operator palette (tokens.css). This file
   places those components: grid, flex, spacing, sizes of decorative frames,
   sticky and absolute positioning, and the parallax stage. It never sets a
   colour, background, border, shadow, font or opacity, and never overrides a
   Shapes property. Spacing stays on the Shapes scale (8 / 16 / 24 / 48, and
   multiples of 48). */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 144px;
}

/* typography-body on the Background (color-background, the --bg alias) */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

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

p {
  margin: 0 0 24px;
}

/* Shapes buttons are specced for <button>; as links they only need the
   browser's link underline and inline display reset. */
a.btn {
  display: block;
  text-align: center;
  text-decoration: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 760px;
}

.section-head .type-h2,
.price .type-h2,
.book .type-h2 {
  margin-bottom: 24px;
}

.prose {
  max-width: 720px;
}

.stack > * + * {
  margin-top: 24px;
}

/* Shapes buttons fill their container and sit side by side with a 16px gap. */
.actions {
  display: flex;
  gap: 16px;
  max-width: 640px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* ---------- Top bar: a sticky Shapes Card ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 24px 16px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.topbar .type-h2 {
  margin-right: auto;
}

.topbar nav {
  display: flex;
}

.topbar-cta {
  display: flex;
  width: 288px;
}

.cta-short {
  display: none;
}

@media (max-width: 960px) {
  .topbar nav { display: none; }
}

@media (max-width: 767px) {
  .topbar { padding: 8px 16px 16px; }
  .topbar-inner { gap: 16px; }
  .topbar-cta { width: auto; flex: 0 0 auto; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- Parallax stage ---------- */

[data-speed],
[data-speed-x] {
  will-change: transform;
}

.hero {
  position: relative;
  min-height: calc(100vh - 144px);
  padding: 48px 0 144px;
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.hero-copy .type-h1 {
  max-width: 1100px;
}

/* Decorative frames: Shapes Cards and Semantic Cards at fixed sizes. */
.frame {
  position: absolute;
  display: flex;
  align-items: flex-end;
}

.f1 { width: 360px; height: 440px; right: 4%;  top: 72px; }
.f2 { width: 168px; height: 168px; right: 30%; top: 432px; }
.f3 { width: 264px; height: 144px; right: 1%;  top: 576px; }
.f4 { width: 144px; height: 216px; right: 38%; top: 24px; }
.f5 { width: 216px; height: 120px; left: 52%;  top: 744px; }

@media (max-width: 1100px) {
  .f2, .f4 { display: none; }
}

@media (max-width: 767px) {
  .hero { padding: 24px 0 96px; min-height: 0; }
  .frame { display: none; }
  .actions { flex-direction: column; }
}

/* ---------- Grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Marquee: H1 Display words drifting sideways ---------- */

.marquee {
  padding: 48px 0;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  margin: 0;
  width: max-content;
}

.marquee-row + .marquee-row {
  margin-top: 8px;
}

.marquee-row--offset {
  margin-left: -720px;
}

/* ---------- System ---------- */

.system {
  display: grid;
  gap: 48px;
}

.inbox-card {
  max-width: 760px;
}

.card .type-h2 {
  margin-bottom: 8px;
}

.card .badges {
  margin-bottom: 16px;
}

.routes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
}

@media (max-width: 767px) {
  .routes { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 24px;
}

.timeline .card {
  width: 100%;
  max-width: 640px;
}

.timeline .card:nth-child(even) {
  margin-left: auto;
}

/* ---------- Price ---------- */

.price {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1200px) {
  .price { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fit checklist ---------- */

.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

/* ---------- Book ---------- */

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field .input,
.field .textarea {
  width: 100%;
}

.form .actions {
  margin-top: 8px;
  max-width: none;
}

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
}

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

.footer {
  padding: 48px 0;
}

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

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}
