/* PitchDojo landing — ink & paper, one vermilion accent. */
:root {
  --paper: #F6F1E7;
  --paper-2: #EFE8DA;
  --card: #FFFDF8;
  --ink: #16130F;
  --ink-2: #4A4339;
  --ink-3: #6B6357;
  --line: rgba(22, 19, 15, 0.12);
  --line-strong: rgba(22, 19, 15, 0.22);
  --accent: #C93A20;          /* text-safe vermilion on paper (≈5:1) */
  --accent-bright: #E2492E;   /* decorative */
  --accent-soft: rgba(201, 58, 32, 0.10);
  --indigo: #2D3A7A;
  --ok: #1E7A52;
  --dark-surface: #16130F;
  --dark-text: #F3ECDF;
  --dark-muted: #B8AE9E;
  --shadow: 0 1px 0 rgba(22,19,15,.04), 0 18px 40px -18px rgba(22,19,15,.28);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --brand: #C93A20;           /* the demo's live brand colour */
  --brand-on: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110E;
    --paper-2: #1B1713;
    --card: #211C17;
    --ink: #F3ECDF;
    --ink-2: #CFC5B5;
    --ink-3: #A79C8B;
    --line: rgba(243, 236, 223, 0.12);
    --line-strong: rgba(243, 236, 223, 0.24);
    --accent: #F2694C;
    --accent-bright: #F2694C;
    --accent-soft: rgba(242, 105, 76, 0.14);
    --ok: #4CC08C;
    --dark-surface: #0D0B09;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 24px 50px -20px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--accent-soft);
  padding: .08em .38em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 -2px var(--accent-bright); }
