/* Alchy marketing site — redesign v3. Colours live only in :root (theme.py swaps them). */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #FFFFFF;
  --alt: #F5F7FB;
  --white: #FFFFFF;
  --text: #0B1B33;
  --muted: #42526B;
  --accent: #13294B;
  --accent-hover: #0C1D38;
  --link: #1F4E8C;
  --link-hover: #13294B;
  --tint: #EEF2F8;
  --chip: #DCE4F0;
  --line: #E2E7EF;
  --line-strong: #C6D0DE;
  --chrome: #EEF1F6;
  --side: #F3F5F9;
  --dark: #0A1628;
  --dark-2: #13294B;
  --dark-card: #15233A;
  --dark-line: #2A3B57;
  --on-dark: #F5F7FB;
  --on-dark-muted: #B9C5D8;
  --cta-text: #DCE4F0;
  --glow: #3D6DB3;
  --ok-bg: #E3F1EA;
  --ok-text: #1E5B3A;
  --warn-bg: #FBEFD9;
  --warn-text: #7A4A00;
  --bad-bg: #F8E3E1;
  --bad-text: #8E2A20;
  --hot: #C2410C;
  --sh: 10, 22, 40;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1220px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; font-weight: 450; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 780; letter-spacing: -0.025em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Draft strip + header */
.draft-banner { background: var(--tint); color: var(--text); font-size: 13.5px; font-weight: 650; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--chip); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(var(--sh), .06); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: 74px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--white); display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.top, .nav-links button.top { font: inherit; color: var(--text); text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 9px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.top:hover, .nav-links button.top:hover, .nav-links button.top[aria-expanded="true"] { background: var(--tint); color: var(--text); }
.nav-links a.top[aria-current="page"] { background: var(--tint); }
.caret { width: 10px; height: 10px; transition: transform .2s; }
button.top[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin { color: var(--text); text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 9px 14px; border-radius: 999px; }
.nav-signin:hover { background: var(--tint); color: var(--text); }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 700; font-size: 15px; color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* Mega menu */
.mega { position: fixed; left: 0; right: 0; top: var(--mega-top, 106px); background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(var(--sh), .14); display: none; }
.mega.open { display: block; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 28px 32px; display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; gap: 28px; }
.mega h2 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega a.item { display: block; text-decoration: none; color: var(--text); padding: 9px 10px; border-radius: 10px; margin: 0 -10px; }
.mega a.item:hover { background: var(--alt); }
.mega a.item strong { display: block; font-size: 15px; font-weight: 750; }
.mega a.item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.mega-feature { background: var(--accent); color: var(--on-dark); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.mega-feature:hover { background: var(--accent-hover); color: var(--on-dark); }
.mega-feature strong { font-size: 1.15rem; color: var(--white); }
.mega-feature span { font-size: 14.5px; color: var(--cta-text); }
.mega-feature em { font-style: normal; font-weight: 750; color: var(--white); margin-top: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 750; font-size: 16px; line-height: 1; color: var(--white); background: var(--accent); border: 2px solid var(--accent); padding: 15px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--sh), .18); }
.btn-lg { font-size: 17px; padding: 19px 32px; }
.btn-sm { font-size: 15px; padding: 11px 18px; }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--tint); color: var(--text); border-color: var(--accent); }
.btn-white { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-white:hover { background: var(--tint); border-color: var(--tint); color: var(--dark); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--on-dark-muted); }
.btn-outline-light:hover { background: var(--dark-card); color: var(--white); border-color: var(--white); }
.play { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; }
.play svg { width: 10px; height: 10px; margin-left: 2px; }
.text-link { font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }

/* Sections */
section { padding: 112px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--link); margin-bottom: 18px; }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.eyebrow { white-space: nowrap; }
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head p { margin-top: 18px; font-size: 1.18rem; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* Hero */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--alt) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--chip) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14.5px; font-weight: 650; color: var(--text); text-decoration: none; margin-bottom: 26px; box-shadow: 0 2px 8px rgba(var(--sh), .05); }
.pill-badge b { background: var(--accent); color: var(--white); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.pill-badge:hover { color: var(--text); border-color: var(--accent); }
.hero h1 .soft { color: var(--link); }
.hero .lead { font-size: clamp(1.12rem, 1.7vw, 1.35rem); color: var(--muted); margin: 26px auto 0; max-width: 680px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--link); }
.hero-stage { position: relative; margin: 64px auto 0; max-width: 1120px; }
.hero-stage .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.float-card { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px rgba(var(--sh), .18); padding: 14px 16px; width: 290px; font-size: 13.5px; z-index: 3; }
.float-card .who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.float-card .who i { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.float-card .who i svg { width: 13px; height: 13px; color: var(--white); }
.float-card p { margin-top: 8px; font-weight: 650; color: var(--text); line-height: 1.4; }
.float-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.float-card .actions span { font-weight: 750; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--text); }
.float-card .actions span.go { background: var(--accent); color: var(--white); }
.fc-1 { left: -56px; top: 290px; }
.fc-2 { right: -56px; top: 260px; }

