/* plantelapp.com — one stylesheet for every page.
   Standards: SITE-PLAN.md (Taste skill + Emil Kowalski motion). One accent (orange), sharp corners,
   dark by default with a light version, transform/opacity-only motion, reduced-motion respected. */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Plantel palette (from Field Manager) */
  --bg:        #09202a;   /* the dark green Bryan saw on his phone and chose as the ONLY look (2026-10-11) */
  --surface:   #0e2a35;
  --surface-2: #143746;
  --line:      rgba(232, 230, 225, 0.12);
  --line-2:    rgba(232, 230, 225, 0.22);
  --text:      #e8e6e1;
  --muted:     #a6aaab;
  --accent:    #e8734a;   /* the ONE accent */
  --accent-ink:#09202a;   /* text on accent */
  --accent-soft: rgba(232, 115, 74, 0.12);
  --accent-text: #e8734a;  /* orange used for TEXT/ICONS */
  --shadow:    0 30px 60px -30px rgba(2, 10, 14, 0.75);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Emil Kowalski curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max: 1200px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── icons (Phosphor, via mask so they take the text color) ── */
.ico { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; flex-shrink: 0;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border: 1px solid transparent; border-radius: 0;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
  .btn-ghost:hover { border-color: var(--text); }
}
.btn .ico { width: 18px; height: 18px; }

