/* SkoolBro marketing site. Tokens follow docs/12-design-system.md. */
:root {
  --forest: #14532D;
  --forest-2: #0E3F22;
  --brand: #16A34A;
  --accent: #4ADE80;
  --light: #DCFCE7;
  --mint: #F0FDF4;
  --bg: #F8FAFC;
  --ink: #0F172A;
  --muted: #475569;
  --soft: #64748B;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --amber-bg: #FEF3C7;
  --amber-ink: #92400E;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 10px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 40px 80px -30px rgba(20, 83, 45, .35), 0 18px 36px -18px rgba(15, 23, 42, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
/* No heading ends with one word alone on its last line; paragraphs avoid short last lines. */
h1, h2, h3, summary, .eyebrow, .kicker, .plan-for, .agent b, .agent small { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; }
.sr-only { position: absolute; 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(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(22, 163, 74, .8); }
.btn-primary:hover { background: var(--forest); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(20, 83, 45, .7); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--forest); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--mint); transform: translateY(-1px); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-live { background: var(--light); color: var(--forest); }
.tag-soon { background: var(--amber-bg); color: var(--amber-ink); }
.tag-on-dark { margin-inline-start: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .4); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--forest); }
.brand-word span { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 32px; flex: 1; }
.main-nav ul { display: flex; gap: 6px; margin-inline: auto; }
.main-nav ul a { position: relative; display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 10px; transition: color .2s, background .2s; }
.main-nav ul a:hover { color: var(--ink); background: var(--bg); }
.main-nav ul a.is-active { color: var(--forest); }
.main-nav ul a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav ul { flex-direction: column; margin: 0; }
  .main-nav ul a { padding: 14px 12px; font-size: 17px; color: var(--ink); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { padding: 14px; font-size: 16px; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-open .nav-toggle .ico-open { display: none; }
  .nav-open .nav-toggle .ico-close { display: block; }
  .nav-open .site-header { background: #fff; border-bottom-color: var(--line); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 24px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 40px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--mint) 0%, #fff 70%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #BBF7D0; top: -160px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #A7F3D0; top: 220px; left: -160px; animation-duration: 22s; }
.blob-3 { width: 300px; height: 300px; background: #D9F99D; bottom: -80px; right: 30%; opacity: .35; animation-duration: 26s; }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(20, 83, 45, .13) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 70%); }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #BBF7D0; color: var(--forest); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { margin-top: 22px; font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; color: var(--forest); }
.hero-title .line { display: block; animation: rise .9s var(--ease) both; }
.hero-title .line-2 { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(18px); } }
.grad { background: linear-gradient(100deg, var(--brand) 0%, var(--forest) 45%, var(--brand) 70%, #22C55E 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }
.lede { margin-top: 22px; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--light); color: var(--brand); }

/* Product composition */
.hero-visual { position: relative; padding: 36px 0 56px; --px: 0; --py: 0; }
.app-window {
  position: relative; font-size: clamp(8.5px, .95vw, 11.5px);
  background: #fff; border-radius: 1.6em; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0);
  transition: transform .6s var(--ease);
}
.app-top { display: flex; align-items: center; gap: 1.2em; padding: .9em 1.2em; border-bottom: 1px solid var(--line); background: #FBFDFC; }
.dots { display: flex; gap: .5em; }
.dots i { width: .85em; height: .85em; border-radius: 50%; background: #E2E8F0; }
.dots i:first-child { background: #FCA5A5; } .dots i:nth-child(2) { background: #FCD34D; } .dots i:nth-child(3) { background: #86EFAC; }
.app-url { flex: 1; max-width: 22em; margin-inline: auto; text-align: center; padding: .35em 1em; border-radius: 999px; background: var(--bg); color: var(--soft); font-size: .95em; }
.app-body { display: grid; grid-template-columns: 11em 1fr; min-height: 30em; }
.app-side { background: var(--forest); color: rgba(255, 255, 255, .78); padding: 1.3em .9em; }
.side-brand { display: flex; align-items: center; gap: .6em; color: #fff; font-weight: 700; font-size: 1.15em; margin-bottom: 1.4em; }
.side-brand svg { width: 1.9em; height: 1.9em; }
.app-side ul { display: grid; gap: .25em; }
.app-side li { display: flex; align-items: center; gap: .7em; padding: .6em .7em; border-radius: .7em; font-size: 1em; }
.app-side li svg { width: 1.35em; height: 1.35em; }
.app-side li.on { background: var(--brand); color: #fff; font-weight: 600; }
.app-main { padding: 1.4em; background: var(--bg); display: flex; flex-direction: column; gap: 1.1em; }
.app-hello strong { display: block; font-size: 1.45em; letter-spacing: -.02em; }
.app-hello span { color: var(--soft); font-size: .95em; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 1em; padding: .9em; display: grid; gap: .15em; }
.kpi-ico { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--light); color: var(--brand); display: grid; place-items: center; margin-bottom: .3em; }
.kpi-ico svg { width: 1.3em; height: 1.3em; }
.kpi b { font-size: 1.45em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi small { color: var(--soft); font-size: .9em; }
.app-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8em; flex: 1; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1em; padding: 1em; }
.panel-title { display: flex; align-items: center; gap: .4em; font-weight: 700; font-size: 1em; margin-bottom: .6em; }
.panel-title svg { width: 1.2em; height: 1.2em; color: var(--brand); }
.line-chart { width: 100%; height: 9em; }
.line-chart .grid path { stroke: #EEF2F7; stroke-width: 1; }
.line-chart .area { fill: rgba(74, 222, 128, .14); opacity: 0; transition: opacity 1s .9s; }
.line-chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; vector-effect: non-scaling-stroke; }
.line-chart .l1 { stroke: var(--brand); transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.line-chart .l2 { stroke: #F59E0B; stroke-width: 2; transition: stroke-dashoffset 1.6s var(--ease) .6s; }
.is-live .line-chart .line { stroke-dashoffset: 0; }
.is-live .line-chart .area { opacity: 1; }
.insights { display: grid; gap: .55em; }
.insights li { display: flex; gap: .5em; align-items: flex-start; font-size: .95em; line-height: 1.35; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ease); }
.insights li svg { width: 1.2em; height: 1.2em; flex: none; color: var(--brand); padding: .15em; border-radius: 50%; background: var(--light); }
.is-live .insights li { opacity: 1; transform: none; }
.is-live .insights li:nth-child(1) { transition-delay: 1.2s; }
.is-live .insights li:nth-child(2) { transition-delay: 1.5s; }
.is-live .insights li:nth-child(3) { transition-delay: 1.8s; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, .9); border-radius: 16px; box-shadow: var(--shadow-md);
  translate: calc(var(--px) * var(--depth, 10) * 1px) calc(var(--py) * var(--depth, 10) * 1px);
  transition: translate .6s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 15px; letter-spacing: -.01em; }
.float-card small { display: block; font-size: 12.5px; color: var(--soft); min-height: 1.3em; }
.fc-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--light); color: var(--brand); display: grid; place-items: center; flex: none; }
.fc-ico svg { width: 20px; height: 20px; }
.fc-ico-ai { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.fc-1 { top: 4px; right: -8px; animation-delay: -1s; }
.fc-2 { bottom: 14px; left: -28px; max-width: 290px; animation-delay: -3s; }
.fc-3 { bottom: 4px; right: 28px; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.typing::after { content: '▍'; margin-inline-start: 1px; color: var(--brand); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.preview-note { margin-top: 4px; font-size: 12.5px; color: var(--soft); text-align: right; }

@media (max-width: 1080px) {
  .fc-1 { right: 0; } .fc-3 { right: 0; } .fc-2 { left: 0; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { padding: 24px 0 64px; }
  .app-window { font-size: clamp(7px, 1.7vw, 11px); transform: none; }
  .preview-note { text-align: left; }
}
@media (max-width: 600px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-window { font-size: 9.5px; }
  .fc-1, .fc-3 { display: none; }
  .fc-2 { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 48px; padding: 20px 24px; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee li .ico { width: 20px; height: 20px; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-head { max-width: 62rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .section-lede { max-width: 42rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .01em; margin-bottom: 14px; }
.kicker::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.section-lede { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 40rem; }

/* ---------- Story (one connected school day) ---------- */
.day { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.story-steps { counter-reset: step; }
.story-step { position: relative; padding: 32px 0 32px 32px; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; border-inline-start: 2px solid var(--line); opacity: .38; transition: opacity .5s, border-color .5s; }
.story-step::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transform: translateY(-50%); transition: background .4s, border-color .4s, box-shadow .4s; }
.story-step.is-active { opacity: 1; border-inline-start-color: var(--brand); }
.story-step.is-active::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgba(22, 163, 74, .15); }
.step-time { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--forest); background: var(--light); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.story-step h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.story-step p { color: var(--muted); max-width: 30rem; margin-bottom: 14px; }
.story-step .tag { align-self: flex-start; }

.story-stage { position: sticky; top: calc(var(--header-h) + 48px); height: 440px; }
.story-stage::before { content: ''; position: absolute; inset: 30px -10px -10px 30px; border-radius: 32px; background: linear-gradient(135deg, var(--light), #BBF7D0); transform: rotate(3deg); }
.stage-card {
  position: absolute; inset: 0; padding: 30px; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none;
}
.stage-card.is-active { opacity: 1; transform: none; }
.sc-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.sc-head svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--light); color: var(--brand); }
.sc-field { display: grid; gap: 4px; }
.sc-field span { font-size: 13px; color: var(--soft); }
.sc-field i { font-style: normal; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.sc-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sc-otp span { display: grid; place-items: center; height: 52px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 22px; font-weight: 700; color: var(--forest); background: #fff; }
.is-active .sc-otp span { animation: pop .5s var(--ease) both; }
.is-active .sc-otp span:nth-child(2) { animation-delay: .08s; } .is-active .sc-otp span:nth-child(3) { animation-delay: .16s; }
.is-active .sc-otp span:nth-child(4) { animation-delay: .24s; } .is-active .sc-otp span:nth-child(5) { animation-delay: .32s; } .is-active .sc-otp span:nth-child(6) { animation-delay: .4s; }
@keyframes pop { from { transform: translateY(8px) scale(.9); opacity: 0; border-color: var(--brand); } to { transform: none; opacity: 1; } }
.sc-btn { padding: 13px; border-radius: 12px; background: var(--brand); color: #fff; text-align: center; font-weight: 600; }
.sc-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sc-roles b { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.sc-person, .sc-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.sc-person { background: var(--mint); border-color: #BBF7D0; }
.sc-person b, .sc-link b { display: block; }
.sc-person small, .sc-link small { color: var(--soft); font-size: 13px; }
.sc-link em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--light); color: var(--forest); }
.sc-link em.em-soft { background: var(--bg); color: var(--muted); }
.is-active .sc-link { animation: slideIn .6s var(--ease) both; }
.is-active .sc-link:last-child { animation-delay: .15s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: #fff; }
.av-a { background: var(--brand); } .av-b { background: var(--forest); } .av-c { background: #F59E0B; }
.sc-att { display: grid; gap: 8px; }
.sc-att li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.sc-att b { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.sc-att .p { background: var(--light); color: var(--forest); }
.sc-att .a { background: #FEE2E2; color: #991B1B; }
.sc-att .l { background: var(--amber-bg); color: var(--amber-ink); }
.is-active .sc-att li { animation: slideIn .5s var(--ease) both; }
.is-active .sc-att li:nth-child(2) { animation-delay: .07s; } .is-active .sc-att li:nth-child(3) { animation-delay: .14s; }
.is-active .sc-att li:nth-child(4) { animation-delay: .21s; } .is-active .sc-att li:nth-child(5) { animation-delay: .28s; }
.sc-foot { margin-top: auto; font-size: 13px; color: var(--soft); }
.sc-meter { height: 14px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.sc-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1.2s var(--ease) .2s; }
.is-active .sc-meter span { width: var(--w); }
.sc-money b { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--forest); }
.sc-money small { color: var(--soft); }
.sc-bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-top: auto; }
.sc-bars li { flex: 1; height: 8%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--brand)); transition: height .9s var(--ease); }
.is-active .sc-bars li { height: var(--h); }
.is-active .sc-bars li:nth-child(2) { transition-delay: .06s; } .is-active .sc-bars li:nth-child(3) { transition-delay: .12s; }
.is-active .sc-bars li:nth-child(4) { transition-delay: .18s; } .is-active .sc-bars li:nth-child(5) { transition-delay: .24s; } .is-active .sc-bars li:nth-child(6) { transition-delay: .3s; }
.sc-schools { display: grid; gap: 10px; }
.sc-schools li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; }
.sc-schools small { margin-inline-start: auto; color: var(--soft); font-weight: 500; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.d1 { background: var(--brand); } .d2 { background: var(--forest); } .d3 { background: var(--accent); }
.sc-log { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 12px; border-radius: 12px; background: var(--bg); }
.sc-log svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; top: var(--header-h); height: 360px; z-index: 2; margin-bottom: 8px; background: var(--bg); box-shadow: 0 14px 18px -10px var(--bg); }
  .stage-card { inset: 12px 0; }
  .av { width: 34px; height: 34px; font-size: 12px; }
  .sc-person, .sc-link { padding: 8px 10px; }
  .story-stage::before { display: none; }
  .stage-card { padding: 20px; gap: 12px; font-size: 14px; overflow: hidden; }
  .sc-roles, .sc-field span { display: none; }
  .sc-otp span { height: 42px; font-size: 18px; }
  .sc-bars { height: 80px; }
  .sc-money b { font-size: 26px; }
  .story-step { min-height: 0; padding: 28px 0 28px 24px; }
  .story-steps { background: linear-gradient(180deg, transparent, var(--bg) 40px); }
}
@media (max-width: 480px) {
  .story-stage { height: 300px; }
  .sc-att li:nth-child(n+4) { display: none; }
}

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.js .tile.reveal.is-visible:hover, .tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #BBF7D0; }
.tile h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .tag { position: absolute; top: 24px; right: 24px; }
.tile-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--light); color: var(--brand); display: grid; place-items: center; margin-bottom: 8px; transition: transform .4s var(--ease), background .3s, color .3s; }
.tile-ico svg { width: 24px; height: 24px; }
.tile:hover .tile-ico { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }
.tile-xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #fff 30%, var(--mint) 100%); }
.tile-xl h3 { font-size: 1.6rem; }
.tile-xl p { font-size: 16px; max-width: 30rem; }
.tile-wide { grid-column: span 2; }
.mini-tree { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; justify-items: center; }
.mt-node { padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #BBF7D0; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); position: relative; }
.mt-root { background: var(--forest); color: #fff; border-color: var(--forest); }
.mt-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }
.mt-row::before { content: ''; position: absolute; top: -14px; left: 16%; right: 16%; height: 14px; border: 2px solid #BBF7D0; border-bottom: 0; border-radius: 12px 12px 0 0; }
.mt-small span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--light); color: var(--forest); font-weight: 600; }
.mt-small::before { display: none; }

@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; grid-row: auto; }
  .tile .tag { position: static; align-self: flex-start; order: -1; }
}

/* ---------- AI workforce ---------- */
.ai { background: radial-gradient(120% 120% at 0% 0%, #166534 0%, var(--forest) 40%, var(--forest-2) 100%); color: #fff; overflow: hidden; }
.ai-glow { position: absolute; width: 640px; height: 640px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, .35), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.ai-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.kicker-light { color: var(--accent); }
.ai h2 { color: #fff; }
.ai .section-lede { color: rgba(255, 255, 255, .78); }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.agent { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .3s, transform .3s var(--ease), border-color .3s; }
.js .agent.reveal.is-visible:hover, .agent:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); border-color: rgba(74, 222, 128, .5); }
.agent > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(74, 222, 128, .16); color: var(--accent); flex: none; }
.agent > span svg { width: 22px; height: 22px; }
.agent b { display: block; font-size: 15px; }
.agent small { display: block; font-size: 13px; color: rgba(255, 255, 255, .68); line-height: 1.4; }

.ai-chat { background: #fff; color: var(--ink); border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; }
.chat-head small { color: var(--soft); font-size: 12.5px; }
.chat-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.chat-av svg { width: 22px; height: 22px; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; background: var(--bg); }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.msg-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg-ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; min-width: 70%; }
.typing-line { min-height: 1.5em; }
.typing-line.is-typing::after { content: '▍'; color: var(--brand); animation: caret 1s steps(1) infinite; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.chat-actions.is-shown { opacity: 1; transform: none; }
.chat-actions span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.chat-actions em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12.5px; color: var(--amber-ink); background: var(--amber-bg); padding: 6px 10px; border-radius: 999px; }
.chat-actions em svg { width: 14px; height: 14px; }
.chat-input { display: flex; align-items: center; gap: 12px; margin: 16px 20px 20px; padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.chat-input i { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.chat-input i svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) { .agents { grid-template-columns: 1fr; } }

/* ---------- Roles tabs ---------- */
.roles { background: var(--bg); }
.tab-list { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { position: relative; z-index: 1; padding: 11px 20px; border: 0; background: none; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tab-list button[aria-selected='true'] { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--forest); transition: transform .45s var(--ease), width .45s var(--ease); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 40px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 22px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.ticks .ico { margin-top: 3px; color: var(--brand); }
.ticks .later { color: var(--muted); }
.ticks .later .ico { color: #D97706; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--brand); }
.text-link:hover { color: var(--forest); }
.text-link:hover .ico { transform: translateX(3px); }
.text-link .ico { transition: transform .25s var(--ease); }
.panel-art svg { width: 100%; max-width: 440px; margin-inline: auto; }
.art-float { animation: bob 5s ease-in-out infinite; transform-box: fill-box; }

@media (max-width: 860px) {
  .tab-panel { grid-template-columns: 1fr; gap: 24px; }
  .panel-art { order: -1; }
  .panel-art svg { max-width: 300px; }
}

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust-card { min-width: 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow-wrap: break-word; transition: transform .35s var(--ease), box-shadow .35s; }
.js .trust-card.reveal.is-visible:hover, .trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--forest); color: var(--accent); margin-bottom: 18px; }
.trust-ico svg { width: 26px; height: 26px; }
.trust-card h3 { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 8px; }
.trust-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, #fff 0%, var(--mint) 100%); }
.pricing .section-head { margin-inline: auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.js .plan.reveal.is-visible:hover, .plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.25rem; }
.plan-for { color: var(--soft); font-size: 14.5px; margin-top: -8px; }
.price { display: flex; align-items: baseline; gap: 4px; padding-block: 8px 4px; }
.price .cur { font-weight: 700; color: var(--muted); }
.price b { font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .25s; }
.price .per { color: var(--soft); font-size: 14px; }
.price-ask { padding-block: 10px 6px; }
.price-ask a { font-size: 1.15rem; font-weight: 700; color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.price-ask a:hover { color: var(--forest); }
.plan-featured .price-ask a { color: var(--accent); }
.plan-featured .price-ask a:hover { color: #fff; }
.price-custom b { font-size: 2rem; }
.plan .ticks { margin-bottom: 8px; flex: 1; }
.plan .ticks li { font-size: 15px; }
.plan-featured { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: var(--shadow-lg); }
.plan-featured .plan-for, .plan-featured .price .per, .plan-featured .price .cur { color: rgba(255, 255, 255, .7); }
.plan-featured .ticks li { color: #fff; }
.plan-featured .ticks .ico { color: var(--accent); }
.plan-badge { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--forest); font-size: 12.5px; font-weight: 700; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--soft); font-size: 14px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2314532D' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #BBF7D0; }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }
.faq details[open] p { animation: panelIn .4s var(--ease); }
@media (max-width: 860px) { .faq-inner { grid-template-columns: 1fr; gap: 8px; } .faq details p { padding-right: 0; } }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 clamp(64px, 8vw, 104px); }
.cta-inner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 30px; color: #fff;
  background: linear-gradient(120deg, var(--forest) 0%, var(--brand) 55%, #22C55E 100%); background-size: 200% 200%; animation: flow 12s ease-in-out infinite alternate;
}
.cta-inner::after { content: ''; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
@keyframes flow { to { background-position: 100% 100%; } }
.cta-mark { width: 64px; height: 64px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .2)); }
.cta-copy h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.12; }
.cta-copy p { margin-top: 8px; color: rgba(255, 255, 255, .85); max-width: 34rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 960px) { .cta-inner { grid-template-columns: 1fr; } .cta-mark { width: 52px; height: 52px; } }
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-brand p { margin-top: 14px; color: var(--soft); font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { font-size: 14px; margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-cols a:hover { color: var(--brand); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.to-top:hover { color: var(--brand); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Grid items never grow wider than their track, whatever their content. */
.tile, .plan, .agent, .trust-card, .story-step, .tab-panel > * { min-width: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee-track { width: 100%; flex-wrap: wrap; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .app-window { transform: none; }
  .float-card { translate: none; }
}
