/* HeatLens landing page.
   Layout follows the CrewTower homepage: a full-bleed landscape hero with a
   sans headline over a large italic serif, tinted cards that hold dark
   product mocks, a small icon grid, pill rows, and a gradient closer.
   The palette is heat: ember, amber and coral where CrewTower used lavender.

   No scripts and no third-party requests: the CSP in vercel.json allows only
   'self', so fonts are served from /fonts and every graphic is inline SVG or
   a data: URI. No inline style attributes either (style-src 'self'). */

/* ── fonts (SIL OFL, see fonts/OFL-*.txt) ─────────────────────── */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2303, U+2325, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens ───────────────────────────────────────────────────── */

:root {
  /* ink does the structure, ember punctuates */
  --ink: #1c0f0b;
  --canvas: #fffaf5;
  --paper: #ffffff;
  --graphite: #4a3630;
  --slate: #6a554d;
  --mist: #8d7a71;
  --wash: #fff0e3;
  --edge: #8a4a2e1f;
  --edge-strong: #8a4a2e33;
  --ember: #f0582a;
  --ember-deep: #c2401c;
  --amber: #ffb35c;
  --action-ink: #3b1a10;
  --cream: #fff6ea;

  /* product mocks are dark, like the app in dark mode */
  --pv-bg: #211816;
  --pv-border: #ffe6d21f;
  --pv-shadow: 0 24px 50px -12px #3a0f0480, 0 2px 6px #2a0a0440;
  --pv-ink: #fbf1ea;
  --pv-muted: #b9a79d;
  --pv-tertiary: #8a7a72;
  --pv-card: #fff0e612;
  --pv-rule: #ffffff1c;
  --pv-btn-bg: #4a3d38;
  --pv-btn-border: #ffffff14;
  --pv-track: #ffffff24;
  --pv-accent: #f0622a;
  --pv-destructive: #ff7a66;

  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;

  --page-max: 1200px;
  --gut: clamp(16px, 5vw, 40px);
  --r-card: 18px;
  --r-pill: 999px;

  /* soft dune silhouettes laid over every tinted card */
  --dunes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' fill-opacity='.22' d='M0 66 50 50 110 60 170 38 240 56 300 40 360 52 400 44V120H0z'/%3E%3Cpath fill='%23fff' fill-opacity='.38' d='M0 90C70 76 130 72 210 82S330 96 400 84V120H0z'/%3E%3Cpath fill='%23fff' fill-opacity='.5' d='M0 108C90 100 170 98 250 104S350 112 400 106V120H0z'/%3E%3C/svg%3E");
}

