/* ---------------------------------------------------------------------------
   Product, Company, Pricing and Start Free — the homepage's design language
   carried onto the other pages (type scale, palette, buttons, one-section-per-
   screen snapping and large-screen scaling), plus each page's own scenes.

   Structure
     1. Base: fonts, tokens, type, buttons, section rhythm
     2. Snapping and viewport fit (same gates as the homepage)
     3. Shared pieces: reveal-on-scroll, orange CTA band
     4. Page blocks: .pg-product, .pg-company, .pg-pricing, .pg-demo
     5. Reduced motion

   Animations are progressive: the markup is complete and readable without JS.
   pages-v2.js adds .pg-js (hide-before-reveal states apply only then) and
   .pg-anim (motion allowed). With prefers-reduced-motion the scripts draw each
   scene's finished frame and nothing moves.
   --------------------------------------------------------------------------- */

/* ================================================================ 1. BASE */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-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;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-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;
}

/* Viewport units divided by the large-screen zoom (see the inline script in
   each page's head and home.css) — with --z at 1 these are plain svh/vw. */
:root {
  --z: 1;
  --vh: calc(1svh / var(--z));
  --vw: calc(1vw / var(--z));
  --nav-h: 78px;
  --orange: #ff5700;
  --orange-dark: #d94700;
  --orange-soft: #fd9360;
  --ink: #181818;
  --ink-2: #3a3632;
  --muted: #676767;
  --line: #e7e3df;
  --line-2: #d9d2ca;
  --cream: #f7f4ef;
  --paper: #fffdf9;
  --dark: #1b1b1b;
  --dark-2: #222;
  --green: #2fa865;
  --sans: 'Geist', 'Inter', Arial, Helvetica, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--orange); color: #fff; }
.nav { zoom: var(--z-inv, 1); }      /* the shared header opts out of the page zoom */