/* Channel strip */
.channels { padding: 44px 0 48px; background: var(--alt); border-bottom: 1px solid var(--line); }
.channels p { text-align: center; color: var(--muted); font-weight: 650; font-size: 15px; }
.channel-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 52px; margin-top: 18px; list-style: none; }
.channel-row li { font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.channel-row li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--line-strong); transform: rotate(45deg); }

/* Tabs showcase */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { font: inherit; font-weight: 750; font-size: 15.5px; color: var(--muted); background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--white); border-color: var(--accent); }
.tab-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 48px; box-shadow: 0 2px 6px rgba(var(--sh), .04); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.tab-panel > div > p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.tab-panel .check-list { margin-top: 22px; }
.tab-panel .text-link { margin-top: 24px; }

/* Lists */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--chip); }
.check-list li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.section-dark .check-list li::before { background: var(--dark-line); }
.section-dark .check-list li::after { border-color: var(--white); }
.check-list strong { font-weight: 750; }
.check-list span { display: block; color: var(--muted); font-size: 15.5px; }

/* AI story */
.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.agent { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 16px; padding: 20px; }
.agent .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--dark-2); display: grid; place-items: center; color: var(--white); border: 1px solid var(--dark-line); }
.agent .ic svg { width: 20px; height: 20px; }
.agent h3 { font-size: 1.05rem; margin-top: 14px; letter-spacing: -0.01em; }
.agent p { margin-top: 6px; font-size: 14.5px; color: var(--on-dark-muted); line-height: 1.5; }
.agent .yesno { margin-top: 12px; font-size: 12.5px; font-weight: 750; color: var(--on-dark); display: inline-flex; gap: 6px; align-items: center; }
.agent .yesno::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-muted); }
.agent.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.agent.wide h3 { margin-top: 0; }
.agent.wide .ic { grid-row: span 2; }
.agent.wide p { margin-top: 0; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.flow div { border: 1px solid var(--dark-line); border-radius: 14px; padding: 18px; position: relative; background: var(--dark); }
.flow b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.flow strong { display: block; margin-top: 6px; font-size: 1.1rem; color: var(--white); }
.flow span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--on-dark-muted); }
.flow div.you { background: var(--white); border-color: var(--white); }
.flow div.you b, .flow div.you span { color: var(--muted); }
.flow div.you strong { color: var(--text); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--dark-line); }
.principles h3 { font-size: 1.1rem; }
.principles p { margin-top: 6px; color: var(--on-dark-muted); font-size: 15.5px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip { grid-template-columns: 1.2fr 1fr; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.035em; }
.feature-copy > p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.feature-copy .check-list { margin-top: 26px; }
.feature-copy .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.plan-tag { font-size: 12.5px; font-weight: 750; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--text); white-space: nowrap; border: 1px solid var(--chip); }
.plan-tag.ai { background: var(--accent); color: var(--white); border-color: var(--accent); }
.visual { position: relative; }
.visual::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; background: var(--tint); border-radius: 32px; z-index: -1; }
.feature-row.flip .visual::before { inset: 8% 6% -6% -4%; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.tile .big { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--accent); }
.tile h3 { font-size: 1.12rem; margin-top: 14px; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.step h3 { margin-top: 20px; font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--muted); }

/* Tour teaser */
.tour-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--accent); border-radius: 32px; padding: 56px; color: var(--on-dark); overflow: hidden; position: relative; }
.tour-teaser h2 { color: var(--white); }
.tour-teaser p { margin-top: 16px; color: var(--cta-text); font-size: 1.12rem; }
.tour-teaser .hero-cta { justify-content: flex-start; }
.tour-teaser ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: t; }
.tour-teaser li { counter-increment: t; background: var(--accent-hover); border: 1px solid var(--dark-line); border-radius: 12px; padding: 12px 14px; font-weight: 650; font-size: 15px; color: var(--white); display: flex; gap: 10px; align-items: center; }
.tour-teaser li::before { content: counter(t); width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--white); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* Cards & simple grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3, .card h2 { margin-top: 16px; font-size: 1.2rem; }
.card p { margin-top: 8px; color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; border: 1px solid var(--chip); }
.icon svg { width: 22px; height: 22px; }

