/* xPA.one site styles — 2026-11-22 redesign
   Fonts: Plus Jakarta Sans and Inter, self-hosted (SIL OFL 1.1, see assets/fonts/OFL-*.txt) */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  --ink: #0B1F1A;
  --brand: #0F5A46;
  --brand-dark: #0B4536;
  --brand-tint: #E4EFEA;
  --accent: #F5B83D;
  --accent-hover: #F7C65F;
  --muted: #4A5B55;
  --soft: #F3F5F0;
  --bg: #FFFFFF;
  --line: #DCE3DE;
  --dark: #0B1F1A;
  --dark-text: #C9D6CF;
  --radius: 12px;
  --radius-btn: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 26, .06), 0 8px 24px rgba(11, 31, 26, .08);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-btn); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }
.btn-lg { min-height: 52px; padding: 13px 22px; font-size: 1.0625rem; }
.link-btn { background: none; border: 0; padding: 6px 4px; color: var(--brand); font: 600 .875rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { flex: none; }
.logo { width: auto; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--brand); }

/* ---------- Common ---------- */
.eyebrow { font: 600 .8125rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.eyebrow-light { color: #FDF0D2; }
.fine { font-size: .875rem; color: var(--muted); }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .control h2, .pilot h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.section-lede { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); line-height: 1.08; }
.lede { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9375rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: '\2713'; width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font: 700 .8125rem/1 var(--font-body); }

/* Hero visual (CSS illustration) */
.hero-visual { position: relative; margin: 0; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone { position: relative; align-self: flex-start; margin-left: 24px; width: 268px; padding: 12px; border-radius: 36px; background: var(--ink); box-shadow: 0 30px 60px rgba(11, 31, 26, .25); }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 18px; margin-left: -38px; border-radius: 10px; background: var(--ink); z-index: 2; }
.sp { background: #fff; border-radius: 26px; overflow: hidden; min-height: 470px; font-size: 11px; line-height: 1.35; }
.sp-bar { display: flex; align-items: center; gap: 6px; padding: 40px 12px 10px; border-bottom: 1px solid #E7EEF6; }
.sp-logo { width: 22px; height: 22px; border-radius: 6px; background: #17365D; color: #fff; font: 700 9px/22px var(--font-head); text-align: center; }
.sp-name { font: 700 11px var(--font-head); color: #17365D; }
.sp-call { margin-left: auto; padding: 3px 8px; border-radius: 6px; border: 1px solid #17365D; color: #17365D; font-weight: 600; font-size: 10px; }
.sp-hero { background: #17365D; color: #fff; padding: 18px 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.sp-eyebrow { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #E7EEF6; }
.sp-title { font: 700 17px/1.2 var(--font-head); }
.sp-btn { align-self: flex-start; margin-top: 4px; padding: 7px 12px; border-radius: 6px; background: #C2410C; color: #fff; font-weight: 600; }
.sp-chips { display: flex; gap: 6px; padding: 12px 12px 4px; flex-wrap: wrap; }
.sp-chips span { padding: 4px 9px; border-radius: 999px; background: #E7EEF6; color: #17365D; font-weight: 600; font-size: 10px; }
.sp-rows { display: grid; gap: 8px; padding: 10px 12px 16px; }
.sp-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; padding: 8px; border: 1px solid #E7EEF6; border-radius: 8px; }
.sp-row b { width: 34px; height: 34px; border-radius: 6px; background: #E7EEF6; }
.sp-row i { height: 8px; border-radius: 4px; background: #D5DEE9; }

.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; font-size: .8125rem; line-height: 1.4; }
.chat-float { top: 40px; right: 0; width: 240px; }
.req-float { bottom: 80px; right: 0; width: 248px; }
.float-label { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bubble { padding: 8px 11px; border-radius: 12px; margin-top: 6px; }
.bubble-in { background: var(--soft); border-bottom-right-radius: 4px; margin-left: 16px; }
.bubble-ai { background: var(--brand); color: #fff; border-bottom-left-radius: 4px; margin-right: 16px; }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.req-title { font-weight: 600; font-family: var(--font-head); }
.req-list, .owner-list { margin: 0; display: grid; gap: 6px; }
.req-list div, .owner-list div { display: flex; justify-content: space-between; gap: 12px; }
.req-list dt, .owner-list dt { color: var(--muted); }
.req-list dd, .owner-list dd { margin: 0; font-weight: 600; text-align: right; }
.req-actions { display: flex; gap: 6px; margin-top: 12px; }
.mini-btn { flex: 1; text-align: center; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .75rem; }
.mini-primary { background: var(--accent); border-color: var(--accent); }
.visual-cap { margin-top: 20px; align-self: stretch; text-align: left; font-size: .8125rem; color: var(--muted); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill-idle { background: var(--soft); color: var(--muted); }
.pill-live { background: var(--brand-tint); color: var(--brand-dark); }
.pill-wait { background: #FDF0D2; color: #6B4A00; }
.pill-done { background: var(--brand); color: #fff; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 1rem; }
.panel-head .link-btn { margin-left: auto; }
.panel-tag { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag-cust { background: var(--soft); color: var(--ink); }
.tag-owner { background: var(--brand); color: #fff; }
.messages { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; height: 340px; overflow-y: auto; }
.messages li { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9375rem; }
.messages .assistant { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.messages .visitor { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 20px; border-top: 1px solid var(--line); min-height: 76px; align-items: center; }
.chip-btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand); font: 600 .9375rem var(--font-body); cursor: pointer; }
.chip-btn:hover { background: var(--brand-tint); }
.panel-owner { background: var(--soft); }
.owner-card { margin: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); flex: 1; display: flex; flex-direction: column; }
.owner-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.owner-name { font: 700 1rem var(--font-head); }
.owner-list { gap: 12px; font-size: .9375rem; }
.owner-actions { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; justify-items: start; }

/* ---------- Steps ---------- */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.0625rem var(--font-head); margin-bottom: 18px; }

/* ---------- Templates ---------- */
.p1 { --t-pri: #17365D; --t-soft: #E7EEF6; --t-acc: #C2410C; --t-bg: #FFFFFF; --t-ink: #1B2430; }
.p2 { --t-pri: #1F5C3A; --t-soft: #E6EFE8; --t-acc: #F2B705; --t-bg: #FAF8F2; --t-ink: #1E2A24; }
.p3 { --t-pri: #6B1E3A; --t-soft: #F3E9E4; --t-acc: #D9A441; --t-bg: #FBF7F2; --t-ink: #2A1B20; }
.p4 { --t-pri: #1C1C1E; --t-soft: #F2F2EF; --t-acc: #FFC629; --t-bg: #FFFFFF; --t-ink: #111111; }
.p5 { --t-pri: #0B5F86; --t-soft: #E3F1F7; --t-acc: #C2462B; --t-bg: #F7FBFD; --t-ink: #12303F; }
.p6 { --t-pri: #2B3A4A; --t-soft: #E9ECEF; --t-acc: #B91C1C; --t-bg: #F7F7F5; --t-ink: #1F2933; }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tpl-thumb { aspect-ratio: 4 / 3; background: var(--t-bg); border-bottom: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: background-color .2s; }
.tpl-body { padding: 22px 24px 24px; }
.tpl-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tpl-body p { color: var(--muted); }
.tpl-note { margin-top: 20px; }

.t-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #fff; }
.t-bar-dark { background: transparent; padding: 0; }
.t-bar-plain { background: transparent; justify-content: space-between; padding: 2px 0; }
.t-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--t-pri); flex: none; }
.t-bar-dark .t-logo { background: #fff; }
.t-logo-lg { width: 40px; height: 40px; border-radius: 50%; }
.t-line { display: block; height: 6px; border-radius: 3px; background: var(--t-ink); opacity: .75; }
.t-faint { opacity: .3; }
.t-head { display: block; height: 11px; width: 90%; border-radius: 4px; background: var(--t-pri); }
.t-head-light { background: #fff; }
.t-btn { display: block; width: 46%; height: 16px; border-radius: 4px; background: var(--t-acc); }
.t-btn-sm { width: 34px; height: 12px; margin-left: auto; }
.t-pill { border-radius: 999px; }
.t-btn-wide { width: 52%; height: 18px; }
.t-btn-round { border-radius: 8px; width: 34%; }
.t-w20 { width: 20%; } .t-w30 { width: 30%; } .t-w40 { width: 40%; } .t-w60 { width: 60%; } .t-w70 { width: 70%; } .t-w80 { width: 80%; }

.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.t-col { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.t-img { border-radius: 6px; background: var(--t-soft); border: 2px solid var(--t-pri); opacity: .9; min-height: 40px; }
.t-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t-trust span { height: 14px; border-radius: 4px; background: var(--t-soft); }

.t-cover { flex: 1; background: var(--t-pri); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.t-chips { display: flex; gap: 5px; }
.t-chips span { width: 22%; height: 10px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .8); }
.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.t-cards span { height: 26px; border-radius: 6px; background: var(--t-soft); }

.tpl-local { background: var(--t-soft); }
.t-center { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.t-img-round { flex: 1; border-radius: 12px; border: 0; background: var(--t-pri); opacity: .85; }

.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.sw-label { flex-basis: 100%; font-size: .8125rem; color: var(--muted); }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: default; background: conic-gradient(var(--c1) 0 50%, var(--c2) 50% 100%); }
button.sw { cursor: pointer; width: 32px; height: 32px; min-width: 32px; }
button.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.sw-p1 { --c1: #17365D; --c2: #C2410C; }
.sw-p2 { --c1: #1F5C3A; --c2: #F2B705; }
.sw-p3 { --c1: #6B1E3A; --c2: #D9A441; }
.sw-p4 { --c1: #1C1C1E; --c2: #FFC629; }
.sw-p5 { --c1: #0B5F86; --c2: #C2462B; }
.sw-p6 { --c1: #2B3A4A; --c2: #B91C1C; }

/* ---------- Features & control ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); margin-bottom: 18px; }
.notice { margin-top: 28px; padding: 14px 18px; border-left: 4px solid var(--brand); background: #fff; border-radius: 0 8px 8px 0; }
.control { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding: 20px 20px 20px 60px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before { content: '\2713'; position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .875rem/1 var(--font-body); }

/* ---------- Pilot ---------- */
.pilot { background: var(--brand); color: #fff; }
.pilot-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.pilot h2 { color: #fff; margin-bottom: 16px; }
.pilot p { color: #E4EFEA; font-size: 1.0625rem; max-width: 620px; }
.pilot-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.text-link-light { color: #fff; font-weight: 500; }
.text-link-light:hover { color: var(--accent); }
.pilot :focus-visible, .closing :focus-visible { outline-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 1.0625rem var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand); font: 600 1.25rem/1 var(--font-body); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ---------- Closing & footer ---------- */
.closing { background: var(--dark); color: var(--dark-text); padding: 88px 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.closing p { font-size: 1.125rem; margin-bottom: 12px; }
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.footer-nav a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Get started page ---------- */
.gs-hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.gs-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); max-width: 760px; }
.gs-hero .lede { max-width: 680px; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 14px; border-radius: 999px; background: #FDF0D2; color: #6B4A00; font-weight: 600; font-size: .9375rem; }
.soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(245, 184, 61, .35); }
.progress { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; counter-reset: none; }
.progress li { height: 6px; border-radius: 3px; background: var(--line); }
.progress li:first-child { background: var(--brand); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.flow-step .step-num { margin: 0; }
.flow-step h3 { margin-bottom: 6px; }
.flow-step .tag { display: inline-block; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-tint); padding: 3px 10px; border-radius: 999px; }
.flow-step.last { grid-column: 1 / -1; border-color: var(--brand); }
.apply { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; background: var(--soft); border-radius: 20px; padding: 48px; }
.apply h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 14px; }
.apply ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.apply-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; justify-items: start; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; display: grid; gap: 20px; justify-items: center; }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .control, .pilot-inner, .apply { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .steps3, .feature-grid, .tpl-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .mast-inner { justify-content: space-between; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .section-head { margin-bottom: 32px; }
  .demo-grid, .steps3, .feature-grid, .tpl-grid, .flow { grid-template-columns: 1fr; }
  .flow-step.last { grid-column: auto; }
  .cta-row .btn { width: 100%; }
  .hero-visual { min-height: 0; padding-bottom: 8px; }
  .phone { width: 240px; align-self: center; margin-left: 0; }
  .sp { min-height: 400px; }
  .float { position: relative; inset: auto; width: 100%; max-width: 340px; margin-top: 12px; }
  .chat-float, .sp-rows { display: none; }
  .sp { min-height: 0; }
  .messages { height: 300px; }
  .card { padding: 22px; }
  .apply { padding: 28px 20px; }
  .faq details p { padding-right: 0; }
  .progress { gap: 4px; }
}
@media (max-width: 420px) {
  .mast .btn-sm { font-size: .8125rem; padding: 8px 10px; }
  .logo { height: 28px; }
  .mast-inner { gap: 10px; }
}

/* ---------- Legal pages (privacy) ---------- */
.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal .meta { color: var(--muted); font-size: .9375rem; }
.legal-draft { margin: 0 0 28px; padding: 12px 16px; border-radius: var(--radius); background: #FDF0D2; color: #6B4A00; font-weight: 600; border: 1px solid #F0D58F; }
.legal-toc { margin-top: 24px; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); }
.legal-toc ul { margin: 0; padding-left: 20px; gap: 4px; }
.legal a { overflow-wrap: anywhere; }
