/* ==========================================================================
   Brain86 — brain86.com
   Tokens: white base, near-black text, one accent (lime #EBFF4D, always with
   black text). Font: PP Neue Montreal, Inter fallback.
   ========================================================================== */

/* PP Neue Montreal is licensed. When the files are added to /fonts, uncomment:
@font-face { font-family: "PP Neue Montreal"; src: url("/fonts/PPNeueMontreal-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("/fonts/PPNeueMontreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("/fonts/PPNeueMontreal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
*/

:root {
  --white: #FFFFFF;
  --ink: #222222;
  --black: #111111;
  --sub: #52525B;
  --alt: #F8F8F5;
  --warm: #F2F1EB;
  --border: #E4E4E7;
  --lime: #EBFF4D;
  --lime-deep: #D9F400;
  --green: #16A34A;

  --font: "PP Neue Montreal", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --inset: clamp(12px, 3vw, 40px);
  --max: 1200px;
  --section-y: clamp(80px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 6px; }
.panel-dark :focus-visible, .hero :focus-visible { outline-color: var(--white); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 1.1rem + 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
mark {
  background: var(--lime);
  color: var(--black);
  padding: 0 0.12em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.h2 {
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 16px;
}
.sub { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--sub); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #000; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 60px; z-index: 50;
  padding-inline: var(--inset);
  transition: top .25s ease;
}
.nav-shell {
  max-width: 1240px; margin-inline: auto;
  height: 64px; padding: 0 12px 0 20px;
  display: flex; align-items: center; gap: 24px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--white);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease, max-width .25s ease;
}
.site-header.is-scrolled { top: 12px; }
.site-header.is-scrolled .nav-shell {
  max-width: 1160px;
  background: var(--white); color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-tile { fill: var(--black); }
.bm-ring { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; }
.bm-dot { fill: var(--lime); }
.brand-word { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.site-nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; opacity: .92; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: inherit;
}
.nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars { transform: translateY(-2.5px); }
.nav-toggle-bars::before { content: ""; position: absolute; top: 5px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 1040px) {
  .nav-shell { gap: 10px; padding-right: 8px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { order: 3; margin-left: 0; position: relative; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; right: 0; top: calc(100% + 18px);
    flex-direction: column; gap: 0; min-width: 220px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--border); border-radius: 20px; padding: 8px;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 1rem; opacity: 1; }
  .nav-links a:hover { background: var(--alt); text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  background: #1C1C1A;
  color: var(--white);
  display: flex; align-items: flex-end;
  padding: 170px var(--gutter) clamp(40px, 6vw, 80px);
}
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
/* Scrim sits behind the headline only (bottom-left), for legibility */
.hero-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,.66) 0%, rgba(0,0,0,0) 70%); }
.announce {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 0.875rem; text-decoration: none; white-space: nowrap;
}
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); flex: none; }
.announce-link { background: var(--white); color: var(--black); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
@media (max-width: 560px) { .announce-link { display: none; } .announce { padding-right: 14px; font-size: 0.8125rem; } }

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin-inline: auto;
  display: grid; gap: 40px; align-items: end;
}
@media (min-width: 980px) { .hero-inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } }
.hero-copy { max-width: 640px; }
.hero .h1 { max-width: 12ch; }
.hero-sub { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); color: rgba(255,255,255,.9); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

.hero-card {
  width: 100%; max-width: 360px;
  background: var(--white); color: var(--ink);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.55);
}
@media (min-width: 980px) { .hero-card { align-self: center; justify-self: start; margin-top: 40px; } }
.hc-head { background: var(--lime); color: var(--black); display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 0.8125rem; font-weight: 500; }
.badge-booked {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--black); color: var(--white);
  border-radius: 999px; padding: 4px 10px 4px 8px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-booked svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hc-steps { padding: 4px 16px 16px; }