/* Module groups (features page) */
.job { padding: 96px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 0; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; scroll-margin-top: 120px; }
.module-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.module h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
.module p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }

/* Mockups */
.browser { color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 2px 4px rgba(var(--sh), .05), 0 40px 80px rgba(var(--sh), .16); overflow: hidden; font-size: 14px; text-align: left; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-url { margin-left: 12px; flex: 1; max-width: 360px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; color: var(--muted); }
.app { display: grid; grid-template-columns: 216px 1fr; min-height: 500px; }
.app-side { background: var(--side); border-right: 1px solid var(--line); padding: 16px 12px; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 4px 8px 14px; }
.app-brand .logo-mark { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.app-nav { list-style: none; display: grid; gap: 2px; }
.app-nav li { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 650; font-size: 13.5px; display: flex; align-items: center; gap: 9px; }
.app-nav li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--line-strong); }
.app-nav li.on { background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgba(var(--sh), .08); }
.app-nav li.on::before { background: var(--accent); }
.app-nav .count { margin-left: auto; font-size: 11.5px; background: var(--accent); color: var(--white); border-radius: 999px; padding: 0 7px; font-weight: 800; }
.app-main { padding: 20px 24px; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-title strong { font-size: 18px; letter-spacing: -0.01em; }
.app-title span { font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 650; }
.app-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 14px; }
.panel-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white); }
.panel-box h5 { margin: 0 0 8px; font-size: 13px; font-weight: 780; display: flex; justify-content: space-between; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.task:first-of-type { border-top: 0; }
.task .box { width: 15px; height: 15px; border: 2px solid var(--line-strong); border-radius: 4px; flex: none; }
.task .name { flex: 1; min-width: 0; }
.task .sub { display: block; color: var(--muted); font-size: 12px; }
.pill { font-size: 11.5px; font-weight: 780; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--text); white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.pill.bad { background: var(--bad-bg); color: var(--bad-text); }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.pill.ai { background: var(--accent); color: var(--white); }
.mini-btn { font-size: 12px; font-weight: 780; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--white); white-space: nowrap; }
.mini-btn.ghost { background: var(--white); color: var(--text); border: 1px solid var(--line-strong); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin-top: 6px; }
.bars span { flex: 1; background: var(--chip); border-radius: 4px 4px 0 0; }
.bars span.hi { background: var(--accent); }
.mini-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 750; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.mock-card { color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 2px 4px rgba(var(--sh), .05), 0 30px 60px rgba(var(--sh), .14); padding: 22px; font-size: 14px; }
.mock-card .app-title { margin-bottom: 12px; }
.progress { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pack-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pack-row:first-of-type { border-top: 0; }
.pack-row b { font-size: 14px; }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.bubble.me { justify-self: end; background: var(--accent); color: var(--white); border-bottom-right-radius: 4px; }
.bubble.bot { border-bottom-left-radius: 4px; }
.bubble .src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 650; }
.chat-input { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border: 1px solid var(--chip); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.ai-note .pill { flex: none; }
.drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; background: var(--alt); }
.drop b { display: block; font-size: 14.5px; }
.drop span { color: var(--muted); font-size: 12.5px; }
.file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: var(--white); }
.file i { width: 30px; height: 36px; border-radius: 5px; background: var(--ok-bg); color: var(--ok-text); font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.listing-field { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.listing-field small { display: block; font-size: 11.5px; font-weight: 780; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.listing-field p { margin-top: 3px; font-size: 13.5px; }
.strike { text-decoration: line-through; color: var(--bad-text); }
.chart-svg { width: 100%; height: 150px; }
.example-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Pricing */
.price-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 48px; }
.toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.toggle button { font: inherit; font-weight: 750; font-size: 15px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--white); }
.toggle button:hover:not([aria-pressed="true"]) { color: var(--text); background: var(--tint); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.plan.featured { background: var(--accent); border-color: var(--accent); color: var(--on-dark); box-shadow: 0 30px 60px rgba(var(--sh), .22); }
.plan.featured h3, .plan.featured .price { color: var(--white); }
.plan.featured .who, .plan.featured .onboard, .plan.featured .price-period { color: var(--cta-text); }
.plan.featured .check-list { border-top-color: var(--dark-line); }
.plan.featured .check-list li::before { background: var(--accent-hover); }
.plan.featured .check-list li::after { border-color: var(--white); }
.badge { position: absolute; top: 26px; right: 26px; background: var(--white); color: var(--accent); font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; margin: 0; }
.plan h3 { font-size: 1.45rem; }
.plan .who { margin-top: 10px; color: var(--muted); min-height: 3.2em; }
.price { margin-top: 26px; font-size: 3.2rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.price-period { font-size: 1rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.onboard { margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 650; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan .check-list { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.plan .check-list li { font-size: 15.5px; }
.price-notes { margin: 36px auto 0; max-width: 780px; text-align: center; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.compare-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 1.05rem; font-weight: 800; background: var(--tint); }
.compare thead th.hl { background: var(--chip); }
.compare tbody th { font-weight: 650; }
.compare .group td { background: var(--alt); font-weight: 800; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--text); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); color: var(--accent); }
.yes svg { width: 16px; height: 16px; }
.no { color: var(--muted); font-weight: 700; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(var(--sh), .08); }
.faq summary { list-style: none; cursor: pointer; font-weight: 750; font-size: 1.1rem; padding: 22px 40px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2.5px; background: var(--accent); border-radius: 2px; transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; background: var(--dark); border-radius: 36px; padding: 96px 48px; text-align: center; color: var(--on-dark); }
.final-cta::before { content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: .35; pointer-events: none; }
.final-cta > * { position: relative; }
.final-cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.final-cta p { margin: 18px auto 0; max-width: 600px; font-size: 1.18rem; color: var(--on-dark-muted); }
.final-cta .hero-cta { margin-top: 36px; }

/* Simple pages */
.page-hero { padding: 88px 0 56px; background: linear-gradient(180deg, var(--bg), var(--alt)); text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 900px; margin: 0 auto; }
.page-hero .lead { margin: 20px auto 0; max-width: 640px; font-size: 1.18rem; color: var(--muted); }
.prose { max-width: 780px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; }
.note { background: var(--tint); border: 1px solid var(--chip); border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 650; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 6px; }
.form-card label { font-weight: 750; font-size: 15px; margin-top: 10px; }
.form-card input, .form-card select, .form-card textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 3px solid var(--chip); border-color: var(--accent); }
.form-card .btn { margin-top: 16px; justify-self: start; }
.form-status { display: none; margin-top: 10px; }
.form-status.show { display: block; background: var(--tint); border-radius: 10px; padding: 12px 14px; font-weight: 650; }
.contact-cards { display: grid; gap: 14px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 88px 0 36px; margin-top: 112px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.35fr; gap: 36px; }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo-mark { background: var(--white); color: var(--dark); }
.footer-brand p { margin-top: 18px; color: var(--on-dark-muted); max-width: 320px; font-size: 15.5px; }
.footer-brand .btn { margin-top: 24px; }
.site-footer h2 { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 800; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 11px; }
.site-footer a:not(.btn) { color: var(--on-dark); text-decoration: none; font-weight: 550; font-size: 15.5px; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer-contact li { color: var(--on-dark-muted); font-size: 14px; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--on-dark-muted); font-size: 14px; }

/* Tour */
.tour-hero { padding: 56px 0 28px; background: linear-gradient(180deg, var(--bg), var(--alt)); }
.tour-hero .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tour-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.tour-hero p { margin-top: 10px; color: var(--muted); font-size: 1.08rem; }
.tour-body { padding: 28px 0 40px; background: var(--alt); }
.tour-progress { height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 12.5%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.tour-steps { position: relative; list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 6px; margin: 0; scrollbar-width: thin; }
.tour-steps button { font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tour-steps button b { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--text); display: grid; place-items: center; font-size: 12px; }
.tour-steps button[aria-current="step"] { background: var(--accent); color: var(--white); border-color: var(--accent); }
.tour-steps button[aria-current="step"] b { background: var(--white); color: var(--accent); }
.tour-steps button.done b { background: var(--chip); }
.tour-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 18px; align-items: start; }
.tour-screen { position: relative; }
.tour-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: sticky; top: 100px; }
.tour-count { font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.tour-panel h2 { font-size: 1.75rem; margin-top: 10px; letter-spacing: -0.03em; }
#tour-text > p { margin-top: 10px; color: var(--muted); }
.hot-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.hot-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15.5px; }
.hot-list li b { width: 26px; height: 26px; border-radius: 50%; background: var(--hot); color: var(--white); display: grid; place-items: center; font-size: 13px; }
.tour-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.tour-nav .btn { flex: 1; }
.tour-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.kbd-hint { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
kbd { font: inherit; font-weight: 750; font-size: 12.5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--alt); color: var(--text); }
.tour-step[hidden] { display: none; }
.hl { position: relative; box-shadow: 0 0 0 3px var(--hot); border-radius: 10px; }
.hot { position: absolute; top: -11px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--hot); color: var(--white); font-weight: 800; font-size: 13px; display: grid; place-items: center; z-index: 5; box-shadow: 0 0 0 4px var(--white); font-style: normal; }
.example-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; color: var(--warn-text); background: var(--warn-bg); border-radius: 999px; padding: 4px 12px; }
.tour-end { margin-top: 20px; }