/* ── base ─────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--slate);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }

code, pre { font-family: var(--font-mono); }

code {
  font-size: .88em;
  padding: .1em .35em;
  border-radius: 5px;
  background: #8a4a2e14;
  color: var(--graphite);
  word-break: break-word;
}

::selection { background: #ffb35c66; color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

section[id] { scroll-margin-top: 24px; }

/* ── type ─────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}

.h-lg, .h-md {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-wrap: balance;
}
.h-lg { font-size: clamp(32px, 3.7vw, 49px); }
.h-md { font-size: clamp(26px, 2.6vw, 34px); }

.h-lg em, .h-md em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -.02em;
  color: var(--ember-deep);
}

.lede {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
  text-wrap: pretty;
}

.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }

/* ── buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.btn .ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

.btn-primary {
  color: var(--cream);
  background: var(--action-ink);
  border-color: #5a2716;
  box-shadow: 0 4px 12px #3b120814;
}
.btn-primary:hover { background: #2c120a; transform: translateY(-2px); box-shadow: 0 8px 18px #3b12082a; }

.btn-ghost {
  color: #4a2216;
  background: #fff7ecde;
  border-color: #fff7ec99;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 9px #3b120810;
}
.btn-ghost:hover { background: var(--cream); transform: translateY(-2px); }

.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 4px; }
.hero .btn:focus-visible, .closer .btn:focus-visible { outline-color: var(--cream); }

.btn-sm { min-height: 40px; padding: 8px 15px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ── hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  isolation: isolate;
  background: #b8321a;
  color: var(--cream);
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* darken the sky behind the headline, then let the ridges dissolve into the page */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before { background: radial-gradient(ellipse 60% 55% at 50% 22%, #5a0f0838, transparent 90%); }
.hero::after { background: linear-gradient(180deg, transparent 80%, #c46a4c66 90%, var(--wash) 100%); }

.sun { transform-origin: 720px 610px; animation: breathe 10s ease-in-out infinite; }
.shimmer { animation: drift 14s ease-in-out infinite alternate; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.045); opacity: 1; }
}
@keyframes drift {
  from { transform: translateX(-30px); }
  to { transform: translateX(30px); }
}

/* the masthead sits over the scene */
.masthead {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max);
  padding: 0 var(--gut);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.05em;
  text-decoration: none;
  color: var(--cream);
  text-shadow: 0 1px 8px #4a0f0433;
}
.brand img { border-radius: 8px; filter: drop-shadow(0 2px 6px #4a0f0440); }
.brand:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 6px; }

.masthead-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh { color: #fff6eadd; filter: drop-shadow(0 1px 6px #4a0f0444); }
.gh svg { width: 20px; height: 20px; fill: currentColor; }
.gh:hover { color: var(--cream); }
.gh:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 50%; }

.masthead-nav {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 16px;
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  white-space: nowrap;
}
.masthead-nav a { color: #fff6eadd; text-decoration: none; text-shadow: 0 1px 6px #4a0f0455; }
.masthead-nav a:hover { color: var(--cream); }
.masthead-nav a:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 3px; }

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

/* the menu-bar strip: HeatLens's answer to CrewTower's notch */
.menubar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 250px;
  height: 32px;
  padding: 0 14px;
  border-radius: 0 0 15px 15px;
  background: #1c0b07e0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -8px #2a070266, inset 0 -1px 0 #ffffff12;
  color: #fff3e6;
  font: 500 12px/1 var(--font-mac);
}

.mb-icons { display: contents; }
.mb-icons svg { width: 15px; height: 15px; fill: currentColor; opacity: .9; }
.mb-icons svg:first-child { justify-self: start; grid-column: 1; grid-row: 1; }
.mb-icons svg:nth-child(2) { justify-self: start; grid-column: 1; grid-row: 1; margin-left: 24px; width: 22px; }
.mb-icons .clock { grid-column: 3; grid-row: 1; justify-self: end; opacity: .92; white-space: nowrap; }

.demo { position: static; grid-column: 2; grid-row: 1; }

.demo summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s;
}
.demo summary::-webkit-details-marker { display: none; }
.demo summary:hover { background: #ffffff1f; }
.demo[open] summary { background: #ffffff33; }
.demo summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* a slow ember ring says "click me" until the demo has been opened */
.demo summary::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  border: 1.5px solid var(--amber);
  opacity: 0;
  animation: invite 2.8s ease-out 1.2s infinite;
  pointer-events: none;
}
.demo[open] summary::after { animation: none; }

@keyframes invite {
  0% { opacity: .9; transform: scale(.9); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

.mark { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mark .core { fill: currentColor; stroke: none; }

.demo-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  animation: pop .22s ease-out;
}
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -6px) scale(.98); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.demo-pop .popover { width: min(300px, calc(100vw - 32px)); }
.demo-pop .pv-scroll { height: 340px; }

.demo-invite {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff6ea;
  font-size: 12.5px;
  white-space: nowrap;
  text-shadow: 0 1px 6px #4a0f0455;
}
.demo-invite span { text-decoration: underline; text-decoration-color: #fff6ea66; text-underline-offset: 4px; }
.demo-invite svg { width: 15px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1) rotate(-12deg); }
.menubar:has(.demo[open]) ~ .demo-invite { opacity: 0; }

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 168px var(--gut) 150px;
  text-align: center;
}

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffe9d2;
  margin-bottom: 26px;
}

.hero-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 22px;
  font-size: clamp(54px, 7vw, 100px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
  color: #fffaf4;
  text-shadow: 0 3px 32px #5a0f0822;
}
.hero-line-main { display: block; }
.hero-line-accent {
  display: block;
  padding: 0 .12em .04em 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.28em;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff0d4;
  text-shadow: 0 2px 0 #ffffff12, 0 6px 32px #5a0f0830;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.65;
  color: #3a1208;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 12.5px;
  color: #4a1a0ccc;
}