/* ── header ── */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--mono); letter-spacing: 0.04em; }
.brand-mark { width: 26px; height: 26px; background: var(--text); color: var(--bg); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); } }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); }
.lang button { font: 600 13px var(--mono); padding: 8px 11px; background: transparent; color: var(--muted); border: 0; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.site-head .btn { padding: 11px 16px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .site-head .wrap { gap: 12px; } .site-head .btn { padding: 10px 12px; } .brand > span:last-child { display: none; } }

/* ── hero (asymmetric split: copy left, real screenshots right) ── */
.hero { padding: 72px 0 120px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.devices { position: relative; padding-bottom: 40px; }
.laptop { border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.laptop .bar { height: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.laptop .bar i { width: 8px; height: 8px; background: var(--line-2); display: block; }
.phone { position: absolute; right: -10px; bottom: 0; width: 31%; min-width: 150px; border: 6px solid #0b1418; background: #0b1418; box-shadow: var(--shadow); }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 60%; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { right: 0; width: 34%; }
  .demo-note { max-width: 50%; font-size: 12px; }
}

/* hero entrance: stagger 60ms, rise 8px; screenshots settle from 0.96 (never from nothing) */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.hero .in { animation: rise 600ms var(--ease-out) both; }
.hero .in:nth-child(2) { animation-delay: 60ms; } .hero .in:nth-child(3) { animation-delay: 120ms; }
.hero .laptop { animation: settle 800ms var(--ease-out) 140ms both; }
.hero .phone  { animation: settle 800ms var(--ease-out) 260ms both; }

/* ── sections ── */
section { padding: 96px 0; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; max-width: 22ch; }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* scroll reveal: once, transform + opacity only */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* cost (2x2 grid list, hairlines, no cards) */
.cost .grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line); }
.cost .item { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; }
.cost .item:nth-child(odd) { border-right: 1px solid var(--line); }
.cost .item:nth-child(even) { padding-left: 32px; }
.cost .item .ico { width: 28px; height: 28px; color: var(--accent-text); grid-row: span 2; margin-top: 3px; }
.cost h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.cost .item p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cost .grid { grid-template-columns: 1fr; } .cost .item, .cost .item:nth-child(even) { padding: 26px 0; border-right: 0 !important; } }

/* features (bento, 5 cells) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tile h3 { margin: 0; font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile .ico { width: 30px; height: 30px; color: var(--accent-text); }
.tile .shot { margin: auto -28px -28px; padding-top: 18px; width: calc(100% + 56px); max-width: none; aspect-ratio: 16 / 8; object-fit: cover; object-position: top left; border-top: 1px solid var(--line); box-sizing: content-box; }
.t-import { grid-column: span 3; }
.t-pay    { grid-column: span 3; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.t-checks { grid-column: span 3; }
.t-inv    { grid-column: span 3; }
.t-pay .ico, .t-inv .ico { color: var(--accent-text); }
.t-cp     { grid-column: span 6; flex-direction: row; align-items: center; gap: 22px; }
.t-cp .txt { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-import, .t-pay, .t-checks, .t-inv, .t-cp { grid-column: auto; } .t-cp { flex-direction: column; align-items: flex-start; } }

/* two sides (contrasting panels) */
.sides { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; margin-top: 44px; border: 1px solid var(--line); }
.side { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.side + .side { border-left: 1px solid var(--line); background: var(--surface); }
.side h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.side p { margin: 0; color: var(--muted); max-width: 42ch; }
.side .btn { align-self: flex-start; margin-top: 8px; }
.side .media { margin-top: auto; padding-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.checklist .ico { color: var(--accent-text); width: 22px; height: 22px; }
.side .media img { border: 1px solid var(--line-2); }
.side.worker .media img { width: 62%; max-width: 260px; border: 6px solid #0b1418; }
@media (max-width: 860px) { .sides { grid-template-columns: 1fr; } .side + .side { border-left: 0; border-top: 1px solid var(--line); } .side { padding: 28px; } }

/* D-G2 (interactive stage, centered) */
.dg { text-align: center; }
.dg h2, .dg .lead { margin-left: auto; margin-right: auto; }
.dg-stage { margin: 44px auto 0; max-width: 640px; border: 1px solid var(--line); background: var(--surface); padding: 40px 28px 30px; display: grid; justify-items: center; gap: 22px; }
.dg-name { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.bubble { min-height: 54px; max-width: 46ch; font-size: 17px; padding: 14px 18px; border: 1px solid var(--line-2); background: var(--bg); text-align: left;
  transition: opacity 180ms ease, filter 180ms ease; }
.bubble.swap { opacity: 0; filter: blur(2px); }
.bubble .dots { color: var(--muted); font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips .lbl { width: 100%; font-size: 14px; color: var(--muted); }
.chip { font: 500 14px var(--font); padding: 9px 14px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--text); } }

/* the robot (artwork from Field-Manager/design-preview/dieguito-helpdesk-companion.html) */
.scout { --c: #e8734a; --c2: #f0865f; position: relative; width: 132px; height: 112px; animation: dgfloat 5.2s ease-in-out infinite; }
@keyframes dgfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.scout .fin { position: absolute; top: -6px; width: 10px; height: 22px; background: #143746; border: 1px solid rgba(232,230,225,.16); }
.scout .fin.l { left: 14px; transform: rotate(-12deg); } .scout .fin.r { right: 14px; transform: rotate(12deg); }
.scout .shell { position: absolute; inset: 0; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: linear-gradient(155deg, #143746 0%, #102f3b 55%, #0e2a35 100%); border: 1px solid rgba(232,230,225,.16);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.65), inset 0 1px 0 rgba(232,230,225,.06); }
.scout .rim { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 92px; height: 52px; border-radius: 30px; border: 1.5px solid var(--c); opacity: .55; }
.scout .visor { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 84px; height: 44px; background: #051217; border-radius: 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: inset 0 2px 10px rgba(0,0,0,.7); }
.scout .eye { position: relative; width: 15px; height: 26px; border-radius: 7px; overflow: hidden; background: rgba(232,230,225,.04); }
.scout .eye .fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--c2), var(--c)); box-shadow: 0 0 9px 1px var(--c);
  transform-origin: center; transition: transform 140ms var(--ease-out), opacity 180ms ease; }
.scout .eye .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 15px var(--mono); color: var(--c);
  opacity: 0; transform: scale(0.6); transition: opacity 220ms ease, transform 220ms var(--ease-out); }
.scout.blink .eye .fill { transform: scaleY(0.08); }
.scout[data-state="thinking"] .eye .fill { transform: scaleY(0.3); animation: dgscan 1.4s ease-in-out infinite; }
.scout[data-state="thinking"] .eye:nth-child(2) .fill { animation-delay: 0.2s; }
@keyframes dgscan { 0%, 100% { transform: scaleY(0.3) translateX(-3px); } 50% { transform: scaleY(0.3) translateX(3px); } }
.scout[data-state="happy"] .eye .fill { opacity: 0; }
.scout[data-state="happy"] .eye .glyph { opacity: 1; transform: none; }

/* proof (full-width number band) */
.proof { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof .wrap { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.proof .num { font: 700 clamp(72px, 11vw, 140px)/0.9 var(--mono); letter-spacing: -0.05em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.proof .num small { display: block; font: 500 15px var(--mono); letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; text-transform: lowercase; }
.proof p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.02em; margin: 0; max-width: 26ch; }
@media (max-width: 760px) { .proof .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* founding (accent-ruled block) */
.found .box { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.found ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.found li { display: flex; gap: 12px; align-items: center; }
.found li .ico { color: var(--accent-text); }
@media (max-width: 760px) { .found .box { grid-template-columns: 1fr; padding: 28px; } }

/* contact (narrow single column) */
.contact .inner { max-width: 640px; }
.contact .or { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.contact .or a { color: var(--text); }
form.cf { margin-top: 36px; display: grid; gap: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.field input, .field select, .field textarea {
  font: 400 16px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; padding: 13px 14px; width: 100%;
  transition: border-color 200ms ease; }
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); }
.field .err { color: #ff9a76; font-size: 14px; min-height: 0; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #ff9a76; }
.hp { position: absolute; left: -9999px; }
.form-msg { border: 1px solid var(--line-2); padding: 18px 20px; background: var(--surface); }
.form-msg.ok { border-color: var(--accent-text); }
.form-msg h3 { margin: 0 0 4px; font-size: 19px; }
.form-msg p { margin: 0; color: var(--muted); }
.cf .btn[disabled] { opacity: .6; cursor: progress; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; align-content: start; }
.site-foot a { text-decoration: none; color: var(--text); }
.site-foot .brand { color: var(--text); margin-bottom: 12px; }
.site-foot p { margin: 4px 0; max-width: 46ch; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr; } .site-foot .links { justify-content: flex-start; } }

/* text pages (sms, privacy, terms) */
.doc { padding: 64px 0 96px; }
.doc .inner { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; max-width: none; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .meta { font: 500 14px var(--mono); color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.quote { border-left: 3px solid var(--accent); padding: 14px 20px; background: var(--surface); color: var(--text) !important; margin: 14px 0; }
.sms-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.sms-list li { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; color: var(--text); font-size: 16px; }
.optin-shot { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin: 22px 0; }
.optin-shot img { border: 6px solid #0b1418; }
@media (max-width: 640px) { .optin-shot { grid-template-columns: 1fr; } .optin-shot img { max-width: 260px; } }

/* language crossfade: soft blur bridges the two texts, < 200ms (Emil) */
[data-i] { transition: opacity 160ms ease, filter 160ms ease; }
html.lang-swap [data-i] { opacity: 0; filter: blur(2px); }

/* reduced motion: remove movement, keep gentle fades */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .in, .hero .laptop, .hero .phone { animation: fadeonly 300ms ease both; }
  @keyframes fadeonly { from { opacity: 0; } to { opacity: 1; } }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .scout, .scout[data-state="thinking"] .eye .fill { animation: none; }
  .btn:active, .chip:active, .lang button:active { transform: none; }
  html.lang-swap [data-i] { filter: none; }
}

/* ── more motion (Emil: each one has a reason) ── */
/* feature screenshots reveal top-to-bottom like a screen loading, once */
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out) 120ms; }
.clip-reveal.is-in { clip-path: inset(0 0 0 0); }
/* worker phone slides up into its panel */
.rise-in { opacity: 0; transform: translateY(36px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rise-in.is-in { opacity: 1; transform: none; }
/* lists check off one after another (delays set in site.js, 70ms apart) */
.stagger > li { opacity: 0; transform: translateY(8px); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.stagger.is-in > li { opacity: 1; transform: none; }
/* hero laptop: slight tilt toward the mouse (computers only, set in site.js) */
.devices { perspective: 1400px; }
#hero-laptop { transform-style: preserve-3d; will-change: transform; }

/* ── D-G2 dock + tour (opt-in) ── */
.dg-dock { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dg-launch { display: flex; align-items: center; gap: 10px; padding: 0; background: transparent; border: 0; color: var(--text); cursor: pointer;
  font: 600 14px var(--font); transition: transform 160ms var(--ease-out); }
.dg-launch:active { transform: scale(0.97); }
.dg-launch-label { order: -1; padding: 9px 13px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .dg-launch:hover .dg-launch-label { border-color: var(--accent-text); } }
.dg-launch[aria-expanded="true"] .dg-launch-label { display: none; }
.dock-bot { position: relative; display: block; width: 66px; height: 60px; filter: drop-shadow(0 10px 16px rgba(2, 10, 14, 0.45)); }
.scout.mini { position: absolute; left: 3px; top: 6px; scale: 0.45; transform-origin: top left; }
.scout.mini .fin, .scout.mini .shell, .scout.mini .rim, .scout.mini .eye, .scout.mini .fill { display: block; }
.scout.mini .visor, .scout.mini .glyph { display: flex; }

.tour-card { position: relative; width: min(380px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent); padding: 18px 20px 16px; box-shadow: var(--shadow);
  transform-origin: bottom right; /* grows out of D-G2, not the middle of the screen */
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.tour-card.enter { opacity: 0; transform: translateY(6px) scale(0.96); }
.tour-card.leave { opacity: 0; transform: scale(0.98); transition-duration: 140ms; } /* exit faster than enter */
.tour-step { margin: 0 0 6px; font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.tour-text { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--text); transition: opacity 160ms ease, filter 160ms ease; }
.tour-text.swap { opacity: 0; filter: blur(2px); }
.tour-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tour-actions .btn { padding: 10px 14px; font-size: 14px; }
.tour-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: transparent;
  border: 0; color: var(--muted); cursor: pointer; transition: color 200ms ease, transform 160ms var(--ease-out); }
.tour-x:active { transform: scale(0.92); }
.tour-x .ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .tour-x:hover { color: var(--text); } }
section.tour-on { position: relative; }
section.tour-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  animation: tourbar 500ms var(--ease-out) both; }
@keyframes tourbar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 600px) { .dg-dock { right: 10px; bottom: 10px; } .dg-launch-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .clip-reveal { clip-path: none; transition: none; }
  .rise-in, .stagger > li { transform: none; transition: opacity 300ms ease; }
  .tour-card, .tour-card.enter, .tour-card.leave { transform: none; }
  section.tour-on::before { animation: none; }
  .scout.mini { animation: none; }
}

/* ── blueprint background (Bryan 2026-10-10). Fixed, behind everything, never animated, fades at the edges ── */
:root { --bp-minor: rgba(232, 230, 225, 0.035); --bp-major: rgba(232, 230, 225, 0.07); --bp-ink: rgba(232, 230, 225, 0.16); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--bp-major) 1px, transparent 1px), linear-gradient(90deg, var(--bp-major) 1px, transparent 1px),
    linear-gradient(var(--bp-minor) 1px, transparent 1px), linear-gradient(90deg, var(--bp-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 40%, transparent 100%); }
body { position: relative; isolation: isolate; }
/* hero drafting detail: stud-wall elevation that draws itself once */
.hero { position: relative; }
.bp-drawing { position: absolute; z-index: -1; pointer-events: none; left: max(8px, calc((100vw - var(--max)) / 2 + 8px)); bottom: -40px;
  width: min(560px, 44vw); height: auto; color: var(--bp-ink); }
.bp-drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: bpdraw 1600ms var(--ease-in-out) 200ms forwards; }
.bp-drawing .dim { stroke-width: 1; animation-delay: 900ms; }
.bp-drawing text { fill: currentColor; font: 500 13px var(--mono); opacity: 0; animation: bpfade 500ms ease 1500ms forwards; }
@keyframes bpdraw { to { stroke-dashoffset: 0; } }
@keyframes bpfade { to { opacity: 1; } }
@media (max-width: 900px) { .bp-drawing { width: 92vw; left: 4vw; bottom: auto; top: 30px; opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .bp-drawing .ln { animation: none; stroke-dashoffset: 0; } .bp-drawing text { animation: none; opacity: 1; } }
