/* Scalqo site: tokens from business/brand/brand.md */
:root {
  --blue: #1F6BFF; --blue-hover: #0053D5; --ink: #22262B; --white: #FFFFFF;
  --tint: #E8F0FF; --slate: #5B6470; --mist: #F4F6F9; --line: #E2E6EC; --soft: #C2C8D2;
  --radius: 8px; --max: 1200px;
  --head: "Poppins", sans-serif; --body: "Poppins", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
::selection { background: var(--tint); color: var(--ink); }
html { scrollbar-color: var(--soft) var(--mist); }
a:focus-visible, .reply:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: var(--white); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; scroll-margin-top: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.45 var(--body); color: var(--blue); }
.eyebrow::before { content: ""; width: 11px; height: 11px; background: var(--blue); clip-path: polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%); }
.chip { padding: 7px 14px; border-radius: var(--radius); background: rgba(255,255,255,.08); color: #D5DAE1; }
.h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.2; margin-top: 10px; }
.lead { font-size: 16.5px; color: var(--slate); margin-top: 14px; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font: 600 15px/1 var(--head); transition: background .15s, box-shadow .15s, color .15s; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-ghost { color: rgba(255,255,255,.85); padding: 0 8px; }
.btn-ghost:hover { color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-line { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-line.dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line.dark:hover { box-shadow: inset 0 0 0 1.5px var(--soft); }
.btn:focus-visible, .btn-icon:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
header.scrolled { box-shadow: 0 6px 24px rgba(34,38,43,.08); }
header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; }
header .logo img { height: 30px; width: auto; display: block; }
header nav { display: none; gap: 28px; font-weight: 500; font-size: 14px; color: var(--slate); }
header nav a:hover { color: var(--ink); }
header .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.head-cta { display: flex; align-items: center; gap: 8px; }
.btn-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-icon:hover { box-shadow: inset 0 0 0 1.5px var(--soft); }
.btn-icon svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); padding: 56px 0 72px; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg { --t: 22px; position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(20, var(--t)); grid-template-rows: repeat(12, var(--t)); gap: 5px; -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 55%); mask-image: linear-gradient(100deg, transparent 5%, #000 55%); pointer-events: none; }
.hero-bg i { border-radius: 3px; background: var(--blue); opacity: .14; transform: scale(.9); animation: tile 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.22s); }
@keyframes tile {
  0%, 100% { opacity: .08; transform: scale(.78); }
  50% { opacity: .42; transform: scale(1); }
}
.hero .grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 700; line-height: 1.12; margin-top: 20px; }
.hero h1 span { color: var(--blue); }
.hero .sub { color: #C9CED6; font-size: 17px; margin-top: 20px; max-width: 54ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; }
.hero .note { color: #9AA3AE; font-size: 13px; margin-top: 18px; }
/* Phones and tablets: one column, text and buttons centred above the phone */
@media (max-width: 1023px) {
  .hero .grid > div:first-child { text-align: center; }
  .hero h1 span { display: block; text-wrap: balance; }
  .hero .note { text-wrap: balance; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
}

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 300px; background: #0E1013; border-radius: 44px; padding: 11px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px #3A4048; }
.screen { color: var(--ink); background: #EEF1F5; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.screen .top { background: var(--white); padding: 34px 16px 10px; text-align: center; border-bottom: 1px solid var(--line); position: relative; }
.screen .top::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #0E1013; border-radius: 0 0 14px 14px; }
.screen .top b { font: 600 14px/1.2 var(--head); }
.screen .top small { display: block; font-size: 11px; color: var(--slate); margin-top: 2px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; }
.b { position: relative; max-width: 84%; padding: 9px 12px 6px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.b i { display: block; text-align: right; font-style: normal; font-size: 10.5px; margin-top: 3px; opacity: .65; }
.b.c { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.who { align-self: flex-end; font-size: 10.5px; font-weight: 600; color: var(--blue-hover); margin: 2px 2px -6px; }
.b.s { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.booked { margin: 2px 12px 14px; padding: 10px; border-radius: 10px; background: var(--tint); border: 1px solid rgba(31,107,255,.3); text-align: center; font-size: 12.5px; }
.booked b { display: block; color: var(--blue); font-family: var(--head); font-size: 12px; margin-bottom: 2px; }
.demo-label { position: relative; z-index: 2; text-align: center; font-size: 11px; color: #9AA3AE; margin-top: 14px; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 40px; }
.card { background: var(--mist); border-radius: var(--radius); padding: 24px; }
.card .bar { width: 32px; height: 4px; background: var(--blue); border-radius: 1px; margin-bottom: 16px; }
.card p.t { font: 600 18px/1.4 var(--head); }

/* Terrain stats */
.terrain { background: var(--mist); }
.terrain .eyebrow { color: var(--blue-hover); } /* blue on mist is 4.2:1, below 4.5 for 14px text */
.stats { display: grid; gap: 18px; margin-top: 40px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat .num { font: 700 52px/1 var(--head); color: var(--blue); }
.stat .num small { font-size: 22px; color: var(--slate); }
.stat p { margin-top: 10px; font-weight: 500; }
.stat.neutral .num { color: var(--ink); }
.source { font-size: 13px; color: var(--slate); margin-top: 22px; }

/* Method */
.method-steps { display: grid; gap: 18px; margin-top: 40px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.step .n { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--head); }
.step h3 { font-size: 18px; margin-top: 16px; }
.step p { font-size: 14.5px; color: var(--slate); margin-top: 8px; flex: 1; }
.step .tag { margin-top: 16px; font: 600 13px/1.3 var(--body); color: var(--blue); }
.split { display: grid; gap: 18px; margin-top: 18px; }
.split .card { background: var(--white); border: 1px solid var(--line); }
.split h4 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.split h4::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
.split .keep h4::before { background: var(--ink); }
.split p { color: var(--slate); font-size: 15px; margin-top: 10px; }

/* Pipeline mockup */
.board { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.board .head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 600 14px/1.3 var(--head); }
.board .head small { font: 400 12px/1 var(--body); color: var(--slate); }
.cols { display: grid; gap: 14px; margin-top: 16px; }
.col { background: var(--mist); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.col .ct { display: flex; justify-content: space-between; font: 600 13px/1 var(--head); }
.col .ct span { font: 500 11px/1 var(--body); color: var(--slate); background: var(--white); padding: 3px 8px; border-radius: 999px; }
.lead-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.lead-card b { font: 600 13px/1.3 var(--head); display: block; }
.lead-card span { color: var(--slate); display: block; margin-top: 3px; }
.lead-card em { font-style: normal; color: var(--blue); display: block; margin-top: 4px; font-size: 12px; }
.disclaimer { text-align: center; font-size: 14px; color: var(--slate); margin-top: 24px; }

/* Founder */
.founder { background: var(--mist); }
.founder .grid { display: grid; gap: 28px; align-items: center; }
.founder .photo { display: block; width: 100%; max-width: 240px; }
.founder .photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(34,38,43,.12); }
.founder .lead + .lead { margin-top: 12px; }
.founder .lead a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.founder .lead a:hover { color: var(--blue-hover); }
/* Phones: photo above the text, both centred */
@media (max-width: 719px) {
  .founder .grid { text-align: center; }
  .founder .photo { margin: 0 auto; }
  .founder .h2 { text-wrap: balance; }
}

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .grid { display: grid; gap: 40px; align-items: center; }
.contact .lead { color: #C9CED6; }
.checks { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.check { display: flex; gap: 12px; }
.check svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.check b { font: 600 15px/1.3 var(--head); display: block; }
.check span { color: #AEB5BE; font-size: 14px; }
.cta-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.cta-card h3 { font-size: 22px; }
.cta-card p { color: var(--slate); margin-top: 10px; font-size: 15px; }
.cta-card .btn { width: 100%; margin-top: 22px; }
.cta-card .btn + .btn { margin-top: 10px; }
.cta-card .alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }

/* FAQ */
.faq-list { max-width: 780px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--mist); border-radius: var(--radius); padding: 18px 20px; }
summary { cursor: pointer; list-style: none; font: 600 16px/1.4 var(--head); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; transition: transform .25s ease;
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; }
details[open] summary::after { transform: rotate(45deg); }
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
details p { color: var(--slate); font-size: 15px; margin-top: 10px; }
.center { text-align: center; }

/* Final band + footer */
.band { background: var(--blue); color: var(--white); text-align: center; }
.band p { color: var(--white); font-size: 17px; margin: 12px auto 26px; max-width: 540px; }
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
footer { background: var(--ink); color: #AEB5BE; padding: 22px 0; font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer img { height: 22px; width: auto; display: block; }
footer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
footer .row a { padding: 11px 0; }
footer a:hover { color: var(--white); }
footer .launch { display: inline-flex; align-items: center; gap: 8px; }
footer .launch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Audit dots: 17 of 40 in blue */
.dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin-top: 18px; max-width: 260px; }
.dots i { aspect-ratio: 1; border-radius: 2px; background: var(--line); }
.dots i:nth-child(-n+17) { background: var(--blue); }

/* Hero demo (demo.js adds .live; without JS the static chat stays) */
.b.typing { color: transparent; }
.b.typing i { visibility: hidden; }
.b.typing::after { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--white); box-shadow: 11px 0 0 var(--white), 22px 0 0 var(--white); animation: dots 1s infinite ease-in-out; }
@keyframes dots { 50% { opacity: .35; } }
.screen.live { height: 580px; }
.welcome { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 32px 26px; text-align: center; background: var(--white); transition: opacity .35s ease; }
.welcome.out { opacity: 0; }
.welcome::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #0E1013; border-radius: 0 0 14px 14px; }
.welcome-logo { width: 56px; height: 56px; margin-bottom: 14px; }
.welcome b { font: 600 18px/1.2 var(--head); }
.welcome small { font-size: 12px; color: var(--slate); }
.welcome p { font-size: 14px; line-height: 1.5; color: var(--ink); margin: 22px 0 26px; }
.welcome .btn { width: 100%; }
.screen.live > .top, .screen.live > .chat, .screen.live > .replies { transition: opacity .35s ease; }
.screen.fade-in > .top, .screen.fade-in > .chat, .screen.fade-in > .replies { opacity: 0; }
.screen.live .chat, .replies { scrollbar-width: thin; scrollbar-color: var(--soft) transparent; }
.screen.live .chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.screen.live .chat .booked { margin: 2px 0 0; flex-shrink: 0; }
.screen.live .b { flex-shrink: 0; }
.chat .day { align-self: center; flex-shrink: 0; font-size: 11px; color: var(--slate); background: var(--white); border-radius: 8px; padding: 3px 10px; box-shadow: 0 1px 2px rgba(34,38,43,.08); }
.replies { background: var(--white); border-top: 1px solid var(--line); padding: 10px 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; flex: none; height: 166px; overflow-y: auto; align-content: flex-start; }
.replies .hint { width: 100%; font-size: 11px; line-height: 1.4; color: var(--slate); }
.reply { font: 500 12.5px/1.3 var(--body); color: var(--blue); background: var(--white); border: 1.5px solid var(--blue); border-radius: 999px; padding: 7px 12px; cursor: pointer; text-align: start; }
.reply:hover, .reply:focus-visible { background: var(--tint); }
.replies.end { flex-direction: column; align-items: stretch; text-align: center; }
.replies.end .hint { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.replies.end .btn { justify-content: center; font-size: 13px; padding: 10px 12px; }
.replies .again { background: none; border: 0; color: var(--slate); font-size: 12px; text-decoration: underline; cursor: pointer; }

/* FAQ answers expand smoothly where supported */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (min-width: 720px) {
  .cards, .stats { grid-template-columns: repeat(3, 1fr); }
  .method-steps, .cols { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .founder .grid { grid-template-columns: 240px 1fr; gap: 48px; }
  footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  section { padding: 96px 0; }
  header nav { display: flex; }
  /* Fill the screen below the 68px header; content centred vertically */
  .hero { padding: 56px 0 64px; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-bg { --t: 34px; gap: 7px; }
  .hero .grid { grid-template-columns: 7fr 5fr; }
  .method-steps, .cols { grid-template-columns: repeat(4, 1fr); }
  /* Steps rise like the logo's step shape, from first message to decision */
  .method-steps .step:nth-child(1) { margin-top: 54px; }
  .method-steps .step:nth-child(2) { margin-top: 36px; }
  .method-steps .step:nth-child(3) { margin-top: 18px; }
  .contact .grid { grid-template-columns: 6fr 5fr; }
}
/* Keep the desktop hero within one screen on shorter laptop displays */
@media (min-width: 1024px) and (max-height: 860px) {
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 48px; }
  .phone { zoom: .86; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: 44px; margin-top: 14px; }
  .hero .sub { margin-top: 14px; }
  .phone { zoom: .76; }
}
@media (min-width: 1024px) and (max-height: 660px) {
  .hero { padding: 20px 0 24px; }
  .hero h1 { font-size: 40px; }
  .phone { zoom: .68; }
}
