/* ==========================================================================
   Beyond Imagination Studio — styles
   Navy + teal · warm white reading sections · Manrope headings
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f4;
  --bg-tint: #f1eee7;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #3d4a63;
  --ink-3: #5a6680;
  --line: #e2ddd2;
  --line-strong: #cbc3b3;
  --navy-900: #0f1a33;
  --navy-800: #17264a;
  --navy-700: #22345f;
  --on-dark: #e8edf6;
  --on-dark-2: #b6c2d9;
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --teal-bright: #5ed2c2;
  --teal-soft: #dcefeb;
  --warn-bg: #fff3d6;
  --warn-ink: #7a4d00;
  --warn-line: #efd49a;
  --error: #b42318;
  --error-bg: #fdecea;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Manrope', var(--font-sans);
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06), 0 1px 1px rgba(20, 33, 61, 0.04);
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, 0.2), 0 2px 6px rgba(20, 33, 61, 0.06);
  --shadow-lg: 0 30px 70px -24px rgba(5, 10, 25, 0.55);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--teal);

  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }

/* Type scale: small and consistent */
h1, h2, h3, h4, .h3, .h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4, .h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h2 a, h3 a, .h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover, .h3 a:hover { color: var(--teal-dark); text-decoration: underline; }
code { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow, .narrow { max-width: 820px; }

.eyebrow { font-family: var(--font-head); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.9rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.6; max-width: 40em; }
.lead-sm { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-3); font-size: 0.95rem; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.7em 1.3em;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-line);
  border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s, border-color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: none; }