.hc-step { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.hc-step:first-child { border-top: 0; }
.hc-time { font-size: 0.75rem; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.hc-title { font-size: 0.9375rem; font-weight: 500; }
.hc-meta { font-size: 0.8125rem; color: var(--sub); }
.hc-slot { margin-top: 8px; background: var(--warm); border-radius: 12px; padding: 10px; }
.hc-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.hc-days span { text-align: center; font-size: 0.6875rem; color: var(--sub); padding: 4px 0; border-radius: 8px; }
.hc-days b { display: block; font-size: 0.875rem; color: var(--ink); }
.hc-days .is-on { background: var(--lime); color: var(--black); }
.hc-days .is-on b { color: var(--black); }
.hc-slot-text { margin-top: 8px; font-size: 0.8125rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .hc-step { opacity: 0; transform: translateY(6px); animation: rise .5s ease forwards; }
  .js .hc-step:nth-child(1) { animation-delay: .3s; }
  .js .hc-step:nth-child(2) { animation-delay: .9s; }
  .js .hc-step:nth-child(3) { animation-delay: 1.5s; }
  .js .hc-head .badge-booked { opacity: 0; transform: scale(.8); animation: rise .4s ease 2.1s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Built for ---------- */
.built-for { padding-block: 40px; }
.built-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
.built-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill-row li { border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 0.9375rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--alt); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-split { max-width: none; display: grid; gap: 8px; align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.4fr 1fr; gap: 64px; } .section-head-split .sub { margin-top: 0; } }

/* Benefits */
.benefits { display: grid; gap: 16px; }
.benefit {
  background: var(--warm); border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) { .benefit { grid-template-columns: 1fr 1fr; gap: 56px; } }
.benefit-num { font-size: 0.8125rem; font-weight: 500; color: var(--sub); }
.benefit .h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin: 8px 0 10px; }
.benefit-copy p:last-child { color: var(--sub); max-width: 40ch; }
.benefit-art { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: 0 16px 40px -28px rgba(0,0,0,.35); }
.chip-lime { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); flex: none; }
.chip-lime svg { width: 20px; height: 20px; fill: none; stroke: var(--black); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip-sm { width: 32px; height: 32px; border-radius: 10px; }
.chip-sm svg { width: 16px; height: 16px; }
.ba-call-row { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; }
.ba-tag { margin-left: auto; background: var(--black); color: var(--white); font-size: 0.75rem; border-radius: 999px; padding: 3px 10px; }
.ba-bubble { margin-top: 12px; background: var(--alt); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 0.9375rem; max-width: 85%; }
.ba-bubble-them { margin-left: auto; background: var(--ink); color: var(--white); border-radius: 14px 14px 4px 14px; }
.ba-cal-head, .ba-cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ba-cal-head span { font-size: 0.75rem; color: var(--sub); text-align: center; }
.ba-cal-grid { margin-top: 8px; }
.ba-cal-grid span { height: 36px; border-radius: 8px; background: var(--alt); }
.ba-cal-grid .busy { background: var(--border); }
.ba-cal-grid .booked { background: var(--black); color: var(--white); font-size: 0.6875rem; font-weight: 500; display: grid; place-items: center; }
.ba-follow li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; }
.ba-follow li:first-child { border-top: 0; }
.ba-follow em { margin-left: auto; font-style: normal; font-size: 0.8125rem; color: var(--sub); }
.ba-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.ba-follow .is-next { color: var(--sub); }
.ba-follow .is-next .ba-dot { background: var(--white); border: 2px solid var(--ink); }

/* ---------- Product panel ---------- */
.panel-dark {
  margin-inline: var(--inset);
  border-radius: 32px;
  background: var(--black); color: var(--white);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
}
.panel-dark-inner { max-width: 1120px; margin-inline: auto; }
.kicker-dark { color: #A1A1AA; }
.tabs {
  display: inline-flex; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.08); border-radius: 999px;
  margin-bottom: 40px; max-width: 100%; overflow-x: auto;
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.75); font-size: 0.9375rem; font-weight: 500;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--white); color: var(--black); }
.tabpanel { display: grid; gap: 32px; align-items: center; }
.tabpanel[hidden] { display: none; }
@media (min-width: 900px) { .tabpanel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }
.tp-copy .h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-bottom: 12px; }
.tp-copy p { color: #C9C9CE; max-width: 36ch; }
.mock-wrap { border-radius: 20px; box-shadow: 0 0 0 1px rgba(235,255,77,.45), 0 0 64px -8px rgba(235,255,77,.4); }
.mock { background: var(--white); color: var(--ink); border-radius: 20px; overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.mock-app { font-weight: 500; }
.mock-time { color: var(--sub); font-variant-numeric: tabular-nums; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--alt); }
.tag { font-size: 0.75rem; font-weight: 500; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.call-meta { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--warm); display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700; flex: none; }
.avatar-lg { width: 44px; height: 44px; }
.cm-name { font-weight: 500; font-size: 0.9375rem; }
.cm-sub { font-size: 0.8125rem; color: var(--sub); }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: var(--white); font-size: 0.75rem; font-weight: 500; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.live-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.transcript { padding: 0 20px 12px; }
.transcript li { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.transcript .ts { grid-row: span 2; font-size: 0.75rem; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.transcript b { font-size: 0.75rem; }
.transcript .them b { color: var(--sub); }
.transcript p { font-size: 0.9375rem; }
.chat { background: var(--warm); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { align-self: flex-start; background: var(--white); border-radius: 14px 14px 14px 4px; padding: 10px 12px; max-width: 85%; font-size: 0.9375rem; }
.msg-me { align-self: flex-end; background: var(--ink); color: var(--white); border-radius: 14px 14px 4px 14px; }
.msg-time { display: block; text-align: right; font-size: 0.6875rem; color: var(--sub); margin-top: 4px; }
.msg-me .msg-time { color: #A1A1AA; }
.msg-card { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.badge-sm { font-size: 0.6875rem; }
.msg-card-title { font-weight: 700; margin-top: 8px; }
.msg-card-when { font-size: 0.875rem; color: var(--sub); }
.msg-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.msg-card-actions span { flex: 1; text-align: center; font-size: 0.8125rem; font-weight: 500; border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px; }
.cal { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 16px 20px; }
.cal-times { display: grid; grid-template-rows: 32px repeat(4, 56px); }
.cal-times span { font-size: 0.6875rem; color: var(--sub); }
.cal-times span:nth-child(1) { grid-row: 2; } .cal-times span:nth-child(2) { grid-row: 3; } .cal-times span:nth-child(3) { grid-row: 4; } .cal-times span:nth-child(4) { grid-row: 5; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal-day { display: grid; grid-template-rows: 32px repeat(4, 56px); border-left: 1px solid var(--border); padding-left: 4px; }
.cal-dname { font-size: 0.75rem; color: var(--sub); text-align: center; }
.cal-dname b { color: var(--ink); }
.ev { font-size: 0.6875rem; line-height: 1.3; padding: 6px; border-radius: 8px; margin: 3px 0; overflow: hidden; }
.ev.r1 { grid-row: 2; } .ev.r2 { grid-row: 3; } .ev.r3 { grid-row: 4; } .ev.r4 { grid-row: 5; }
.ev-busy { background: var(--warm); color: var(--sub); }
.ev-note { border: 1px dashed #A1A1AA; color: var(--ink); }
.ev-booked { background: var(--black); color: var(--white); }
.ev-booked b { display: block; }
.crm-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; flex-wrap: wrap; }
.stage-pill { margin-left: auto; background: var(--black); color: var(--white); font-size: 0.75rem; font-weight: 500; border-radius: 999px; padding: 5px 12px; }
.crm-fields { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.crm-fields div { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.crm-fields div:nth-child(odd) { border-right: 1px solid var(--border); }
.crm-fields dt { font-size: 0.75rem; color: var(--sub); }
.crm-fields dd { font-size: 0.9375rem; font-weight: 500; }
.crm-timeline { padding: 12px 20px 16px; }
.crm-timeline li { display: flex; gap: 12px; padding: 7px 0; font-size: 0.875rem; }
.crm-timeline .ts { width: 40px; flex: none; color: var(--sub); font-size: 0.75rem; padding-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-wide { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.tile .h3 { margin: 20px 0 6px; }
.tile p { color: var(--sub); }
.tile-art { margin-top: 20px; }
.tile-hours { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-hours span { font-size: 0.8125rem; border: 1px solid var(--border); background: var(--alt); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.tile-recall li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.875rem; }
.tile-recall li:first-child { border-top: 0; }
.tile-recall em { font-style: normal; color: var(--sub); text-align: right; }
.tile-handover { background: var(--warm); border-radius: 16px; padding: 16px; }
.tile-handover p { color: var(--ink); font-size: 0.9375rem; }
.tile-handover .th-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); margin-bottom: 6px; }
.th-btn { display: inline-block; margin-top: 12px; background: var(--black); color: var(--white); font-size: 0.8125rem; font-weight: 500; border-radius: 999px; padding: 6px 14px; }

/* ---------- Integrations ---------- */
.int-flow {
  display: grid; gap: 40px; align-items: center;
  background: var(--warm); border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
}
@media (min-width: 900px) { .int-flow { grid-template-columns: minmax(0, .8fr) 110px minmax(0, 1.5fr); gap: 0; } }
.flow-label { font-size: 0.75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: 14px; }
.int-in { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .int-in { grid-template-columns: 1fr; } }
.int-in li { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-weight: 500; font-size: 0.9375rem; }
.int-icon { width: 22px; height: 22px; flex: none; }
svg.int-icon { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.int-hub {
  position: relative; justify-self: center;
  display: grid; justify-items: center; gap: 8px;
  background: var(--black); color: var(--white);
  border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 0.875rem; gap: 6px;
}
.int-hub .brand-mark { width: 26px; height: 26px; }
.bm-tile-on-ink { fill: var(--white); }
.bm-ring-on-ink { fill: none; stroke: var(--black); stroke-width: 2.6; stroke-linecap: round; }
.int-hub::before, .int-hub::after { content: ""; position: absolute; background: var(--line, #C9C9CE); }
.int-hub::before, .int-hub::after { left: 50%; width: 1px; height: 40px; }
.int-hub::before { bottom: 100%; } .int-hub::after { top: 100%; }
@media (min-width: 900px) {
  .int-hub::before, .int-hub::after { left: auto; top: 50%; width: 32px; height: 1px; bottom: auto; }
  .int-hub::before { right: 100%; } .int-hub::after { left: 100%; }
  .int-side:first-child { padding-right: 32px; } .int-side:last-child { padding-left: 32px; }
}
.int-side { min-width: 0; }
.logo-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logo-grid li { min-width: 0; }
@media (max-width: 560px) { .logo-grid li { height: 52px; padding: 8px; } .logo-grid img { max-width: 76px; max-height: 20px; } }
.logo-grid li {
  height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  font-weight: 500; font-size: 0.875rem;
}
.logo-grid img { max-height: 24px; max-width: min(110px, 100%); width: auto; height: auto; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.logo-grid li:hover img { filter: none; opacity: 1; }
.logo-grid .logo-wide { grid-column: 1 / -1; }
.int-note { margin-top: 16px; font-size: 0.875rem; color: var(--sub); }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.why-card .h3 { margin: 20px 0 8px; }
.why-card p { color: var(--sub); }
.doodle { width: 100%; max-width: 180px; height: auto; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doodle-accent { stroke-width: 3.4; }

/* ---------- Numbers ---------- */
.numbers { padding-block: clamp(56px, 7vw, 88px); }
.num-band { display: grid; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 760px) { .num-band { grid-template-columns: repeat(3, 1fr); } .num-band li + li { border-left: 1px solid var(--border); } }
.num-band li { padding: 32px 24px; }
.num-band li + li { border-top: 1px solid var(--border); }
@media (min-width: 760px) { .num-band li + li { border-top: 0; } }
.num { font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.03em; display: inline-block; }
.num-lime { background: var(--lime); color: var(--black); border-radius: 12px; padding: 0.04em 0.16em; }
.num-band p { margin-top: 14px; color: var(--sub); max-width: 30ch; }

/* ---------- Security ---------- */
.security-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .security-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.sec-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sec-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--warm); color: var(--sub);
  border: 1px solid transparent; border-radius: 999px;
  padding: 16px 24px; font-size: 1rem; cursor: pointer;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.sec-pill:nth-child(even) { margin-left: clamp(0px, 3vw, 32px); }
.sec-pill b { color: var(--ink); font-weight: 700; }
.sec-text { max-width: 46ch; }
@media (max-width: 560px) { .sec-pill { border-radius: 20px; padding: 14px 18px; font-size: 0.9375rem; } }
.sec-check { display: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); place-items: center; flex: none; }
.sec-check svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sec-pill.is-active { background: var(--white); color: var(--ink); border-color: var(--border); box-shadow: 0 16px 36px -18px rgba(0,0,0,.3); transform: scale(1.04); }
.sec-pill.is-active .sec-check { display: inline-grid; }
@media (prefers-reduced-motion: reduce) { .sec-pill { transition: none; } .sec-pill.is-active { transform: none; } }

/* ---------- Book a demo ---------- */
.book-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .book-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.book-direct { margin-top: 24px; color: var(--sub); }
.book-direct a { color: var(--ink); text-underline-offset: 4px; }
.access-form { background: var(--warm); border-radius: 24px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.9375rem; font-weight: 500; }
.optional { color: var(--sub); font-weight: 400; }
.field input, .field select {
  width: 100%; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 1rem; line-height: 1.4;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34,34,34,.12); }
.field input[aria-invalid="true"] { border-color: #B91C1C; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.access-form .btn { margin-top: 6px; min-height: 54px; }
.form-note { font-size: 0.875rem; color: var(--sub); }
.form-note.is-error { color: #B91C1C; }
.form-note.is-success { color: #166534; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 500; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat, var(--white);
}
.faq details[open] summary::after { background: linear-gradient(var(--white), var(--white)) center / 10px 1.5px no-repeat, var(--black); border-color: var(--black); }
.faq details p { padding: 0 48px 24px 0; color: var(--sub); max-width: 62ch; }

/* ---------- Footer panel ---------- */
.footer-panel {
  margin: var(--inset) var(--inset) var(--inset);
  border-radius: 28px;
  background: var(--lime); color: var(--black);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px) 28px;
}
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-cta .h2 { max-width: 16ch; }
.footer-rule { border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: clamp(32px, 5vw, 48px) 0 32px; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-cols { grid-template-columns: 3fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 12px; font-size: 0.9375rem; }
.footer-h { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-cols li { margin-bottom: 4px; }
.footer-cols li a, .footer-brand p a { display: inline-block; min-height: 24px; padding: 2px 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 36px; font-size: 0.8125rem; }

/* ---------- Simple pages (pricing, 404) ---------- */
.simple-page { min-height: 100svh; display: grid; align-content: center; gap: 20px; padding-block: 120px; }
.simple-page .h1 { color: var(--ink); max-width: 14ch; }
.simple-page .brand { color: var(--ink); margin-bottom: 24px; }
