/* Baxy landing — design language after bastion.com and peec.ai:
   Geist (tight, medium weight) + Geist Mono labels, warm off-white, near-black ink, one orange. */

:root {
  --bg: #fbfaf8;
  --bg-2: #f4f2ee;
  --card: #ffffff;
  --line: #e8e5df;
  --line-2: #dcd8d0;
  --ink: #14120e;
  --ink-2: #3a362f;
  --muted: #6e695f;
  --faint: #a29d93;
  --orange: #f66a17;
  --orange-text: #c4500c;     /* orange for text on light grounds, 4.6:1 */
  --orange-soft: #fde9dc;
  --dark: #14120e;
  --dark-2: #1f1c17;
  --accent: var(--orange);
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gut: 32px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sec: 112px;           /* section padding, desktop */
  --shadow: 0 1px 2px rgb(20 18 14 / .04), 0 12px 32px -14px rgb(20 18 14 / .18);
}
@media (max-width: 760px) { :root { --gut: 20px; --sec: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; accent-color: var(--orange); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-text); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: #fbd3b6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font: 500 12px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.accent { color: var(--orange-text); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
       font: 500 15px/1 var(--font-text); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
       transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2d2922; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 18px -8px rgb(246 106 23 / .7); }
.btn--orange:hover { background: #e85d0c; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.link::after { content: "→"; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(3px); }

/* ---------- top bar + nav */
.topbar { background: var(--dark); color: #e9e5de; text-align: center; padding: 10px var(--gut); font-size: 13.5px; }
.topbar a { color: var(--orange); margin-left: 10px; }
.topbar a:hover { color: #ff8a45; }
.nav { position: sticky; top: 0; z-index: 20; background: rgb(251 250 248 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 20px; letter-spacing: -0.04em; }
.logo svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); place-items: center; cursor: pointer; }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; padding: 12px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 17px; padding: 12px 8px; color: var(--ink); }
  .nav__toggle { display: grid; }
}
@media (max-width: 420px) { .nav__cta .btn { padding: 0 12px; font-size: 13.5px; } }

/* ---------- hero */
.hero { position: relative; padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none; z-index: -1;
  background: radial-gradient(42% 46% at 50% 38%, rgb(246 106 23 / .16), transparent 70%), radial-gradient(30% 30% at 82% 18%, rgb(246 106 23 / .08), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(20 18 14 / .14) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 75%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(20 18 14 / .05); font-size: 13.5px; color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgb(246 106 23 / .18); }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); margin: 22px auto 0; max-width: 15ch; }
.hero h1 .accent { color: var(--orange); }
.hero__lead { max-width: 600px; margin: 22px auto 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); }
.hero__lead b { color: var(--ink); font-weight: 500; }

/* the start box (Lovable-style input) */
.start { position: relative; max-width: 600px; margin: 34px auto 0; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 16px;
         box-shadow: 0 1px 2px rgb(20 18 14 / .05), 0 24px 60px -28px rgb(196 80 12 / .45); }
