:root {
  --purple: #2370c8;
  --purple-dark: #1b5aa8;
  --purple-soft: #e8f3fe;
  --magenta: #3a95ec;
  --grad: linear-gradient(100deg, #1b5aa8 0%, #2f86e0 55%, #3a95ec 100%);
  --grad-deep: linear-gradient(140deg, #0d254d 0%, #1a2f50 50%, #1f5fae 100%);
  --navy: #1a2f50;
  --ink: #1d2433;
  --muted: #5f6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-tint: #f3f6fa;
  --green-soft: #e9f8f1;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0;
  background: var(--grad); color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px -14px rgba(47,134,224,.75), inset 0 1px 0 rgba(255,255,255,.18);
  transition: filter .15s, transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(58,149,236,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(13,27,45,.05); }
.btn.ghost:hover { filter: none; background: #f6f8fb; box-shadow: inset 0 0 0 1px #c5d3e6, 0 8px 18px -12px rgba(13,27,45,.3); }
.btn.dark { background: #0d254d; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px -8px rgba(13,27,45,.6); }
.btn.dark:hover { filter: none; background: #1a3a6b; }
.btn.light { background: #fff; color: var(--purple); }
.btn.light:hover { filter: none; background: var(--purple-soft); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffb84d; outline-offset: 3px; }

/* Announcement */
.announce { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.announce a { color: #fff; font-weight: 600; text-decoration: none; }
.announce a::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; margin-bottom: -78px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  box-shadow: 0 12px 32px -18px rgba(27,79,148,.4), 0 1px 0 rgba(13,27,45,.04);
  transition: box-shadow .2s, background .2s, border-color .2s;
}
.site-header.scrolled .nav { background: rgba(255,255,255,.96); border-color: var(--line); box-shadow: 0 14px 34px -16px rgba(13,27,45,.35); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--navy); white-space: nowrap; }
.nav .btn .short { display: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: #2f3a4d; font-weight: 500; }
.nav-links a:hover { color: var(--purple); }
.nav .btn { padding: 10px 16px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 156px 0 88px;
  background:
    radial-gradient(55% 45% at 50% 0%, #e3f1ff 0%, rgba(227,241,255,0) 70%),
    linear-gradient(180deg, #eef4fb 0%, #f9fbfd 72%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(47,134,224,.24) 0 26px, rgba(90,168,240,.07) 26px 60px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 28%, transparent 72%, #000 100%), linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0%, transparent 28%, transparent 72%, #000 100%), linear-gradient(180deg, #000 0%, transparent 78%);
  mask-composite: intersect;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blobs span:nth-child(1) { width: 420px; height: 420px; background: #c7e2fd; top: -120px; left: 16%; }
.blobs span:nth-child(2) { width: 360px; height: 360px; background: #bfe3ff; top: 12%; right: 4%; }
.blobs span:nth-child(3) { width: 320px; height: 320px; background: #dbeeff; top: -90px; right: 32%; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: #4a5263;
  border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
}
.motion .blobs span { animation: drift 18s ease-in-out infinite alternate; }
.motion .blobs span:nth-child(2) { animation-delay: -6s; }
.motion .blobs span:nth-child(3) { animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,34px) scale(1.15); } }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 20px 0 18px; color: #141b28; letter-spacing: -0.035em; }
.rotator { display: inline-block; min-height: 1.15em; padding-bottom: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.motion .rotator.animating::after { content: ""; display: inline-block; width: 3px; height: .85em; background: var(--magenta); margin-left: 4px; vertical-align: -0.06em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tagline { margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.chat {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px -30px rgba(31,95,174,.45); padding: 18px; max-width: 390px; margin-left: auto; width: 100%;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; flex: none; box-shadow: 0 0 0 0 rgba(47,191,113,.5); }
.motion .dot { animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47,191,113,0); } }
.msgs { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.hero-chat .msgs { height: 340px; overflow: hidden; justify-content: flex-end; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 14px; max-width: 82%; flex: none; }
.msg.bot { background: var(--purple-soft); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.pop { animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.typing-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); opacity: .4; animation: bounce 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

/* Reveal on scroll */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }

/* Sections */
section { padding: 80px 0; }
.center { text-align: center; }
.center h2, .section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.center p.sub { color: var(--muted); max-width: 40em; margin: 0 auto; }

/* Stats */
.stats { padding: 40px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; width: fit-content; margin: 0 auto; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.card { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -30px rgba(47,134,224,.5); border-color: #c9def5; }
.card.a { background: linear-gradient(170deg, #eef6ff 0%, #fff 55%); }
.card.b { background: linear-gradient(170deg, #edf7ff 0%, #fff 55%); }
.card h3 { font-size: 24px; font-weight: 800; }
.card .kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin: 6px 0 14px; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.card li { padding-left: 30px; position: relative; font-weight: 500; font-size: 15px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat, var(--grad);
}
.card .btn { align-self: flex-start; margin-top: auto; }
.who { font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; align-self: flex-start; margin-bottom: 16px; }
.custom {
  margin-top: 24px; background: var(--green-soft); border-radius: var(--radius); padding: 22px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.custom strong { font-size: 17px; }
.custom a { font-weight: 700; color: var(--purple); }

/* Shared tab box (demo + tools) */
.panel-box { max-width: 960px; margin: 36px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -40px rgba(31,95,174,.45); overflow: hidden; }
.demo .panel-box { max-width: 640px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 14px 8px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); background: #f6f9fd; border: 0; border-bottom: 3px solid transparent; cursor: pointer; transition: color .15s, background .15s; }
.tab:hover { color: var(--purple); }
.tab[aria-selected="true"] { color: var(--purple); background: #fff; border-bottom-color: var(--purple); }

/* Live demo */
.demo { background: var(--bg-tint); }
.demo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-head strong { color: var(--ink); font-size: 15px; }
.badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--purple-soft); color: var(--purple); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.log { height: 340px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.log .msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.log .msg.note { align-self: center; background: #fff4e0; color: #7a4b00; font-size: 13px; max-width: 100%; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; color: var(--purple); background: var(--purple-soft); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: background .15s, transform .15s; }
.chip:hover { background: #d6e9fd; transform: translateY(-1px); }
.send { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.send input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.send input:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.demo-cta { text-align: center; margin-top: 22px; font-weight: 600; }
.demo-cta a { color: var(--purple); }

/* Tools */
.tool-panel { padding: 30px; }
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.tool-intro { color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field output { color: var(--purple); font-weight: 800; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--purple); height: 24px; }
.result { background: var(--grad-deep); color: #fff; border-radius: 16px; padding: 26px; }
.result .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cfe3fa; }
.result .big { font-size: 46px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.result .small { color: #dce9f8; font-size: 15px; }
.result .formula { font-size: 13px; color: #cfe3fa; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 12px; }
.lead-form { display: grid; gap: 10px; margin-top: 18px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input, .lead-form textarea, .lead-form select { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form p.hint { font-size: 14px; }
.result .lead-form .btn, .book .lead-form .btn { background: #fff; color: var(--purple); border-color: #fff; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-ok { font-weight: 700; padding: 10px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Quiz */
.quiz-progress { height: 6px; background: var(--purple-soft); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.quiz-progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .4s; }
.quiz-step { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.quiz-q h3 { font-size: 22px; margin-bottom: 18px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.option { font: inherit; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; color: var(--ink); }
.option:hover { border-color: var(--purple); background: var(--bg-tint); transform: translateY(-2px); }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; margin-top: 18px; padding: 0; text-decoration: underline; }
.quiz-result { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.quiz-result h3 { font-size: 28px; margin: 8px 0 12px; }
.quiz-result p { color: var(--muted); }
.quiz-result .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quiz-anim { animation: pop .4s ease-out; }

/* How it works */
.dark { background: var(--navy); color: #fff; }
.dark .eyebrow { color: #8fc6fb; }
.dark p.sub { color: #c3cfdf; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; text-align: left; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: #c3cfdf; font-size: 15px; }

/* Testimonials */
.carousel { max-width: 780px; margin: 36px auto 0; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; text-align: center; }
.slide.on { opacity: 1; visibility: visible; }
.slide blockquote { font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; line-height: 1.45; margin: 0 0 18px; }
.slide .res { display: inline-block; background: var(--green-soft); color: #11704a; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 5px 12px; margin-bottom: 16px; }
.slide cite { font-style: normal; color: var(--muted); display: block; }
.slide cite b { color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.dots button[aria-current="true"] { background: var(--grad); width: 28px; }

/* Posts */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 36px; text-align: left; }
.post-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(31,95,174,.45); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--purple); }
.post-card h3 { font-size: 19px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card time { font-size: 13px; color: var(--muted); margin-top: auto; }
.more { margin-top: 28px; }
.more a { color: var(--purple); font-weight: 700; }

/* FAQ */
.faq-sec { background: var(--bg-tint); }
.faq { max-width: 780px; margin: 32px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.about h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; margin-top: 10px; }
.about-body p + p { margin-top: 14px; }
.about-body p { color: var(--muted); font-size: 17px; }

/* Book */
.book { background: radial-gradient(60% 80% at 100% 0%, rgba(124,196,255,.45), rgba(124,196,255,0) 60%), var(--grad-deep); color: #fff; }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.book .eyebrow { color: #cfe3fa; }
.book h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.book p { color: #dce9f8; }
.book .alt { margin-top: 22px; font-size: 15px; }
.book .alt a { color: #fff; font-weight: 700; }
.book details { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.book summary { cursor: pointer; font-weight: 700; }
.cal { background: #fff; border-radius: var(--radius); overflow: hidden; min-height: 660px; }
.cal .calendly-inline-widget { min-width: 280px; height: 660px; }
.cal-fallback { display: block; padding: 32px; color: var(--ink); }
.cal-fallback a { color: var(--purple); font-weight: 700; }

/* Footer */
footer { background: var(--navy); color: #c3cfdf; padding: 48px 0 28px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
footer a { color: #c3cfdf; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer .logo { color: #fff; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Blog page */
.page-head { background: radial-gradient(55% 60% at 50% 0%, #e3f1ff 0%, rgba(227,241,255,0) 70%), linear-gradient(180deg, #eef4fb, #fff); padding: 142px 0 48px; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin: 12px 0 10px; }
.article .meta { color: var(--muted); font-size: 14px; }
.article .cover { width: 100%; border-radius: 16px; margin: 28px 0 8px; }
.article .body { font-size: 18px; }
.article .body p, .article .body ul { margin: 0 0 18px; color: #2a3344; }
.article .body h2 { font-size: 26px; margin: 34px 0 12px; }
.article .body h3 { font-size: 21px; margin: 26px 0 10px; }
.article .body a { color: var(--purple); font-weight: 600; }
.cta-box { margin-top: 40px; background: var(--purple-soft); border-radius: 16px; padding: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-box strong { font-size: 18px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 128px 0 60px; }
  .page-head { padding-top: 120px; }
  .hero-grid, .about, .book-grid, .foot, .calc, .quiz-result { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chat { margin: 0 auto; }
  section { padding: 60px 0; }
  .tool-panel { padding: 22px 18px; }
  .tab { font-size: 13px; padding: 12px 6px; }
}
@media (max-width: 520px) {
  .site-header { padding: 10px 10px 0; margin-bottom: -70px; }
  .nav { height: 60px; padding: 0 8px 0 14px; border-radius: 16px; }
  .nav .btn { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
  .logo { font-size: 18px; }
  .lead-form .row { grid-template-columns: 1fr; }
  .result .big { font-size: 38px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Site assistant (floating chat) ---------- */
#cb-assistant { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 15px; }
.cba-launch {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad);
  box-shadow: 0 14px 34px -12px rgba(47,134,224,.8), inset 0 1px 0 rgba(255,255,255,.25);
  display: grid; place-items: center; color: #fff; transition: transform .2s;
}
.cba-launch:hover { transform: translateY(-2px) scale(1.03); }
.cba-launch-logo svg { width: 30px; height: 30px; display: block; }
.cba-launch-x { display: none; font-size: 30px; line-height: 1; }
#cb-assistant.is-open .cba-launch-logo { display: none; }
#cb-assistant.is-open .cba-launch-x { display: block; }
.cba-teaser { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; box-shadow: 0 12px 30px -14px rgba(13,27,45,.35); cursor: pointer; animation: pop .35s ease-out; }
.cba-panel {
  width: 370px; height: min(600px, calc(100vh - 110px)); background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(13,37,77,.45); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease-out;
}
.cba-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--grad-deep); color: #fff; }
.cba-avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.cba-avatar svg { width: 24px; height: 24px; }
.cba-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cba-title strong { font-size: 15px; }
.cba-title span { font-size: 12px; color: #dce9f8; display: flex; align-items: center; gap: 6px; }
.cba-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.cba-x { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; }
.cba-x:hover { background: rgba(255,255,255,.25); }
.cba-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7fafd; }
.cba-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; flex: none; }
.cba-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cba-msg.me { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cba-msg.note { align-self: center; background: #fff4e0; color: #7a4b00; font-size: 13px; text-align: center; max-width: 100%; }
.cba-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #f7fafd; }
.cba-chips:empty { display: none; }
.cba-chip { font: inherit; font-size: 13px; font-weight: 600; color: var(--purple); background: var(--purple-soft); border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.cba-chip:hover { background: #d6e9fd; }
.cba-actions { display: flex; gap: 8px; padding: 10px 14px 0; border-top: 1px solid var(--line); }
.cba-act { flex: 1; text-align: center; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-decoration: none; cursor: pointer; }
.cba-act:hover { border-color: #c5d3e6; background: #f6f8fb; }
.cba-input { display: flex; gap: 8px; padding: 10px 14px 6px; }
.cba-input input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cba-input input:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.cba-send { width: 42px; flex: none; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.cba-send[disabled] { opacity: .5; cursor: default; }
.cba-note { font-size: 11px; color: var(--muted); text-align: center; padding: 0 14px 10px; margin: 0; }
.cba-lead { padding: 12px 14px 4px; border-top: 1px solid var(--line); }
.cba-lead form { display: grid; gap: 8px; }
.cba-lead input { font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.cba-lead .btn { padding: 10px 14px; font-size: 14px; }
.cba-form-msg { font-size: 13px; color: var(--muted); min-height: 1em; }
.cba-ok { font-weight: 700; color: #11704a; margin: 4px 0 8px; }
@media (max-width: 520px) {
  #cb-assistant { right: 14px; bottom: 14px; }
  #cb-assistant.is-open { left: 0; right: 0; bottom: 0; top: 0; gap: 0; }
  #cb-assistant.is-open .cba-launch, #cb-assistant.is-open .cba-teaser { display: none; }
  .cba-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}

/* Four service cards: 2 x 2 */
#servicesGrid:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { #servicesGrid, #servicesGrid:has(> :nth-child(4)) { grid-template-columns: 1fr; } }
.hero-note { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
/* Consultation band under the services */
.cta-band {
  margin-top: 28px; border-radius: 20px; padding: 30px 34px; color: #fff; background: radial-gradient(60% 120% at 100% 0%, rgba(124,196,255,.45), rgba(124,196,255,0) 60%), var(--grad-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 24px 50px -30px rgba(13,37,77,.7);
}
.cta-band strong { font-size: 22px; letter-spacing: -.01em; }
.cta-band p { color: #dce9f8; margin-top: 6px; max-width: 46em; }
.cta-band .btn { flex: none; }
.book-list { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 10px; }
.book-list li { position: relative; padding-left: 30px; color: #fff; font-weight: 500; }
.book-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232370c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Free audit offer */
.audit { background: var(--bg-tint); }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.audit h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.audit-lead { color: var(--muted); font-size: 17px; }
.audit-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.audit-list li { position: relative; padding-left: 32px; font-weight: 600; }
.audit-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat, var(--grad);
}
.audit-note { font-size: 14px; color: var(--muted); font-weight: 600; }
.audit-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -36px rgba(13,37,77,.45); }
.audit-card .lead-form { margin-top: 0; }
.audit-card .btn { width: 100%; padding: 15px; font-size: 16px; }
.form-ok p { margin: 0 0 12px; }
.form-ok .btn { font-size: 14px; padding: 11px 16px; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; gap: 28px; } .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } .audit-card { padding: 20px; } }

/* Industry landing pages */
.lp .hero h1 { font-size: clamp(34px, 5vw, 56px); }
.lp .rotator::after { display: none; }
.pains-sec h2, .helps-sec h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin: 10px 0 0; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pain { background: #fff; border: 1px solid var(--line); border-left: 4px solid #e2a03f; border-radius: 14px; padding: 22px; }
.pain h3 { font-size: 18px; margin-bottom: 8px; }
.pain p { color: var(--muted); font-size: 15px; }
.helps-sec { background: var(--bg-tint); }
.helps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.help { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.help-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.help-ico svg { width: 20px; height: 20px; }
.help h3 { font-size: 18px; margin-bottom: 6px; }
.help p { color: var(--muted); font-size: 15px; }
.lp footer .legal { align-items: center; }
.lp footer .logo svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .pains, .helps { grid-template-columns: 1fr; } }

/* ---------- Lead generation funnels ---------- */
.leadgen { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.lg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.lg-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.lg-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); }
.lg-ico svg { width: 22px; height: 22px; }
.lg-item h3 { font-size: 17px; margin-bottom: 4px; }
.lg-item p { color: var(--muted); font-size: 14.5px; }
.lg-extras { margin-top: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink); text-align: center; }
.lg-note { color: var(--muted); }
.fd-intro { margin-top: 64px; }
.lg-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* Funnel demo */
.funnel-demo { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -40px rgba(13,37,77,.5); padding: 22px; }
.fd-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fd-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--bg-tint); }
.fd-steps b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; border: 1px solid var(--line); }
.fd-steps li.on { color: var(--ink); background: var(--purple-soft); }
.fd-steps li.on b { background: var(--grad); color: #fff; border-color: transparent; }
.fd-steps li.done { color: var(--purple); }
.fd-steps li.done b { background: var(--purple); color: #fff; border-color: transparent; }
.fd-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; }
.fd-col-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fd-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }
.fd-dot.alt { background: var(--purple); }
.fd-phone { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-tint); padding: 16px; min-height: 430px; display: flex; }
.fd-screen { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.fd-screen.fd-in > * { animation: pop .35s ease-out; }
.fd-feed-bar { display: flex; gap: 6px; } .fd-feed-bar i { height: 8px; flex: 1; border-radius: 4px; background: #dfe6ef; }
.fd-ad, .fd-lp, .fd-mail, .fd-cal, .fd-thanks { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fd-ad-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fd-ad-top strong { display: block; font-size: 14px; } .fd-ad-top small { color: var(--muted); font-size: 12px; }
.fd-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.fd-ad p { font-size: 14px; margin-bottom: 10px; }
.fd-ad-img { height: 110px; border-radius: 10px; margin-bottom: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: radial-gradient(80% 90% at 20% 10%, #8fd0ff 0%, rgba(143,208,255,0) 60%), var(--grad-deep); }
.btn.fd-wide { width: 100%; }
.btn.sm { padding: 9px 12px; font-size: 13.5px; }
.fd-lp-brand { font-size: 12px; font-weight: 800; color: var(--purple); text-transform: uppercase; letter-spacing: .08em; }
.fd-lp h4, .fd-cal h4 { font-size: 18px; margin: 4px 0; }
.fd-lp p, .fd-cal p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.fd-form { display: grid; gap: 8px; }
.fd-form input, .fd-form select { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; width: 100%; background: #fff; }
.fd-thanks { display: grid; gap: 2px; text-align: center; }
.fd-thanks span { color: var(--muted); font-size: 13.5px; }
.fd-thanks.big { padding: 26px 14px; }
.fd-thanks.big strong { font-size: 20px; }
.fd-check { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: #2fbf71; color: #fff !important; font-size: 24px !important; display: grid; place-items: center; }
.fd-inbox-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.fd-mail-head { display: grid; margin-bottom: 6px; }
.fd-mail-head strong { font-size: 13px; } .fd-mail-head span { font-size: 14px; font-weight: 700; }
.fd-mail p { font-size: 13.5px; color: #3a4252; margin-bottom: 10px; }
.fd-choices { display: grid; gap: 8px; }
.fd-slots { display: grid; gap: 8px; }
.fd-slot { font: inherit; font-weight: 700; padding: 11px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.fd-slot:hover { border-color: var(--purple); background: var(--purple-soft); }
.fd-hint { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--purple); text-align: center; }
.fd-dash { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fbfcfe; min-height: 430px; }
.fd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fd-metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; }
.fd-metric b { font-size: 20px; color: var(--navy); }
.fd-metric span { font-size: 12px; font-weight: 600; color: var(--muted); }
.fd-metric small { font-size: 11px; color: #11704a; font-weight: 700; }
.fd-crm { margin-top: 12px; }
.fd-empty { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.fd-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.fd-row small { display: block; color: var(--muted); font-size: 12px; }
.fd-row.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #fff4d6; } to { background: #fff; } }
.fd-pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--purple-soft); color: var(--purple); }
.fd-pill.qualified { background: #e9f8f1; color: #11704a; }
.fd-pill.needs-review { background: #fff4e0; color: #7a4b00; }
.fd-tl-head { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fd-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 250px; overflow-y: auto; }
.fd-ev { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--purple); animation: pop .3s ease-out; }
.fd-ev.ok { border-left-color: #2fbf71; } .fd-ev.warn { border-left-color: #e2a03f; }
.fd-ev time { color: var(--muted); font-weight: 700; font-size: 12px; }
.fd-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.fd-restart { margin: 0; }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr 1fr; }
  .fd-grid { grid-template-columns: 1fr; }
  .fd-steps { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .fd-steps li span { display: none; }
  .fd-steps li.on span { display: inline; }
  .fd-phone, .fd-dash { min-height: 0; }
}
@media (max-width: 560px) {
  .lg-grid { grid-template-columns: 1fr; }
  .funnel-demo { padding: 14px; }
  .fd-metrics { grid-template-columns: 1fr 1fr; }
  .fd-row { grid-template-columns: 1fr; }
  .fd-ev { grid-template-columns: 1fr; gap: 2px; }
}

/* SaaS apps section + demos */
.saas { background: #fff; }
.saas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.saas-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 50px -40px rgba(13,37,77,.5); }
.saas-card h3 { font-size: 21px; margin-top: 6px; }
.saas-card > p { color: var(--muted); font-size: 15px; }
.saas-card .saas-for { color: var(--purple); font-weight: 700; font-size: 14px; }
.saas-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 7px; font-size: 14.5px; }
.saas-list li { position: relative; padding-left: 24px; }
.saas-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #11704a; font-weight: 800; }
.saas-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.saas-demo { padding-top: 0; overflow: hidden; }
.saas-demo .sd-tabs { margin: 0 -22px 20px; }
.sd-tabs .tab { font-size: 15px; }
.sd-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; font-size: 14px; }
.sd-card.sd-form input, .sd-card.sd-form select, .sd-card.sd-form textarea { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; width: 100%; background: #fff; color: var(--ink); }
.sd-card.sd-form input:disabled { color: var(--muted); background: #f6f8fb; }
.sd-store-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.sd-cart-btn { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.sd-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sd-prod { padding: 10px; gap: 4px; align-content: start; }
.sd-prod strong { font-size: 13px; line-height: 1.25; }
.sd-swatch { height: 54px; border-radius: 9px; }
.sd-price { font-weight: 800; color: var(--navy); font-size: 14px; }
.sd-ai { border-color: #bfe0ff; background: #f3f9ff; }
.sd-ai .btn { justify-self: start; }
.sd-ai-tag { display: inline-block; justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--purple-soft); color: var(--purple); }
.sd-line { display: flex; justify-content: space-between; font-size: 14px; }
.sd-line.total { font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; }
.sd-muted { color: var(--muted); }
.sd-small { font-size: 12.5px; margin-top: 8px; }
.sd-role { border: 1.5px dashed var(--purple); background: var(--purple-soft); }
.sd-role span { color: var(--ink); }
.sd-chat { display: grid; gap: 8px; }
.sd-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; animation: pop .3s ease-out; }
.sd-msg.them { background: #fff; border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.sd-msg.me { background: var(--navy); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.sd-nav { display: flex; gap: 4px; margin: 12px 0 10px; padding: 4px; border-radius: 12px; background: #eef3f9; overflow-x: auto; }
.sd-navbtn { flex: 1; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 8px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sd-navbtn[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13,37,77,.12); }
.sd-badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e2a03f; color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.sd-view { display: grid; gap: 8px; min-height: 150px; align-content: start; }
.fd-row.sd-row { grid-template-columns: 1.3fr 1fr auto; }
.sd-act { justify-self: start; }
.sd-thread { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13.5px; }
.sd-thread.flash, .sd-extract.flash { animation: flash 1.2s ease-out; }
.sd-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sd-q { font-style: italic; color: #3a4252; }
.sd-a { color: var(--muted); }
.sd-draft { display: grid; gap: 6px; background: #fffaf0; border: 1px solid #f3dcae; border-radius: 10px; padding: 10px; }
.sd-score { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: #f3f9ff; border: 1px solid #d6e9fb; border-radius: 10px; padding: 9px 11px; }
.sd-score .sd-ai-tag { flex: none; }
.sd-extract { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.sd-extract dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.sd-extract dt { color: var(--muted); }
.sd-extract dd { margin: 0; font-weight: 700; }
.sd-warn { font-size: 13px; font-weight: 700; color: #7a4b00; background: #fff4e0; border-radius: 8px; padding: 6px 9px; }
.sd-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.sd-cmp > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; }
.sd-cmp > .best { border-color: #2fbf71; background: #f0fbf5; }
.sd-cmp small { color: var(--muted); font-size: 12px; font-weight: 700; }
.sd-cmp b { font-size: 18px; color: var(--navy); }
.sd-stars { display: flex; gap: 4px; }
.sd-stars button { font-size: 28px; line-height: 1; color: #f0b429; background: none; border: 0; cursor: pointer; padding: 2px; }
.sd-stars button:hover, .sd-stars button:focus-visible { transform: scale(1.15); }
.sd-tl { max-height: 210px; }
.saas-demo .fd-col { min-width: 0; }
@media (max-width: 900px) {
  .saas-grid { grid-template-columns: 1fr; }
  .saas-demo .fd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .saas-demo .sd-tabs { margin: 0 -14px 16px; }
  .sd-tabs .tab { font-size: 13px; }
  .sd-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .saas-card { padding: 20px; }
  .fd-row.sd-row { grid-template-columns: 1fr; }
  .sd-prods { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .sd-prod .btn { padding: 8px 6px; }
}

/* Solution pages + simplified homepage */
.page-hero { padding: 150px 0 72px; text-align: center; }
.page-hero .wrap { max-width: 860px; }
.page-hero .lead { margin: 0 auto; }
.page-hero .hero-cta { justify-content: center; }
.nav-links a[aria-current="page"] { color: var(--purple); }
#servicesGrid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, 1fr); }
#servicesGrid .card { padding: 28px; }
#servicesGrid .card h3 { font-size: 22px; }
.more-demos { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 12px; align-items: center; max-width: 980px; margin: 26px auto 0; }
.more-demos-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more-demo { display: flex; gap: 12px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, transform .15s; }
.more-demo:hover { border-color: var(--purple); transform: translateY(-2px); }
.more-demo .lg-ico { width: 36px; height: 36px; }
.more-demo strong { display: block; font-size: 14.5px; }
.more-demo small { color: var(--muted); font-size: 13px; }
.products { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.product-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; max-width: 900px; margin: 40px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 30px 70px -48px rgba(13,37,77,.5); }
.product-badge { aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; color: #fff; background: radial-gradient(80% 90% at 20% 10%, #8fd0ff 0%, rgba(143,208,255,0) 60%), var(--grad-deep, var(--grad)); }
.product-body .who { font-size: 13px; font-weight: 700; color: var(--purple); }
.product-body h3 { font-size: 28px; font-weight: 800; margin-top: 4px; }
.product-body .kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.product-body p { color: var(--muted); }
.product-feats { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14.5px; font-weight: 500; }
.product-feats li { padding-left: 24px; position: relative; }
.product-feats li::before { content: "\2713"; position: absolute; left: 0; color: #11704a; font-weight: 800; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.others, .industries { padding: 64px 0; }
.others { background: var(--bg-tint); }
.others h2, .industries h2 { font-size: clamp(24px, 3.4vw, 32px); }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.other-card { position: relative; display: grid; gap: 4px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 44px 20px 20px; transition: border-color .15s, transform .15s; }
.other-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.other-card strong { font-size: 17px; }
.other-card span { color: var(--muted); font-size: 14px; }
.other-card i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 20px; color: var(--purple); }
.saas-custom { margin-top: 24px; }
@media (max-width: 900px) {
  .page-hero { padding: 124px 0 56px; }
  #servicesGrid:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; }
  .more-demos { grid-template-columns: 1fr; }
  .more-demos-label { text-align: center; }
  .product-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .product-badge { width: 96px; border-radius: 22px; }
  .other-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .product-feats { grid-template-columns: 1fr; } }
.product-badge svg { width: 46%; height: 46%; }
@media (min-width: 901px) { .foot:has(> :nth-child(5)) { grid-template-columns: 1.3fr 1.2fr 1fr .8fr .7fr; gap: 28px; } }

/* Mobile menu */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { position: relative; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin-left: auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.open .nav-links { display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(13,37,77,.45); }
  .nav.open .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; }
  .nav.open .nav-links a:hover, .nav.open .nav-links a[aria-current="page"] { background: var(--purple-soft); }
  .nav.open .nav-links a[hidden] { display: none; }
}
@media (max-width: 380px) { .logo { font-size: 16px; gap: 7px; } .logo svg { width: 28px; height: 28px; } .nav { gap: 8px; } }

/* Consent line under forms */
.form-legal { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-legal a { color: inherit; }
.audit-card .form-legal, .book .form-legal { margin-top: 2px; }
.book .form-legal { color: #b9c9de; }
.legal-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* Chat demo nudge */
.msg.demo-nudge { background: #eef7ff; border: 1px dashed #9cc6ee; color: var(--ink); font-weight: 600; }
.msg.demo-nudge a { color: var(--purple); }

/* Legal pages */
.legal-page { padding: 140px 0 80px; background: linear-gradient(180deg, #eef4fb 0%, #fff 340px); }
.legal-wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; margin: 10px 0 6px; }
.legal-updated { color: var(--muted); font-size: 14px; font-weight: 600; }
.legal-intro { font-size: 18px; color: #3a4252; margin: 18px 0 24px; }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 34px; }
.legal-toc strong { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal-toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 15px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
.legal-toc a { color: var(--purple); text-decoration: none; }
.legal-sec { padding: 0 0 26px; scroll-margin-top: 100px; }
.legal-sec h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.legal-sec p, .legal-sec li { color: #3a4252; font-size: 16px; }
.legal-sec p + p, .legal-sec ul + p, .legal-sec p + ul { margin-top: 10px; }
.legal-sec ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 0; }
.legal-sec a { color: var(--purple); }
@media (max-width: 600px) { .legal-page { padding-top: 116px; } .legal-toc ol { columns: 1; } }

/* Review page */
.review-page { padding: 140px 0 80px; background: linear-gradient(180deg, #eef4fb 0%, #fff 420px); }
.review-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.review-intro h1 { font-size: clamp(32px, 4.6vw, 44px); font-weight: 800; margin: 10px 0 14px; }
.review-intro .lead { color: var(--muted); font-size: 17px; }
.review-tips { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 15px; }
.review-tips ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: #3a4252; }
.review-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.review-form, .review-done { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px -45px rgba(13,37,77,.5); display: grid; gap: 14px; }
.review-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.review-form label small { font-weight: 500; color: var(--muted); }
.review-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-form input:not([type=checkbox]), .review-form textarea, .review-form select { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.review-form textarea { resize: vertical; min-height: 140px; }
.review-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: #3a4252; }
.review-form .consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.review-form .consent a { color: var(--purple); }
.review-form .form-msg.err { color: #c62f45; font-weight: 600; }
.review-done h2 { font-size: 26px; }
.review-done .btn { justify-self: start; }
@media (max-width: 900px) { .review-wrap { grid-template-columns: 1fr; gap: 28px; } .review-page { padding-top: 116px; } }
@media (max-width: 520px) { .review-form .row { grid-template-columns: 1fr; } .review-form { padding: 20px; } }
.cba-legal { font-size: 11.5px; color: var(--muted); margin: 0; } .cba-legal a { color: inherit; }
.review-form label > span { font-weight: 700; } .review-form label > span small { font-weight: 500; color: var(--muted); }

/* Sortlist reviews */
.sortlist-badge { display: inline-block; line-height: 0; border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.sortlist-badge img { display: block; width: 100%; height: auto; border-radius: 14px; }
.sortlist-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(13,37,77,.5); }
.sortlist-badge.lg { width: 100%; max-width: 440px; justify-self: end; background: #fff; box-shadow: 0 24px 50px -32px rgba(13,37,77,.55); }
.sortlist-badge.sm { width: 100%; max-width: 280px; background: #fff; }
.reviews-band { padding: 56px 0; background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.reviews-band h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin: 8px 0 8px; }
.reviews-band p { color: var(--muted); max-width: 34em; }
.linkish-arrow { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--purple); text-decoration: none; }
.linkish-arrow:hover { text-decoration: underline; }
.book-reviews { margin: 22px 0 6px; display: grid; gap: 8px; }
.book-reviews span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b9c9de; }
@media (max-width: 900px) {
  .reviews-inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .reviews-band p { margin: 0 auto; }
  .sortlist-badge.lg { justify-self: center; }
}
