/* SolDesk landing styles. Palette from CFE bill paper, meter glass and the sun. */
:root {
  --paper: #eef2ec;
  --paper-2: #e2e9df;
  --sheet: #ffffff;
  --ink: #15261e;
  --ink-2: #44564c;
  --line: #c8d2c6;
  --line-2: #dde4db;
  --field: #7b8c81;
  --cfe: #0b6b47;
  --cfe-deep: #07452e;
  --cfe-tint: #dcebe1;
  --sun: #f4b400;
  --sun-soft: #fff1c2;
  --sun-ink: #6f5200;
  --red: #b3261e;
  --dark-text: #dfe8e1;
  --dark-muted: #b3c3b8;
  --chat-bg: #e6ece2;
  --bubble-me: #d4efc5;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wide: 116%;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-stretch: var(--wide); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--cfe); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--cfe-deep); }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
::selection { background: var(--sun-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cfe); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.sprite { position: absolute; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.6rem 1.1rem;
  border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 0.975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: 1.05rem; }
.btn-primary { background: var(--cfe); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px -8px rgba(7,69,46,.7); }
.btn-primary:hover { background: var(--cfe-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc933; color: var(--ink); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font-weight: 780; font-stretch: 125%; font-size: 1.2rem; letter-spacing: -0.02em; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; color: var(--cfe-deep); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; }
.lang button { border: 0; background: transparent; padding: 6px 9px; min-width: 40px; min-height: 36px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: transparent; border-radius: 8px; min-height: 40px; padding: 0 12px; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 4.5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.sunpath { position: absolute; left: 50%; top: 0; width: min(1500px, 125vw); height: auto; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.sp-arc { fill: none; stroke: #b9c6b8; stroke-width: 1.5; stroke-dasharray: 1 9; stroke-linecap: round; }
.sp-ticks line { stroke: #c3cfc1; stroke-width: 1.5; }
.sp-sun { fill: var(--sun); filter: drop-shadow(0 0 14px rgba(244,180,0,.55)); }
.hero-copy { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.05rem, 1.25rem + 2.6vw, 3.35rem); font-weight: 760; line-height: 1.03; letter-spacing: -0.03em; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Demo ---------- */
.demo { position: relative; z-index: 1; margin-top: clamp(32px, 5vw, 56px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(14px, 2vw, 24px); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 2px 4px 16px; }
.demo-try { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; max-width: 72ch; }
.demo-try .ico { color: var(--cfe); margin-top: 0.2em; }
.demo-example { font-size: 0.85rem; color: var(--ink-2); background: var(--sun-soft); color: var(--sun-ink); padding: 3px 10px; border-radius: 6px; }
.demo-stage { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.stage-strip, .demo-tabs { display: none; }

/* phone */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 100%; max-width: 360px; height: 660px; background: var(--ink); border-radius: 44px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 30px 50px -30px rgba(21,38,30,.6), 0 2px 0 #2b4135 inset; }
.phone > * { background: var(--chat-bg); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; background: var(--cfe-deep); color: #fff; border-radius: 34px 34px 0 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; font-stretch: 125%; }
.ph-who { display: flex; flex-direction: column; line-height: 1.25; }
.ph-name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.98rem; }
.ico-verified { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: #3fbf7f; color: var(--cfe-deep); stroke-width: 3.2; }
.ph-status { font-size: 0.78rem; color: #cfe6d7; }
.chat-scroll {
  flex: 1; overflow-y: auto; padding: 14px 10px 8px; scrollbar-width: thin; scrollbar-color: #b9c6b8 transparent;
  background-color: var(--chat-bg);
  background-image: radial-gradient(rgba(21,38,30,.07) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.chat-scroll:focus { outline: none; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; }
.msg-me { justify-content: flex-end; }
.bubble { position: relative; max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 0.88rem; line-height: 1.42; background: #fff; box-shadow: 0 1px 1px rgba(21,38,30,.13); }
.msg-bot .bubble { border-top-left-radius: 3px; }
.msg-me .bubble { background: var(--bubble-me); border-top-right-radius: 3px; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; font-size: 0.68rem; color: #56675d; }
.ticks { width: 15px; height: 15px; color: #1f8fd0; stroke-width: 2; }
.bubble-status > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-style: italic; color: var(--ink-2); }
.bubble-status > span:first-child::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cfe); animation: spin 0.8s linear infinite; }
.bubble-img { padding: 4px 4px 6px; }
.bill-thumb { display: block; width: 190px; background: #f4f6f1; border-radius: 7px; padding: 4px; }
.img-cap { display: block; padding: 4px 6px 0; font-size: 0.78rem; color: var(--ink-2); }
.bubble-quote { max-width: 92%; }
.qcard { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fbfcfa; display: grid; gap: 6px; }
.qcard-h { font-weight: 700; font-size: 0.8rem; color: var(--cfe-deep); }
.qopt { display: grid; gap: 1px; text-align: left; width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.qopt:not([disabled]):hover { border-color: var(--cfe); background: #f3f9f5; }
.qopt[disabled] { cursor: default; }
.qopt[aria-pressed="true"] { border-color: var(--cfe); background: var(--cfe-tint); box-shadow: 0 0 0 1px var(--cfe) inset; }
.qopt[disabled][aria-pressed="false"] { opacity: .62; }
.qopt-n { font-weight: 700; font-size: 0.86rem; }
.qopt-s { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); }
.qopt-v { font-size: 0.78rem; color: var(--cfe-deep); }
.qlink-chat { display: flex; gap: 6px; align-items: center; font-size: 0.74rem; color: #075e9a; word-break: break-all; }
.qfine { font-size: 0.72rem; color: var(--ink-2); }
.typing { display: inline-flex; gap: 4px; margin: 6px 0 2px; padding: 10px 12px; background: #fff; border-radius: 10px; border-top-left-radius: 3px; box-shadow: 0 1px 1px rgba(21,38,30,.13); }
.typing[hidden] { display: none; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #7d8e83; animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-height: 64px; padding: 10px 12px 18px; background: #f5f7f2; border-top: 1px solid var(--line-2); border-radius: 0 0 34px 34px; align-items: center; }
.replies.is-busy::after { content: ""; width: 40%; height: 4px; border-radius: 4px; background: var(--line-2); margin-inline: auto; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; border-radius: 21px; border: 1.5px solid var(--cfe); background: #fff; color: var(--cfe-deep); font-weight: 650; font-size: 0.88rem; cursor: pointer; transition: background-color .15s, color .15s; }
.chip:hover { background: var(--cfe); color: #fff; }
.chip-restart { border-color: var(--ink); color: var(--ink); }
.chip-restart:hover { background: var(--ink); color: #fff; }
.reply-hint { width: 100%; font-size: 0.8rem; color: var(--ink-2); text-align: center; }
.reply-done { text-align: left; color: var(--ink); }

/* CRM */
.crm-frame { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 44px -30px rgba(21,38,30,.45); overflow: hidden; min-height: 660px; display: flex; flex-direction: column; }
.crm-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 0.86rem; }
.crm-tenant { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tenant-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--sun); display: grid; place-items: center; font-size: 0.6rem; font-weight: 800; font-stretch: 125%; }
.crm-view { padding: 3px 10px; background: var(--paper); border-radius: 6px; font-weight: 600; }
.crm-user { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.crm-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); flex: 1; }
.crm-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; background: var(--ink); color: #8fa497; }
.crm-rail .ico { width: 22px; height: 22px; }
.crm-rail .is-on { color: var(--sun); }
.crm-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.col { background: var(--paper); border-radius: 8px; padding: 8px; min-height: 124px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.col.is-current { background: var(--cfe-tint); border-color: #a9cdb6; }
.col-h { display: flex; justify-content: space-between; gap: 6px; font-size: 0.76rem; font-weight: 700; margin-bottom: 8px; }
.col-n { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.col-empty { font-size: 0.75rem; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px 8px; text-align: center; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; box-shadow: 0 1px 2px rgba(21,38,30,.12); display: grid; gap: 4px; will-change: transform; }
.lc-name { font-weight: 700; font-size: 0.82rem; line-height: 1.25; }
.lc-phone { font-size: 0.64rem; color: var(--ink-2); }
.lc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 0.64rem; padding: 2px 6px; border-radius: 4px; background: var(--paper); line-height: 1.4; }
.tag .ico { width: 11px; height: 11px; }
.tag-wa { background: #d7f0dc; color: #0a5235; font-weight: 600; }
.tag-flag { background: var(--sun-soft); color: var(--sun-ink); font-weight: 600; }
.lc-owner { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--ink-2); }
.lc-owner .ico { width: 12px; height: 12px; }
.lc-when { margin-left: auto; }

.lead-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "bill size" "alerts size"; gap: 12px; align-items: start; }
.ld-bill { grid-area: bill; }
.ld-size { grid-area: size; align-self: stretch; }
.alerts { grid-area: alerts; }
.ld-block, .alerts { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; }
.ld-h { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; }
.ld-h .ico { color: var(--cfe); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.fld { min-width: 0; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.fld dt { font-size: 0.68rem; color: var(--ink-2); line-height: 1.3; }
.fld dd { margin: 2px 0 0; font-family: var(--mono); font-size: 0.74rem; color: transparent; background: var(--line-2); border-radius: 4px; width: fit-content; max-width: 100%; transition: color .3s, background-color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld.is-filled dd { color: var(--ink); background: transparent; }
.flash { animation: flash 1.4s var(--ease); }
.hist { margin: 12px 0 0; padding: 2px 4px; }
.hist figcaption { font-size: 0.68rem; color: var(--ink-2); margin-bottom: 4px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 66px; }
.bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.bar { width: 100%; max-width: 30px; height: max(2px, calc(var(--h) / 1768 * 50px)); background: var(--cfe); border-radius: 2px 2px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.bars li:nth-child(2) .bar { transition-delay: .05s; } .bars li:nth-child(3) .bar { transition-delay: .1s; }
.bars li:nth-child(4) .bar { transition-delay: .15s; } .bars li:nth-child(5) .bar { transition-delay: .2s; } .bars li:nth-child(6) .bar { transition-delay: .25s; }
.bv { font-family: var(--mono); font-size: 0.56rem; color: transparent; transition: color .4s; }
.hist.is-filled .bar { transform: scaleY(1); }
.hist.is-filled .bv { color: var(--ink-2); }
.ld-empty, .alert-empty { font-size: 0.78rem; color: var(--ink-2); }
.ld-bill.is-empty .fields::before { content: none; }
.sizing { display: grid; gap: 8px; }
.sizing[hidden], .qlink[hidden], .flag[hidden] { display: none; }
.yield { font-size: 0.72rem; color: var(--ink-2); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opt { position: relative; display: grid; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; transition: border-color .3s, background-color .3s; }
.opt-n { font-weight: 700; font-size: 0.78rem; }
.opt-d { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-2); line-height: 1.5; }
.opt-tag { display: none; justify-self: start; margin-top: 3px; font-size: 0.64rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--cfe); color: #fff; }
.opt.is-chosen { border-color: var(--cfe); background: var(--cfe-tint); }
.opt.is-chosen .opt-tag { display: inline-block; }
.qlink { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--ink-2); }
.qlink .mono { color: #075e9a; word-break: break-all; }
.flag { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; padding: 7px 9px; border-radius: 7px; background: var(--sun-soft); color: var(--sun-ink); font-size: 0.72rem; font-weight: 600; line-height: 1.4; }
.flag .ico { margin-top: 1px; }
.alerts .ld-h { margin-bottom: 8px; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 7px; font-size: 0.78rem; line-height: 1.4; }
.alert .ico { margin-top: 1px; }
.alert-visit { background: var(--cfe-tint); color: var(--cfe-deep); }
.alert-eng { background: var(--sun-soft); color: var(--sun-ink); }
.alert.is-new { animation: slidein .6s var(--ease) both; }
.alert.is-new + .alert.is-new { animation-delay: .15s; }

.msg.is-new .bubble { animation: pop .32s var(--ease) both; }
.msg-me.is-new .bubble { transform-origin: top right; }
.msg-bot.is-new .bubble { transform-origin: top left; }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 30% { background: var(--sun-soft); } 100% { background: transparent; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2, .guard-head h2, .faq h2, .end h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem); font-weight: 740; }
.sec-head p { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; }

/* pain ledger */
.pain { background: var(--sheet); border-block: 1px solid var(--line); }
.ledger { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.ledger th { text-align: left; font-weight: 700; font-stretch: var(--wide); font-size: 1rem; padding: 0 24px 12px 0; border-bottom: 2px solid var(--ink); width: 50%; }
.ledger th:last-child { color: var(--cfe-deep); }
.ledger td { vertical-align: top; padding: 22px 32px 22px 0; border-bottom: 1px solid var(--line); max-width: 38rem; }
.ledger td:first-child { color: var(--ink-2); }
.ledger td:last-child { position: relative; padding-left: 34px; font-weight: 500; }
.ledger td:last-child::before { content: ""; position: absolute; left: 0; top: 25px; width: 20px; height: 20px; border-radius: 50%; background: var(--cfe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--cfe) 0 10px, transparent 10px 16px); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--cfe); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; color: var(--cfe-deep); position: relative; margin-bottom: 8px; }
.step:last-child .step-n { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.step h3 { font-size: 1.2rem; font-weight: 720; }
.step p { color: var(--ink-2); font-size: 1rem; }
.trace { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink) !important; background: var(--sheet); border: 1px dashed var(--field); border-radius: 6px; padding: 8px 10px; min-height: 4.2em; line-height: 1.45; }
.trace .ico { color: var(--cfe); }

/* safeguards (dark meter panel) */
.guard { background: var(--ink); color: var(--dark-text); }
.guard ::selection { background: var(--sun); color: var(--ink); }
.guard :focus-visible { outline-color: var(--sun); }
.guard-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 88px); }
.guard-head h2 { color: #fff; }
.guard-head p { margin-top: 16px; color: var(--dark-muted); font-size: 1.125rem; }
.guard-head { align-self: start; position: sticky; top: 110px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.rules li { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid #2f4539; }
.rules .ico { width: 28px; height: 28px; color: var(--sun); margin-top: 2px; }
.rules h3 { font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.rules p { color: var(--dark-muted); font-size: 0.98rem; }

/* CRM features */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.fg-h { font-size: 1.25rem; font-weight: 720; padding-top: 14px; border-top: 3px solid var(--ink); margin-bottom: 20px; }
.feat-list { margin: 0; display: grid; gap: 22px; }
.feat-list dt { font-weight: 700; margin-bottom: 4px; }
.feat-list dd { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.inbox-mock { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 24px; box-shadow: 0 16px 30px -24px rgba(21,38,30,.5); }
.im-title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 0.85rem; padding: 2px 4px 10px; border-bottom: 1px solid var(--line-2); }
.im-title .ico { color: var(--cfe); }
.inbox-mock ul { list-style: none; margin: 0; padding: 0; }
.inbox-mock li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.inbox-mock li:last-child { border-bottom: 0; }
.im-av { width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; flex: none; }
.im-txt { display: grid; min-width: 0; font-size: 0.8rem; line-height: 1.35; flex: 1; }
.im-txt b { font-weight: 650; }
.im-txt span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 0.68rem; font-weight: 650; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.pill-bot { background: var(--cfe-tint); color: var(--cfe-deep); }
.pill-human { background: var(--ink); color: #fff; }
.pill-cni { background: var(--sun-soft); color: var(--sun-ink); }

/* ROI */
.roi { background: var(--sheet); border-block: 1px solid var(--line); }
.roi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.roi-form { display: grid; gap: 26px; }
.rng { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.rng label { font-weight: 600; }
.rng output { font-family: var(--mono); font-weight: 500; color: var(--cfe-deep); font-size: 1rem; }
.rng input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cfe) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--cfe); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 2px 4px rgba(21,38,30,.3); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--cfe); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--cfe); }
.meter { display: grid; gap: 14px; }
.meter-glass { background: var(--ink); border-radius: 18px; padding: 10px; box-shadow: 0 28px 48px -32px rgba(21,38,30,.7); }
.readout { background: #0e1b14; border: 1px solid #2a3e33; box-shadow: inset 0 2px 12px rgba(0,0,0,.45); border-radius: 10px; padding: 18px 20px; }
.readout + .readout { margin-top: 8px; }
.ro-label { color: var(--dark-muted); font-size: 0.9rem; }
.ro-val { font-family: var(--mono); color: var(--sun); font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.1; margin-top: 6px; letter-spacing: -0.03em; text-shadow: 0 0 18px rgba(244,180,0,.25); }
.ro-unit { font-size: 0.4em; color: var(--dark-muted); letter-spacing: 0; text-shadow: none; }
.meter-note { font-size: 0.86rem; color: var(--ink-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 36px); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.4rem; font-weight: 740; }
.plan-for { color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: 4px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.cur { font-weight: 650; font-size: 1rem; }
.amt { font-size: 3.1rem; font-weight: 760; font-stretch: var(--wide); line-height: 1; letter-spacing: -0.03em; }
.amt-text { font-size: 2.2rem; }
.per { color: var(--ink-2); font-weight: 550; }
.plan-f { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-f li { position: relative; padding-left: 26px; }
.plan-f li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan .btn { align-self: stretch; }
.plan-rec { background: var(--ink); color: var(--dark-text); border-radius: 18px; margin: -14px 0; box-shadow: 0 30px 50px -30px rgba(21,38,30,.8); border-left: 0 !important; }
.plan-rec + .plan { border-left: 0; }
.plan-rec .plan-for, .plan-rec .per { color: var(--dark-muted); }
.plan-rec .price { border-color: #2f4539; }
.plan-rec .amt { color: var(--sun); }
.plan-rec .plan-f li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4b400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.plan-rec .btn-primary { background: var(--sun); color: var(--ink); }
.plan-rec .btn-primary:hover { background: #ffc933; }
.plan-rec :focus-visible { outline-color: var(--sun); }
.rec { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: var(--sun); color: var(--ink); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 650; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315261e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--cfe-deep); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 65ch; }

/* final CTA */
.end { background: var(--cfe-deep); color: #e3f0e7; }
.end ::selection { background: var(--sun); color: var(--ink); }
.end-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.end h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
.end-copy p { margin: 18px 0 28px; font-size: 1.15rem; color: #cfe3d6; max-width: 32rem; }
.end-copy :focus-visible { outline-color: var(--sun); }
.demo-form { background: var(--sheet); color: var(--ink); border-radius: 16px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.demo-form h3 { font-size: 1.4rem; font-weight: 740; }
.form-sub { color: var(--ink-2); margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { font-weight: 400; color: var(--ink-2); font-size: 0.85rem; }
.field input, .field select { font: inherit; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--cfe); outline-offset: 1px; border-color: var(--cfe); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 0.86rem; font-weight: 550; }
.demo-form .btn { justify-self: start; }
.form-ok { background: var(--cfe-tint); color: var(--cfe-deep); padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; }

/* footer */
.site-foot { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.foot-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; align-items: start; }
.logo-foot { margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--ink); }
.foot-legal { display: grid; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .head-demo { display: none; }
  .site-nav ul { gap: 16px; }
  .demo-stage { grid-template-columns: 330px minmax(0, 1fr); }
  .lead-detail { grid-template-columns: 1fr; grid-template-areas: "bill" "size" "alerts"; }
  .crm-frame { min-height: 0; }
}
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; order: 3; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgba(21,38,30,.4); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .head-row { gap: 12px; }
  .head-actions { margin-left: auto; }
  .hero-copy { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .guard-grid, .faq-grid, .end-grid, .roi-grid { grid-template-columns: 1fr; }
  .guard-head { position: static; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .fg-conv { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; }
  .fg-conv .fg-h { grid-column: 1 / -1; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .demo-stage { grid-template-columns: 1fr; }
  .demo-bar { padding-bottom: 12px; }
  .stage-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; margin: 0 0 10px; padding: 0; }
  .stage-strip li { font-size: 0.68rem; font-weight: 650; line-height: 1.2; color: var(--ink-2); padding: 8px 4px 0; border-top: 4px solid var(--line); text-align: center; transition: border-color .3s, color .3s; }
  .stage-strip li.is-done { border-color: var(--cfe); }
  .stage-strip li.is-current { border-color: var(--sun); color: var(--ink); }
  .demo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 12px; margin-bottom: 14px; }
  .demo-tabs [role="tab"] { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; font-size: 0.92rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); }
  .demo-tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,38,30,.2); }
  .tab-badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--sun); color: var(--ink); font-family: var(--mono); font-size: 0.7rem; display: inline-grid; place-items: center; padding: 0 6px; }
  .tab-badge[hidden] { display: none; }
  .phone-wrap[hidden], .crm[hidden] { display: none; }
  .phone { height: min(600px, 78vh); max-width: 400px; }
  .crm-rail { display: none; }
  .crm-body { grid-template-columns: 1fr; }
  .crm-top .crm-view { display: none; }
  .pipeline { grid-template-columns: 1fr; gap: 6px; }
  .col { min-height: 0; padding: 8px 10px; }
  .col-h { margin: 0; align-items: center; }
  .col-slot:empty { display: none; }
  .col-slot > * { margin-top: 8px; }
  .fld dd { white-space: normal; }
  .plans { grid-template-columns: 1fr; border: 0; background: transparent; gap: 16px; }
  .plan { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; }
  .plan + .plan { border-left: 1px solid var(--line); }
  .plan-rec { margin: 0; background: var(--ink); border-color: var(--ink); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .head-trial { display: none; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 0 10px; }
  .logo-word { font-size: 1.1rem; }
  .sunpath { display: none; }
  .cta-row .btn { width: 100%; }
  .demo { margin-inline: calc(var(--gut) * -1 + 8px); border-radius: 18px; padding: 12px 10px; }
  .phone { border-radius: 36px; padding: 8px; }
  .phone-head { border-radius: 28px 28px 0 0; }
  .replies { border-radius: 0 0 28px 28px; }
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .feat-grid, .fg-conv { grid-template-columns: 1fr; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ledger td { border: 0; padding: 0; }
  .ledger td::after { content: none; }
  .ledger td[data-label]::before { display: block; content: attr(data-label); font-weight: 700; font-size: 0.82rem; color: var(--ink); margin-bottom: 4px; }
  .ledger td:first-child { margin-bottom: 14px; }
  .ledger td:last-child { padding-left: 0; }
  .ledger td:last-child::before { position: static; width: auto; height: auto; border-radius: 0; background: none; color: var(--cfe-deep); }
  .foot-row { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 1.02rem; }
}
@media (max-width: 380px) {
  .fields { grid-template-columns: 1fr; }
  .lang button { min-width: 34px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .typing span { animation: none; opacity: .7; }
}
@media (forced-colors: active) {
  .fld dd { color: CanvasText; }
  .bar { background: CanvasText; }
}

/* quote engine */
.engine { background: var(--paper-2); border-block: 1px solid var(--line); }
.eng-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.eng-copy h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem); font-weight: 740; }
.eng-sub { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); max-width: 36rem; }
.eng-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.eng-list li { display: flex; gap: 12px; align-items: flex-start; }
.eng-list .ico { width: 22px; height: 22px; flex: none; color: var(--cfe); margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.eng-list b { font-weight: 700; }
.eng-list span { color: var(--ink-2); }
.rule-mock { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px -24px rgba(7, 69, 46, .35); display: grid; gap: 12px; }
.rm-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.rm-title .ico, .rm-test .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.rm-rule { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; background: #fbfcfa; }
.rm-rule p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .95rem; }
.rm-name { font-weight: 700; }
.rm-kw { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--field); min-width: 4.6em; }
.rm-then { color: var(--sun-ink); }
.rm-chip { background: var(--cfe-tint); color: var(--cfe-deep); border-radius: 999px; padding: 2px 10px; font-size: .88rem; font-weight: 600; }
.rm-then + .rm-chip, .rm-then ~ .rm-chip { background: var(--sun-soft); color: var(--sun-ink); }
.rm-test { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--cfe-deep); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .eng-grid { grid-template-columns: 1fr; } }

/* ───────── Photo hero (images: InVideo · Nano Banana 2.1; loop: Seedance 2.5) ───────── */
.hero { min-height: clamp(560px, 86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(56px, 8vh, 96px); background: #1b2a22; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,26,19,.86) 0%, rgba(12,26,19,.66) 34%, rgba(12,26,19,.18) 62%, rgba(12,26,19,0) 80%),
    linear-gradient(0deg, rgba(12,26,19,.72) 0%, rgba(12,26,19,0) 42%),
    linear-gradient(180deg, rgba(12,26,19,.35) 0%, rgba(12,26,19,0) 22%); }
.hero .sunpath { display: none; }
.hero-copy { display: block; max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 15.5em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.25); font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4rem); }
.hero-side { max-width: 46rem; margin-top: clamp(16px, 2.4vw, 26px); }
.hero-sub { max-width: 38rem; color: #e6efe9; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); }
.hero .cta-row { margin-top: 26px; }
.hero .btn-primary { background: var(--sun); color: var(--ink); border-color: var(--sun); box-shadow: 0 10px 30px -10px rgba(244,180,0,.65); }
.hero .btn-primary:hover { background: #ffc933; border-color: #ffc933; color: var(--ink); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero :focus-visible { outline-color: var(--sun); }
.hero-note { color: #cfdcd4; }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 6px 12px 6px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-proof .ico { width: 16px; height: 16px; color: var(--sun); }
.hero-scroll { position: absolute; right: var(--gut); bottom: 28px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 650; font-size: .9rem; text-decoration: none; padding: 8px 4px; opacity: .9; }
.hero-scroll .ico { width: 18px; height: 18px; animation: nudge 2.2s ease-in-out infinite; }
.hero-scroll:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.demo-sec { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.demo-intro h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 740; }
.demo-sec .demo { margin-top: 18px; }

/* Section photos */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > :not(.sec-head):not(.photo) { grid-column: 1 / -1; }
.split-rev .photo { order: -1; }
.photo { margin: 0 0 clamp(28px, 4vw, 48px); }
.photo picture, .photo img { display: block; width: 100%; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 48px -28px rgba(21,38,30,.55); }
.photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.split .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Final CTA over the crew photo */
.end { position: relative; isolation: isolate; overflow: hidden; }
.end-bg { position: absolute; inset: 0; z-index: -1; }
.end-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.end-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,52,36,.93) 0%, rgba(10,52,36,.82) 45%, rgba(10,52,36,.6) 100%); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rev .photo { order: 0; }
  .photo { margin-top: -8px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: min(78vw, 330px); padding-bottom: 40px; }
  .hero-media { bottom: auto; height: min(150vw, 640px); }
  .hero-media img, .hero-video { object-position: 72% 0%; }
  .hero-shade { background: linear-gradient(180deg, rgba(12,26,19,.25) 0, rgba(12,26,19,0) 90px, rgba(12,26,19,0) min(40vw, 170px), rgba(12,26,19,.9) min(86vw, 350px), #1b2a22 min(150vw, 640px)); }
  .hero h1 { font-size: clamp(1.95rem, 1.2rem + 3.6vw, 2.5rem); }
  .hero .cta-row .btn { width: 100%; }
  .hero-scroll { display: none; }
  .hero-proof li { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-scroll .ico { animation: none; }
}

/* Header: never wrap labels (Spanish ones are longer) */
.site-nav a, .site-head .btn { white-space: nowrap; }
@media (max-width: 1500px) {
  html[lang="es"] .head-demo { display: none; }
  html[lang="es"] .site-nav ul { gap: 16px; }
}
@media (max-width: 1180px) { html[lang="es"] .site-nav a { font-size: 0.9rem; } }
.logo { flex: none; }
@media (max-width: 1120px) and (min-width: 1021px) {
  html[lang="es"] .menu-btn { display: inline-flex; order: 3; }
  html[lang="es"] .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgba(21,38,30,.4); }
  html[lang="es"] .site-nav.is-open { display: block; }
  html[lang="es"] .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; }
  html[lang="es"] .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
  html[lang="es"] .head-actions { margin-left: auto; }
}

/* Demo form: extra fields, honeypot, states */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field select { appearance: auto; width: 100%; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form { position: relative; }
.demo-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-ok.is-done { font-size: 1rem; font-weight: 600; }
.form-fail { background: #fdecea; color: #8a1c12; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; }
.form-fail a { color: inherit; font-weight: 700; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
