/* ============================================================================
   E-MB Helper — landing styles (self-hosted, no CDN, no inline styles)
   Dark editorial theme. Tokens sampled from the live render.
   ========================================================================== */

/* ---- Self-hosted fonts (Latin subset, font-display: swap) ---------------- */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-serif-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-serif-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-serif-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-serif-latin-500-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

/* ---- Design tokens (sampled from live site) ------------------------------ */

:root {
  --bg:        #0E1413;   /* dark background */
  --bg-soft:   #131A18;   /* cards/elevated on dark */
  --bg-card:   #161E1C;
  --text:      #E8E4D6;   /* cream text on dark */
  --muted:     rgba(232, 228, 214, .70);
  --faint:     rgba(232, 228, 214, .50);
  --rule:      rgba(232, 228, 214, .12);
  --rule-soft: rgba(232, 228, 214, .08);
  --accent:    #C9622E;   /* rust / terracotta */

  --cream:       #E8E4D6; /* cream section bg */
  --cream-ink:   #0E1413; /* dark text on cream */
  --cream-muted: rgba(14, 20, 19, .66);
  --cream-rule:  rgba(14, 20, 19, .14);
  --cream-card:  #F0EDE2;

  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1240px;
  --pad:  32px;
  --radius: 16px;
}

/* ---- Reset --------------------------------------------------------------- */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  font-feature-settings: 'tnum';
}