.readouts { margin-top: 44px; }
.readouts-label { font-size: 11px; letter-spacing: .04em; color: #4a1a0c; margin-bottom: 12px; }
.readouts ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #fff7ec80;
  border-radius: 21px;
  background: linear-gradient(155deg, #fffaf266, #ffe9d22e);
  box-shadow: 0 10px 30px -14px #6a1a0866, inset 0 1px 0 #fff8;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.readouts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 11px;
  border: 1px solid #ffffff80;
  border-radius: 13px;
  background: #fffaf3c4;
  color: #4a2216;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s, background-color .2s;
}
.readouts li:hover { transform: translateY(-3px); background: #fffaf3; }
.readouts svg { width: 20px; height: 20px; fill: none; stroke: var(--ember-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3) { animation-delay: .18s; }
  .hero-inner > :nth-child(4) { animation-delay: .26s; }
  .hero-inner > :nth-child(5) { animation-delay: .32s; }
  .hero-inner > :nth-child(6) { animation-delay: .42s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sun, .shimmer, .demo summary::after, .demo-pop { animation: none; }
}

/* ── overview strip ───────────────────────────────────────────── */

.overview { background: var(--wash); padding: 40px 0 96px; }

.ov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1060px;
  margin: 0 auto;
  border-block: 1px solid var(--edge-strong);
}
.ov-grid li { min-width: 0; padding: 30px 28px 32px; }
.ov-grid li + li { border-left: 1px solid var(--edge-strong); }

.ov-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}
.ov-source small { display: block; font-size: 11px; font-weight: 400; color: var(--mist); }

.ov-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}
.ov-mark svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-ember { background: linear-gradient(140deg, #ff8a4c, #d9401b); }
.m-amber { background: linear-gradient(140deg, #ffc56b, #f08a2a); }
.m-rose { background: linear-gradient(140deg, #ff9a8a, #d4485a); }

.ov-state {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.s-active { background: #ffe1cc; color: #a8401c; }
.s-review { background: #ffe9c4; color: #8a5208; }
.s-info { background: #f3e6df; color: #6a554d; }

.ov-grid h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.ov-grid p { font-size: 14.5px; line-height: 1.6; }

/* ── sections and feature cards ───────────────────────────────── */

.section { padding: 112px 0; }
.section-tight { padding-top: 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}

.card h3 {
  margin: 22px 0 8px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.card p { font-size: 15px; line-height: 1.62; text-wrap: pretty; }

.art {
  position: relative;
  display: grid;
  place-items: center;
  height: 290px;
  padding: 20px;
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: var(--dunes) bottom / 100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
}

.t-amber { background: radial-gradient(circle at 78% 18%, #fff4d8, transparent 50%), linear-gradient(165deg, #ffe7bd, #ffc47a); }
.t-coral { background: radial-gradient(circle at 22% 16%, #fff0e4, transparent 50%), linear-gradient(165deg, #ffdac8, #ffa47e); }
.t-rose { background: radial-gradient(circle at 80% 14%, #fff0ec, transparent 50%), linear-gradient(165deg, #ffd8d0, #f39a8a); }
.t-ember { background: radial-gradient(circle at 50% 78%, #fff1cc, transparent 46%), linear-gradient(170deg, #ffd9b6, #ffa066 64%, #f07a45); }

.art .popover, .art .term { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card:hover .art .popover, .card:hover .art .term { transform: translateY(-4px); }

/* ── product mocks ────────────────────────────────────────────── */

.mock { margin: 0; }

.popover {
  position: relative;
  width: 300px;
  padding: 16px;
  background: var(--pv-bg);
  color: var(--pv-ink);
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  box-shadow: var(--pv-shadow);
  font: 13px/1.3 var(--font-mac);
  text-align: left;
}
.popover.narrow { width: 250px; }
.popover.card-only { width: 290px; padding: 12px; }

.popover.tail::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: var(--pv-bg);
  border-left: 1px solid var(--pv-border);
  border-top: 1px solid var(--pv-border);
  transform: rotate(45deg);
}

.pv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pv-header .gear { width: 13px; height: 13px; fill: var(--pv-muted); }
.pv-headline { font-weight: 700; }
.pv-sub { font-size: 11px; color: var(--pv-muted); margin-top: 2px; }

.pv-scroll { position: relative; overflow: hidden; margin-top: 12px; }
.pv-scroll::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  background: linear-gradient(transparent, var(--pv-bg));
  z-index: 1;
}
.pv-scroll::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 5px;
  height: 120px;
  border-radius: 3px;
  background: var(--pv-track);
}

.pv-stack { display: flex; flex-direction: column; gap: 14px; padding-right: 10px; }
.pv-section { display: flex; flex-direction: column; gap: 8px; }
.pv-section-title { font-size: 11px; font-weight: 600; color: var(--pv-muted); margin-bottom: 8px; }
.pv-section .pv-section-title { margin-bottom: 0; }

.pv-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 5px;
  font-size: 12px;
}
.pv-grid dt { color: var(--pv-muted); margin: 0; }
.pv-grid dd { margin: 0; overflow-wrap: anywhere; }
.pv-grid.tight { column-gap: 10px; row-gap: 6px; font-size: 11px; }

.pv-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--pv-card);
  font-size: 12px;
}
.pv-card .title { font-weight: 600; }

.chips { display: flex; gap: 6px; }
.chip { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; line-height: 1.35; }
.chip.medium { color: #ffbe6a; background: #ff9f2e2b; }
.chip.review { color: #ff9a82; background: #ff5f462b; }
.chip.info { color: #e2d6ce; background: #ffffff17; }

.pv-caption { font-size: 10.5px; color: var(--pv-muted); }
.pv-caption.spaced { margin-top: 12px; text-align: center; }
.pv-caption.strong { color: var(--pv-ink); font-weight: 600; font-size: 12px; margin-top: 12px; }
.pv-tertiary { color: var(--pv-tertiary); margin-left: 4px; }

.pv-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--pv-btn-bg);
  border: 1px solid var(--pv-btn-border);
  color: var(--pv-ink);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
}
.pv-btn.regular { font-size: 12px; padding: 3px 10px; }
.pv-btn.large { width: 100%; padding: 6px 12px; border-radius: 6px; font-size: 13px; }
.pv-btn.prominent { background: var(--pv-accent); border-color: transparent; color: #fff; }
.pv-btn.destructive { color: var(--pv-destructive); }

.pv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.pv-row.end { justify-content: flex-end; }
.pv-row.snug { justify-content: flex-end; margin-top: 14px; }

.pv-text { font-size: 12px; }
.pv-text.secondary { color: var(--pv-muted); font-size: 11px; }

.pv-progress { height: 5px; margin: 10px 0 4px; border-radius: 3px; background: var(--pv-track); overflow: hidden; }
.pv-progress span { display: block; width: 70%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffb35c, var(--pv-accent)); }

.pv-port {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--pv-card);
  font-size: 12px;
}
.pv-port + .pv-port { margin-top: 6px; }
.pv-port .port { font: 600 12px var(--font-mono); color: #ffbe6a; min-width: 44px; }
.pv-port small { display: block; color: var(--pv-muted); font-size: 10.5px; }

.meter { height: 6px; margin-top: 12px; border-radius: 3px; background: var(--pv-track); overflow: hidden; }
.meter span { display: block; width: 29%; height: 100%; background: linear-gradient(90deg, #ffd27a, #ff8a3d 60%, #e5452a); }

.sheet { width: 330px; padding: 18px; }
.sheet .pv-headline { font-size: 14px; margin-bottom: 12px; }

.term {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1210;
  border: 1px solid var(--pv-border);
  box-shadow: var(--pv-shadow);
  color: #f6ebe3;
  font: 11.5px/1.55 var(--font-mono);
  text-align: left;
}
.term-bar { display: flex; gap: 6px; padding: 9px 11px; background: #2a1d19; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b55; }
.term-bar i:nth-child(2) { background: #ffb347; }
.term-bar i:nth-child(3) { background: #8a7a72; }
.term-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.term .prompt { color: #ff9a5e; }
.term .dim { color: #b9a79d; }
.term .tag { padding: 0 5px; border-radius: 4px; background: #ffb35c24; color: #ffbe6a; font-size: 10px; }

/* ── mini feature grid ────────────────────────────────────────── */

.minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--edge-strong);
}
.minis h3 { margin: 14px 0 6px; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.minis p { font-size: 14.5px; line-height: 1.6; }

.mini-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, #2e1a14, #1a0d09);
  box-shadow: inset 0 1px 0 #ffffff14;
  flex: none;
}
.mini-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── stack / pills ────────────────────────────────────────────── */

.stack { background: var(--wash); padding: 104px 0; }

.pills-label {
  margin: 36px 0 14px;
  text-align: center;
  font-size: 14px;
  color: var(--mist);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.pills li {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--edge);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px #8a4a2e0d;
}

.pills-note {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--mist);
}

.pills.pills-sm { justify-content: flex-start; gap: 6px; margin: 12px 0 0; }
.pills.pills-sm li { padding: 4px 11px; font-size: 12.5px; background: var(--wash); box-shadow: none; }

/* ── safety ───────────────────────────────────────────────────── */

.safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.art-tall {
  height: auto;
  min-height: 460px;
  align-content: center;
  gap: 20px;
}
.art-tall figcaption {
  max-width: 320px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #3a1208;
}

.facts { display: flex; flex-direction: column; gap: 30px; padding-top: 8px; }
.facts > li { display: flex; gap: 16px; }
.facts h3 { margin: 3px 0 6px; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.facts p { font-size: 15px; line-height: 1.6; }

/* ── faq ──────────────────────────────────────────────────────── */

.faq-section { background: var(--wash); }
.faq-section .head { max-width: none; margin-bottom: 36px; }

.faq { border-top: 1px solid var(--edge-strong); }
.faq details { border-bottom: 1px solid var(--edge-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--mist);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ember-deep); }
.faq summary:hover { color: var(--ember-deep); }
.faq summary:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 4px; border-radius: 4px; }

.answer { max-width: 780px; padding: 0 0 22px; }
.answer p { font-size: 15.5px; line-height: 1.7; }
.answer p + p, .answer pre + p { margin-top: 12px; }
.answer pre {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #211816;
  color: #fbe9dc;
  font-size: 12.5px;
  overflow-x: auto;
}
.answer pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* ── closer ───────────────────────────────────────────────────── */

.closer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 104px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse 50% 70% at 50% 110%, #ffd88a, transparent 70%),
    radial-gradient(ellipse 40% 60% at 12% 0%, #8a1d12aa, transparent 70%),
    radial-gradient(ellipse 40% 60% at 88% 0%, #8a1d12aa, transparent 70%),
    linear-gradient(180deg, #c23a1c, #e8632a 55%, #ff9a45);
}
.closer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: var(--dunes) bottom / 100% 100% no-repeat;
  opacity: .5;
  z-index: -1;
}
.closer-line {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: #fff4e4;
  text-shadow: 0 6px 32px #5a0f0833;
}
.closer-sub { margin: 18px auto 30px; font-size: 16px; line-height: 1.6; color: #fff1e2; }
.closer .btn-ghost { border-color: #fff6ea99; }
.closer-meta { margin-top: 18px; font-size: 12.5px; color: #3a1208c0; }

/* ── footer ───────────────────────────────────────────────────── */

.site-footer { padding: 36px 0 44px; background: var(--canvas); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}
.footer-brand { font-size: 19px; font-weight: 700; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer ul a { color: var(--slate); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin-left: auto; font-size: 13px; color: var(--mist); }

/* ── scroll reveal (CSS only; no-op where unsupported) ────────── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ── responsive ───────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .cards, .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: 1fr; gap: 40px; }
  .art-tall { min-height: 420px; }
}

@media (max-width: 820px) {
  .ov-grid { grid-template-columns: 1fr; }
  .ov-grid li + li { border-left: 0; border-top: 1px solid var(--edge-strong); }
}

@media (max-width: 720px) {
  .hero { min-height: 0; }
  .masthead { top: 50px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .demo-invite { display: none; }
  .hero-inner { padding-top: 150px; padding-bottom: 120px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 84px 0; }
  .section-tight { padding-top: 16px; }
  .stack { padding: 80px 0; }
  .minis { margin-top: 72px; }
  .site-footer p { margin-left: 0; }
}

@media (max-width: 640px) {
  .cards, .minis { grid-template-columns: 1fr; }
  .art { height: 280px; }
  .art-tall { height: auto; }
  .sheet { width: min(330px, 100%); }
  .readouts li { height: 40px; font-size: 12.5px; }
  .closer { padding: 96px 0 88px; }
}

@media (max-width: 400px) {
  .masthead .btn-sm { padding: 8px 12px; }
  .popover.card-only, .term { width: 100%; }
}
