:root {
  --forest: #082f26;
  --forest-2: #0d4638;
  --forest-3: #176b50;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #14231e;
  --muted: #5e6a65;
  --line: #d9d5ca;
  --gold: #d7a92c;
  --gold-soft: #f4e5ae;
  --blue: #215f88;
  --rust: #a64d31;
  --shadow: 0 22px 60px rgba(8, 47, 38, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--forest);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.family-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 76px);
  color: #fff;
  background: rgba(8, 47, 38, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: #bdd3c9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.family-nav { display: flex; justify-content: center; gap: 6px; }
.family-nav a {
  padding: 9px 12px;
  color: #d8e7e0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.family-nav a:hover, .family-nav a:focus-visible, .family-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.11); }
.header-action {
  padding: 11px 16px;
  color: var(--forest);
  background: var(--gold);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--forest); }
.button.light { color: var(--forest); background: #fff; border-color: #fff; }
.button.gold { color: var(--forest); background: var(--gold); border-color: var(--gold); }
.button.ghost-light { color: #fff; border-color: rgba(255,255,255,.45); }
.button:hover { transform: translateY(-1px); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--forest-3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.light { color: #c6ddd3; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { margin-bottom: 22px; font-size: clamp(44px, 7vw, 88px); }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 58px); }
h3 { margin-bottom: 10px; font-size: 24px; }
.lead { max-width: 730px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }

/* Welcome page */
.welcome-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--paper);
}
.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 120px) clamp(28px, 6vw, 96px);
}
.welcome-copy h1 span { color: var(--forest-3); }
.welcome-copy .lead { margin-bottom: 30px; }
.welcome-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 750; }
.welcome-proof span::before { content: "✓"; margin-right: 7px; color: var(--forest-3); font-weight: 950; }
.family-stage {
  position: relative;
  min-height: 690px;
  padding: 58px 40px;
  background: var(--forest);
}
.stage-label {
  position: absolute;
  top: 28px;
  right: 34px;
  color: #b8d1c6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.stage-card {
  position: absolute;
  width: min(72%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}
.stage-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.stage-card figcaption { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--forest); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.stage-card.pro { top: 65px; left: 8%; transform: rotate(-2deg); }
.stage-card.xl { top: 245px; right: 5%; z-index: 2; transform: rotate(2deg); }
.stage-card.rental { bottom: 34px; left: 3%; z-index: 3; transform: rotate(-1deg); }
.stage-card.rental img { object-position: center top; }

.welcome-strip {
  display: grid;
  grid-template-columns: .9fr repeat(3, 1fr);
  color: #fff;
  background: #061f19;
  border-top: 1px solid rgba(255,255,255,.12);
}
.welcome-strip > * { min-height: 112px; padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.welcome-strip p { margin: 0; color: #c4d8cf; font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.welcome-strip a { display: grid; gap: 7px; text-decoration: none; }
.welcome-strip span { color: #9cbdb0; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.welcome-strip strong { font-size: 18px; }

.section { padding: clamp(70px, 9vw, 128px) clamp(24px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 50px; align-items: end; margin-bottom: 42px; }
.section-heading p:last-child { margin-bottom: 4px; color: var(--muted); font-size: 18px; }
.product-door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-door {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-door-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #dfe7e2; }
.product-door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-door:hover img { transform: scale(1.025); }
.product-door-media .status { position: absolute; top: 16px; left: 16px; }
.product-door-body { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.product-door-body h3 { font-size: 34px; }
.product-door-body p { color: var(--muted); }
.door-fit { margin: 4px 0 22px; color: var(--forest); font-weight: 850; }
.door-link { margin-top: auto; padding-top: 20px; color: var(--forest-3); font-weight: 900; text-decoration: none; border-top: 1px solid var(--line); }
.door-link span { float: right; }

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ee7a6; }
.status.testing { color: var(--ink); background: var(--gold-soft); }
.status.testing::before { background: var(--gold); }

.foundation { color: #fff; background: var(--forest); }
.foundation .eyebrow { color: #bed7cc; }
.foundation-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.foundation-grid article { min-height: 220px; padding: 30px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.foundation-grid b { display: block; margin-bottom: 30px; color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.foundation-grid p { color: #c9dad3; }
.final-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--gold); }
.final-band p { max-width: 720px; margin-bottom: 0; color: #36463f; font-size: 18px; }

/* Product detail pages */
.product-page { background: var(--paper); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  min-height: 680px;
  background: var(--paper);
}
.product-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(62px, 8vw, 116px) clamp(26px, 6vw, 92px); }
.product-hero-copy h1 { font-size: clamp(52px, 7vw, 96px); }
.product-hero-copy .lead { margin-bottom: 28px; }
.product-kicker { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; }
.product-kicker span { padding: 7px 10px; color: var(--forest); background: #edf3ef; border: 1px solid #ccdad3; border-radius: 999px; font-size: 12px; font-weight: 850; }
.product-hero-media { position: relative; min-height: 620px; overflow: hidden; background: var(--forest); }
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-hero-media.fit-top img { object-position: top center; }
.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 18px 20px;
  color: #fff;
  background: rgba(8,47,38,.94);
  border: 1px solid rgba(255,255,255,.24);
}
.hero-caption strong { display: block; margin-bottom: 4px; font-size: 17px; }
.hero-caption span { color: #c6d8d0; font-size: 13px; }

.at-a-glance { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); color: #fff; background: var(--forest); }
.at-a-glance > div { min-height: 132px; padding: 28px 32px; border-right: 1px solid rgba(255,255,255,.16); }
.at-a-glance .label { color: #afcabe; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.at-a-glance strong { display: block; margin-top: 10px; font-size: 19px; }
.at-a-glance .intro strong { color: var(--gold); font-size: 25px; }

.story-section { background: var(--cream); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-grid article { min-height: 250px; padding: 30px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid b { display: block; margin-bottom: 34px; color: var(--forest-3); font-size: 13px; }
.workflow-grid p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { padding: 28px; background: #f7f5ee; border: 1px solid var(--line); }
.feature-grid small { display: block; margin-bottom: 18px; color: var(--forest-3); font-weight: 900; letter-spacing: .12em; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }

.screenshots { color: #fff; background: #061f19; }
.screenshots .section-heading p:last-child { color: #b8cdc4; }
.screenshots .eyebrow { color: var(--gold); }
.shot-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.shot-grid figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.shot-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top center; }
.shot-grid figure:nth-child(2) img { aspect-ratio: 4/3; }
.shot-grid figcaption { padding: 18px 20px 20px; color: var(--ink); }
.shot-grid figcaption strong { display: block; margin-bottom: 4px; }
.shot-grid figcaption span { color: var(--muted); font-size: 14px; }
.rental-crop img { object-fit: cover; object-position: 78% 10%; transform: scale(1.16); }

.fit-section { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.fit-panel { padding: clamp(58px, 7vw, 98px); }
.fit-panel:first-child { background: var(--gold-soft); }
.fit-panel:last-child { color: #fff; background: var(--forest); }
.fit-panel ul { margin: 26px 0 0; padding: 0; list-style: none; }
.fit-panel li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgba(20,35,30,.18); }
.fit-panel:last-child li { border-color: rgba(255,255,255,.18); }
.fit-panel li::before { position: absolute; left: 0; content: "→"; color: var(--forest-3); font-weight: 950; }
.fit-panel:last-child li::before { color: var(--gold); }

.next-product { background: var(--cream); }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-grid a { padding: 26px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.next-grid a[aria-current="page"] { color: #fff; background: var(--forest); border-color: var(--forest); }
.next-grid small { display: block; margin-bottom: 18px; color: var(--forest-3); font-weight: 900; text-transform: uppercase; }
.next-grid a[aria-current="page"] small { color: var(--gold); }
.next-grid strong { font-size: 24px; }
.next-grid span { display: block; margin-top: 8px; color: var(--muted); }
.next-grid a[aria-current="page"] span { color: #c5d7cf; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px clamp(24px, 6vw, 96px); color: #c8dad2; background: #041813; }
.site-footer p { margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13px; font-weight: 750; text-decoration: none; }

@media (max-width: 1050px) {
  .family-header { grid-template-columns: auto auto; justify-content: space-between; }
  .family-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .welcome-hero, .product-hero { grid-template-columns: 1fr; }
  .welcome-hero { min-height: 0; }
  .family-stage { min-height: 620px; }
  .product-hero-media { min-height: 560px; }
  .welcome-strip { grid-template-columns: repeat(3, 1fr); }
  .welcome-strip > p { grid-column: 1 / -1; min-height: auto; }
  .product-door-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .product-door:last-child { grid-column: 1 / -1; }
  .foundation-grid, .workflow-grid { grid-template-columns: 1fr 1fr; }
  .at-a-glance { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .family-header { position: relative; gap: 10px; padding: 10px 16px; }
  .brand small { display: none; }
  .header-action { padding: 10px 12px; font-size: 12px; }
  .family-nav a { padding: 7px 9px; font-size: 12px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .welcome-copy, .product-hero-copy { padding: 58px 22px; }
  .family-stage { min-height: 500px; padding: 30px 16px; }
  .stage-card { width: 82%; }
  .stage-card.pro { top: 50px; left: 4%; }
  .stage-card.xl { top: 190px; right: 2%; }
  .stage-card.rental { bottom: 24px; left: 5%; }
  .stage-card figcaption { font-size: 10px; }
  .welcome-strip, .product-door-grid, .foundation-grid, .workflow-grid, .feature-grid, .at-a-glance, .shot-grid, .fit-section, .next-grid { grid-template-columns: 1fr; }
  .welcome-strip > p { grid-column: auto; }
  .product-door:last-child { grid-column: auto; }
  .section { padding: 66px 22px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .product-hero { min-height: 0; }
  .product-hero-media { min-height: 360px; }
  .hero-caption { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .at-a-glance > div { min-height: auto; }
  .workflow-grid article { min-height: 0; }
  .shot-grid figure:nth-child(2) img { aspect-ratio: 16/9; }
  .fit-panel { padding: 58px 24px; }
  .final-band, .site-footer { grid-template-columns: 1fr; }
  .site-footer { align-items: start; }
}

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