.accent-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { font-size: 16px; line-height: 1; transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* cream pill (primary on dark) */
.btn-primary {
  background: var(--cream);
  color: var(--cream-ink);
}
.btn-primary:hover { background: #fff; }

/* outlined / ghost on dark */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(232,228,214,.04); }

/* plain text-like secondary */
.btn-text {
  background: transparent;
  color: var(--text);
  padding-left: 6px;
  padding-right: 6px;
}
.btn-text:hover { color: var(--accent); }

/* dark pill on cream sections */
.btn-dark {
  background: var(--cream-ink);
  color: var(--cream);
}
.btn-dark:hover { background: #1c2725; }

/* outlined on cream */
.btn-cream-ghost {
  background: transparent;
  color: var(--cream-ink);
  border-color: var(--cream-rule);
}
.btn-cream-ghost:hover { border-color: var(--cream-ink); }

.btn-block { width: 100%; }

/* ============================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand .logo-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-center a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .15s;
}
.nav-center a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-signin {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: border-color .15s, background .15s;
}
.nav-signin:hover { border-color: var(--text); background: rgba(232,228,214,.04); }
.nav-cta { padding: 10px 20px; font-size: 14.5px; }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-center { display: none; }
}
@media (max-width: 560px) {
  .nav-signin { display: none; }
  .nav-cta .btn-label-long { display: none; }
}

/* ============================================================================
   Section scaffolding
   ========================================================================== */

.section { padding: 104px 0; }
.section-dark  { background: var(--bg); color: var(--text); }
.section-cream { background: var(--cream); color: var(--cream-ink); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-cream .eyebrow { color: var(--cream-muted); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.026em;
}
.section-head .sub {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.section-cream .section-head .sub { color: var(--cream-muted); }

/* ============================================================================
   Hero
   ========================================================================== */

.hero { padding: 84px 0 92px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero-eyebrow { display: block; margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(34px, 6.4vw, 84px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -.028em;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--faint);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
}
.stat .stat-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1;
}
.stat .stat-label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--faint);
  max-width: 16ch;
}

.hero-media {
  position: relative;
}

/* ============================================================================
   Hero entrance animations
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-fade {
  opacity: 0;
  animation: fadeUp .6s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-fade[data-delay="0"] { animation-delay:  .00s; }
.hero-fade[data-delay="1"] { animation-delay:  .08s; }
.hero-fade[data-delay="2"] { animation-delay:  .16s; }
.hero-fade[data-delay="3"] { animation-delay:  .24s; }
.hero-fade[data-delay="4"] { animation-delay:  .32s; }
.hero-fade[data-delay="5"] { animation-delay:  .40s; }

/* ============================================================================
   Hero mock — animated eMBook typewriter (ported from old RowsDemo)
   Light eMBook UI inside the dark hero. Teal accents (#00aaa0).
   ========================================================================== */

.hero-mock {
  /* responsive scale anchor; see @media below */
}
.mock {
  position: relative;
}

/* ---- Browser window ---------------------------------------------------- */
.mock-window {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(20,40,30,.55), 0 2px 0 rgba(0,0,0,.02);
  overflow: hidden;
}

/* ---- Chrome ------------------------------------------------------------ */
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}
.mock-dot { width: 9px; height: 9px; border-radius: 99px; opacity: .6; }
.mock-dot-1 { background: #e0a050; }
.mock-dot-2 { background: #c9622e; }
.mock-dot-3 { background: #5a8a6a; }
.mock-chrome-title { margin-left: 10px; font-size: 10.5px; color: var(--muted); }
.mock-spacer { flex: 1; }
.mock-chrome-credits { font-size: 10.5px; color: var(--muted); }

/* ---- Tab bar ----------------------------------------------------------- */
.mock-tabs {
  display: flex;
  font-size: 11px;
  background: #f4f5f6;
  border-bottom: 1px solid #d8dde1;
}
.mock-tab {
  padding: 8px 14px;
  font-weight: 500;
  color: #5a6470;
  border-bottom: 2px solid transparent;
  letter-spacing: .02em;
}
.mock-tab-active {
  font-weight: 600;
  color: #00aaa0;
  border-bottom: 2px solid #00aaa0;
  background: #fff;
}

/* ---- Split pane -------------------------------------------------------- */
.mock-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 380px;
}

/* LEFT spec list */
.mock-left {
  border-right: 1px solid #d8dde1;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.mock-spec-head {
  display: grid;
  grid-template-columns: 22px 28px 1fr 56px 36px;
  font-size: 10px;
  font-weight: 600;
  color: #1c2530;
  background: #fff;
  border-bottom: 1px solid #d8dde1;
  padding: 6px 0;
}
.mock-spec-head > span { text-align: center; }
.mock-spec-body {
  display: grid;
  grid-template-columns: 22px 1fr;
  flex: 1;
  min-height: 0;
}
.mock-index {
  background: #f4f5f6;
  border-right: 1px solid #d8dde1;
  display: flex;
  flex-direction: column;
  font-size: 9.5px;
  color: #5a6470;
  font-family: var(--mono);
}
.mock-index > span {
  padding: 4px 0;
  text-align: center;
  border-bottom: 1px solid #e6e9ec;
  line-height: 1.2;
}
.mock-spec-rows {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  color: #1c2530;
}
.mock-spec-row {
  border-bottom: 1px solid #e6e9ec;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-spec-row-active { background: color-mix(in oklab, #00aaa0 12%, transparent); }
.mock-spec-top { display: flex; align-items: center; gap: 6px; }
.mock-spec-code { font-size: 10.5px; color: #5a6470; font-weight: 500; }
.mock-spec-row-active .mock-spec-code { color: #1c2530; }
.mock-eye { color: #00aaa0; }
.mock-chev { color: #00aaa0; font-size: 11px; line-height: 0; }
.mock-spec-desc {
  font-size: 10.5px;
  line-height: 1.35;
  color: #1c2530;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mock-spec-tot {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 10.5px;
  padding-top: 2px;
}
.mock-spec-tot-lbl { font-weight: 600; }
.mock-spec-tot-val { min-width: 50px; text-align: right; }
.mock-spec-tot-unit { min-width: 32px; color: #5a6470; }

/* RIGHT measurements pane */
.mock-right {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
}
.mock-meas-tabs {
  display: flex;
  border-bottom: 1px solid #d8dde1;
  font-size: 11px;
  background: #fff;
}
.mock-meas-tab {
  padding: 8px 16px;
  font-weight: 700;
  letter-spacing: .03em;
}
.mock-meas-tab-active { background: #00aaa0; color: #fff; }
.mock-meas-tab-coeff { padding: 8px 16px; font-weight: 600; color: #5a6470; }
.mock-meas-plus { padding: 8px 12px; color: #00aaa0; font-size: 14px; font-weight: 600; }

.mock-meas-head {
  display: grid;
  grid-template-columns: 26px 1.4fr .55fr .8fr .8fr .8fr 1fr 1fr .55fr;
  font-size: 10px;
  font-weight: 700;
  color: #1c2530;
  padding: 8px 6px;
  background: #f4f5f6;
  border-bottom: 1px solid #d8dde1;
  gap: 4px;
}
.mock-meas-head > span { text-align: center; }
.mock-meas-head > span.mock-cell-l { text-align: left; }

.mock-meas-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
  flex: 1;
}
.mock-row {
  display: grid;
  grid-template-columns: 26px 1.4fr .55fr .8fr .8fr .8fr 1fr 1fr .55fr;
  gap: 4px;
  align-items: center;
}
.mock-check-wrap { display: flex; justify-content: center; }
.mock-check {
  width: 12px;
  height: 12px;
  border: 1.2px solid #aab2bb;
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
}
.mock-check.is-done {
  border-color: #00aaa0;
  background: #00aaa0;
}
.mock-check.is-done::after {
  content: "";
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 4.2 L3.2 6 L6.5 2.2' stroke='%23fff' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.mock-cell {
  border: 1px solid #d8dde1;
  border-radius: 3px;
  padding: 6px 8px;
  background: #fff;
  font-size: 12px;
  color: #1c2530;
  min-height: 26px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
}
.mock-cell.is-filled, .mock-cell.is-active { border-color: #00aaa0; }
.mock-cell-txt { width: 100%; text-align: center; }
.mock-cell-l .mock-cell-txt { text-align: left; }
.mock-row-plus {
  display: flex;
  justify-content: center;
  color: #00aaa0;
  font-weight: 600;
  font-size: 14px;
}

.mock-total {
  display: grid;
  grid-template-columns: 26px 1.4fr .55fr .8fr .8fr .8fr 1fr 1fr .55fr;
  gap: 4px;
  padding: 8px 0 0;
  border-top: 1px solid #e6e9ec;
  font-size: 11px;
}
.mock-total-lbl { text-align: right; font-weight: 700; color: #1c2530; padding-right: 10px; }
.mock-total-val { text-align: center; font-weight: 600; color: #1c2530; }
.mock-total-val.is-complete { color: #00aaa0; }
.mock-total-unit { text-align: center; color: #5a6470; }

.mock-save { position: absolute; right: 0; bottom: 0; }
.mock-save-btn {
  display: inline-block;
  padding: 7px 22px;
  background: #00aaa0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---- Footer status bar ------------------------------------------------- */
.mock-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  background: var(--bg-card);
  font-size: 11.5px;
}
.mock-foot-id { color: var(--muted); }
.mock-foot-bar {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 99px;
  overflow: hidden;
}
.mock-foot-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}
.mock-pause {
  font-size: 10.5px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--muted);
  cursor: pointer;
}
.mock-pause:hover { border-color: var(--text); color: var(--text); }

/* ---- Floating extension popup ----------------------------------------- */
.mock-popup {
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 230px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
  transform: rotate(-2deg);
}
.mock-popup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mock-popup-logo { width: 22px; height: 22px; }
.mock-popup-brand { font-weight: 560; font-size: 13px; color: var(--text); }
.mock-popup-cr { font-size: 10px; color: var(--muted); }
.mock-popup-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mock-popup-bar {
  height: 5px;
  background: var(--bg-card);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mock-popup-fill { height: 100%; width: 0%; background: var(--text); transition: width .1s linear; }
.mock-popup-count { font-size: 11px; color: var(--muted); }
.mock-popup-stop {
  margin-top: 10px;
  width: 100%;
  height: 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
}

/* ---- Cursor blink ------------------------------------------------------ */
@keyframes wf-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.mock-cursor { animation: wf-blink 900ms steps(2,end) infinite; }

/* ---- Responsive scale (ported from old hero-mock @media) -------------- */
@media (max-width: 639px) {
  .hero-mock {
    transform: scale(.92);
    transform-origin: top left;
    margin-bottom: 36px;
    width: 108.7%;
    overflow: hidden;
  }
}
@media (max-width: 419px) {
  .hero-mock {
    transform: scale(.78);
    width: 128.2%;
    margin-bottom: 24px;
  }
}
@media (max-width: 359px) {
  .hero-mock {
    transform: scale(.66);
    width: 151.5%;
  }
}

/* ============================================================================
   Scroll-reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* reveal-stagger children receive transition-delay via --i set by reveal.js */
.reveal-stagger > [data-i] {
  transition-delay: calc(var(--i, 0) * 60ms);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { order: 2; max-width: 640px; }
  .hero-stats { gap: 36px; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 28px 40px; margin-top: 48px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ============================================================================
   How it works — step cards
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 30px 28px 34px;
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
}
.step h3 {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.step p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--muted);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================================
   Video panel (cream)
   ========================================================================== */

.video-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.video-head .h2 { max-width: 18ch; }
.video-head .eyebrow { color: var(--cream-muted); }

.video-panel {
  position: relative;
  border-radius: 20px;
  background: var(--cream-card);
  border: 1px solid var(--cream-rule);
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 40%, rgba(201,98,46,.06), transparent 60%);
}
.video-meta {
  position: absolute;
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.video-meta.top-left  { top: 20px; left: 22px; }
.video-meta.bottom-left { bottom: 20px; left: 22px; }
.play-btn {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px -10px rgba(201,98,46,.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 18px 48px -10px rgba(201,98,46,.7); }
.play-btn svg { margin-left: 5px; }

@media (max-width: 600px) {
  .video-panel { aspect-ratio: 16 / 11; border-radius: 14px; }
  .play-btn { width: 68px; height: 68px; }
  .video-meta { font-size: 10px; }
}

/* ============================================================================
   Features grid
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 32px 30px 38px;
}
.feature .tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -.018em;
  line-height: 1.2;
}
.feature p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

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

/* ============================================================================
   Who it's for
   ========================================================================== */

/* Big serif sentence */
.who-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5.4vw, 72px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.32em;
  row-gap: 0.18em;
}

/* Each word/phrase fades + slides up in sequence (delay set per-word via JS,
   matching the original token timing). */
.who-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.who-word.in {
  opacity: 1;
  transform: none;
}
/* The swap word's inline-flex layout lives on the inner span (keeps the caret
   baseline); the outer .who-word handles the fade. */
.who-word > .who-swap {
  display: inline-flex;
}

/* Animated role-word: italic, accent colour, subtle highlight bg */
.who-swap {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  padding: 0 0.18em;
  border-radius: 6px;
  display: inline-flex;
  align-items: baseline;
  position: relative;
  transition: background 240ms ease;
}

/* Single typewriter caret that travels with the cascade (positioned per-word by JS).
   Hidden until activated, solid while typing, then blinks once it rests at the end.
   The negative margin offsets the flex column-gap so it hugs the current word. */
.who-caret {
  display: inline-block;
  font-style: normal;
  width: 0.06em;
  height: 0.85em;
  background: var(--accent);
  margin-left: -0.2em;
  transform: translateY(0.08em);
  vertical-align: baseline;
  opacity: 0;
}
.who-caret.is-active { opacity: 1; }
.who-caret.is-resting { animation: wf-blink 900ms steps(2, end) infinite; }

/* "this is for you." — normal cream text, accent underline per word */
.who-accent {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  color: var(--text);
  font-style: normal;
}

/* Bordered 3-column steps grid */
.who-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 880px;
  margin-top: 56px;
}

.who-step {
  padding: 20px 20px 0 0;
}
.who-step:not(:last-child) {
  border-right: 1px solid var(--rule);
  padding-right: 20px;
  margin-right: 0;
}
.who-step:not(:first-child) {
  padding-left: 20px;
}

.who-step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
}
.who-step-label {
  font-size: 16px;
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 639px) {
  .who-line {
    font-size: clamp(22px, 7vw, 32px);
  }
  .who-steps {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .who-step {
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--rule);
  }
  .who-step:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .who-caret { animation: none !important; opacity: 1; }
  .who-word { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================================
   Trust
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.trust-item {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.trust-item h3 {
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -.016em;
}
.trust-item p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================================
   Pricing (cream)
   ========================================================================== */

/* ---- Toggle: hidden radios (accessible, not display:none) ---------------- */
.ptype-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ---- Toggle: pill segmented control -------------------------------------- */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  background: var(--cream-card);
  border: 1px solid var(--cream-rule);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.pricing-toggle label {
  cursor: pointer;
  padding: 9px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-muted);
  transition: background .16s ease, color .16s ease;
  user-select: none;
}
.pricing-toggle label:hover {
  color: var(--cream-ink);
}

/* Active label highlight */
#pt-contractor:checked ~ .pricing-toggle label[for="pt-contractor"],
#pt-engineer:checked   ~ .pricing-toggle label[for="pt-engineer"] {
  background: var(--cream-ink);
  color: var(--cream);
}

/* Focus ring on labels when their radio is focused */
#pt-contractor:focus-visible ~ .pricing-toggle label[for="pt-contractor"],
#pt-engineer:focus-visible   ~ .pricing-toggle label[for="pt-engineer"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Card visibility toggle (default hide all data-type cards) ----------- */
.price-card[data-type] { display: none; }

#pt-contractor:checked ~ .pricing-grid .price-card[data-type="contractor"] { display: flex; }
#pt-engineer:checked   ~ .pricing-grid .price-card[data-type="engineer"]   { display: flex; }

/* ---- Save badge ---------------------------------------------------------- */
.price-save {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .04em;
  background: rgba(0, 170, 160, .15);
  color: #007a74;
  vertical-align: middle;
  white-space: nowrap;
}
.price-card.featured .price-save {
  background: rgba(0, 170, 160, .25);
  color: #00d4cc;
}

/* ---- 4-card grid (Free + 3 of selected type) ----------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-card);
  border: 1px solid var(--cream-rule);
  border-radius: 18px;
  padding: 30px 28px 32px;
}
.price-card.featured {
  background: var(--cream-ink);
  color: var(--cream);
  border-color: var(--cream-ink);
}
.price-card .price-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.price-card.featured .price-tag { color: rgba(232,228,214,.7); }

.badge {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 11px;
}

.price-amount {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.price-amount .amount {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.price-amount .period {
  font-size: 13px;
  color: var(--cream-muted);
}
.price-card.featured .price-amount .period { color: rgba(232,228,214,.7); }

.price-credits {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
}
.price-blurb {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-muted);
}
.price-card.featured .price-blurb { color: rgba(232,228,214,.7); }

.price-bullets {
  list-style: none;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.price-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--cream-ink);
}
.price-card.featured .price-bullets li { color: var(--cream); }
.price-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 1px;
  background: var(--accent);
}
.price-card .btn { margin-top: 26px; }
.price-foot { margin-top: auto; }

.have-code {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.have-code .label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.have-code a {
  font-size: 15px;
  color: var(--cream-ink);
  border-bottom: 1px solid var(--accent);
}
.have-code a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; max-width: 460px; }
}

/* ============================================================================
   Coupon band (dark)
   ========================================================================== */

.coupon {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.coupon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.coupon-copy .h2 { font-size: clamp(24px, 3vw, 34px); }
.coupon-form {
  display: flex;
  gap: 12px;
  flex: 1 1 360px;
  max-width: 460px;
}
.coupon-form input {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 14px 20px;
}
.coupon-form input::placeholder { color: var(--faint); }
.coupon-form input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 700px) {
  .coupon-inner { flex-direction: column; align-items: stretch; }
  .coupon-form { max-width: 100%; }
}

/* ============================================================================
   FAQ
   ========================================================================== */

.faq-note {
  margin-top: 18px;
  font-size: 16px;
  color: var(--muted);
}
.faq-note a { color: var(--text); border-bottom: 1px solid var(--accent); }
.faq-note a:hover { color: var(--accent); }

.faq-list { margin-top: 12px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -.014em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
}
.faq-item summary .faq-q { flex: 1; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
  transition: transform .2s ease;
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .faq-icon::before { width: 14px; height: 1.5px; }
.faq-item summary .faq-icon::after  { width: 1.5px; height: 14px; }
.faq-item[open] summary .faq-icon::after { opacity: 0; }
.faq-item[open] summary .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 48px 26px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 70ch;
}

@media (max-width: 560px) {
  .faq-answer { padding: 0 0 22px 48px; }
}

/* ============================================================================
   Final CTA
   ========================================================================== */

.final-cta { padding: 120px 0; text-align: center; }
.final-cta h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 16ch;
  margin: 0 auto;
}
.final-cta .sub {
  margin: 24px auto 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  text-wrap: pretty;
}
.final-cta .hero-ctas { justify-content: center; }

/* ============================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--faint);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   Section spacing on small screens
   ========================================================================== */

@media (max-width: 700px) {
  :root { --pad: 22px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .final-cta { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  /* Ensure animated / reveal elements are always visible under reduced-motion */
  .hero-fade { opacity: 1; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none !important; }
}