/* Reveal motion (only when the user has not asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: .08s; } html.js .reveal.d2 { transition-delay: .16s; } html.js .reveal.d3 { transition-delay: .24s; }
  .float-card { animation: bob 6s ease-in-out infinite; }
  .fc-2 { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
  .hot { animation: pulse 2.2s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 4px var(--white), 0 0 0 4px rgba(194,65,12,.5); } 70% { box-shadow: 0 0 0 4px var(--white), 0 0 0 14px rgba(194,65,12,0); } 100% { box-shadow: 0 0 0 4px var(--white), 0 0 0 4px rgba(194,65,12,0); } }
  .tour-step.entering { animation: fadein .35s ease; }
  @keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Responsive */
@media (max-width: 1180px) {
  .fc-1 { left: -12px; } .fc-2 { right: -12px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 22px; flex-direction: column; align-items: stretch; box-shadow: 0 16px 30px rgba(var(--sh), .1); max-height: calc(100vh - 110px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-links a.top, .nav-links button.top { padding: 13px 14px; font-size: 17px; width: 100%; justify-content: space-between; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr 1fr; padding: 8px 14px 14px; gap: 18px; }
  .mega-feature { grid-column: 1 / -1; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 10px; }
  .nav-signin { text-align: center; border: 1px solid var(--line-strong); padding: 13px; }
  .nav-actions .btn { padding: 15px; }
  .tab-panel, .ai-grid, .tour-teaser { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-panel { position: static; }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-row + .feature-row { margin-top: 88px; }
  .grid-3, .steps, .plans, .grid-2, .tiles, .principles { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .plans { max-width: 540px; margin: 0 auto; }
  .plan .who { min-height: 0; }
  .float-card { position: relative; left: auto; right: auto; top: auto; width: auto; margin: 12px 0 0; animation: none; }
  .hero-stage .browser { border-radius: 16px; border-bottom: 1px solid var(--line-strong); }
  .hero-stage { margin-bottom: 56px; }
  .flow { grid-template-columns: 1fr; }
  .tab-panel { padding: 28px; gap: 32px; }
  .tour-teaser { padding: 36px 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap, .header-inner { padding: 0 20px; }
  .hero { padding-top: 52px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section-head { margin-bottom: 44px; }
  .module-grid, .tiles, .agents, .mega-inner { grid-template-columns: 1fr; }
  .agent.wide { grid-template-columns: 1fr; } .agent.wide .ic { grid-row: auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app-cols { grid-template-columns: 1fr; }
  .app-main { padding: 16px; }
  .card, .step, .plan, .tile { padding: 24px; }
  .tab-panel { padding: 20px; border-radius: 20px; }
  .tabs { justify-content: flex-start; }
  .final-cta { padding: 64px 22px; border-radius: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .prose { padding: 26px; }
  .channel-row { gap: 10px 26px; }
  .channel-row li { font-size: 1.08rem; }
  .browser-url { display: none; }
  .price { font-size: 2.7rem; }
  .toggle button { padding: 9px 13px; }
  .tour-teaser ol { grid-template-columns: 1fr; }
  .pack-row { grid-template-columns: 80px 1fr auto; }
  .mock-card { padding: 16px; }
  .tour-panel { padding: 22px; }
}