.btn-primary { --btn-bg: var(--ink); --btn-fg: #fff; --btn-line: var(--ink); }
.btn-primary:hover { --btn-bg: var(--navy-900); box-shadow: var(--shadow); }
.btn-secondary { --btn-bg: transparent; --btn-line: var(--ink); }
.btn-secondary:hover { --btn-bg: var(--surface); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { --btn-bg: var(--bg-tint); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-line: #fff; }
.btn-light:hover { --btn-bg: var(--teal-soft); --btn-line: var(--teal-soft); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { --btn-line: #fff; --btn-bg: rgba(255, 255, 255, 0.06); }
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0.85em 1.5em; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.text-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--teal-dark); display: inline-flex; gap: 0.35em; align-items: center; }
.text-link:hover { text-decoration: underline; color: var(--ink); }
.text-link span[aria-hidden] { transition: transform 0.2s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateX(3px); }
.text-link-muted { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, 0.92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark-text { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 7px; }
.wordmark-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dark); }
.logo-mark { flex: none; color: var(--ink); --teal-bright: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.site-nav ul a:hover { color: var(--ink); background: var(--bg-tint); }
.site-nav ul a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.site-nav ul a[aria-current='page']:focus-visible { box-shadow: var(--focus); border-radius: 6px; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s var(--ease); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav ul a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 14px; }
  .header-cta { width: 100%; min-height: 48px; }
  .no-js .site-nav { position: static; display: flex; box-shadow: none; border: 0; }
}
@media (max-width: 400px) {
  .wordmark-text { font-size: 1rem; }
  .wordmark-tag { display: none; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 8px 12px; }
}

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section) 0; }
.section-top-tight { padding-top: 16px; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-bright); }
.section-dark .section-head p:not(.eyebrow), .section-dark .lead-sm { color: var(--on-dark-2); }
.section-dark :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 5px var(--teal-bright); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-hero-compact { padding-bottom: 20px; }
.page-hero .notice, .page-hero .concept-badge { margin-top: 20px; }
.demo-business { color: var(--ink-2); margin-top: 8px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump-links a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.jump-links a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------------------------------------------------------------- Hero (dark) */
.hero { background: radial-gradient(1200px 500px at 85% 10%, var(--navy-800), var(--navy-900) 60%); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
.hero .eyebrow { color: var(--teal-bright); }
.hero .lead { color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: 0.92rem; color: var(--on-dark-2); font-family: var(--font-head); font-weight: 600; }
.hero :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 5px var(--teal-bright); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 620px; } }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- UI previews (shared) */
.ui-figure { margin: 0; position: relative; }
.ui-kicker { font-family: var(--font-head); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.ui-h { font-family: var(--font-head); font-weight: 800; font-size: 0.98rem; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.01em; }
.ui-field { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--surface); }
.ui-field span { color: var(--ink-3); }
.ui-field b { font-weight: 650; text-align: right; }
.ui-btn { display: block; text-align: center; background: var(--teal); color: #fff; border-radius: 8px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; padding: 8px 10px; margin-top: 10px; }
.ui-btn-sm { display: inline-block; margin-top: 0; padding: 6px 12px; font-size: 0.74rem; }
.ui-link { font-size: 0.74rem; font-weight: 700; color: var(--teal-dark); text-decoration: underline; }
.ui-ok { font-size: 0.74rem; color: var(--teal-dark); font-weight: 650; margin: 10px 0 0; }
.ui-pill { font-size: 0.66rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); white-space: nowrap; }
.ui-pill-teal { background: var(--teal-soft); color: var(--teal-dark); }
.ui-pill-navy { background: #e3e7f0; color: var(--ink); }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.ui-dot-muted { background: var(--line-strong); box-shadow: none; }
.ui-flag { font-size: 0.74rem; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 5px 8px; margin: 0; font-weight: 650; }
.ui-caption { position: absolute; right: 2px; bottom: -26px; font-size: 0.72rem; color: var(--on-dark-2); }
.ui-steps { display: flex; gap: 5px; margin: 4px 0 12px; }
.ui-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.ui-steps .done { background: var(--teal); }
.ui-steps .now { background: var(--ink); }
.ui-msg { margin-top: 10px; font-size: 0.78rem; line-height: 1.45; background: var(--bg); border: 1px solid var(--line); border-radius: 10px 10px 10px 3px; padding: 9px 11px; color: var(--ink-2); }
.ui-msg .ui-kicker { display: block; color: var(--warn-ink); margin-bottom: 4px; }
.ui-track { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.76rem; }
.ui-track li { position: relative; padding: 0 0 10px 20px; color: var(--ink-3); }
.ui-track li::before { content: ''; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.ui-track li.done { color: var(--ink-2); }
.ui-track li.done::before { background: var(--teal); border-color: var(--teal); }
.ui-track li.now { color: var(--ink); font-weight: 750; }
.ui-track li.now::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px #dfe3ec; }

.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f4f1ea; border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-url { margin-left: 10px; flex: 1; font-size: 0.7rem; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; font-family: var(--font-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Hero composition */
.hc { display: grid; grid-template-columns: 0.8fr 1.2fr; grid-template-rows: auto auto; gap: 14px; color: var(--ink); }
.hc-phone { background: var(--surface); border-radius: 22px; padding: 12px 14px 16px; box-shadow: var(--shadow-lg); border: 6px solid #0a1226; }
.hc-phone-bar { width: 46px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.hero .hc-phone { grid-row: 1 / span 2; align-self: center; }
.hc-dash { background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); }
.hc-dash-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hc-dash-top .ui-kicker { margin: 0; }
.ui-count { font-size: 0.7rem; font-weight: 700; color: var(--ink-3); }
.ui-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ui-rows li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 0.76rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.ui-rows li.is-new { border-color: var(--teal); background: #f3fbf9; }
.ui-rows b { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-rows em { font-style: normal; color: var(--ink-3); white-space: nowrap; }
.hc-detail { margin-top: 10px; }
.hc-action { background: var(--teal-soft); border: 1px solid #b4ddd5; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); }
.hc-action .ui-kicker { color: var(--teal-dark); }
.hc-action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-figure { padding-bottom: 10px; }
.js .hero-figure .hc > * { opacity: 0; transform: translateY(12px); animation: rise 0.7s var(--ease) forwards; }
.js .hero-figure .hc-dash { animation-delay: 0.25s; }
.js .hero-figure .hc-action { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .hc { grid-template-columns: 1fr; }
  .hero .hc-phone { grid-row: auto; }
  .ui-rows li { grid-template-columns: auto 1fr auto; }
  .ui-rows em { display: none; }
}

/* Proof section (asymmetric) */
.proof { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.proof-copy p:not(.eyebrow):not(.concept-badge) { color: var(--ink-2); }
.proof-copy strong { color: var(--ink); }
.proof-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
.proof-visual { background: linear-gradient(140deg, var(--navy-800), var(--navy-900)); border-radius: 22px; padding: clamp(18px, 3vw, 32px); }
.rp-prev { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 14px; align-items: center; color: var(--ink); }
.rp-prev-staff { background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rp-prev { grid-template-columns: 1fr; } }

/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.offer { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.offer:last-child { border-right: 0; }
.offer p { color: var(--ink-2); }
.offer > .text-link { margin-top: auto; padding-top: 18px; }
.offer-note { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } .offer { border-right: 0; border-bottom: 1px solid var(--line); } .offer:last-child { border-bottom: 0; } }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--ink); margin-bottom: 16px; }

.check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%230b5c56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.check-list.compact { gap: 6px; }
.check-list.on-dark li { color: var(--on-dark); }
.plain-list { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; }
.plain-list li { margin-bottom: 4px; }

/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.solution { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.solution p { color: var(--ink-2); }
.solution-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.solution-grid-lg .solution { padding: 32px; }
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr; } }

/* Workflow diagram */
.workflow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: wf; }
.workflow-step { position: relative; padding: 22px 20px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--navy-700); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.workflow-step::after { content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--teal-bright); font-weight: 800; z-index: 1; }
.workflow-step:last-child::after { display: none; }
.workflow-step h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.workflow-step p { color: var(--on-dark-2); font-size: 0.93rem; }
.workflow-step.is-active { border-color: var(--teal-bright); background: #1d3158; transform: translateY(-3px); }
.workflow-step.is-done { border-color: rgba(94, 210, 194, 0.45); }
.workflow-who { display: inline-block; font-family: var(--font-head); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.workflow-who-auto { background: rgba(94, 210, 194, 0.16); color: var(--teal-bright); }
.workflow-who-human { background: #fff3d6; color: var(--warn-ink); }
.workflow-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.section-dark .btn-secondary { --btn-fg: #fff; --btn-line: rgba(255, 255, 255, 0.5); color: #fff; }
.section-dark .btn-secondary:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-line: #fff; }
.workflow-legend { display: flex; gap: 10px; margin: 0; }
@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .workflow-step::after { display: none; }
}
@media (max-width: 560px) { .workflow-steps { grid-template-columns: 1fr; } }

/* Why + artefacts */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-list { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.why-list dt { font-family: var(--font-head); font-weight: 800; margin-bottom: 4px; }
.why-list dt::before { content: ''; display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--teal); margin-bottom: 12px; }
.why-list dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.why-artefacts { display: grid; gap: 14px; }
.artefact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.artefact-list { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 8px; }
.artefact-list li { counter-increment: a; display: grid; grid-template-columns: 26px 130px 1fr; gap: 8px; font-size: 0.88rem; align-items: baseline; }
.artefact-list li::before { content: counter(a); font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal-dark); }
.artefact-list span { color: var(--ink-3); }
.artefact-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.88rem; }
.artefact-checks li { position: relative; padding-left: 26px; }
.artefact-checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 4px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3L10.5 4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } .artefact-list li { grid-template-columns: 22px 1fr; } .artefact-list span { grid-column: 2; } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-step { position: relative; padding: 22px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.process-num { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.94rem; color: var(--ink-2); }
@media (max-width: 1080px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process-step { border-radius: 0; border-width: 0 0 0 2px; border-color: var(--line-strong); background: transparent; padding: 4px 0 26px 28px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-num { position: absolute; left: -15px; top: 0; margin: 0; padding: 4px 6px; background: var(--bg-tint); border: 2px solid var(--teal); }
}
.section:not(.section-tint) .process-num { background: var(--bg); }
.budget { margin-top: 28px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.budget p { color: var(--ink-2); max-width: 62em; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-dark); }
.faq-icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.2s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq[open] .faq-icon { border-color: var(--teal); background: var(--teal-soft); }
.faq-body { padding: 0 4px 22px; color: var(--ink-2); max-width: 44em; }

/* Closing invite */
.invite-panel { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--navy-900); color: var(--on-dark); border-radius: 22px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.invite-panel::after { content: ''; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(94, 210, 194, 0.3); pointer-events: none; }
.invite-panel h2 { color: #fff; }
.invite-panel p { color: var(--on-dark-2); max-width: 38em; }
.invite-panel a:not(.btn) { color: var(--teal-bright); }
.invite-alt { margin-top: 12px; }
.invite-actions { position: relative; z-index: 1; }
.invite-panel :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 5px var(--teal-bright); }
@media (max-width: 760px) { .invite-panel { grid-template-columns: 1fr; } .invite-actions .btn { width: 100%; } }

/* CTA band (after demos / solution flows) */
.cta-band { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius); background: var(--teal-soft); border: 1px solid #b9ddd6; }
.cta-band p { margin: 0; max-width: 46em; color: #0c3d39; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-2); padding: 64px 0 24px; }
.site-footer .wordmark, .site-footer .logo-mark { color: #fff; }
.site-footer .logo-mark { --teal-bright: #5ed2c2; }
.site-footer .wordmark-tag { color: var(--teal-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 28em; }
.footer-heading { font-family: var(--font-head); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8fa0c0; margin-bottom: 12px; font-weight: 800; }
.footer-heading-gap { margin-top: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer ul a, .site-footer .link-button { color: var(--on-dark); text-decoration: none; display: inline-block; padding: 4px 0; font-size: 0.95rem; }
.site-footer ul a:hover, .site-footer .link-button:hover { color: var(--teal-bright); text-decoration: underline; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 5px var(--teal-bright); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--navy-700); font-size: 0.86rem; color: #8fa0c0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Services */
.package { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.package-intro p { color: var(--ink-2); }
.package-ongoing { font-size: 0.95rem; margin-bottom: 22px; }
.package-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.package-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.section-tint .package-block { background: #fcfbf8; }
.package-block-main { grid-column: 1 / -1; }
.package-block h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-dark); margin-bottom: 10px; }
@media (max-width: 900px) { .package { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .package-detail { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.notice { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.97rem; }
.notice p { color: inherit !important; }
.notice-info { background: var(--teal-soft); border-color: #b9ddd6; color: #0c3d39; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5a3a00; margin-bottom: 24px; }
mark.tbc { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); padding: 0 4px; border-radius: 4px; font-weight: 600; font-size: 0.92em; }

/* ---------------------------------------------------------------- Solutions pages */
.solution-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.solution-included { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .solution-split { grid-template-columns: 1fr; } }
.preview-demo { margin-top: 24px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-dark); margin-bottom: 10px; }
.steps-list .workflow-who { position: absolute; right: 14px; top: 16px; }
.steps-list .workflow-who-auto { background: var(--teal-soft); color: var(--teal-dark); }
.steps-list h3 { font-size: 1.05rem; }
.steps-list p { color: var(--ink-2); font-size: 0.94rem; }

.flow-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow-strip li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; position: relative; }
.flow-strip li.is-human { border-color: var(--warn-line); background: #fffaf0; }
.flow-strip b { display: block; font-family: var(--font-head); font-size: 0.98rem; margin: 8px 0 4px; }
.flow-strip small { color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; display: block; }
.flow-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 0.78rem; font-weight: 800; font-family: var(--font-head); }
@media (max-width: 1000px) { .flow-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .flow-strip { grid-template-columns: 1fr; } }

.sch { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.sch-site { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.sch-body { padding: 16px 18px 20px; }
.sch-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.78rem; margin-bottom: 14px; color: var(--ink-3); }
.sch-nav b { font-family: var(--font-head); color: var(--ink); margin-right: auto; font-size: 0.9rem; }
.sch-nav i { font-style: normal; }
.sch-hero { background: var(--navy-900); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.sch-hero .ui-h { color: #fff; font-size: 1.05rem; }
.sch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sch-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.sch-line { font-size: 0.78rem; margin: 0 0 4px; color: var(--ink-2); }
.sch-side { display: grid; gap: 14px; align-content: start; }
.sch-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.sch .ui-caption, .wc .ui-caption { color: var(--ink-3); }
.school-figure, .wc-figure { padding-bottom: 28px; }
@media (max-width: 800px) { .sch { grid-template-columns: 1fr; } }

.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.ba-page { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 220px; box-shadow: var(--shadow-sm); }
.ba-before i { display: block; height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 10px; }
.ba-after { border-color: var(--teal); }
.ba-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.ba-tiles span { font-size: 0.74rem; font-weight: 700; text-align: center; padding: 16px 4px; border-radius: 8px; background: var(--bg-tint); color: var(--ink-2); }
.ba-note { font-size: 0.8rem; color: var(--ink-3); margin: 14px 0 0; }
.ba-arrow { font-size: 1.6rem; color: var(--teal); font-weight: 800; }
@media (max-width: 700px) { .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------------------------------------------------------------- Work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .work-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .work-grid, .work-grid-3 { grid-template-columns: 1fr; } }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.work-thumb { display: block; text-decoration: none; color: inherit; position: relative; height: 190px; background: linear-gradient(140deg, var(--navy-800), var(--navy-900)); padding: 22px; overflow: hidden; }
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-body > .text-link { margin-top: auto; padding-top: 14px; }
.work-kind { font-size: 0.78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; font-family: var(--font-head); }
.work-kind span { color: var(--warn-ink); }
.work-problem { font-weight: 600; color: var(--ink); }
.work-flow { color: var(--ink-2); font-size: 0.95rem; }
.thumb-card { background: var(--surface); border-radius: 9px; padding: 10px 12px; box-shadow: var(--shadow); width: 68%; font-size: 0.78rem; color: var(--ink); }
.thumb-card b { display: block; margin-bottom: 6px; }
.thumb-card i { display: block; height: 6px; background: var(--line); border-radius: 3px; margin-bottom: 5px; }
.thumb-card-2 { position: absolute; right: 18px; bottom: 18px; width: 58%; border-left: 3px solid var(--teal); }
.thumb-chip { display: inline-block; margin-top: 4px; font-size: 0.7rem; background: var(--teal-soft); color: var(--teal-dark); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.thumb-steps { display: flex; gap: 6px; margin-bottom: 14px; width: 70%; }
.thumb-steps span { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.thumb-steps .done { background: var(--teal-bright); }
.thumb-steps .now { background: #fff; }
.thumb-site { background: var(--surface); border-radius: 10px; padding: 16px; width: 72%; color: var(--ink); }
.thumb-site b { display: block; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 8px; }
.thumb-site i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 10px; }
.thumb-btn { display: inline-block; font-size: 0.7rem; font-weight: 800; background: var(--teal); color: #fff; padding: 5px 10px; border-radius: 6px; }
.thumb-phone { position: absolute; right: 22px; bottom: -20px; width: 82px; height: 150px; border-radius: 16px; background: var(--surface); border: 5px solid #0a1226; padding: 14px 8px; }
.thumb-phone i { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 7px; }
.thumb-phone span { display: block; height: 14px; border-radius: 4px; background: var(--teal); margin-top: 10px; }

.annotations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.annotations > div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.annotations p { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 1000px) { .annotations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .annotations { grid-template-columns: 1fr; } }

.wc { display: grid; grid-template-columns: 1fr 230px; gap: 22px; align-items: end; }
.wc-desktop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.wc-body { padding: 18px 22px 24px; }
.wc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.8rem; color: var(--ink-3); margin-bottom: 22px; }
.wc-nav b { font-family: var(--font-head); color: var(--ink); margin-right: auto; font-size: 0.95rem; }
.wc-nav i { font-style: normal; }
.wc-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
.wc-h { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; color: var(--ink); }
.wc-h-sm { font-size: 1.15rem; }
.wc-p { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 14px; }
.wc-photo { height: 170px; border-radius: 12px; background: radial-gradient(circle at 30% 30%, #cfe9e4, #8fc9bf 45%, #3c8f86); }
.wc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wc-tiles div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.wc-tiles b { display: block; font-family: var(--font-head); font-size: 0.85rem; }
.wc-tiles small { font-size: 0.74rem; color: var(--ink-3); }
.wc-mobile { box-shadow: var(--shadow); }
@media (max-width: 860px) { .wc { grid-template-columns: 1fr; } .wc-mobile { max-width: 260px; } .wc-hero { grid-template-columns: 1fr; } .wc-photo { height: 110px; } }
@media (max-width: 520px) { .wc-tiles { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- About */
.handling-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.handling { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.handling:nth-child(3n+2), .handling:nth-child(3n) { padding-left: 26px; border-left: 1px solid var(--line); }
.handling-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal-dark); }
.handling h3 { margin-top: 8px; }
.handling p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) {
  .handling-grid { grid-template-columns: 1fr; }
  .handling, .handling:nth-child(3n+2), .handling:nth-child(3n) { padding: 22px 0; border-left: 0; }
}
.principles-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0; }
.principles-dl dt { font-family: var(--font-head); font-weight: 800; margin-bottom: 4px; }
.principles-dl dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .principles-dl { grid-template-columns: 1fr; } }
.founder-note { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.founder-note p { color: var(--ink-2); }

/* ---------------------------------------------------------------- Concept badge */
.concept-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.concept-badge span { font-size: 0.6rem; }

/* ---------------------------------------------------------------- Demos */
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.explain { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.explain .h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-dark); margin-bottom: 10px; }
.explain p, .explain li { font-size: 0.95rem; color: var(--ink-2); }
.explain ol { margin: 0; padding-left: 1.2em; }
.explain li { margin-bottom: 4px; }
@media (max-width: 900px) { .explain-grid { grid-template-columns: 1fr; } }
.demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.demo > .demo-safe { grid-column: 1 / -1; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo-panel-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 16px; }
.demo-form { min-width: 0; }
.demo-form form + form { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.demo-safe { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-3); margin: 12px 0 0; }
.demo-safe svg { color: var(--teal); flex: none; }
.demo-example { margin: 10px 0 0; }
.demo-example .btn { padding-left: 0; }

.field { margin: 0 0 18px; min-width: 0; }
fieldset.field, .form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input[type='text'], input[type='email'], input[type='date'], input[type='number'], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; min-height: 48px; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314213d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22); border-radius: 10px; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--error); background-color: #fffafa; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg-tint); cursor: not-allowed; }
::placeholder { color: var(--ink-3); opacity: 1; }
.hint { font-size: 0.87rem; color: var(--ink-3); margin: 6px 0 0; }
.optional { font-weight: 450; color: var(--ink-3); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 450; font-size: 0.97rem; min-height: 36px; margin: 0; cursor: pointer; }
input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--teal); flex: none; margin: 0; }
input[type='checkbox']:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; min-width: 0; text-transform: uppercase; }
.form-error { color: var(--error); background: var(--error-bg); padding: 10px 14px; border-radius: 8px; font-size: 0.93rem; margin-top: 12px; }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); margin-left: auto; }
.inline-select select { width: auto; min-height: 40px; padding: 6px 34px 6px 10px; font-size: 0.9rem; }

.demo-output { min-width: 0; display: flex; flex-direction: column; }
.demo-tabs { display: flex; gap: 4px; background: var(--bg-tint); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.demo-tabs [role='tab'] { flex: 1; min-height: 42px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 650; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; }
.demo-tabs [role='tab'][aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.doc { background: #fcfbf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; font-size: 0.95rem; }
.doc-empty { display: grid; place-items: center; min-height: 240px; text-align: center; color: var(--ink-3); border-style: dashed; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-title { font-size: 1.05rem; margin: 0; }
.doc-ref { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin: 2px 0 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-navy { background: #e3e7f0; color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.doc-section { margin-top: 18px; }
.doc-section h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 8px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--warn-bg); color: #5a3a00; font-size: 0.9rem; margin-top: 8px; }
.flag-info { background: var(--teal-soft); color: #0c3d39; }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.task-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 0.92rem; }
.task-list li::before { content: ''; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 4px; transform: translateY(2px); }
.task-list .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.task-list li.done::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3L10.5 4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--teal); }
.msg { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 0.92rem; }
.msg-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.76rem; color: var(--ink-3); margin-bottom: 6px; }
.preview-tag { font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); padding: 1px 8px; border-radius: 999px; }
.js .doc-animate { animation: doc-in 0.35s var(--ease); }
@keyframes doc-in { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.demo-repair { grid-template-columns: 1fr; }
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper li { position: relative; padding-top: 14px; font-size: 0.86rem; font-weight: 650; color: var(--ink-3); }
.stepper li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); transition: background 0.3s var(--ease); }
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done::before { background: var(--teal); }
.stepper li.is-current { color: var(--ink); }
.stepper li.is-current::before { background: var(--ink); }
.stepper .step-n { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; }
.repair-panels { display: grid; grid-template-columns: 1.15fr 0.8fr 0.9fr; gap: 16px; margin-top: 20px; align-items: start; }
@media (max-width: 1000px) { .repair-panels { grid-template-columns: 1fr 1fr; } .doc-log { grid-column: 1 / -1; } }
@media (max-width: 680px) {
  .repair-panels { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; gap: 4px; }
  .stepper li { padding: 0 0 0 20px; }
  .stepper li::before { top: 4px; bottom: 4px; right: auto; width: 6px; height: auto; }
  .inline-select { margin-left: 0; }
}
.phone { background: var(--navy-900); border-radius: 28px; padding: 10px; box-shadow: var(--shadow); max-width: 320px; width: 100%; justify-self: center; }
.phone-notch { width: 70px; height: 6px; border-radius: 3px; background: #2c3a5a; margin: 4px auto 10px; }
.phone-screen { background: #fcfbf8; border-radius: 20px; padding: 16px; min-height: 360px; font-size: 0.9rem; }
.cust-brand { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.cust-sub { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 14px; }
.cust-track { list-style: none; padding: 0; margin: 14px 0; }
.cust-track li { position: relative; padding: 0 0 14px 24px; font-size: 0.85rem; color: var(--ink-3); }
.cust-track li::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fcfbf8; }
.cust-track li::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.cust-track li:last-child::after { display: none; }
.cust-track li.is-done { color: var(--ink-2); }
.cust-track li.is-done::before { background: var(--teal); border-color: var(--teal); }
.cust-track li.is-current { color: var(--ink); font-weight: 700; }
.cust-track li.is-current::before { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px #dfe3ec; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.log time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); padding-top: 2px; }
.area-result { margin: 0; font-weight: 600; font-size: 0.95rem; padding: 12px 14px; border-radius: 9px; background: var(--bg-tint); }
.area-result:empty { display: none; }
.area-result.ok { color: var(--teal-dark); background: var(--teal-soft); }
.area-result.edge { color: var(--warn-ink); background: var(--warn-bg); }
.area-result.no, .area-result.err { color: var(--error); background: var(--error-bg); }
#sv-output { gap: 14px; }

/* ---------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form, .form-success { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.context-note { background: var(--teal-soft); color: #0c3d39; border-radius: 9px; padding: 10px 14px; font-weight: 600; font-size: 0.95rem; }
.form-intro { font-size: 0.92rem; color: var(--ink-3); }
.form-summary { background: var(--error-bg); color: var(--error); border: 1px solid #f3c0ba; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.form-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-summary a { color: var(--error); font-weight: 600; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 0.9rem; color: var(--ink-3); margin: 8px 0 22px; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); background: var(--error-bg); padding: 12px 14px; border-radius: 10px; }
.form-status.is-pending { color: var(--ink-2); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { border-color: #b9ddd6; }
.form-success:focus { outline: none; box-shadow: var(--focus); }
.form-success p { color: var(--ink-2); }
.success-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 18px; }
.contact-aside { position: sticky; top: 100px; }
.contact-aside h2 { font-size: 1.4rem; }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.next-steps li { counter-increment: n; position: relative; padding-left: 44px; color: var(--ink-2); }
.next-steps li strong { color: var(--ink); }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 0.9rem; }
.aside-contact { padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.aside-note { font-size: 0.92rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 900px) { .contact-aside { position: static; } }

/* ---------------------------------------------------------------- Cookie consent */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.cookie-title { font-family: var(--font-head); font-size: 1rem; margin: 0 0 4px; }
.cookie-banner p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }

/* ---------------------------------------------------------------- Motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .hero-figure .hc > * { opacity: 1; transform: none; animation: none; }
  .btn:hover, .work-card:hover { transform: none; }
}
@media print { .site-header, .site-footer, .invite, .skip-link, .cookie-banner { display: none; } body { background: #fff; } }