.btn--primary:hover { box-shadow: 0 8px 0 -2px var(--accent-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.nav__links { display: none; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__gh { display: none; }
.nav__toggle {
  margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { border-top: 1px solid var(--line); padding: 8px 20px 18px; display: grid; }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 0; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .nav__links, .nav__gh { display: inline-flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 44px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
  opacity: .5;
}
.hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 80px 0 110px; }
  .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 13px/1 var(--font-mono); letter-spacing: .02em; color: var(--ink-2);
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px var(--accent-soft); }
.display {
  font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 22px; text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); position: relative; white-space: nowrap; }
.display em::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: .02em; height: .14em;
  background: var(--accent-bright); opacity: .22; border-radius: 99px; transform: rotate(-1.5deg);
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero__meta { font-size: 14px; color: var(--ink-3); margin: 0; }

/* hero visual */
.hero__visual { position: relative; padding: 0 0 96px; min-width: 0; }
.enso {
  position: absolute; width: 78%; right: -14%; top: -10%; color: var(--accent-bright); opacity: .16;
  transform: rotate(8deg);
}
.window {
  position: relative; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tl { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.window__url {
  margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--ink-3);
  background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.window__body { padding: 20px 20px 18px; }
.viva__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.viva__kicker { font: 600 12px/1.2 var(--font-mono); color: var(--ink-3); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.viva__title { font: 600 20px/1.2 var(--font-display); margin: 0; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font-mono); color: var(--accent); background: var(--accent-soft); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); animation: pulse 1.6s ease-in-out infinite; }

.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg { display: grid; gap: 3px; max-width: 88%; font-size: 14.5px; line-height: 1.45; }
.msg b { font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.msg span { padding: 10px 13px; border-radius: 12px; }
.msg--coach span { background: var(--paper-2); border-top-left-radius: 4px; }
.msg--coach b { color: var(--accent); }
.msg--rep { justify-self: end; text-align: right; }
.msg--rep span { background: var(--ink); color: var(--paper); border-top-right-radius: 4px; text-align: left; }
.js .transcript .msg { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.js .transcript .msg.is-in { opacity: 1; transform: none; }

.wave { display: flex; align-items: center; gap: 4px; height: 30px; margin-top: 16px; margin-bottom: 40px; max-width: 45%; }
.wave i { flex: 1; max-width: 6px; height: 30%; background: var(--accent-bright); border-radius: 3px; opacity: .75; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; }
.wave i:nth-child(3n+1) { animation-delay: -.7s; }
.wave i:nth-child(4n) { animation-delay: -.5s; height: 50%; }
.wave i:nth-child(5n) { animation-delay: -.9s; }

.scorecard {
  position: absolute; right: -4px; bottom: 0; width: min(330px, 92%);
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) { .scorecard { right: -28px; } }
.scorecard__ring { position: relative; width: 78px; height: 78px; flex: none; }
.scorecard__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; }
.js .ring-fg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.js .scorecard.is-in .ring-fg { stroke-dasharray: 82 100; }
.scorecard__ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.scorecard__ring strong { font: 600 26px/1 var(--font-display); }
.scorecard__ring small { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.scorecard__body { min-width: 0; flex: 1; }
.scorecard__status { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 8px; color: var(--ok); }
.bars { margin: 0; display: grid; gap: 7px; }
.bars dt { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.bars dt small { font-family: var(--font-mono); color: var(--ink-3); font-weight: 500; }
.bars dd { margin: 3px 0 0; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bars dd span { display: block; height: 100%; width: var(--v); background: var(--ink); border-radius: 6px; }
.js .bars dd span { width: 0; transition: width 1s .3s cubic-bezier(.2,.8,.2,1); }
.js .scorecard.is-in .bars dd span { width: var(--v); }
.scorecard__note { font-size: 11.5px; color: var(--ink-3); margin: 9px 0 0; }

/* belt motif: a short knotted belt */
.belt { display: inline-block; width: 26px; height: 7px; border-radius: 2px; background: var(--ink); position: relative; flex: none; }
.belt::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 13px; margin-left: -3.5px; border-radius: 2px; background: inherit; box-shadow: 0 0 0 2px var(--card); }
.scorecard__status .belt { background: var(--ok); }
.belt--sm { width: 22px; height: 5px; background: var(--accent-bright); }
.belt--sm::after { top: -3px; height: 11px; width: 6px; margin-left: -3px; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip__grid { display: grid; }
.strip__item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.strip__item:last-child { border-bottom: 0; }
.strip__before { color: var(--ink-3); font-size: 15px; text-decoration: line-through; text-decoration-color: var(--accent-bright); text-decoration-thickness: 1.5px; margin-bottom: 8px; }
.strip__after { font: 500 21px/1.3 var(--font-display); margin: 0; letter-spacing: -.01em; }
@media (min-width: 900px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .strip__item { padding: 40px 32px; border-bottom: 0; border-right: 1px solid var(--line); }
  .strip__item:first-child { padding-left: 0; }
  .strip__item:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--paper2 { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.h4 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 28px 0 12px; }

/* features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--paper); padding: 28px 24px; }
.feature h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 16px 0 8px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.feature__icon { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature--lead { background: var(--ink); color: var(--paper); }
.feature--lead p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.feature--lead .feature__icon { background: var(--accent-bright); color: #fff; }
.feature--lead h3 { font: 600 26px/1.15 var(--font-display); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } .feature--lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { padding: 34px 30px; }
  .feature--lead { grid-column: span 2; grid-row: span 2; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
  .feature--lead h3 { font-size: 34px; }
  .feature--lead p { font-size: 17px; max-width: 34em; }
  .feature--lead::before {
    content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -110px;
    border: 26px solid var(--accent-bright); border-radius: 50%; opacity: .16;
    clip-path: polygon(0 0, 100% 0, 100% 62%, 78% 100%, 0 100%);
  }
}

/* ---------- brand demo ---------- */
.section--ink { background: var(--dark-surface); color: var(--dark-text); }
.section--ink code { background: rgba(255,255,255,.1); color: var(--dark-text); }
.kicker--light { color: #F2694C; }
.kicker--light .belt--sm::after { box-shadow: 0 0 0 2px var(--dark-surface); }
.brand-demo { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .brand-demo { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.brand-demo__copy > p { color: var(--dark-muted); margin-top: 18px; }
.controls { margin-top: 28px; display: grid; gap: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.controls__hint { margin: 0; font: 500 13px/1.3 var(--font-mono); color: #F2694C; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 700; color: var(--dark-muted); text-transform: uppercase; letter-spacing: .08em; padding: 0; margin-bottom: 8px; }
.field input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--dark-text);
  font: 600 16px var(--font-body);
}
.field input[type="text"]:focus { outline: none; border-color: #F2694C; box-shadow: 0 0 0 3px rgba(242,105,76,.3); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .swatch-custom {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); position: relative;
  transition: transform .15s ease;
}
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--dark-surface), 0 0 0 5px var(--dark-text); }
.swatch-custom { background: conic-gradient(#E2492E, #E8A317, #0F7A5A, #3B4AA8, #7A3FB5, #E2492E); display: grid; place-items: center; overflow: hidden; }
.swatch-custom.is-on { box-shadow: 0 0 0 3px var(--dark-surface), 0 0 0 5px var(--dark-text); }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch-custom:focus-within { outline: 3px solid #F2694C; outline-offset: 3px; }

.preview { min-width: 0; }
.preview__frame { background: #FFFFFF; color: #1A1A1A; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.1); }
.window__bar--light { background: #F3F3F1; border-bottom-color: #E6E4DF; }
.window__bar--light .tl { background: #D6D3CC; }
.window__bar--light .window__url { background: #fff; border-color: #E6E4DF; color: #5B574F; }
.pv { display: grid; grid-template-columns: 1fr; min-height: 360px; }
@media (min-width: 560px) { .pv { grid-template-columns: 196px 1fr; } }
.pv__side { display: flex; background: #FAFAF8; border-bottom: 1px solid #ECEAE5; padding: 12px 14px; }
.pv__side .pv__nav { display: none; }
.pv__side .pv__logo { margin: 0; }
@media (min-width: 560px) {
  .pv__side { display: grid; align-content: start; gap: 4px; border-bottom: 0; border-right: 1px solid #ECEAE5; padding: 18px 12px; }
  .pv__side .pv__nav { display: block; }
  .pv__side .pv__logo { margin-bottom: 18px; }
}
.pv__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 18px; padding: 0 6px; min-width: 0; }
.pv__logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__mark { display: grid; place-content: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--brand); color: var(--brand-on); font-size: 14px; font-weight: 800; transition: background-color .3s ease; }
.pv__nav { font-size: 13.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px; color: #5B574F; }
.pv__nav--on { background: color-mix(in srgb, var(--brand) 12%, white); color: #1A1A1A; box-shadow: inset 3px 0 0 var(--brand); transition: background-color .3s ease; }
.pv__main { padding: 22px; min-width: 0; }
.pv__hello { font-size: 20px; font-weight: 800; margin: 0 0 2px; letter-spacing: -.01em; }
.pv__sub { font-size: 13px; color: #6B675F; margin: 0 0 12px; }
.pv__progress { height: 7px; border-radius: 7px; background: #EEECE7; overflow: hidden; margin-bottom: 18px; }
.pv__progress span { display: block; width: 30%; height: 100%; background: var(--brand); border-radius: 7px; transition: background-color .3s ease; }
.pv__card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid #ECEAE5; border-radius: 12px; }
.pv__avatar { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 50%; flex: none; font-weight: 800; background: color-mix(in srgb, var(--brand) 14%, white); color: var(--brand-ink, var(--brand)); border: 2px solid var(--brand); transition: all .3s ease; }
.pv__cardtitle { font-weight: 700; font-size: 14.5px; margin: 0; overflow-wrap: anywhere; }
.pv__cardsub { font-size: 12.5px; color: #6B675F; margin: 2px 0 0; }
.pv__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 18px 0; }
.pv__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 9px; background: var(--brand); color: var(--brand-on); font-weight: 700; font-size: 14px; transition: background-color .3s ease, color .3s ease; }
.pv__link { font-size: 14px; font-weight: 700; color: var(--brand-ink, var(--brand)); text-decoration: underline; text-underline-offset: 3px; }
.pv__cert { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, white); background: color-mix(in srgb, var(--brand) 5%, white); }
.pv__seal { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 50%, #fff 0 32%, var(--brand) 33% 100%); transition: background .3s ease; }
.pv__certtitle { font: 600 15px/1.2 var(--font-display); margin: 0; }
.pv__certsub { font-size: 12px; color: #6B675F; margin: 2px 0 0; overflow-wrap: anywhere; }
.preview__caption { font-size: 13px; color: var(--dark-muted); margin: 14px 2px 0; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.step__n { display: inline-block; font: 500 13px/1 var(--font-mono); color: var(--accent); padding: 6px 9px; border: 1px solid currentColor; border-radius: 999px; margin-bottom: 18px; }
.step h3 { font: 600 23px/1.15 var(--font-display); margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step { border-radius: 0; border-right-width: 0; }
  .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; right: -9px; top: 32px; width: 16px; height: 16px; z-index: 1;
    background: var(--card); border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: rotate(45deg);
  }
}

/* ---------- self-host ---------- */
.selfhost { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .selfhost { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.selfhost__copy > p { color: var(--ink-2); margin-top: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 7px; border-left: 2.5px solid var(--accent-bright); border-bottom: 2.5px solid var(--accent-bright); transform: rotate(-45deg) translateY(-3px); }

.code { min-width: 0; background: #16130F; color: #EDE6D8; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) { .code { background: #0B0907; border-color: var(--line-strong); } }
.code__tabs { display: flex; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.1); scrollbar-width: none; }
.code__tabs::-webkit-scrollbar { display: none; }
.code__tabs button {
  flex: none; background: none; border: 0; color: #B8AE9E; font: 600 14px var(--font-body);
  padding: 16px 18px 14px; cursor: pointer; border-bottom: 2px solid transparent; min-height: 48px;
}
.code__tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #F2694C; }
.code__tabs button:focus-visible { outline-offset: -3px; }
.code__panel { position: relative; padding: 22px 20px 6px; }
.code pre { margin: 0; overflow-x: auto; padding: 4px 0 14px; padding-right: 72px; }
.code pre code { background: none; padding: 0; color: inherit; font-size: 14px; line-height: 1.75; white-space: pre; overflow-wrap: normal; }
.code__note { font-size: 14px; color: #B8AE9E; margin: 4px 0 18px; }
.code__note code, .code__links code { background: rgba(255,255,255,.08); color: #EDE6D8; }
.code__links { font-size: 14px; color: #B8AE9E; padding: 14px 20px 18px; margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
.code__links a { color: #F2C4B8; }
.copy {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  font: 600 13px var(--font-body); color: #16130F; background: #EDE6D8; border: 0; border-radius: 8px;
  padding: 8px 12px; min-height: 36px; cursor: pointer;
}
.copy:hover { background: #fff; }
.copy.is-done { background: #4CC08C; color: #08261A; }

/* ---------- hosted ---------- */
.hosted {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: 36px 26px; border-radius: 20px; border: 1.5px solid var(--ink); background: var(--card);
}
.hosted > div p:last-child { color: var(--ink-2); margin: 16px 0 0; max-width: 40em; }
.hosted .btn { justify-self: start; position: relative; }
.hosted__enso { position: absolute; width: 260px; right: -70px; bottom: -110px; color: var(--accent-bright); opacity: .14; transform: rotate(-20deg); pointer-events: none; }
.soon { color: var(--accent); font-style: italic; }
@media (min-width: 900px) { .hosted { grid-template-columns: 1fr auto; padding: 52px 56px; gap: 48px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq { grid-template-columns: .7fr 1.3fr; gap: 64px; } .faq .section__head { position: sticky; top: 110px; align-self: start; } }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 17.5px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--accent), var(--accent)) center/14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 8px 22px 0; margin: 0; max-width: 46em; }

/* ---------- footer ---------- */
.footer { background: var(--dark-surface); color: var(--dark-text); padding: 56px 0 64px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.brand--footer { color: var(--dark-text); }
.brand--footer .brand__mark { color: #2A241E; }
.brand--footer .brand__mark circle { fill: #F6F1E7; }
.footer__tag { color: var(--dark-muted); margin: 12px 0 0; font-family: var(--font-display); font-style: italic; font-size: 18px; }
.footer__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--dark-muted); }
.footer__facts a { color: var(--dark-text); text-underline-offset: 3px; }
.footer__facts a:hover { color: #F2694C; }

/* ---------- motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.9); } }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .transcript .msg { opacity: 1 !important; transform: none !important; }
  .js .ring-fg { stroke-dasharray: 82 100 !important; }
  .js .bars dd span { width: var(--v) !important; }
}

@media (max-width: 479px) {
  .hide-sm { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .code__panel { padding-top: 62px; }
}

@media (prefers-color-scheme: dark) {
  .feature--lead { background: #2A1712; color: var(--ink); }
  .feature--lead p { color: var(--ink-2); }
  .btn--primary { color: #14110E; }
}
