/* Marketing landing page. Colors come only from base.css tokens, so dark mode follows. */

html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 72px; }
h1, h2, h3 { text-wrap: balance; }

.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.ic { display: grid; place-items: center; flex: none; }

/* Nav additions */
.nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.demo-link { display: inline-flex; align-items: center; gap: 7px; }
.demo-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
.nav-login { color: var(--ink); font-size: 14px; font-weight: 500; padding: 9px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.nav-login:hover { background: var(--field); }
.btn.sm { padding: 10px 16px; font-size: 14px; box-shadow: 0 4px 12px var(--primary-glow); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 50% 40%, var(--brand-soft), transparent 70%), radial-gradient(30% 35% at 78% 60%, var(--accent-soft), transparent 70%);
}
.hero-in { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; margin-bottom: 28px;
  background: var(--surface); box-shadow: var(--shadow-chip); color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.badge:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.badge svg { color: var(--ink-3); transition: transform .25s var(--ease); }
a.badge:hover svg { transform: translateX(2px); }
.hero h1 { margin: 0 auto; max-width: 1000px; font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; }
.hero h1 span { display: block; color: var(--ink-3); }
.lead { margin: 28px auto 0; max-width: 660px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.cta[hidden], .quick[hidden] { display: none; }
.cta .btn { padding: 16px 26px; font-size: 16px; }
.cta .btn.ghost { background: var(--surface); box-shadow: var(--shadow-chip); }
.cta .btn.ghost:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-1px); }
/* Hero sign-up: email code or Google, like a login box on the page itself. */
.quick { max-width: 800px; margin: 36px auto 0; }
.quick-row { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.quick-email { flex: 1 1 380px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-chip); }
.quick-email:focus-within { box-shadow: var(--shadow-chip), 0 0 0 2px var(--primary); }
.quick-email input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; outline: none; }
.quick-email .btn { padding: 13px 20px; font-size: 15px; white-space: nowrap; }
.quick .google { gap: 10px; padding: 0 22px; min-height: 56px; font-size: 15px; background: var(--surface); box-shadow: var(--shadow-chip); }
.quick .google:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-1px); }
.quick .google[hidden] { display: none; }
.quick-err { margin: 12px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.quick-err[hidden] { display: none; }
.quick-fine { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; }
.quick-fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .quick-email { flex-wrap: wrap; border-radius: 22px; }
  .quick-email input { flex: 1 1 100%; }
  .quick-email .btn { flex: 1 1 100%; }
  .quick .google { flex: 1 1 100%; }
}
.mantra { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 14px; }
.mantra li { display: inline-flex; align-items: center; gap: 8px; }
.mantra li { position: relative; padding-left: 26px; }
.mantra li::before, .mantra li::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; }
.mantra li::before { background: var(--accent-soft); }
.mantra li::after {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.mantra b { font-weight: 600; color: var(--ink); }

/* Product window */
.stage { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1120px; perspective: 1800px; }
.win {
  background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px var(--primary-glow), var(--shadow-lift);
  transform: rotateX(4deg); transform-origin: 50% 0; transition: transform 1.2s var(--ease);
}
.stage:hover .win { transform: none; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.win-tag { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--field); padding: 3px 9px; border-radius: 999px; }
.win-body { display: grid; grid-template-columns: 64px minmax(0, 1fr) 360px; min-height: 480px; text-align: left; }

.side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; border-right: 1px solid var(--line); background: var(--surface-2); }
.side-mark { width: 30px; height: 30px; border-radius: 24%; background: var(--mark-bg); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.si { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); }
.si.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-chip); }

