/* Hallmark · genre: atmospheric · macrostructure: Workbench · theme: Midnight (brand-anchored)
 * enrichment: E1 clipped-edge demo video (real capture, Tier none — footage is real)
 * nav: N5 floating pill · footer: Ft5 statement
 * pre-emit critique: P5 H4 E5 S5 R5 V4
 */
@import url("tokens.css");

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

html, body {
  overflow-x: clip;
  margin: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-paper);
  /* Two warm blooms, fixed, no animation — the canvas is the design. */
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, oklch(60.8% 0.175 42.8 / 0.16), transparent 60%),
    radial-gradient(48rem 36rem at 96% 30%, oklch(60.8% 0.175 42.8 / 0.09), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-lg); letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent-hover); text-underline-offset: 3px; }
a:hover { color: var(--color-ink); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.muted { color: var(--color-ink-2); }
.small { font-size: var(--text-sm); }

.shell {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

section { padding-block: var(--space-2xl); }

/* --- N5 · floating pill nav ------------------------------------------- */

.nav-pill {
  position: fixed;
  inset: var(--space-sm) auto auto 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: calc(100vw - 2 * var(--space-sm));
  padding: 0.4rem 0.4rem 0.4rem var(--space-sm);
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -18px oklch(0% 0 0 / 0.9);
}

.nav-pill__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-pill__mark img { width: 20px; height: 20px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

.btn--fill {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.85rem 1.6rem;
  font-size: var(--text-md);
}
.btn--fill:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }
.btn--fill:active { background: var(--color-accent); }

.btn--sm { padding: 0.5rem 0.95rem; font-size: var(--text-sm); }

.btn--quiet {
  border: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
  background: transparent;
  padding: 0.5rem 0.95rem;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  cursor: pointer;
}
.btn--quiet:hover { border-color: var(--color-accent); color: var(--color-ink); }

/* --- Hero (H7 · clipped demo video) ------------------------------------ */

.hero {
  padding-block: calc(var(--space-3xl) + var(--space-lg)) var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--space-2xl);
}

.hero__copy { display: grid; gap: var(--space-md); }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.hero__lead { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 34ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.hero__note { font-size: var(--text-sm); color: var(--color-ink-2); }

/* The clip is the point: the capture runs past the right viewport edge. */
.hero__media {
  margin: 0;
  width: calc(100% + 10vw);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--color-paper-2);
  box-shadow: 0 40px 80px -50px oklch(0% 0 0 / 0.95);
}

/* --- Section heads ----------------------------------------------------- */

.head { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-lg); }
.head p { color: var(--color-ink-2); max-width: 52ch; }

/* --- The tour (full capture + chapters) -------------------------------- */

video.tour {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-media);
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
}

/* --- Spec sheet (replaces the three-card feature row) ------------------ */

.spec { border-top: var(--rule-hair) solid var(--color-rule); }

.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-xs) var(--space-lg);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.spec__row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
}

.spec__row dd { margin: 0; color: var(--color-ink-2); }

/* --- Steps (F4 · numbered sequence) ------------------------------------ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }

.steps li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.steps .stage {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  /* The lighter accent: the base one reads 4.47:1 on paper, just under the floor. */
  color: var(--color-accent-hover);
  padding-top: 0.2rem;
}

.steps p { color: var(--color-ink-2); max-width: var(--measure); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.figure {
  margin: var(--space-lg) 0 0;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-media);
  overflow: hidden;
}

.figure figcaption {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  border-top: var(--rule-hair) solid var(--color-rule);
}

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

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
}

.price__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.price__tag span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--color-ink-2);
  margin-top: var(--space-2xs);
}

.price__list { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: grid; gap: var(--space-2xs); }
.price__list li { padding-left: 1.6rem; position: relative; color: var(--color-ink-2); }
.price__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-ok);
}

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

.faq { border-top: var(--rule-hair) solid var(--color-rule); }

.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }

.faq summary {
  cursor: pointer;
  padding-block: var(--space-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--color-accent-hover);
  transition: transform var(--dur-short) var(--ease-out);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding-bottom: var(--space-md);
  color: var(--color-ink-2);
  max-width: var(--measure);
}

/* --- Ft5 · statement footer -------------------------------------------- */

.foot {
  padding-block: var(--space-2xl) var(--space-xl);
  display: grid;
  gap: var(--space-lg);
}

.foot__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.foot__meta p { max-width: 58ch; }

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: calc(var(--space-3xl) - var(--space-md)) var(--space-xl);
    gap: var(--space-xl);
  }
  .hero__media { width: 100%; }
  .price { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-lg); }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
}

@media (max-width: 30rem) {
  .steps li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-sm); }
  .nav-pill { gap: var(--space-2xs); padding-left: var(--space-xs); }
}

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