/* Snapline — dark job-site at dusk. Asphalt ground, chalk-line blue for the "snap",
   carpenter-pencil yellow for action, thermal-receipt paper for proof.
   Layout: one 1200px column, bands run full width, tape-measure rules between bands. */
:root {
  --asphalt: #111417;
  --slab: #181C20;
  --slab-2: #1F2429;
  --rule: #2C3238;
  --chalk: #ECE8DF;
  --dust: #A3A9AF;
  --chalk-blue: #4C8DF6;
  --chalk-blue-soft: rgba(76, 141, 246, 0.16);
  --pencil: #F3B53F;
  --pencil-ink: #1A1408;
  --paper: #F4F1E8;
  --paper-ink: #22201B;
  --ok: #5BC48A;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--asphalt);
}
img, svg { max-width: 100%; }
a { color: var(--chalk-blue); }
a:hover { color: #7AAAF8; }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
}
.h-xl {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.h-lg {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.95;
}
.h-md {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #CFCBC2; max-width: 34em; }
.muted { color: var(--dust); }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(17, 20, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: var(--chalk);
  text-decoration: none;
}
.brand-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-line {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--chalk-blue);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(76, 141, 246, 0.55);
}
.brand:hover { color: var(--chalk); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--chalk); text-decoration: none; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--pencil); }
.nav-links .btn, .nav-links .btn:hover { padding: 8px 18px; color: var(--pencil-ink); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--chalk);
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--pencil); color: var(--pencil-ink); }
.btn-primary:hover { background: #F7C462; color: var(--pencil-ink); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: #4A525A; }
.btn-ghost:hover { border-color: var(--chalk); color: var(--chalk); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.btn .arrow { transition: transform 160ms ease-out; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- tape measure divider ---------- */
.tape {
  height: 26px;
  border-top: 1px solid var(--rule);
  background:
    repeating-linear-gradient(90deg, rgba(236,232,223,0.38) 0 1px, transparent 1px 96px) 0 0 / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, rgba(236,232,223,0.22) 0 1px, transparent 1px 48px) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(236,232,223,0.12) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat;
  opacity: 0.9;
}

/* ---------- sections ---------- */
.band { padding-block: clamp(72px, 9vw, 120px); }
.band-slab { background: var(--slab); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-copy .hero-h1 { font-size: clamp(44px, 4.6vw, 66px); line-height: 0.95; text-wrap: balance; }
.hero-copy .h-xl .hl { color: var(--pencil); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--dust); }
.proof-row span { display: inline-flex; align-items: center; gap: 8px; }
.proof-row svg { color: var(--ok); flex: 0 0 auto; }

/* ---------- demo stage ---------- */
.stage {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.phone {
  position: relative;
  z-index: 2;
  width: 250px;
  background: #0A0C0E;
  border: 1px solid #343A41;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.phone-screen {
  background: #161A1F;
  border-radius: 25px;
  overflow: hidden;
  height: 456px;
  display: flex;
  flex-direction: column;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #262C33;
}
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--chalk-blue);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 16px; color: #0B1220;
}
.chat-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.chat-sub { font-size: 11px; color: var(--dust); }
.chat-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; line-height: 1.4; }
.bubble { max-width: 86%; padding: 8px 10px; border-radius: 14px; }
.bubble-me { align-self: flex-end; background: #2A5DB3; color: #F2F5FA; border-bottom-right-radius: 4px; }
.bubble-bot { align-self: flex-start; background: #232A31; color: var(--chalk); border-bottom-left-radius: 4px; }
.receipt-photo {
  width: 128px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.45;
  padding: 8px 8px 12px;
  transform: rotate(-3deg);
  border-radius: 2px;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/8px 5px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/8px 5px repeat-x;
}
.receipt-photo .r-head { font-weight: 700; text-align: center; font-size: 9px; }
.receipt-photo .r-row { display: flex; justify-content: space-between; gap: 6px; }
.receipt-photo .r-tot { border-top: 1px dashed #8A857A; margin-top: 3px; padding-top: 3px; font-weight: 700; }
.job-buttons { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.job-btn {
  display: block;
  text-align: center;
  font-size: 11.5px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #3A434D;
  color: #CFE0FF;
  background: #1B2128;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}
.job-btn.picked { background: var(--chalk-blue); border-color: var(--chalk-blue); color: #0B1220; font-weight: 700; }

.sheet {
  position: relative;
  z-index: 2;
  min-width: 0;
  background: #F7F7F4;
  color: #1E2328;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #E9EAE6; border-bottom: 1px solid #D5D7D2; }
.sheet-dot { width: 9px; height: 9px; border-radius: 50%; background: #C9CCC6; }
.sheet-title { font-size: 12px; font-weight: 700; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 330px; font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 8px 7px; border-bottom: 1px solid #E3E4E0; text-align: left; white-space: nowrap; }
.sheet th { background: #EFF0EC; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #4C535A; }
.sheet td.num, .sheet th.num { text-align: right; }
.sheet tr.new td { background: #FFF1CF; font-weight: 700; }
.sheet .photo-link { color: #2459C4; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 11px; color: #5C636A; background: #F1F2EE; }

.snap-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.snap-path { fill: none; stroke: var(--chalk-blue); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(76,141,246,0.7)); }
.stage-label { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); }
.stage-label.l1 { top: -28px; left: 6px; }
.stage-label.l2 { top: -28px; right: 4px; }

/* animation states (resting state = everything shown) */
.stage .anim { transition: opacity 380ms ease-out, transform 420ms cubic-bezier(.2,.8,.2,1); }
.stage.playing .anim { opacity: 0; transform: translateY(10px); }
.stage.playing[data-step="1"] .s1,
.stage.playing[data-step="2"] .s1, .stage.playing[data-step="2"] .s2,
.stage.playing[data-step="3"] .s1, .stage.playing[data-step="3"] .s2, .stage.playing[data-step="3"] .s3,
.stage.playing[data-step="4"] .anim, .stage.playing[data-step="5"] .anim { opacity: 1; transform: none; }
.stage.playing .snap-path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 420ms cubic-bezier(.7,0,.2,1); }
.stage.playing[data-step="4"] .snap-path, .stage.playing[data-step="5"] .snap-path { stroke-dashoffset: 0; }
.stage.playing .job-btn.target { background: #1B2128; color: #CFE0FF; border-color: #3A434D; font-weight: 400; }
.stage.playing[data-step="3"] .job-btn.target, .stage.playing[data-step="4"] .job-btn.target, .stage.playing[data-step="5"] .job-btn.target { background: var(--chalk-blue); border-color: var(--chalk-blue); color: #0B1220; font-weight: 700; }
.stage.playing tr.new td { background: transparent; font-weight: 400; }
.stage.playing[data-step="5"] tr.new td { background: #FFF1CF; font-weight: 700; transition: background-color 300ms ease-out; }
.stage.playing tr.new { opacity: 0; }
.stage.playing[data-step="5"] tr.new { opacity: 1; transition: opacity 300ms ease-out; }
.stage.snapping .snap-path { animation: twang 360ms ease-out; }
@keyframes twang {
  0% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(2px); } 75% { transform: translateY(-1px); } 100% { transform: translateY(0); }
}

/* ---------- strip of facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--rule); min-width: 0; }
.fact:first-child { border-left: none; padding-left: 0; }
.fact-big { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; color: var(--chalk); }
.fact-small { font-size: 14px; color: var(--dust); }

/* ---------- "you keep your apps" ---------- */
.keep-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.keep-col { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.keep-col.core { background: #14243F; border-color: #2D5395; }
.keep-arrow { align-self: center; color: var(--chalk-blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid #3B434B; color: var(--chalk); background: rgba(255,255,255,0.02); }
.chip.live { border-color: rgba(91,196,138,0.6); }
.chip.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.example { border-top: 2px solid var(--chalk-blue); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.example b { font-family: var(--display); font-size: 24px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.01em; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: stretch; }
.calc-inputs { display: flex; flex-direction: column; gap: 26px; background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; }
.calc-field output { font-family: var(--mono); color: var(--pencil); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--pencil); min-height: 32px; }
.calc-result { background: var(--pencil); color: var(--pencil-ink); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.calc-result .big { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 92px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.calc-result p { font-size: 16px; }
.calc-note { font-size: 13px; color: var(--dust); margin-top: 14px; }

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cases.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.case { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case-head { padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 8px; }
.case-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); }
.case-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 26px 18px; font-size: 14px; }
.case-flow .step { padding: 6px 10px; border: 1px solid #3B434B; border-radius: 4px; background: #191E23; }
.case-flow .to { color: var(--chalk-blue); }
.case-cols { margin: 0 26px 22px; font-family: var(--mono); font-size: 12px; color: #C7D7F5; background: #11161C; border: 1px dashed #34404D; border-radius: 4px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.case-quote { margin-top: auto; padding: 22px 26px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.case-quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; }
.case-quote figcaption { font-size: 14px; color: var(--dust); }
.placeholder { color: var(--pencil); }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rule-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--rule); }
.rule-list li:last-child { border-bottom: 1px solid var(--rule); }
.rule-list svg { color: var(--chalk-blue); margin-top: 2px; }
.rule-list b { display: block; font-size: 18px; margin-bottom: 4px; }

/* ---------- guarantee ---------- */
.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; border: 2px solid var(--pencil); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.stamp {
  width: 168px; height: 168px; border-radius: 50%;
  border: 3px solid var(--pencil);
  display: grid; place-items: center; text-align: center;
  color: var(--pencil);
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.95;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 6px var(--asphalt), inset 0 0 0 8px var(--pencil);
}
.stamp .n { font-size: 64px; display: block; }
.stamp .t { font-size: 18px; letter-spacing: 0.06em; display: block; }

/* ---------- steps (how it works) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px; padding: 30px 0; border-top: 1px solid var(--rule); align-items: start; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 0.9; color: var(--chalk-blue); }
.steps h3 { font-family: var(--display); font-size: 30px; text-transform: uppercase; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.steps .when { font-family: var(--mono); font-size: 13px; color: var(--pencil); text-transform: uppercase; letter-spacing: 0.06em; }

.cols-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.cols-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.cols-table th, .cols-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cols-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); background: var(--slab-2); }
.cols-table td:first-child { font-family: var(--mono); color: var(--chalk); white-space: nowrap; }
.cols-table tr:last-child td { border-bottom: none; }

/* ---------- integrations ---------- */
.integ-group { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--rule); }
.integ-group:last-of-type { border-bottom: 1px solid var(--rule); }
.integ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integ { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 600; min-width: 0; }
.integ span:first-child { min-width: 0; overflow-wrap: anywhere; }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding: 3px 8px; border-radius: 3px; }
.badge.live { color: #0E2A1B; background: var(--ok); }
.badge.ready { color: #C7D7F5; background: #1D2E4C; }
.badge.prio { color: var(--pencil-ink); background: var(--pencil); }
.badge.slow { color: #F5D9B8; background: #4A3220; }
.integ small { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--dust); }
.compat-notes { margin-top: 48px; display: grid; gap: 12px; max-width: 760px; }
.compat-notes p { margin: 0; color: var(--dust); font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--dust); margin-top: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: repeating-linear-gradient(135deg, #1D2228 0 14px, #1A1E23 14px 28px); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; place-items: center; color: var(--dust); font-family: var(--mono); font-size: 13px; text-align: center; padding: 20px; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 38em; }
.prose p { color: #D6D2C9; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline .t-when { font-family: var(--mono); font-size: 13px; color: var(--pencil); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }

/* ---------- privacy ---------- */
.priv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.priv-card { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.priv-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #D6D2C9; }
.priv-card.never { border-color: rgba(243,181,63,0.55); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--chalk-blue); transition: transform 200ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: #D0CCC3; max-width: 46em; }

/* ---------- book ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--chalk);
  background: #121619; border: 1px solid #39414A; border-radius: 5px; padding: 12px 13px; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--chalk-blue); box-shadow: 0 0 0 3px var(--chalk-blue-soft); }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--dust); }
.form-done { grid-column: 1 / -1; border: 1px solid var(--ok); background: rgba(91,196,138,0.08); border-radius: 5px; padding: 14px 16px; font-size: 15px; }
.form-error { grid-column: 1 / -1; border: 1px solid #E0A458; background: rgba(224,164,88,0.10); border-radius: 5px; padding: 14px 16px; font-size: 15px; }
.call-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.call-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.call-list .mins { font-family: var(--mono); color: var(--chalk-blue); font-size: 14px; padding-top: 2px; }
.contact-box { margin-top: 28px; padding: 22px; border: 1px dashed #3E4750; border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.contact-box .mono { font-size: 16px; user-select: all; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; }

/* ---------- final CTA + footer ---------- */
.final { text-align: left; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--dust); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--dust); text-decoration: none; }
.foot-links a:hover { color: var(--chalk); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 760px; }
  .keep-grid { grid-template-columns: minmax(0, 1fr); }
  .keep-arrow { transform: rotate(90deg); justify-self: center; }
  .integ-group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--asphalt); border-bottom: 1px solid var(--rule);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 15px 0; font-size: 17px; }
  .nav-links .btn { margin-top: 14px; width: 100%; }
  .nav-links li:last-child { border-top: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: none; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .examples, .cases, .priv-grid, .calc, .ai-grid, .about-grid, .book-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 64px minmax(0, 1fr); }
  .steps li > .aside { grid-column: 2; }
  .steps li::before { font-size: 42px; }
  .guarantee { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .portrait { max-width: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 46px; justify-items: center; }
  .phone { width: 236px; }
  .sheet { width: 100%; }
  .stage-label.l2 { top: auto; bottom: calc(100% + 8px); }
  .integ-grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stamp { width: 140px; height: 140px; }
  .fact-big { font-size: 32px; }
  .fact { padding: 20px 14px; }
  .stamp .n { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