.dash { padding: 22px; display: grid; gap: 14px; align-content: start; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.dash-head b { font-size: 18px; letter-spacing: -.02em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.kpi span { color: var(--ink-2); font-size: 12px; font-weight: 500; }
.kpi b { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.kpi em.up { color: var(--accent); }
.panel { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.panel-head b { font-size: 13.5px; }
.panel-head span { font-size: 12px; color: var(--ink-3); }
.fc { display: block; width: 100%; height: 120px; color: var(--accent); overflow: visible; }
.fc .grid { stroke: var(--line); stroke-width: 1; fill: none; }
.fc .line { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) .7s forwards; }
.fc .proj { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-dasharray: 5 6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
.fc .area { animation: fade 1s var(--ease) 1.3s both; }
.fc .now { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.bar { display: grid; grid-template-columns: 92px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; padding: 5px 0; }
.bar span { color: var(--ink-2); }
.bar i { height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--brand); animation: grow 1.2s var(--ease) .9s both; transform-origin: left; }
.bar.warn i::after { background: var(--warn); }
.bar em { font-style: normal; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar.warn em { color: var(--warn); }
@keyframes grow { from { transform: scaleX(0); } }

.chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mark-bg); color: #fff; font-weight: 700; font-size: 14px; }
.chat-head b { display: block; font-size: 14px; }
.chat-head small { color: var(--ink-3); font-size: 12px; }
.msgs { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.m { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.m.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; animation: rise .6s var(--ease) .8s both; }
.m.ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; animation: rise .6s var(--ease) 1.4s both; }
.m .file { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 600; }
.prop { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-chip); animation: rise .6s var(--ease) 2s both; }
.prop-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.amt { display: block; margin: 8px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.amt small { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); position: relative; flex: none; }
.checks i::after { content: ""; position: absolute; left: 5px; top: 3.5px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.checks .no i { background: var(--warn-soft); }
.checks .no i::after { left: 4px; top: 7px; width: 8px; height: 0; border-width: 1.8px 0 0; border-color: var(--warn); transform: none; }
.prop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.prop-btns span { text-align: center; padding: 9px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.b-ghost { background: var(--field); }
.b-pri { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px var(--primary-glow); }
.composer { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--field); }
.composer .clip { color: var(--ink-2); display: grid; }
.composer .ph { flex: 1; color: var(--ink-3); font-size: 13px; }
.composer .send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }

/* Sections */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.band { background: var(--surface); }
.head { max-width: 880px; margin: 0 auto clamp(40px, 5.5vw, 64px); text-align: center; }
.head h2 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.head h2 span { display: block; color: var(--ink-3); }
.head > p:not(.eyebrow) { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.head.left { margin: 0; text-align: left; }
.head.left > p:not(.eyebrow) { margin-left: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.feat { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 26px; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.feat:hover { box-shadow: var(--shadow-lift); }
.feat .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.feat h3 { margin: 20px 0 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.feat p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 520px; }
.viz { margin-top: auto; background: var(--surface-2); border-radius: 18px; padding: 16px; }

.chatviz { display: flex; flex-direction: column; gap: 10px; }
.chatviz .m { animation: none; font-size: 13.5px; }
.chatviz .m.ai { background: var(--surface); box-shadow: var(--shadow-chip); }
.chatviz .photo { display: inline-grid; place-items: center; vertical-align: -5px; width: 26px; height: 26px; border-radius: 8px; margin-right: 8px; background: rgba(255, 255, 255, .18); }

.docs { list-style: none; margin-top: auto; display: grid; gap: 8px; padding: 10px; }
.docs li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 9px 10px; box-shadow: var(--shadow-chip); font-size: 13px; }
.docs b { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt { font: 700 10px var(--mono); padding: 5px 6px; border-radius: 7px; letter-spacing: .02em; }
.dt.inv { background: var(--danger-soft); color: var(--danger); }
.dt.img { background: var(--brand-soft); color: var(--brand); }
.dt.csv { background: var(--accent-soft); color: var(--accent); }

.bars { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 20px 16px 12px; }
.bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars .col i { width: 100%; max-width: 40px; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--brand-line); transform-origin: bottom; }
.bars .col.now i { background: var(--brand); }
.bars .col.fc i { background: repeating-linear-gradient(-45deg, var(--accent-soft) 0 5px, var(--accent-line) 5px 10px); }
.bars .col span { font-size: 11.5px; color: var(--ink-3); flex: none; }
.in .bars .col i { animation: grow-y 1s var(--ease) both; }
.in .bars .col:nth-child(2) i { animation-delay: 60ms; } .in .bars .col:nth-child(3) i { animation-delay: 120ms; }
.in .bars .col:nth-child(4) i { animation-delay: 180ms; } .in .bars .col:nth-child(5) i { animation-delay: 240ms; } .in .bars .col:nth-child(6) i { animation-delay: 300ms; }
@keyframes grow-y { from { transform: scaleY(0); } }
.budget-line { position: absolute; left: 16px; right: 16px; bottom: calc(12px + 26px + (100% - 58px) * .72); border-top: 1.5px dashed var(--warn); }
.budget-line em { position: absolute; right: 0; top: -20px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); }

.pipe { list-style: none; margin-top: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; counter-reset: s; }
.pipe li { position: relative; display: grid; gap: 10px; background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-chip); }
.pipe li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--line); }
.pipe .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.pipe b { display: block; font-size: 14px; letter-spacing: -.01em; }
.pipe small { color: var(--ink-3); font-size: 12px; }
.pipe .you { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px var(--primary-glow); }
.pipe .you .n { background: rgba(255, 255, 255, .2); color: #fff; }
.pipe .you small { color: rgba(255, 255, 255, .72); }

.conns { list-style: none; margin-top: auto; display: grid; gap: 8px; padding: 10px; }
.conns li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-chip); }
.conns li > div { flex: 1; min-width: 0; }
.conns b { display: block; font-size: 13.5px; font-weight: 600; }
.conns small { color: var(--ink-3); font-size: 12px; }
.cl { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.cl.ada { background: var(--accent-soft); color: var(--accent); }
.cl.cxc { background: #000066; color: #fff; font-size: 13px; }
.cl.eth { background: var(--brand-soft); color: var(--brand); }
.cl.bank { background: var(--field); color: var(--ink-3); }
.acc { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--field); color: var(--ink-2); white-space: nowrap; }
.acc.rw { background: var(--accent-soft); color: var(--accent); }
.conns .soon { opacity: .6; box-shadow: none; background: transparent; border: 1px dashed var(--line); }

.x402 { list-style: none; margin-top: auto; display: grid; gap: 10px; padding: 18px; }
.x402 li { display: flex; align-items: center; gap: 10px; }
.x402 li.back { flex-direction: row; }
.x402 code { font: 500 12.5px var(--mono); background: var(--surface); border-radius: 10px; padding: 8px 11px; box-shadow: var(--shadow-chip); white-space: nowrap; }
.x402 .arr { flex: 1; height: 2px; background: var(--ink-3); opacity: .5; position: relative; min-width: 20px; }
.x402 .arr::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); }
.x402 .arr.r::after { right: -1px; transform: translateY(-50%) rotate(45deg); }
.x402 .arr.l::after { left: -1px; transform: translateY(-50%) rotate(-135deg); }
.x402 .ok .arr { background: var(--accent); opacity: 1; }
.x402 .ok .arr::after { border-color: var(--accent); }
.x402 b { font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-right: 2px; }
.c402 { background: var(--brand-soft); color: var(--brand); }
.c200 { background: var(--accent-soft); color: var(--accent); }