.page-shell { width: min(1240px, 100% - 48px); margin: 0 auto; }
.kicker {
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker-light { color: var(--orange-soft); }
.display {
  font-size: clamp(50px, calc(5.1 * var(--vw)), 80px);
  font-weight: 620;
  line-height: .98;
  letter-spacing: -.06em;
}
.h2 {
  font-size: clamp(38px, calc(4.2 * var(--vw)), 62px);
  font-weight: 610;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.display em, .h2 em { font-style: normal; color: var(--orange); }
.lede { color: #5f5d59; font-size: 17px; line-height: 1.68; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.75; }
.prose-link { color: var(--orange); border-bottom: 1px solid #ff570060; }
.prose-link:hover { border-bottom-color: currentColor; }
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 12px 28px #ff57002e;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 16px 34px #ff570040; }
.button .arrow { font-size: 19px; line-height: 1; }
.button-white { background: #fff; border-color: #fff; color: var(--orange); box-shadow: none; }
.button-white:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.button-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.text-link span { color: var(--orange); font-size: 18px; }

.pg-section { position: relative; padding: clamp(48px, calc(6 * var(--vh)), 96px) 0; }
.pg-hero { position: relative; overflow: hidden; background: var(--paper); }
.pg-hero::before {                        /* the homepage's faint blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(#e8e2db 1px, transparent 1px), linear-gradient(90deg, #e8e2db 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(#000c, transparent 78%);
  mask-image: linear-gradient(#000c, transparent 78%);
}
.pg-hero > .page-shell { position: relative; z-index: 1; }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--dark); color: #fff; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid #f0c9b4;
  border-radius: 999px;
  background: #ffffffb8;
  color: #8e3c10;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px #ff57001a; }

/* ============================================ 2. SNAPPING + VIEWPORT FIT
   Same rules as the homepage: each section takes one screen and snaps under
   the 78px nav; the last section and the footer share the final screen. Only
   on windows big enough for every section to fit — below that, mandatory snap
   would trap the middle of a tall section, so it is off. */
.pg-hero { padding-top: calc(var(--nav-h) / var(--z)); }
@media (min-width: 1180px) and (min-height: 720px) {
  html { scroll-padding-top: calc(var(--nav-h) / var(--z)); scroll-snap-type: y mandatory; }
  main > section { scroll-snap-align: start; }
  footer, .site-footer { scroll-snap-align: end; }
  main > section:not(.pg-hero) {
    min-height: calc(100 * var(--vh) - var(--nav-h) / var(--z));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  main > section.pg-hero {
    min-height: calc(100 * var(--vh));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  main > section.pg-last { min-height: calc(100 * var(--vh) - var(--nav-h) / var(--z) - var(--site-footer-h, 148px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none !important; }
}

/* ======================================================= 3. SHARED PIECES */
/* Reveal on scroll: children marked [data-reveal] rise in when their section
   arrives (the section gets .is-in). --d staggers them. */
.pg-js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.pg-js .is-in [data-reveal], .pg-js [data-reveal].is-in { opacity: 1; transform: none; }

/* The orange CTA band shared by every page's last section. */
.pg-cta { overflow: hidden; background: var(--orange); color: #fff; }
.pg-cta .kicker { color: #ffffffa3; }
.pg-cta .h2 { color: #fff; }
.pg-cta .sub { color: #ffffffc4; }
.pg-cta-glow {                           /* the homepage's concentric rings */
  position: absolute;
  top: -320px;
  right: -160px;
  width: 600px;
  height: 600px;
  border: 1px solid #fff3;
  border-radius: 50%;
  box-shadow: 0 0 0 70px #ffffff09, 0 0 0 140px #ffffff06;
  pointer-events: none;
}
.pg-cta > .page-shell { position: relative; z-index: 1; }
.pg-cta .button-white:hover { background: var(--ink); border-color: var(--ink); }

/* Continuous scenes pause off screen (class set by pages-v2.js). */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 30px, 1240px); }
  .display { font-size: clamp(42px, calc(12.5 * var(--vw)), 60px); }
  .pg-section { padding: 72px 0; }
  .pg-hero { padding-top: calc(68px + 40px); padding-bottom: 56px; }
}

/* ===================================================== 4a. PRODUCT PAGE */
/* --- hero: copy + the email-to-work flow ---------------------------------- */
.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, calc(5 * var(--vw)), 80px);
  padding: clamp(32px, calc(5 * var(--vh)), 72px) 0;
}
.product-hero-copy .display { margin-top: 24px; max-width: 640px; }
.product-hero-copy .lede { margin-top: 26px; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }

/* --- operational inbox explorer -------------------------------------------- */
.inbox-head { max-width: 980px; }
.inbox-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  height: clamp(380px, calc(100 * var(--vh) - var(--nav-h) / var(--z) - 330px), 600px);
  margin-top: clamp(24px, calc(3.4 * var(--vh)), 40px);
}
.inbox-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px;
  border: 1px solid #e3ddd5;
  border-radius: 10px;
  background: #fffdf9;
}
.email-type-list { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: auto; }
.email-type {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s, border-color .2s;
}
.email-type:hover { background: #f7f2ec; }
.email-type.active { border-color: #ff57004d; background: #fff1ea; }
.email-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #ece5dc;
  color: var(--orange);
  font-size: 15px;
}
.email-type.active .email-icon { background: var(--orange); color: #fff; box-shadow: none; }
.email-name { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.015em; }
.email-meta { display: block; margin-top: 3px; overflow: hidden; color: #8a8782; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.email-type::after {                     /* autoplay progress */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}
.email-type.active.is-playing::after { animation: tour-progress 6s linear forwards; }
@keyframes tour-progress { to { transform: scaleX(1); } }
.inbox-footer-note { padding: 12px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.inbox-footer-note strong { color: var(--orange); }

.email-workspace { position: relative; min-width: 0; min-height: 0; }
.workspace-frame {
  height: 100%;
  border: 1px solid #e3ddd5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px #1a1a1a14;
  overflow: hidden;
}
.workspace-frame > .nl-view { height: 100%; }

/* --- integrations ---------------------------------------------------------- */
.integration-head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; }
.integration-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integration-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, calc(2.8 * var(--vh)), 28px) 26px;
  border: 1px solid #e3ddd5;
  border-radius: 8px;
  background: #fffdf9;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.integration-card:hover { transform: translateY(-5px); border-color: #ff570073; box-shadow: 0 20px 50px #2b231d14; }
.integration-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.integration-logos span {
  padding: 7px 10px;
  border: 1px solid #e3ddd5;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: 700 9.5px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .3s, background .3s, color .3s;
}
.integration-logos span.is-lit { border-color: #ff570080; background: #fff1ea; color: var(--orange); }
.card-num { margin-top: clamp(20px, calc(3 * var(--vh)), 30px); color: var(--orange); font: 700 11px/1 var(--mono); }
.integration-card h3 { margin-top: 10px; font-size: 22px; font-weight: 640; letter-spacing: -.035em; line-height: 1.12; }
.integration-card p { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* --- CTA with paper planes ------------------------------------------------- */
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; }
.cta-inner .sub { max-width: 430px; margin-bottom: 26px; }
.planes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 1100px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .inbox-shell { grid-template-columns: 1fr; height: auto; }
  .email-type-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .email-workspace { aspect-ratio: 1.45; }
  .integration-head { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .hero-actions { flex-wrap: wrap; gap: 18px; }
  .email-type-list { grid-template-columns: 1fr; }
  .email-workspace { aspect-ratio: auto; }
  .workspace-frame { aspect-ratio: 1.45; height: auto; }
    .integration-grid { grid-template-columns: 1fr; }
}

/* ================================================= shared: odometer digits
   [data-roll] figures: each digit is a strip of numerals behind a one-numeral
   window that rolls up to the figure (pages-v2.js builds them). */
.roll, .roll-sym { display: inline-block; height: 1.1em; line-height: 1.1em; vertical-align: top; }
.roll { overflow: hidden; font-variant-numeric: tabular-nums; }
.roll-strip { display: block; }
.roll-strip > span { display: block; height: 1.1em; text-align: center; }
.is-rolling .roll-strip { transition: transform 1.9s cubic-bezier(.16, .8, .24, 1) var(--roll-delay, 0s); }
.is-rolling .roll { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.is-reset .roll-strip { transition: none !important; }

/* ===================================================== 4b. COMPANY PAGE */
.company-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, calc(6 * var(--vw)), 100px);
  padding: clamp(32px, calc(5 * var(--vh)), 72px) 0;
}
.company-hero .lede { max-width: 600px; margin-top: 28px; }
.years-card {
  position: relative;
  padding: 34px 36px 30px;
  border: 1px solid #f0d9ca;
  border-radius: 10px;
  background: #fff;
  box-shadow: 18px 20px 0 #efeae4, 0 30px 80px #1914101a;
}
.years-card::before { content: ""; position: absolute; top: -1px; left: 36px; width: 76px; height: 3px; background: var(--orange); }
.years-figure { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.years-value { display: flex; flex: none; color: var(--orange); font-size: clamp(64px, calc(6 * var(--vw)), 92px); font-weight: 650; letter-spacing: -.07em; line-height: 1; }
.years-figure > span { color: var(--muted); font-size: 15px; line-height: 1.6; }
@keyframes caret { 50% { opacity: 0; } }

.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(40px, calc(6 * var(--vw)), 100px); }
.founder-portrait { margin: 0; }
.portrait-frame {
  position: relative;
  aspect-ratio: 800 / 760;
  max-height: calc(100 * var(--vh) - var(--nav-h) / var(--z) - 230px);
  border-radius: 10px;
  overflow: hidden;
  background: #e9e2d9;
}
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-anim .portrait-frame img { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) .15s, transform 1.6s cubic-bezier(.2, .7, .2, 1) .15s; }
.pg-anim .is-in .portrait-frame img { clip-path: inset(0); transform: none; }
.founder-portrait figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.founder-portrait h3 { font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.founder-portrait figcaption p { color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.story-copy .h2 { max-width: 640px; }
.story-copy > p { max-width: 620px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.growth { display: block; width: 100%; height: clamp(110px, calc(17 * var(--vh)), 170px); margin-top: clamp(20px, calc(3 * var(--vh)), 34px); overflow: visible; }

.mission-section { overflow: hidden; }
.mission-section::before {
  content: "LIGHTER";
  position: absolute;
  right: -30px;
  bottom: 40px;
  color: #ffffff06;
  font-size: clamp(110px, calc(17 * var(--vw)), 250px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none;
}
.mission-inner { position: relative; max-width: 1000px; }
.mission-section .h2 { color: #fff; }
.mission-line { margin-top: clamp(28px, calc(4 * var(--vh)), 48px); color: #fff; font-size: clamp(30px, calc(3.2 * var(--vw)), 48px); font-weight: 560; letter-spacing: -.035em; line-height: 1.2; }
.mission-line .w { transition: color .5s ease; transition-delay: calc(var(--i) * 55ms + .3s); }
.pg-anim .mission-section:not(.is-in) .mission-line .w { color: #ffffff2e; }
.mission-line .w-hot { color: var(--orange); }

.company-cta .h2 { max-width: 900px; }
.cta-lines { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(26px, calc(4 * var(--vh)), 44px); font-size: clamp(22px, calc(2.2 * var(--vw)), 32px); font-weight: 600; letter-spacing: -.03em; }
.cta-lines span { position: relative; align-self: flex-start; }
.cta-lines .is-struck { color: #ffffffa8; transition: color .4s; }
.cta-lines .is-struck::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 54%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.cta-lines .is-struck:nth-child(1)::after { transition-delay: .5s; }
.cta-lines .is-struck:nth-child(2)::after { transition-delay: 1.05s; }
.pg-anim .final-cta:not(.is-in) .cta-lines .is-struck { color: #fff; }
.pg-anim .final-cta:not(.is-in) .cta-lines .is-struck::after { transform: scaleX(0); }
.cta-lines .is-kept { display: inline-flex; align-items: center; gap: 12px; color: #fff; transition: opacity .5s 1.6s, transform .6s cubic-bezier(.2, .7, .2, 1) 1.6s; }
.cta-lines .is-kept::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
}
.pg-anim .final-cta:not(.is-in) .cta-lines .is-kept { opacity: 0; transform: translateX(-12px); }
.cta-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: clamp(28px, calc(4.5 * var(--vh)), 52px); padding-top: 26px; border-top: 1px solid #ffffff3d; }

@media (max-width: 1020px) {
  .company-hero-grid, .founder-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 460px; max-height: none; }
}
@media (max-width: 760px) {
  .years-card { padding: 26px 22px; }
  .years-figure { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta-bottom { flex-direction: column; align-items: flex-start; }
}
.company-hero .display { font-size: clamp(46px, calc(4.5 * var(--vw)), 70px); }

/* ===================================================== 4c. PRICING PAGE */
.pricing-hero > .page-shell { padding: clamp(24px, calc(4 * var(--vh)), 56px) 0; }
.pricing-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: clamp(32px, calc(5 * var(--vw)), 80px); }
.pricing-intro .display { font-size: clamp(46px, calc(4.6 * var(--vw)), 72px); }
.pricing-subs .lede { font-size: 16px; }
.pricing-subs .lede + .lede { margin-top: 14px; }
.pricing-subs strong { color: var(--ink); }
.marked { position: relative; display: inline-block; transition: color .4s .9s; }
.marked::after {                          /* marked down */
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 55%;
  height: .09em;
  border-radius: 99px;
  background: var(--orange);
  transform: rotate(-3deg);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.7, 0, .2, 1) .6s;
}
.pg-anim .pricing-hero:not(.is-in) .marked::after { transform: rotate(-3deg) scaleX(0); }
.pricing-hero.is-in .marked, .pg-js:not(.pg-anim) .marked { color: #b3aca4; }
.no-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.no-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border: 1px solid #e3ddd5;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 620;
  transition: opacity .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.no-list span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #edf7f0;
  color: #2f7a4a;
  font-size: 10px;
  font-weight: 800;
}
.no-list span:nth-child(1) { transition-delay: 1.1s; }
.no-list span:nth-child(2) { transition-delay: 1.25s; }
.no-list span:nth-child(3) { transition-delay: 1.4s; }
.pg-anim .pricing-hero:not(.is-in) .no-list span { opacity: 0; transform: translateY(6px) scale(.9); }

.mobile-swipe-hint { display: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(26px, calc(4 * var(--vh)), 48px); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, calc(3 * var(--vh)), 32px) 28px;
  border: 1px solid #e3ddd5;
  border-radius: 10px;
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.price-card:hover { transform: translateY(-5px); border-color: #ff570066; box-shadow: 0 22px 54px #2b231d17; }
.price-card.highlight { border-color: transparent; background: linear-gradient(160deg, #ff6a1a, #e84a00); color: #fff; box-shadow: 0 24px 60px #ff570040; }
.price-card h2 { margin-top: clamp(14px, calc(2.2 * var(--vh)), 22px); font-size: 34px; font-weight: 640; letter-spacing: -.045em; line-height: 1; }
.price-volume { margin-top: 10px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.price-card > p { margin-top: 14px; min-height: 3.2em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.price-features { display: grid; gap: 10px; margin: clamp(16px, calc(2.4 * var(--vh)), 24px) 0 clamp(18px, calc(2.8 * var(--vh)), 28px); padding: clamp(14px, calc(2.2 * var(--vh)), 20px) 0 0; border-top: 1px solid var(--line); list-style: none; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 560; }
.price-features li::before {
  content: "✓";
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff1ea;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}
.price-card .button { width: 100%; margin-top: auto; }
.highlight .price-volume { color: #ffe0cf; }
.highlight > p { color: #ffffffd6; }
.highlight .price-features { border-color: #ffffff38; }
.highlight .price-features li::before { background: #ffffff2e; color: #fff; }
.price-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  background: #ffffff1f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.price-badge::after {                     /* a shine that passes every few seconds */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, #ffffff8c 50%, transparent 70%);
  transform: translateX(-120%);
  animation: badge-shine 3.6s ease-in-out 1.2s infinite;
}
@keyframes badge-shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* BL gauge: twelve rising bars; each plan fills its share. */
.bl-gauge { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.bl-gauge i {
  flex: 1;
  height: calc(28% + var(--i) * 6%);
  border-radius: 2px;
  background: #efe8df;
  transform-origin: bottom center;
  transition: background .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(.35s + var(--i) * 70ms);
}
.bl-gauge i.on { background: var(--orange); }
.highlight .bl-gauge i { background: #ffffff33; }
.highlight .bl-gauge i.on { background: #fff; }
.pg-anim .pricing-hero:not(.is-in) .bl-gauge i.on { background: #efe8df; transform: scaleY(.5); }
.pg-anim .pricing-hero:not(.is-in) .highlight .bl-gauge i.on { background: #ffffff33; }
.pg-anim .price-card:hover .bl-gauge i.on { animation: bar-wave .7s ease-in-out; animation-delay: calc(var(--i) * 40ms); }
@keyframes bar-wave { 50% { transform: scaleY(1.25); } }

/* FAQ: heading beside a smooth accordion. */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(40px, calc(6 * var(--vw)), 110px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  position: relative;
  display: block;
  padding: clamp(18px, calc(2.6 * var(--vh)), 24px) 48px clamp(18px, calc(2.6 * var(--vh)), 24px) 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -.03em;
  list-style: none;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--orange); }
.faq-list summary::before, .faq-list summary::after {   /* + that turns into − */
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--orange);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { max-width: 620px; padding-bottom: 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* CTA with the switch */
.pricing-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; }
.pricing-cta .sub { max-width: 440px; margin: 18px 0 30px; font-size: 16px; }
.switch-scene { position: relative; display: grid; place-items: center; width: 320px; height: 200px; margin-right: clamp(0px, calc(4 * var(--vw)), 80px); }
.switch {
  position: relative;
  display: block;
  width: 220px;
  height: 116px;
  border-radius: 58px;
  background: #ffffff2e;
  box-shadow: inset 0 0 0 2px #ffffff47;
  transition: background .45s ease, box-shadow .45s;
}
.switch i {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px #8a2d0033;
  transition: transform .6s cubic-bezier(.5, 1.6, .5, 1), background .45s;
}
.switch i::after {                        /* the check, drawn once it's on */
  content: "";
  width: 30px;
  height: 16px;
  margin-top: -8px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) .35s;
}
.switch-scene.is-on .switch { background: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 0 0 #ffffff80; animation: switch-ring 2.6s ease-out .6s infinite; }
.switch-scene.is-on .switch i { transform: translateX(104px); background: var(--ink); }
.switch-scene.is-on .switch i::after { transform: rotate(-45deg) scale(1); border-color: var(--orange); }
@keyframes switch-ring { 0% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 0 #ffffff80; } 70%, 100% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 34px #ffffff00; } }

@media (max-width: 1100px) {
  .pricing-intro, .faq-grid { grid-template-columns: 1fr; gap: 22px; }
  .pricing-cta { grid-template-columns: 1fr; }
  .switch-scene { display: none; }
}
@media (max-width: 760px) {
  .mobile-swipe-hint { display: block; margin: 26px 0 0; color: var(--muted); font-size: 12px; }
  .price-card { flex: 0 0 84%; scroll-snap-align: start; }
  .faq-list summary { font-size: 17px; }
}
.price-badge { top: -13px; right: 24px; border: 0; background: var(--ink); color: #fff; box-shadow: 0 8px 20px #1814102e; }

/* ============================================= round 2: product + company */
/* --- integrations: one email's journey across the three cards --------------- */
.int-flow { margin-top: clamp(24px, calc(3.6 * var(--vh)), 44px); }
.int-scene {
  position: relative;
  height: clamp(100px, calc(14 * var(--vh)), 128px);
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 7px;
  background: #f5f0ea radial-gradient(#e6ddd2 1px, transparent 1.2px) 0 0 / 14px 14px;
}
.int-scene .port { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--orange); border-radius: 50%; background: #fff; }
.int-scene .port-r { right: 8px; }
.int-scene .port-l { left: 8px; }
.int-scene .track { position: absolute; top: 50%; height: 0; border-top: 1.5px dashed #d8cdc0; }
.sc-env {                                 /* the email in flight */
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 28px;
  height: 20px;
  margin: -10px 0 0 -14px;
  border: 1.5px solid var(--ink-2);
  border-radius: 3px;
  background: #fff;
  opacity: 0;
  box-shadow: 0 6px 14px #3a363224;
  overflow: hidden;
}
.sc-env svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; }
/* card 1: the inbox providers */
.sc-prov { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px #3a363214, inset 0 0 0 1px #ebe3d9; font: 800 15px/1 var(--sans); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s; }
.sc-prov.is-on { transform: translateY(-3px); box-shadow: 0 8px 18px #ff570033, inset 0 0 0 1.5px var(--orange); }
/* card 2: the shipment record */
.sc-rec { position: absolute; top: 12px; bottom: 12px; left: 24px; right: 58px; padding: 9px 11px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px #3a36321a; font: 600 9.5px/1 var(--mono); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.sc-rec header { display: flex; justify-content: space-between; padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px solid #f0ebe5; color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.sc-rec header em { color: #2f9e62; font-style: normal; opacity: 0; transition: opacity .3s; }
.sc-rec.is-done header em { opacity: 1; }
.sc-rec .f { display: flex; justify-content: space-between; gap: 8px; height: clamp(15px, calc(2.3 * var(--vh)), 20px); align-items: center; color: #a39c93; }
.sc-rec .f span:last-child { overflow: hidden; color: var(--ink-2); white-space: nowrap; }
.sc-att { position: absolute; right: 16px; width: 26px; height: 32px; border-radius: 3px; background: #fff; box-shadow: 0 4px 10px #3a36321f, inset 0 0 0 1px #e6ddd2; color: var(--orange); font: 800 8px/32px var(--mono); text-align: center; transition: opacity .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.sc-att.a1 { top: 14px; }
.sc-att.a2 { bottom: 14px; }
.sc-att:not(.is-on) { opacity: 0; transform: translateX(-16px) scale(.8); }
.sc-rec:not(.is-on) { opacity: 0; transform: scale(.92); }
/* card 3: approve by a person, or send on its own; the API passes data on */
.sc-draft { position: absolute; top: 50%; left: 30px; width: 30px; height: 38px; margin-top: -19px; border-radius: 3px; background: #fff; box-shadow: 0 5px 12px #3a36321f, inset 0 0 0 1.5px var(--ink-2); transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.sc-draft::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 14px; background: repeating-linear-gradient(#d8cdc0 0 2px, transparent 2px 6px); }
.sc-draft:not(.is-on) { opacity: 0; transform: translateX(-18px); }
.sc-person { position: absolute; top: 14px; left: 44%; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #e6ddd2; transition: box-shadow .3s; }
.sc-person::before { content: ""; position: absolute; left: 13px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); }
.sc-person::after { content: ""; position: absolute; left: 8px; top: 21px; width: 22px; height: 12px; border-radius: 11px 11px 3px 3px; background: var(--ink-2); }
.sc-person.is-on { box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 5px #ff570022; }
.sc-stamp { position: absolute; top: 8px; left: calc(44% + 26px); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2f9e62; color: #fff; font-size: 10px; font-weight: 800; transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.sc-stamp:not(.is-on) { opacity: 0; transform: scale(.3); }
.sc-plane { position: absolute; bottom: 18px; left: 44%; width: 26px; height: 18px; opacity: .35; transition: opacity .3s; }
.sc-plane.is-on { opacity: 1; }
.sc-plane svg { width: 100%; height: 100%; fill: var(--orange); }
.sc-api { position: absolute; top: 50%; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 9px; background: var(--ink); color: var(--orange-soft); font: 800 12px/1 var(--mono); transition: box-shadow .3s; }
.sc-api.is-on { box-shadow: 0 0 0 5px #ff570026; }
.sc-bit { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--orange); opacity: 0; }

@media (max-width: 760px) {
  }

/* --- company hero: a forwarder's desk ---------------------------------------
   The trade's paperwork in a loose pile. Each page takes a pose from its slot
   (--x --y --r, set by pages-v2.js); the top page is pulled out and tucked
   under every few seconds. Pages also drift a little on their own. */
.paper-pile { position: relative; margin: 0; }
.pile { position: relative; height: clamp(380px, calc(56 * var(--vh)), 480px); }
.pile::before {                            /* a soft desk shadow under the pile */
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 2%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #3a36321a, transparent);
}
.doc {
  --x: 0px; --y: 0px; --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(250px, calc(20.5 * var(--vw)), 310px);
  aspect-ratio: 300 / 388;
  padding: 18px 20px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 0 #e9e2d9, 0 10px 30px #2b231d17, 0 2px 6px #2b231d0f;
  color: var(--ink-2);
  font-family: var(--mono);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .9s cubic-bezier(.3, .7, .2, 1), box-shadow .6s;
}
.doc.is-top { box-shadow: 0 1px 0 #e9e2d9, 0 22px 50px #2b231d26, 0 4px 10px #2b231d14; }
.doc header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 2px solid var(--ink-2); }
.doc h4 { margin: 0; color: var(--ink); font: 800 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.doc header em { color: #8a8782; font: 600 7.5px/1 var(--mono); font-style: normal; letter-spacing: .04em; }
.doc .fields { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; border-top: 1px solid #ddd5cb; border-left: 1px solid #ddd5cb; }
.doc .f { min-height: 34px; padding: 5px 6px; border-right: 1px solid #ddd5cb; border-bottom: 1px solid #ddd5cb; }
.doc .f span { display: block; color: #9a938b; font-size: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc .f b { display: block; margin-top: 5px; overflow: hidden; color: var(--ink); font-size: 8px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.doc .f.hot { background: #fff1ea; }
.doc .f.hot b { color: var(--orange); }
.doc .rows { display: grid; gap: 8px; margin-top: 14px; }
.doc .rows i { display: block; height: 3px; border-radius: 2px; background: #e6ded4; }
.doc .rows i:nth-child(2n) { width: 78%; }
.doc .rows i:nth-child(3n) { width: 58%; }
.doc .lines { margin-top: 12px; }
.doc .lines p { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #ddd5cb; font-size: 8px; }
.doc .lines p span { color: #8a8782; }
.doc .lines p b { color: var(--ink); }
.doc .lines p.tot { border-bottom: 0; border-top: 2px solid var(--ink-2); margin-top: 4px; font-size: 9.5px; }
.doc .lines p.tot b { color: var(--orange); }
.doc .barcode { position: absolute; left: 20px; bottom: 18px; width: 44%; height: 26px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 1.5px, transparent 1.5px 3px, var(--ink-2) 3px 5px, transparent 5px 6.5px, var(--ink-2) 6.5px 7px, transparent 7px 9px); opacity: .85; }
.doc .stamp {
  position: absolute;
  right: 22px;
  bottom: 54px;
  padding: 6px 9px;
  border: 2.5px solid var(--orange);
  border-radius: 4px;
  color: var(--orange);
  font: 800 13px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
  transform: rotate(-11deg);
  mix-blend-mode: multiply;
}
.doc .stamp-b { bottom: 30px; transform: rotate(8deg); }
.doc .sig { position: absolute; left: 20px; bottom: 22px; width: 90px; height: 30px; fill: none; stroke: #2b3a67; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.d-do .sig { left: auto; right: 22px; }
.doc .goods { margin-top: 12px; border-top: 1px solid #ddd5cb; }
.doc .goods p { display: grid; grid-template-columns: .8fr .6fr 2fr .8fr; gap: 8px; align-items: center; height: 17px; border-bottom: 1px solid #efe8df; }
.doc .goods .gh span { color: #9a938b; font-size: 5.8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc .goods i { display: block; height: 3px; border-radius: 2px; background: #e3dace; }
.doc .goods p:nth-child(2n) i:nth-child(3) { width: 70%; }
.doc .goods p:nth-child(3n) i:nth-child(1) { width: 60%; }
/* idle drift: each page breathes a little on its own */
.pg-anim .doc { animation: doc-drift var(--dur, 7s) ease-in-out infinite alternate; }
@keyframes doc-drift { from { translate: 0 0; rotate: 0deg; } to { translate: var(--dx, 2px) var(--dy, -3px); rotate: var(--dr, .6deg); } }
@media (max-width: 1020px) {
  .pile { height: 440px; }
}
@media (max-width: 760px) {
  .pile { height: 400px; }
  .doc { width: 250px; }
}

/* --- product hero: one email read and turned into completed work ------------
   A product-style window: the email on the left, NavLogic's work on the right.
   pages-v2.js plays three emails in turn (pre-alert, arrival notice, invoice). */
.demo-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(360px, calc(46 * var(--vh)), 420px);
  overflow: hidden;
  border: 1px solid #e3ddd5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 16px 18px 0 #efeae4, 0 30px 80px #1914101a;
}
.dw-bar { display: flex; align-items: center; gap: 12px; flex: none; height: 38px; padding: 0 14px; border-bottom: 1px solid #efe8df; background: #fbf8f4; }
.dw-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e4ddd4; }
.dw-bar span { margin-left: 6px; color: #8a8782; font: 700 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dw-bar b { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #fff1ea; color: var(--orange); font: 800 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s; }
.dw-bar b.is-done { background: #edf7f0; color: #2f7a4a; }
.dw-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); flex: 1; min-height: 0; }
.dw-pane { position: relative; min-width: 0; padding: 18px 20px; overflow: hidden; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.dw-pane.is-out { opacity: 0; transform: translateY(10px); }
.dw-mail { border-right: 1px solid #efe8df; }
.dm-from { display: flex; align-items: center; gap: 10px; }
.dm-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-2); color: #fff; font-size: 12px; font-weight: 700; }
.dm-from strong { display: block; font-size: 12.5px; font-weight: 700; }
.dm-from small { display: block; margin-top: 2px; color: #9a938b; font-size: 10.5px; }
.dm-from time { margin-left: auto; align-self: flex-start; color: #9a938b; font: 600 10px/1 var(--mono); }
.dm-subj { margin-top: 14px; font-size: 15px; font-weight: 660; letter-spacing: -.02em; }
.dm-text { margin-top: 10px; color: #5f5d59; font-size: 12px; line-height: 1.55; }
.dm-kv { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #faf7f3; font-size: 11.5px; }
.dm-kv p { display: flex; justify-content: space-between; gap: 10px; }
.dm-kv span { color: #9a938b; }
.hl {                                       /* a detail NavLogic picks out */
  padding: 1px 3px;
  margin: -1px -3px;
  border-radius: 3px;
  background: linear-gradient(#ff570030, #ff570030) no-repeat 0 0 / 0% 100%;
  color: var(--ink);
  font-weight: 650;
  transition: background-size .45s ease;
}
.hl.is-on { background-size: 100% 100%; }
.dm-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dm-att span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #ece4da; border-radius: 5px; color: var(--ink-2); font-size: 10.5px; font-weight: 600; }
.dm-sign { margin-top: 14px; }
.dm-att span::before { content: "PDF"; padding: 2px 3px; border-radius: 2px; background: #fff1ea; color: var(--orange); font: 800 7px/1 var(--mono); }
.dm-scan { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(transparent, #ff570014 70%, #ff570080 98%, transparent); opacity: 0; pointer-events: none; }
.dw-work { background: #fbf8f4; }
.dk-head { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.dk-head img { width: 16px; height: 16px; }
.dk-title { margin-top: 12px; color: var(--ink); font: 800 13px/1 var(--mono); letter-spacing: .02em; }
.dk-fields { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border-top: 1px solid #e6ddd2; border-left: 1px solid #e6ddd2; background: #fff; }
.dk-fields div { min-width: 0; padding: 7px 8px; border-right: 1px solid #e6ddd2; border-bottom: 1px solid #e6ddd2; transition: background .5s; }
.dk-fields span { display: block; color: #9a938b; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dk-fields b { display: block; margin-top: 4px; overflow: hidden; color: #cfc6bb; font-size: 11px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.dk-fields div.is-on { background: #fff7f2; }
.dk-fields div.is-on b { color: var(--ink); }
.dk-steps { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.dk-steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #a39c93; font-size: 11px; transition: color .3s; }
.dk-steps li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #d8cdc0; border-radius: 50%; transition: all .3s; }
.dk-steps li time { font: 600 9.5px/1 var(--mono); }
.dk-steps li.is-on { color: var(--ink-2); }
.dk-steps li.is-on::before { content: "✓"; display: grid; place-items: center; width: 14px; height: 14px; border: 0; background: #2f9e62; color: #fff; font-size: 8px; font-weight: 800; }
.dk-result { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 11px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 650; transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.dk-result::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2f9e62; font-size: 9px; font-weight: 800; }
.dk-result:not(.is-on) { opacity: 0; transform: translateY(6px) scale(.94); }
.dm-fly { position: absolute; z-index: 5; left: 0; top: 0; padding: 3px 7px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: 0 8px 18px #ff570055; pointer-events: none; }
@media (max-width: 760px) {
  .demo-scene { height: 440px; }
  .dw-body { grid-template-columns: 1fr; }
  .dw-mail { display: none; }
}