.start__row { display: flex; gap: 10px; align-items: flex-end; }
.start .field { flex: 1; min-width: 0; display: grid; gap: 6px; }
.start label { font-size: 13px; font-weight: 500; color: var(--muted); padding-left: 2px; }
.start input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); font-size: 17px; outline: 0; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.start input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(246 106 23 / .14); }
.start input[aria-invalid="true"] { border-color: #b42318; }
.start .btn { height: 52px; border-radius: 14px; padding: 0 22px; font-size: 16px; }
.field__error { margin-top: 8px; color: #b42318; font-size: 14px; font-weight: 500; }
.field__error[hidden] { display: none; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.start__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.start__bar { flex: 1; max-width: 200px; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.start__bar i { display: block; height: 100%; width: var(--v, 25%); background: var(--orange); border-radius: 4px; transition: width .5s var(--ease); }
.start__q { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 14px; outline: 0; }
.start__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
       transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease); }
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(.97); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt img { width: 16px; height: 16px; }
.start__foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.start__foot .btn { height: 44px; border-radius: 999px; }
.start__back { background: none; border: 0; padding: 0; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.start__step { animation: stepIn .45s var(--ease); }
.start__done { padding: 6px 4px; outline: 0; }
.start__done p + p { margin-top: 6px; color: var(--muted); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.hero__trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero__trust .icons { display: inline-flex; gap: 12px; align-items: center; }
.hero__trust img { width: 18px; height: 18px; }
.hero__trust .sep { width: 1px; height: 14px; background: var(--line-2); }
@media (max-width: 640px) { .start__row { flex-direction: column; align-items: stretch; } .start .btn { width: 100%; } .hero__trust .sep { display: none; } }

/* hero stage: the product on a Bastion-style warm gradient */
.stage { position: relative; margin: 64px auto 0; width: min(100% - 2 * var(--gut), 1240px); height: 600px; border-radius: 24px 24px 0 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 90% at 12% 0%, #fff1e6 0%, transparent 60%), radial-gradient(70% 80% at 100% 100%, #7a2a0c 0%, transparent 70%),
              linear-gradient(115deg, #f9d7bd 0%, #f39a57 30%, #ee7426 52%, #c84c12 76%, #6d250b 100%); }
.stage::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -180px; top: -200px; background: rgb(255 255 255 / .14); z-index: -1; }
.stage::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; bottom: -160px; background: rgb(255 255 255 / .08); z-index: -1; }
.stage__grain { position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.win { position: absolute; left: 50%; top: 64px; width: min(1040px, calc(100% - 80px)); transform: translateX(-50%); background: #fff; border-radius: 14px; overflow: hidden; text-align: left;
       box-shadow: 0 0 0 1px rgb(20 18 14 / .08), 0 40px 80px -30px rgb(60 20 0 / .55); font-size: 13.5px; color: var(--ink); letter-spacing: -0.005em; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.win__dots { display: flex; gap: 6px; } .win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3dfd8; }
.win__body { display: grid; grid-template-columns: 196px 1fr; min-height: 560px; }
.side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; background: #fcfbf9; }
.side span { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); }
.side span.is-on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .04); font-weight: 500; color: var(--ink); }
.side span svg { width: 15px; height: 15px; color: var(--faint); }
.side span.is-on svg { color: var(--orange); }
.side .side__label { height: 28px; margin-top: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.main { padding: 18px 22px; min-width: 0; }
.main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main__head h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.main__tools { display: flex; gap: 8px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fff; }
.chipbtn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 16px 0 14px; }
.kpis > div { padding: 12px 14px; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis small { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.kpis b { display: block; margin-top: 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 12px; color: #17803d; margin-left: 6px; }
.rows { display: grid; }
.rows__head, .row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 1fr) 96px; gap: 14px; align-items: center; }
.rows__head { padding: 0 6px 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.row { padding: 10px 6px; border-bottom: 1px solid #f0ede8; }
.row b { font-weight: 500; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 500; background: var(--orange-soft); color: #8a3a0b; }
.row > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src { display: inline-flex; align-items: center; gap: 7px; }
.src img { width: 14px; height: 14px; flex: none; }
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: #e8f5ec; color: #17673f; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--book { background: var(--orange-soft); color: #9a3e0a; }
.tag--call { background: #e8eef9; color: #234b8a; }
.tag--no { background: #f1efec; color: #6b6660; }
.float { position: absolute; z-index: 3; right: max(40px, calc(50% - 560px)); top: 300px; width: 300px; background: #fff; border-radius: 14px; padding: 14px 16px; text-align: left;
         box-shadow: 0 0 0 1px rgb(20 18 14 / .08), 0 30px 60px -24px rgb(60 20 0 / .6); font-size: 13.5px; }
.float__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 4px; }
.line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f0ede8; color: var(--ink-2); }
.line:first-of-type { border-top: 0; }
.line i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #e8f5ec; color: #17673f; font-style: normal; font-size: 11px; font-weight: 700; }
.line i.no { background: #f1efec; color: #6b6660; }
.line b { font-weight: 500; color: var(--ink); }
[data-steps] [data-step] { transition: opacity .4s var(--ease), transform .4s var(--ease); }
[data-steps].is-playing [data-step]:not(.is-on) { opacity: 0; transform: translateY(4px); }
@media (max-width: 900px) { .win__body { grid-template-columns: 1fr; } .side { display: none; } .float { right: 24px; top: auto; bottom: 28px; } }
@media (max-width: 640px) {
  .stage { height: 440px; border-radius: 18px 18px 0 0; margin-top: 48px; }
  .win { top: 28px; width: calc(100% - 28px); }
  .kpis { grid-template-columns: repeat(2, 1fr); } .kpis > div:nth-child(n+3) { display: none; }
  .rows__head, .row { grid-template-columns: minmax(0, 1fr) 88px; }
  .rows__head span:nth-child(2), .rows__head span:nth-child(3), .row > span:nth-child(2), .row > span:nth-child(3) { display: none; }
  .main__tools .chipbtn:not(.chipbtn--dark) { display: none; }
  .float { width: calc(100% - 48px); left: 24px; right: 24px; bottom: 20px; }
}

/* ---------- logos / works-with strip */
.works { padding: 44px 0; border-bottom: 1px solid var(--line); }
.works__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.works__list { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.works__list span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.works__list img { width: 22px; height: 22px; }

/* ---------- sections */
.sec { padding: var(--sec) 0; }
.sec--tight { padding-top: 0; }
.sec--alt { background: var(--bg-2); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.head--solo { grid-template-columns: minmax(0, 760px); }
.head .mono { margin-bottom: 18px; }
.head h2 { font-size: clamp(32px, 4vw, 48px); }
.head h2 .muted { color: var(--faint); }
.head p { color: var(--muted); font-size: 17px; max-width: 46ch; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; margin-bottom: 36px; } }

/* dark problem band (Bastion's "The problem") */
.dark { background: var(--dark); color: #f3efe8; }
.dark .head h2 { color: #fff; }
.dark .mono { color: #a39d92; }
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2c2822; border: 1px solid #2c2822; border-radius: var(--r-lg); overflow: hidden; }
.problems > div { background: var(--dark); padding: 28px 24px 30px; }
.problems h3 { font-size: 19px; color: #fff; margin: 18px 0 8px; }
.problems p { color: #a8a297; font-size: 15px; }
.problems .num { font: 500 13px/1 var(--font-mono); color: var(--orange); }
.statement { margin-top: 64px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; max-width: 26ch; }
.statement .w { color: #5d574d; transition: color .25s; }
.statement .w.is-on { color: #fff; }
.statement strong { font-weight: 500; }
.statement strong .w.is-on { color: var(--orange); }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problems { grid-template-columns: 1fr; } .statement { margin-top: 48px; } }

/* cards */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__txt { padding: 18px 18px 20px; }
.card__txt .mono { color: var(--orange-text); margin-bottom: 14px; display: block; }
.card h3 { font-size: 20px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.panel { position: relative; height: 252px; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; padding: 20px;
         background-image: radial-gradient(rgb(20 18 14 / .07) 1px, transparent 1px); background-size: 16px 16px; }
.panel--warm { background-color: #fbeee3; background-image: radial-gradient(rgb(196 80 12 / .12) 1px, transparent 1px); }
.cards--2 .panel { height: 268px; }
.mini { width: 100%; max-width: 340px; background: #fff; border-radius: 12px; padding: 14px 16px; text-align: left; font-size: 13.5px; color: var(--ink-2);
        box-shadow: 0 0 0 1px rgb(20 18 14 / .06), 0 14px 30px -16px rgb(20 18 14 / .35); transition: transform .4s var(--ease); }
.card:hover .mini { transform: translateY(-3px); }
.mini h5 { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini .url { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.mini .url svg { width: 14px; height: 14px; color: var(--faint); }
.mini .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.mini .tags span { padding: 4px 8px; border-radius: 6px; background: var(--bg-2); font-size: 12.5px; }
.mini .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini .opts span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; }
.mini .opts span.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini .small { font-size: 12.5px; color: var(--muted); }
.mini .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 9px; background: var(--bg-2); margin: 10px 0; text-align: center; font-size: 12.5px; }
.mini .seg span { padding: 6px; border-radius: 7px; } .mini .seg span.is-on { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1); color: var(--ink); font-weight: 500; }
.mini .big { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.mini .cta { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 500; margin-top: 10px; }
.ab { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.ab b { display: block; font-weight: 500; color: var(--ink); } .ab small { color: var(--muted); font-size: 12px; }
.ab em { font-style: normal; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab.is-win { border-color: #17673f; box-shadow: inset 0 0 0 1px #17673f; }
.ab__k { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bg-2); font-size: 11px; font-weight: 600; color: var(--ink); }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.msg__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.msg__ic svg { width: 16px; height: 16px; color: var(--orange); }
.msg time { font-size: 12px; color: var(--faint); font-weight: 400; }
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.trades span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-size: 12.5px; }
.trades em { font-style: normal; color: #17673f; font-weight: 500; }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 18px; }
.split .lead { margin-top: 18px; color: var(--muted); font-size: 17.5px; max-width: 44ch; }
.split .link { margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks li b { font-weight: 500; display: block; }
.checks li span { color: var(--muted); font-size: 15px; }
.checks .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--orange-soft); display: grid; place-items: center; }
.checks .ic img, .checks .ic svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.visual { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 500px; isolation: isolate;
  background: radial-gradient(60% 70% at 15% 10%, #fff3ea, transparent 60%), linear-gradient(140deg, #f7cfae, #f08a43 45%, #d75c17 80%); }
.visual .stage__grain { opacity: .14; }
.thread { position: absolute; left: 40px; top: 40px; width: 330px; background: #fff; border-radius: 24px; padding: 16px; display: grid; gap: 10px; align-content: start; font-size: 14px;
          box-shadow: 0 0 0 1px rgb(20 18 14 / .06), 0 30px 60px -26px rgb(60 20 0 / .6); }
.thread__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.thread__head b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.bub { max-width: 86%; padding: 9px 13px; border-radius: 16px; background: var(--bg-2); line-height: 1.45; }
.bub--me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bub--them { border-bottom-left-radius: 6px; }
.callcard { position: absolute; right: 32px; bottom: 36px; width: 290px; background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 13.5px;
            box-shadow: 0 0 0 1px rgb(20 18 14 / .06), 0 30px 60px -24px rgb(60 20 0 / .6); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin: 10px 0 4px; }
.wave i { width: 3px; border-radius: 2px; background: var(--orange); height: calc(var(--h) * 1px); transform-origin: center; animation: wave 1.2s var(--ease) infinite alternate; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
@media (max-width: 640px) { .visual { min-height: 460px; } .thread { left: 16px; right: 16px; top: 16px; width: auto; } .callcard { left: 16px; right: 16px; bottom: 16px; width: auto; } .thread .bub:nth-of-type(4) { display: none; } }

/* channels diagram */
.dgbox { position: relative; height: 520px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden;
         --bg: var(--card); --ink: var(--ink); --accent: var(--orange); }
.dgbox .dg { position: absolute; inset: 0; }
@media (max-width: 640px) { .dgbox { height: 520px; } }

/* assistant chat */
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat__head b { font-weight: 500; }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #1f8a5b; box-shadow: 0 0 0 3px #e3f3e9; }
.chat__on { margin-left: auto; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.chat__log { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.chat__log .bub { animation: stepIn .35s var(--ease); max-width: 88%; }
.chat__log .bub--them { align-self: flex-start; } .chat__log .bub--me { align-self: flex-end; }
.chat__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat__label { margin: 0 16px 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.chat__form { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.chat__form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(246 106 23 / .12); }
.chat__form input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.chat__form input::placeholder { color: var(--faint); transition: opacity .25s; }
.chat__form input.is-swap::placeholder { opacity: 0; }
.chat__btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; cursor: pointer; background: var(--bg-2); color: var(--ink); transition: background-color .2s, transform .2s var(--ease); }
.chat__btn:hover { background: #ebe7e0; }
.chat__btn--send { background: var(--orange); color: #fff; }
.chat__btn--send:hover { background: #e85d0c; }
.chat__btn svg { width: 18px; height: 18px; }
.chat__btn.is-roll svg { animation: roll .5s var(--ease); }
@keyframes roll { to { transform: rotate(360deg); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chat-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; cursor: pointer; transition: border-color .2s; }
.chat-chips button:hover { border-color: var(--ink); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan--hot { background: var(--dark); color: #f3efe8; border-color: var(--dark); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 22px; }
.plan .badge { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--orange); color: #fff; }
.plan__for { margin-top: 6px; color: var(--muted); }
.plan--hot .plan__for { color: #a8a297; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 24px; }
.price b { font-size: 52px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.price span { color: var(--muted); max-width: 22ch; line-height: 1.35; }
.plan--hot .price span { color: #a8a297; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.6l4.6-5' fill='none' stroke='%23c4500c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan--hot li::before { background-color: rgb(246 106 23 / .2); }
.plan .btn { width: 100%; }
.plan--hot .btn--ghost { background: #fff; border-color: #fff; }
.price-note { margin-top: 20px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.faq-grid h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 18px; }
.faq-grid > div:first-child p { margin-top: 16px; color: var(--muted); }
.faq-grid .link { margin-top: 24px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.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-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--bg-2); }
.faq p { padding: 0 44px 22px 0; color: var(--muted); }

/* closing CTA: Bastion's warm gradient */
.final { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 88px 64px; color: #fff; text-align: left;
  background: radial-gradient(50% 80% at 0% 0%, rgb(255 236 220 / .9), transparent 60%), linear-gradient(110deg, #f6c39b 0%, #f08a43 30%, #e86a1d 55%, #b9440f 80%, #5e200a 100%); }
.final::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -160px; top: -260px; background: rgb(255 255 255 / .1); z-index: -1; }
.final h2 { font-size: clamp(36px, 5vw, 64px); max-width: 14ch; color: #fff; }
.final p { margin-top: 18px; font-size: 18px; color: rgb(255 255 255 / .88); max-width: 46ch; }
.final .btn { margin-top: 34px; }
@media (max-width: 640px) { .final { padding: 56px 24px; border-radius: 22px; } }

/* footer */
.foot { padding: 64px 0 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__top p { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.foot h4 { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); } .foot ul a:hover { color: var(--orange-text); }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__top > div:first-child { grid-column: 1 / -1; } }

/* entrance + reveal (only with script; content is visible without it) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-enter] { opacity: 0; transform: translateY(12px); filter: blur(4px); animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes enter { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero [data-enter] { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .start__step, .chat__log .bub { animation: none; }
}

/* tighter rhythm */
:root { --sec: 88px; }
@media (max-width: 760px) { :root { --sec: 60px; } }
.head { margin-bottom: 40px; }
.hero { padding-top: 64px; }
.works { padding: 36px 0; }
.final { background: radial-gradient(45% 70% at 0% 0%, rgb(255 214 180 / .55), transparent 60%), linear-gradient(110deg, #f0843d 0%, #e8691d 38%, #c84c12 72%, #5e200a 100%); }
.plan--hot li::before { background: rgb(246 106 23 / .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.6l4.6-5' fill='none' stroke='%23ff8a45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.split > *, .faq-grid > *, .head > * { min-width: 0; }
.chat { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .chat { height: 500px; } }
.trades span { gap: 8px; }
@media (max-width: 640px) { .panel, .cards--2 .panel { height: auto; min-height: 220px; padding: 24px 16px; } }
/* lead sources flow */
.flow{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:0;height:460px;padding:30px 40px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--card);overflow:hidden;background-image:radial-gradient(50% 60% at 50% 50%,rgb(246 106 23 / .1),transparent 70%),radial-gradient(rgb(20 18 14 / .06) 1px,transparent 1px);background-size:auto,18px 18px}
.flow__lines{position:absolute;inset:30px 40px;width:calc(100% - 80px);height:calc(100% - 60px);pointer-events:none}
.flow__lines path{fill:none;stroke:#f0b48a;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-dasharray:6 8;animation:dash 1.6s linear infinite}
.flow__lines path:nth-child(n+5){stroke:#f66a17}
@keyframes dash{to{stroke-dashoffset:-28}}
.flow__col{position:relative;z-index:1;display:grid;grid-template-rows:repeat(4,1fr);height:100%;align-items:center;justify-items:end;padding-right:calc(29% - 0px)}
.flow__col--out{justify-items:start;padding-right:0;padding-left:0}
.flow{grid-template-columns:29% 1fr 29%}
.flow__col{padding-right:0}
.node{display:inline-flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgb(20 18 14 / .05),0 8px 20px -12px rgb(20 18 14 / .25);font-size:14px}
.node img{width:30px;height:30px;padding:5px;border-radius:8px;background:var(--bg-2)}
.node b{font-weight:500;display:grid;line-height:1.2}
.node small{font-weight:400;color:var(--muted);font-size:12.5px}
.flow__core{position:relative;z-index:1;justify-self:center;display:grid;justify-items:center;gap:6px;padding:20px 24px;border-radius:18px;background:var(--ink);color:#fff;box-shadow:0 0 0 8px rgb(246 106 23 / .12),0 20px 40px -16px rgb(20 18 14 / .6)}
.flow__core img{filter:invert(1);width:26px;height:26px}
.flow__core b{font-weight:500}
.flow__core small{color:#a8a297;font-size:12px}
@media (prefers-reduced-motion:reduce){.flow__lines path{animation:none}}
@media (max-width:760px){.flow{grid-template-columns:1fr;height:auto;gap:20px;padding:24px 16px}.flow__lines{display:none}.flow__col{grid-template-rows:none;gap:8px;justify-items:stretch}.flow__core{width:100%}}