/* Autonomy levels */
.levels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 34px; }
.track { position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--brand) 50%, var(--danger)); opacity: .9; }
.track::before, .track::after, .track i { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--accent); }
.track::before { left: 0; }
.track i { left: 50%; box-shadow: 0 0 0 3px var(--brand), 0 0 0 9px var(--brand-soft); }
.track::after { left: 100%; box-shadow: 0 0 0 3px var(--danger); }
.level { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.level.rec { box-shadow: 0 0 0 2px var(--brand-line), var(--shadow-lift); }
.level.danger { box-shadow: 0 0 0 1.5px var(--danger), var(--shadow); background: linear-gradient(180deg, var(--danger-soft), var(--surface) 55%); }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rec .lv-ic { background: var(--brand-soft); color: var(--brand); }
.danger .lv-ic { background: var(--danger-soft); color: var(--danger); }
.level h3 { margin: 24px 0 0; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.035em; font-weight: 700; }
.danger h3 { color: var(--danger); }
.level p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.level ul { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.level li { position: relative; padding-left: 28px; min-height: 18px; }
.level li::before, .level li::after { content: ""; position: absolute; left: 0; top: calc(.75em - 9px); width: 18px; height: 18px; border-radius: 50%; }
.level li::before { background: var(--accent-soft); }
.level li::after { background: var(--accent); -webkit-mask: var(--glyph) center / 10px no-repeat; mask: var(--glyph) center / 10px no-repeat; }
.level li.y { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.level li.x { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); color: var(--ink-3); text-decoration: line-through; }
.level li.x::before { background: var(--field); }
.level li.x::after { background: var(--ink-3); }
.level li.q, .level li.w { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 18h.01'/%3E%3C/svg%3E"); }
.level li.q::before { background: var(--brand-soft); }
.level li.q::after { background: var(--brand); }
.level li.w::before { background: var(--danger-soft); }
.level li.w::after { background: var(--danger); }

/* Security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.guar { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.guar li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.guar .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); color: var(--brand); }
.guar h3 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.02em; font-weight: 700; }
.guar p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.audit { margin: 0; background: var(--surface-2); border-radius: var(--r-xl); padding: 22px; }
.audit-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; }
.audit-head b { font-size: 15px; }
.audit-head .mono { color: var(--ink-3); }
.audit ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.audit li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-chip); }
.audit li > div { flex: 1; min-width: 0; }
.audit b { display: block; font-size: 14px; font-weight: 600; }
.audit small { color: var(--ink-2); font-size: 12.5px; }
.audit time { font: 500 12px var(--mono); color: var(--ink-3); }
.who { font-size: 11px; font-weight: 700; width: 44px; text-align: center; padding: 4px 0; border-radius: 999px; flex: none; }
.who.ai { background: var(--brand-soft); color: var(--brand); }
.who.code { background: var(--field); color: var(--ink-2); }
.who.you { background: var(--primary); color: var(--on-primary); }
.audit .blk { box-shadow: 0 0 0 1px var(--danger-soft), var(--shadow-chip); }
.audit .blk b { color: var(--danger); }
.audit .ok b { color: var(--accent); }

/* How it works */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps3 li { background: var(--surface); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow); }
.steps3 .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 17px; box-shadow: 0 8px 20px var(--primary-glow); }
.steps3 h3 { margin: 26px 0 0; font-size: 24px; letter-spacing: -.03em; font-weight: 700; }
.steps3 p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.more { text-align: center; margin: 32px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.more svg { transition: transform .25s var(--ease); }
.more a:hover svg { transform: translateX(3px); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .head h2 span { display: inline; }
.faq { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 8px clamp(20px, 3vw, 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; transition: transform .3s var(--ease), background-color .2s;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 12px 2px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 12px no-repeat, var(--field);
}
.faq summary:hover::after { background-color: var(--field-hover); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 0; padding: 0 44px 20px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* Final CTA */
.final { text-align: center; background: var(--surface); border-radius: 36px; padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 50% 0%, var(--brand-soft), transparent 70%); }
.final > * { position: relative; }
.mark.xl { width: 64px; height: 64px; border-radius: 24%; margin: 0 auto 28px; font-size: 30px; }
.final h2 { margin: 0 auto; max-width: 820px; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.final h2 span { display: block; color: var(--ink-3); }
.final .fine { margin-top: 22px; }

/* Footer */
.foot { padding: clamp(48px, 6vw, 72px) 0 40px; border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 64px); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 24px 56px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols b { color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.foot-cols a { color: var(--ink-2); font-size: 14px; transition: color .2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-bot { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.foot-bot span:last-child { max-width: 640px; }

/* Responsive */
@media (max-width: 1080px) {
  .win-body { grid-template-columns: 56px minmax(0, 1fr) 320px; }
  .kpi.hide-s { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .span-5, .span-6, .span-7 { grid-column: span 12; }
  .levels { grid-template-columns: 1fr; padding-top: 0; }
  .track { display: none; }
  .sec-grid, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .head { max-width: 640px; }
  .steps3 { grid-template-columns: 1fr; }
  .win { transform: none; }
}
@media (max-width: 820px) {
  .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side { display: none; }
  .chat { border-left: 0; border-top: 1px solid var(--line); }
  .dash .budgets { display: none; }
  .foot-cols { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .hero-in { padding: 0 16px; }
  .cta .btn { flex: 1 1 100%; }
  .badge { font-size: 12.5px; }
  .win { border-radius: 18px; }
  .dash { padding: 16px; }
  .kpi b { font-size: 18px; }
  .kpi em { display: none; }
  .msgs { padding: 14px; }
  .feat { border-radius: 24px; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe li:nth-child(2)::after { display: none; }
  .x402 { padding: 14px; }
  .x402 code { font-size: 11.5px; }
  .audit { padding: 14px; }
  .audit time { display: none; }
  .faq details p { padding-right: 0; }
  .final { border-radius: 28px; }
  .nav-login { padding: 9px 8px; }
  .btn.sm { padding: 10px 14px; }
  .foot-cols { gap: 24px 40px; }
}
@media (max-width: 420px) {
  .badge > span:nth-child(2) { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .win { transform: none; }
}
