/* Public landing page (public/index.html). Refreshed 2026-10-05 (owner: smoother, more AI, AI platform, agent stories,
   AI Office as Autonomous Evolution). The app's theme (owner 2026-10-02): navy top bar + footer like the app's
   TopBar/Sidebar, light #FAFBFC work area, app blue, AI violet #7C3AED, 12 px cards, 8 px buttons. Moderate motion. Everything animated is
   opacity / transform / translate. prefers-reduced-motion → still frames.
   Motion rules (owner 2026-10-02: "slow and buggy" → reworked):
   - Mock-up loops are always defined and only PAUSED off screen (animation-play-state; .play = on screen), so they never
     restart from frame 0 or blank out when you scroll past. Each loop eases out at its end, so the restart is smooth.
   - Loops are 6–9 s with something happening in the first half second.
   - Scroll reveal: 420 ms, 12 px, starts as soon as a section enters, siblings staggered 70 ms (landing.js sets --d).
     It uses `translate`, so a card's own hover `transform` still works. The hero shows at once (no scroll reveal). */
:root {
  --bg: #FAFBFC; --ink: #1A1F2B; --muted: #4B5566; --faint: #6B7280; --line: #E7E9EE; --card: #fff;
  --blue: #2E5AAC; --navy: #10182B; --violet: #7C3AED; --green: #16A34A; --wa: #25D366;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0 0 12px; color: var(--muted); }
section { padding: 72px 20px; max-width: 1160px; margin: 0 auto; }
/* Menu links (#ai, #features…) land below the sticky top bar, not under it. */
section[id] { scroll-margin-top: 64px; }
.grad { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow.violet { color: var(--violet); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-family: inherit; transition: transform 120ms var(--ease), box-shadow 160ms ease-out, filter 160ms ease-out; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 8px 20px rgba(46, 90, 172, 0.25); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); transition-duration: 60ms; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: 0 6px 16px rgba(16, 24, 43, 0.08); }
.btn.big { padding: 14px 22px; font-size: 15.5px; border-radius: 8px; min-height: 48px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: rgba(16, 24, 43, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand img { height: 34px; width: auto; } /* 34 px, as in the app's top bar */
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; color: #C9CFDC; transition: color 140ms ease-out; }
.nav-links a:hover { color: #fff; }
.nav .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.nav .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.nav-cta { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 1024px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } .nav-cta .ghost { display: none; } }

/* Hero — shows at once on load (a short fade-up), never waits for scrolling */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 56px; }
.hero-copy { animation: hero-in 450ms var(--ease) both; }
.hero-demo { animation: hero-in 450ms var(--ease) 90ms both; }
/* Starts half visible, so the first screen is never blank even if animations are slow to start. */
@keyframes hero-in { from { opacity: 0.5; translate: 0 10px; } to { opacity: 1; translate: none; } }
.lead { font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.ticks.light li { color: #C9D1E6; }
.hero-demo { position: relative; display: flex; justify-content: center; min-height: 520px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; } .hero-demo { min-height: 500px; } }

/* ── Mock-up loops: paused off screen, running on screen (.play), never restarted ── */
/* !important: each element's `animation:` shorthand would otherwise reset the play state to running. */
.hero-demo *, .fr-demo *, .evo-demo *, .aurora *, .st-rail * { animation-play-state: paused !important; }
.play *, .play *::before, .play *::after { animation-play-state: running !important; }

/* Phone: ad → WhatsApp chat → CRM, 9 s */
.phone { position: relative; width: 280px; height: 520px; background: #fff; border-radius: 36px; border: 10px solid var(--navy); box-shadow: 0 30px 60px rgba(16, 24, 43, 0.25); overflow: hidden; }
.phone-top { height: 22px; display: flex; justify-content: center; }
.phone-top span { width: 90px; height: 6px; background: var(--navy); border-radius: 0 0 8px 8px; }
.scene { position: absolute; inset: 22px 0 0; padding: 12px; opacity: 0; will-change: opacity, transform; }
.s-ad { animation: scene1 9s var(--ease) infinite; }
.s-chat { animation: scene2 9s var(--ease) infinite; }
.s-crm { animation: scene3 9s var(--ease) infinite; }
@keyframes scene1 { 0%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; transform: translateX(-20px); } }
@keyframes scene2 { 0%, 31% { opacity: 0; transform: translateX(20px); } 36%, 63% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: translateX(-20px); } }
@keyframes scene3 { 0%, 64% { opacity: 0; transform: translateX(20px); } 69%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ad { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.ad-head, .chat-head { display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 13px; }
.ad-head small, .chat-head small { margin-left: auto; color: var(--faint); font-size: 11px; }
.ad-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); flex-shrink: 0; }
.ad-img img { width: 100%; height: 190px; object-fit: cover; }
.ad-text { padding: 10px; font-weight: 700; font-size: 13.5px; }
.ad-btn { margin: 0 10px 12px; background: #F0F2F5; border-radius: 8px; padding: 9px; text-align: center; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; animation: adbtn 9s ease-out infinite; }
@keyframes adbtn { 0%, 17% { transform: none; background: #F0F2F5; } 20% { transform: scale(0.96); background: #E3E7EE; } 24%, 100% { transform: none; background: #F0F2F5; } }
.wa-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--wa); }
.tap { position: absolute; left: 50%; bottom: 18px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: rgba(46, 90, 172, 0.35); opacity: 0; animation: tap 9s ease-out infinite; }
@keyframes tap { 0%, 15% { opacity: 0; transform: scale(0.4); } 19% { opacity: 1; transform: scale(1); } 25%, 100% { opacity: 0; transform: scale(1.6); } }
.s-chat { background: #ECE5DD; }
.chat-head { background: #fff; border-radius: 12px; margin-bottom: 12px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; margin-bottom: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); color: var(--ink); }
.bubble.in { background: #fff; border-top-left-radius: 4px; }
.bubble.out { background: #DCF8C6; margin-left: auto; border-top-right-radius: 4px; }
.s-chat .bubble { opacity: 0; }
.s-chat .b1 { animation: pop1 9s var(--ease) infinite; }
.s-chat .b2 { animation: pop2 9s var(--ease) infinite; }
.s-chat .b3 { animation: pop3 9s var(--ease) infinite; }
@keyframes pop1 { 0%, 37% { opacity: 0; transform: translateY(8px); } 40%, 100% { opacity: 1; transform: none; } }
@keyframes pop2 { 0%, 45% { opacity: 0; transform: translateY(8px); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes pop3 { 0%, 53% { opacity: 0; transform: translateY(8px); } 56%, 100% { opacity: 1; transform: none; } }
.crm-title { font-weight: 800; font-size: 18px; margin: 4px 2px 12px; }
.lead-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 6px 16px rgba(16, 24, 43, 0.06); }
.lc-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.lc-top b { display: block; font-size: 14.5px; }
.lc-top small { color: var(--faint); font-size: 12px; }
.lc-av { width: 36px; height: 36px; border-radius: 50%; background: #DBEAFE; color: #1D4ED8; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.stages span { font-size: 12px; font-weight: 800; text-align: center; padding: 6px; border-radius: 8px; background: #F3F4F6; color: var(--faint); }
.stages span:nth-child(1) { animation: st1 9s ease-out infinite; }
.stages span:nth-child(2) { animation: st2 9s ease-out infinite; }
.stages span:nth-child(3) { animation: st3 9s ease-out infinite; }
.stages span:nth-child(4) { animation: st4 9s ease-out infinite; }
@keyframes st1 { 0%, 71% { background: #F3F4F6; color: var(--faint); } 73%, 100% { background: #DBEAFE; color: #1D4ED8; } }
@keyframes st2 { 0%, 75% { background: #F3F4F6; color: var(--faint); } 77%, 100% { background: #DBEAFE; color: #1D4ED8; } }
@keyframes st3 { 0%, 79% { background: #F3F4F6; color: var(--faint); } 81%, 100% { background: #FEF3C7; color: #92400E; } }
@keyframes st4 { 0%, 83% { background: #F3F4F6; color: var(--faint); transform: none; } 85% { transform: scale(1.08); } 87%, 100% { background: #DCFCE7; color: #166534; transform: none; } }
.lc-commission { font-size: 13px; color: var(--muted); opacity: 0; animation: comm 9s var(--ease) infinite; }
.lc-commission b { color: var(--green); }
@keyframes comm { 0%, 87% { opacity: 0; transform: translateY(6px); } 90%, 100% { opacity: 1; transform: none; } }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; box-shadow: 0 10px 24px rgba(16, 24, 43, 0.12); white-space: nowrap; }
.c1 { top: 300px; right: -6px; animation: float 5s ease-in-out infinite; }
.c2 { bottom: 60px; left: -6px; animation: float 5s ease-in-out -2.5s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .c1 { right: 0; top: 330px; } .c2 { left: 0; bottom: 14px; } .float-chip { font-size: 12px; } }

/* Cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(16, 24, 43, 0.04); }
.card:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 24, 43, 0.08); }
.ico { font-size: 28px; margin-bottom: 10px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }

/* AI feature rows */
.ai { padding-top: 40px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature-row.flip .fr-copy { order: 2; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--violet); background: rgba(124, 58, 237, 0.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.fr-demo { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 24px 50px rgba(16, 24, 43, 0.10); min-height: 250px; position: relative; overflow: hidden; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; } .feature-row.flip .fr-copy { order: 0; } }

/* Shared loop steps: in early, hold, ease out just before the loop restarts (no snap). */
@keyframes loop-in { 0% { opacity: 0; transform: translateX(10px); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes loop-pulse { 0%, 48% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); transform: none; } 54% { box-shadow: 0 0 0 9px rgba(124, 58, 237, 0.22); transform: scale(0.98); } 62%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); transform: none; } }

/* AI Boost dial, 6 s */
.boost-top { display: flex; gap: 18px; align-items: center; }
.dial { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.dial svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 10; }
.dial-bg { stroke: #EEF0F4; }
.dial-fg { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 56; animation: dial 6s var(--ease) infinite; }
@keyframes dial { 0% { stroke-dashoffset: 314; } 18%, 92% { stroke-dashoffset: 56; } 100% { stroke-dashoffset: 314; } }
.dial-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; padding-bottom: 12px; }
.dial small { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 11px; color: var(--faint); font-weight: 700; }
.boost-list { display: grid; gap: 8px; flex: 1; min-width: 0; }
.bl { font-size: 13px; font-weight: 700; background: #F7F7FB; border-radius: 10px; padding: 9px 10px; display: flex; gap: 8px; align-items: center; animation: loop-in 6s var(--ease) infinite; }
.i2 { animation-delay: 0.25s; }
.i3 { animation-delay: 0.5s; }
.apply { margin-top: 18px; text-align: center; background: var(--violet); color: #fff; font-weight: 800; border-radius: 10px; padding: 11px; font-size: 14px; animation: loop-pulse 6s ease-out infinite; }

/* Mirai AI, 7 s — the typing dots sit on top of the confirm card's space, so nothing below moves */
.m-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 14px; }
.m-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.m-msg.you { margin-left: auto; max-width: 85%; background: var(--blue); color: #fff; padding: 9px 12px; border-radius: 12px 12px 4px 12px; font-size: 13.5px; width: fit-content; animation: m-msg 7s var(--ease) infinite; }
.m-slot { position: relative; margin-top: 12px; }
.m-typing { position: absolute; left: 4px; top: 6px; display: flex; gap: 4px; opacity: 0; animation: m-typing 7s ease-out infinite; }
.m-typing i { width: 7px; height: 7px; border-radius: 50%; background: #C7CBD6; animation: dots 0.9s ease-in-out infinite; }
.m-typing i:nth-child(2) { animation-delay: 0.15s; }
.m-typing i:nth-child(3) { animation-delay: 0.3s; }
.m-confirm { border: 1.5px solid var(--violet); border-radius: 12px; padding: 12px; font-size: 13.5px; opacity: 0; animation: m-confirm 7s var(--ease) infinite; }
.m-confirm div { color: var(--muted); margin: 4px 0 10px; }
.m-btns { display: flex; gap: 8px; justify-content: flex-end; margin: 0 !important; }
.m-btns span { padding: 7px 14px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.m-cancel { background: #F3F4F6; color: var(--ink); }
.m-ok { background: var(--violet); color: #fff; animation: m-ok 7s ease-out infinite; }
.m-done { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--green); opacity: 0; animation: m-done 7s var(--ease) infinite; }
@keyframes m-msg { 0% { opacity: 0; transform: translateY(6px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-typing { 0%, 8% { opacity: 0; } 11%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes m-confirm { 0%, 24% { opacity: 0; transform: translateY(8px); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes m-ok { 0%, 52% { transform: none; box-shadow: none; } 55% { transform: scale(0.94); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.25); } 59%, 100% { transform: none; box-shadow: none; } }
@keyframes m-done { 0%, 60% { opacity: 0; transform: translateY(6px); } 65%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Inbox AI reply, 6 s — the draft is written in with a smooth top-to-bottom wipe */
.ib-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock.inbox { background: #F7F5F0; }
.ib-ai { display: inline-block; background: linear-gradient(90deg, var(--blue), var(--violet)); color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 6px 12px; margin: 4px 0 10px; animation: ib-ai 6s ease-out infinite; }
@keyframes ib-ai { 0%, 4% { transform: none; box-shadow: none; } 8% { transform: scale(0.95); box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.25); } 14%, 100% { transform: none; box-shadow: none; } }
.ib-draft { background: #fff; border: 1px dashed var(--violet); border-radius: 12px; padding: 10px 12px; font-size: 13px; min-height: 76px; color: var(--ink); }
.typed { display: inline-block; clip-path: inset(0 0 100% 0); animation: type 6s linear infinite; }
@keyframes type { 0%, 12% { clip-path: inset(0 0 100% 0); } 48%, 92% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.ib-send { margin: 10px 0 0 auto; width: fit-content; background: var(--green); color: #fff; font-weight: 800; border-radius: 8px; padding: 7px 16px; font-size: 13px; opacity: 0.35; animation: send 6s ease-out infinite; }
@keyframes send { 0%, 50% { opacity: 0.35; transform: none; } 54% { opacity: 1; transform: scale(1.06); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0.35; } }

/* Report, 6 s */
.rp-bars { display: flex; gap: 12px; align-items: flex-end; height: 120px; padding: 0 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rp-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--blue), #7FA0DE); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: grow 6s var(--ease) infinite; }
.rp-bars i:nth-child(2) { animation-delay: 0.08s; } .rp-bars i:nth-child(3) { animation-delay: 0.16s; } .rp-bars i:nth-child(4) { animation-delay: 0.24s; } .rp-bars i:nth-child(5) { animation-delay: 0.32s; background: linear-gradient(180deg, var(--violet), #C4B5FD); }
@keyframes grow { 0% { transform: scaleY(0.05); } 16%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0.05); } }
.rp-note { font-size: 13.5px; color: var(--muted); background: #F7F7FB; border-radius: 12px; padding: 12px; animation: loop-in 6s var(--ease) 0.5s infinite; }
.rp-note b { display: block; color: var(--violet); margin-bottom: 4px; }

/* Checks, 6 s */
.ck-line { font-size: 14px; font-weight: 700; padding: 10px 12px; border-radius: 10px; background: #F0FDF4; color: #166534; margin-bottom: 8px; animation: loop-in 6s var(--ease) infinite; }
.ck-line:nth-child(2) { animation-delay: 0.2s; } .ck-line:nth-child(3) { animation-delay: 0.4s; } .ck-line:nth-child(4) { animation-delay: 0.6s; }
.ck-stamp { position: absolute; right: 18px; bottom: 16px; border: 2px solid var(--green); color: var(--green); font-weight: 800; padding: 4px 10px; border-radius: 8px; transform: rotate(-6deg); font-size: 13px; background: #fff; animation: stamp 6s var(--ease) infinite; }
@keyframes stamp { 0%, 30% { opacity: 0; transform: rotate(-6deg) scale(1.35); } 37%, 90% { opacity: 1; transform: rotate(-6deg) scale(1); } 100% { opacity: 0; transform: rotate(-6deg) scale(1); } }

.band { background: var(--navy); color: #E7EAF3; border-radius: var(--radius); padding: 22px 26px; text-align: center; font-size: 16px; }
.band b { color: #fff; }

/* Features grid */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid6 { grid-template-columns: 1fr; } }

/* Simulation GIFs (owner 2026-10-09): the AI Platform's Pipeline map and the AI Office floor, recorded from the real
   engine on made-up data. Fixed width/height on the <img> keep the page from jumping; reduced motion gets a still. */
.sim-shot { max-width: 880px; margin: 0 auto 40px; }
.sim-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(16, 24, 43, 0.10); }
.sim-shot figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--faint); }
.sim-shot.dark img { border-color: #2A3350; background: #121A2F; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.sim-shot.dark figcaption { color: #B9C2D9; }

/* AI Office — Autonomous Evolution (owner 2026-10-05): three dark cards, each with its own loop. No real numbers or
   task text (owner: no public AI Office stats). */
.office { max-width: none; background: var(--navy); color: #E7EAF3; position: relative; overflow: hidden; }
.office::before { content: ""; position: absolute; inset: -30% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent), radial-gradient(closest-side at 80% 40%, rgba(46, 90, 172, 0.22), transparent); pointer-events: none; }
.office-wrap { position: relative; max-width: 1160px; margin: 0 auto; }
.office .section-head h2 { color: #fff; }
.office .section-head p { color: #B9C2D9; }
.evo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.evo-card { background: rgba(20, 26, 46, 0.85); border: 1px solid #2A3350; border-radius: var(--radius); padding: 20px 22px 24px; transition: transform 160ms var(--ease), border-color 200ms ease-out, box-shadow 200ms ease-out; }
.evo-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.evo-card h3 { color: #fff; margin-top: 14px; }
.evo-card p { color: #B9C2D9; font-size: 14.5px; margin: 0; }
.evo-demo { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 960px) { .evo { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* The loop: Idea → … → Learn, a spark goes round (14 s), each step lights as it passes (2 s apart) */
.loop { position: relative; width: 224px; height: 224px; }
.orbit { position: absolute; inset: 22px; border: 1.5px dashed #2A3350; border-radius: 50%; animation: spin 14s linear infinite; }
.spark { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #C4B5FD; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25), 0 0 18px 4px rgba(167, 139, 250, 0.7); }
@keyframes spin { to { transform: rotate(360deg); } }
.node { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #141A2E; border: 1.5px solid #2A3350; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transform: rotate(calc(var(--i) * 51.4286deg)) translateY(-90px) rotate(calc(var(--i) * -51.4286deg)); animation: lit 14s ease-out infinite; animation-delay: calc(var(--i) * 2s); }
.node span { font-size: 15px; line-height: 1; }
.node b { font-size: 9.5px; color: #C9D1E6; letter-spacing: 0.02em; }
@keyframes lit { 0% { border-color: #A78BFA; box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.28), 0 0 22px rgba(124, 58, 237, 0.55); scale: 1.1; } 12% { border-color: #A78BFA; box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2), 0 0 18px rgba(124, 58, 237, 0.4); scale: 1.06; } 22%, 100% { border-color: #2A3350; box-shadow: none; scale: 1; } }
.loop-core { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45); animation: breathe 4s ease-in-out infinite; }
.loop-core small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

/* The Human Role: people on top, the AI roles below light up in turn (6 s) */
.team-demo { flex-direction: column; gap: 14px; }
.human { font-size: 13px; font-weight: 800; color: #10182B; background: linear-gradient(90deg, #F5D48A, #DEAE8C); border-radius: 999px; padding: 8px 16px; box-shadow: 0 0 0 0 rgba(245, 212, 138, 0.5); animation: halo 3s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(245, 212, 138, 0.5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(245, 212, 138, 0); } }
.chain { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; width: 100%; max-width: 280px; padding-top: 12px; }
.chain::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1.5px; height: 22px; background: linear-gradient(#DEAE8C, transparent); }
.crole { text-align: center; font-size: 12.5px; font-weight: 800; color: #E7EAF3; background: #141A2E; border: 1.5px solid #2A3350; border-radius: 10px; padding: 9px 6px; animation: hand 6s ease-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes hand { 0% { border-color: #A78BFA; background: #1E2140; translate: 0 -2px; } 14% { border-color: #A78BFA; background: #1E2140; translate: none; } 22%, 100% { border-color: #2A3350; background: #141A2E; translate: none; } }

/* Compounding Value: the line draws itself upwards, improvements pop along it (8 s) */
.grow { width: 100%; height: 170px; overflow: visible; }
.g-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 8s var(--ease) infinite; filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6)); }
.g-area { opacity: 0; animation: area 8s ease-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes area { 0%, 25% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.gpop { position: absolute; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(124, 58, 237, 0.85); border-radius: 999px; padding: 4px 10px; opacity: 0; white-space: nowrap; animation: gpop 8s var(--ease) infinite; }
.g1 { left: 34%; top: 58%; animation-delay: 0.9s; } .g2 { left: 50%; top: 34%; animation-delay: 1.8s; } .g3 { right: 2%; top: 8%; animation-delay: 2.7s; }
@keyframes gpop { 0% { opacity: 0; transform: translateY(8px) scale(0.9); } 6%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: none; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li > span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: flex; justify-content: center; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 24px 50px rgba(16, 24, 43, 0.08); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.price b { font-size: 52px; font-weight: 800; }
.price span { color: var(--faint); font-weight: 700; }
.price-free { display: inline-block; margin: 6px 0 10px; padding: 6px 14px; border-radius: 10px; text-wrap: balance; background: #E8F7EE; color: #11753F; font-weight: 800; font-size: 14px; }
.price-note { font-size: 14px; }
.price-card .ticks { text-align: left; margin: 18px 0 24px; }

/* FAQ */
.faq { max-width: 760px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--blue); transition: transform 160ms var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { animation: open 200ms var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Demo form */
.demo { display: flex; justify-content: center; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 560px; width: 100%; box-shadow: 0 24px 50px rgba(16, 24, 43, 0.08); }
form label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); transition: border-color 140ms ease-out; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid rgba(46, 90, 172, 0.35); border-color: var(--blue); }
.opt { color: var(--faint); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.consent a { color: var(--blue); font-weight: 700; }
.ts { min-height: 0; margin-bottom: 12px; }
.form-msg { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: #B91C1C; min-height: 1em; }
.form-msg.info { color: var(--blue); }
.thanks { text-align: center; padding: 20px 0; animation: open 300ms var(--ease); }
.thanks-ico { width: 56px; height: 56px; border-radius: 50%; background: #DCFCE7; color: #166534; font-size: 28px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Footer */
.foot { text-align: center; padding: 40px 20px 56px; background: var(--navy); }
.foot img { height: 24px; width: auto; margin: 0 auto 14px; }
.foot-links { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.foot-links a { font-weight: 700; text-decoration: none; color: #C9CFDC; }
.foot-links a:hover { color: #fff; }
.foot p { font-size: 13px; color: #8A93A6; }

/* Scroll reveal — `translate` (not `transform`), so card hover lifts keep working; the hover's own short transition
   is part of the same list so it isn't lost. --d = stagger delay (landing.js). */
.reveal { opacity: 0; translate: 0 12px; transition: opacity 420ms var(--ease) var(--d, 0ms), translate 420ms var(--ease) var(--d, 0ms), transform 160ms var(--ease), box-shadow 160ms ease-out; }
.reveal.in { opacity: 1; translate: none; }
.no-js .reveal { opacity: 1; translate: none; }

/* Reduced motion: still frames — every mock-up shows its finished state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
  .s-ad, .s-chat, .m-typing { display: none; }
  .s-crm, .s-chat .bubble, .bl, .m-confirm, .m-done, .lc-commission, .ck-line, .ck-stamp { opacity: 1 !important; }
  .typed { clip-path: none; }
  .stages span:nth-child(1), .stages span:nth-child(2) { background: #DBEAFE; color: #1D4ED8; }
  .stages span:nth-child(3) { background: #FEF3C7; color: #92400E; }
  .stages span:nth-child(4) { background: #DCFCE7; color: #166534; }
  .pf-a, .g-area { display: none; }
  .pf-b, .pf-note, .pf-chips span, .pb-pat, .gpop { opacity: 1 !important; transform: none !important; }
  .g-line { stroke-dashoffset: 0; }
  .st-rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .story { scroll-snap-align: start; }
  .story[aria-hidden] { display: none; }
  .cr-track i, .cr-mix-bar i { transform: scaleX(var(--w, 1)); transition: none; }
}

/* ── 2026-10-05 refresh (owner): smoother page, AI platform, agent stories ── */

/* Smooth: anchor links land below the sticky bar; the bar gets a shadow once you scroll (landing.js .scrolled).
   overflow-x: clip — nothing can widen the page past the screen (clip, not hidden, so the sticky bar still works). */
html { scroll-padding-top: 72px; overflow-x: clip; }
.nav { transition: box-shadow 220ms ease-out; }
.nav.scrolled { box-shadow: 0 8px 24px rgba(16, 24, 43, 0.28); }
.btn, .tile, .card, .story, details { -webkit-tap-highlight-color: transparent; }

/* Hero: soft colour light drifting behind (transform only, paused off screen) */
.hero { position: relative; }
/* Inside the section's width: wider, it made the whole page 41 px wider than a phone screen (owner 2026-10-06). */
.aurora { position: absolute; inset: -60px 0 auto; height: 600px; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(30px); opacity: 0.5; animation: drift 16s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { left: -6%; top: 0; background: radial-gradient(circle, rgba(46, 90, 172, 0.28), transparent 65%); }
.aurora i:nth-child(2) { right: 0; top: 40px; background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 65%); animation-duration: 20s; animation-delay: -6s; }
.aurora i:nth-child(3) { left: 38%; top: 260px; background: radial-gradient(circle, rgba(222, 174, 140, 0.22), transparent 65%); animation-duration: 18s; animation-delay: -11s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(60px, 40px, 0); } }

/* AI preferences mock: chips pop in, the stiff draft turns into your style (7 s) */
.pf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-head .lc-av { font-size: 11px; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-chips span { font-size: 12px; font-weight: 800; color: var(--violet); background: rgba(124, 58, 237, 0.1); border-radius: 999px; padding: 4px 10px; animation: chip 7s var(--ease) infinite; }
.pf-chips span:nth-child(2) { animation-delay: 0.2s; } .pf-chips span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chip { 0% { opacity: 0; transform: translateY(6px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pf-swap { position: relative; min-height: 86px; }
.pf-a, .pf-b { position: absolute; inset: 0 0 auto; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.pf-a { background: #F3F4F6; color: var(--muted); animation: pfa 7s ease-out infinite; }
.pf-b { background: #DCF8C6; color: var(--ink); opacity: 0; animation: pfb 7s var(--ease) infinite; }
@keyframes pfa { 0%, 30% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes pfb { 0%, 36% { opacity: 0; transform: translateX(12px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pf-note { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--green); opacity: 0; animation: m-done 7s var(--ease) infinite; }

/* AI Playbook mock: patterns slide in, the "Based on" line glows, 👍 is tapped (7 s) */
.pb-answer { font-size: 13.5px; color: var(--muted); background: #F7F7FB; border-radius: 12px; padding: 12px; }
.pb-answer b { display: block; color: var(--violet); margin-bottom: 4px; }
.pb-based { margin: 10px 0; font-size: 12.5px; color: var(--muted); display: block; border: 1px dashed rgba(124, 58, 237, 0.45); border-radius: 10px; padding: 7px 10px; animation: loop-pulse 7s ease-out infinite; }
.pb-based b { color: var(--ink); }
.pb-pats { display: grid; gap: 6px; }
.pb-pat { font-size: 12.5px; font-weight: 700; background: #EEF3FB; color: #1D4ED8; border-radius: 8px; padding: 6px 10px; animation: loop-in 7s var(--ease) infinite; }
.pb-pat.p2 { animation-delay: 0.25s; } .pb-pat.p3 { animation-delay: 0.5s; }
.pb-vote { margin-top: 12px; font-size: 12.5px; color: var(--faint); display: flex; gap: 10px; align-items: center; }
.pb-vote span { font-size: 16px; display: inline-block; }
.pb-up { animation: thumb 7s ease-out infinite; }
@keyframes thumb { 0%, 58% { transform: none; } 63% { transform: scale(1.35) rotate(-8deg); } 70%, 100% { transform: none; } }

/* About the AI platform */
.platform { padding-top: 40px; }
.pf-grid { margin-bottom: 26px; }
.tile.glow { transition: transform 160ms var(--ease), box-shadow 160ms ease-out, border-color 200ms ease-out; }
.tile.glow:hover { border-color: rgba(124, 58, 237, 0.45); }
.credits { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; box-shadow: 0 18px 44px rgba(16, 24, 43, 0.06); }
.cr-copy h3 { font-size: 22px; }
.cr-mix { margin-top: 18px; }
.cr-mix-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #EEF0F4; }
.cr-mix-bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
/* The example month's shares of 2,000 credits: drafts 30 % · Lead 20 % · Campaign 12 % · Report 8 % · Mirai AI 30 % */
.cr-mix-bar .m1 { width: 30%; background: var(--blue); }
.cr-mix-bar .m2 { width: 20%; background: #7FA0DE; transition-delay: 150ms; }
.cr-mix-bar .m3 { width: 12%; background: #0F766E; transition-delay: 300ms; }
.cr-mix-bar .m4 { width: 8%; background: #B45309; transition-delay: 450ms; }
.cr-mix-bar .m5 { width: 30%; background: var(--violet); transition-delay: 600ms; }
.credits.in .cr-mix-bar i { transform: none; }
.cr-mix-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cr-mix-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cr-mix-legend .m1 { background: var(--blue); } .cr-mix-legend .m2 { background: #7FA0DE; } .cr-mix-legend .m3 { background: #0F766E; }
.cr-mix-legend .m4 { background: #B45309; } .cr-mix-legend .m5 { background: var(--violet); }
.cr-mix-legend small { color: var(--faint); font-weight: 700; margin-left: 2px; }
.cr-mix-legend small::after { content: " cr"; }
.cr-mix-note { font-size: 13px; margin: 8px 0 0; }
.cr-row { display: grid; grid-template-columns: 170px 1fr 52px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F0F2F5; }
.cr-name b { display: block; font-size: 14px; }
.cr-name small { color: var(--faint); font-size: 12px; font-weight: 600; }
.cr-track { height: 10px; background: #EEF0F4; border-radius: 999px; overflow: hidden; }
.cr-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--violet)); transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease); }
.credits.in .cr-track i { transform: scaleX(var(--w)); }
.credits.in .cr-row:nth-child(2) .cr-track i { transition-delay: 120ms; } .credits.in .cr-row:nth-child(3) .cr-track i { transition-delay: 240ms; }
.credits.in .cr-row:nth-child(4) .cr-track i { transition-delay: 360ms; } .credits.in .cr-row:nth-child(5) .cr-track i { transition-delay: 480ms; }
.cr-num { text-align: right; font-size: 20px; font-variant-numeric: tabular-nums; }
.cr-foot { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
@media (max-width: 900px) { .credits { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 520px) { .cr-row { grid-template-columns: 1fr 44px; } .cr-track { grid-column: 1 / -1; grid-row: 2; } }

/* What agents say — real, approved quotes on a rail that drifts sideways (pauses on hover / off screen). */
.stories { max-width: none; padding-left: 0; padding-right: 0; }
.stories .section-head { padding: 0 20px; }
.st-rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.st-track { display: flex; gap: 16px; width: max-content; padding: 8px 0 14px; animation: rail 50s linear infinite; }
.st-rail:hover .st-track, .st-rail.play:hover .st-track { animation-play-state: paused !important; }
@keyframes rail { to { transform: translateX(calc(-50% - 8px)); } }
.story { position: relative; margin: 0; width: 330px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: 0 8px 22px rgba(16, 24, 43, 0.05); display: flex; flex-direction: column; }
.story blockquote { margin: 0 0 16px; flex: 1; font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.story figcaption { display: flex; gap: 10px; align-items: center; }
.story figcaption b { display: block; font-size: 14px; }
.story figcaption small { color: var(--faint); font-size: 12.5px; }
.st-av { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.st-av.a1 { background: var(--blue); } .st-av.a2 { background: var(--violet); } .st-av.a3 { background: #0F766E; } .st-av.a4 { background: #B45309; } .st-av.a5 { background: #BE185D; }
@media (max-width: 520px) { .story { width: 280px; } }

/* ── UX polish (owner 2026-10-06): phone menu, skip link, focus rings, menu highlight, AI showcase, section
   backgrounds, compact phone grids, 44 px tap targets ── */

/* Section backgrounds — each section its own band, so the page has a rhythm (owner 2026-10-06):
   hero + why light · AI white · How AI works soft violet · features light · agents white · AI Office navy ·
   how light · pricing soft blue · FAQ white · demo + footer navy. Full width without changing the markup:
   a box-shadow spread paints the sides, clip-path keeps it to the section's own height. */
#ai, #stories, .faq { background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
#ai-platform { background: #F6F4FE; box-shadow: 0 0 0 100vmax #F6F4FE; clip-path: inset(0 -100vmax); }
#pricing { background: #EEF3FB; box-shadow: 0 0 0 100vmax #EEF3FB; clip-path: inset(0 -100vmax); }
#ai-platform .band { margin-bottom: 0; }
.faq details { background: #FAFBFC; }
.stories .story { box-shadow: 0 10px 26px rgba(16, 24, 43, 0.07); }
/* The closing call to action sits on navy, flowing into the footer. */
.demo { max-width: none; background: radial-gradient(600px 300px at 50% 0%, rgba(124, 58, 237, 0.22), transparent 70%), var(--navy); }
.demo-card { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); border-color: transparent; }
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* Keyboard users: skip link + a clear focus ring */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; transition: top 150ms ease-out; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, .sc-panel:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(124, 58, 237, 0.55); outline-offset: 2px; }

/* Top bar: comfortable buttons, the section you're in is underlined */
.nav .btn { min-height: 40px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color 140ms ease-out, background 160ms ease-out; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), #A78BFA); transform: scaleX(0); transition: transform 220ms var(--ease); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { transform: scaleX(1); }

/* Phone menu */
.nav-menu { display: none; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.nav-menu span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 200ms var(--ease), opacity 150ms ease-out; }
.nav-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero: what it connects to; the floating chips sit in the phone's empty lower part, never on the ad */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 16px; font-size: 13px; color: var(--faint); }
.works b { color: var(--muted); font-weight: 800; }
.works span { color: #C7CBD6; }
.c1 { top: auto; bottom: 18px; right: calc(50% - 205px); }
.c2 { bottom: 78px; left: calc(50% - 200px); }
@media (max-width: 520px) { .c1 { top: auto; right: 0; bottom: 14px; } .c2 { left: 0; bottom: 74px; } }

/* AI showcase: chips on top, one feature at a time. Without JS every feature shows, one under another. */
.showcase { margin-top: 4px; }
.sc-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.sc-tabs [role="tab"] { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out; }
.sc-tabs [role="tab"]:hover { color: var(--ink); border-color: #CBD2E0; }
.sc-tabs [aria-selected="true"], .sc-tabs [aria-selected="true"]:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 18px rgba(16, 24, 43, 0.18); }
.sc-tabs [role="tab"] i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), #A78BFA); transform: scaleX(0); transform-origin: left; }
.showcase.auto [aria-selected="true"] i { animation: scbar 8s linear forwards; }
@keyframes scbar { to { transform: scaleX(1); } }
.no-js .sc-tabs { display: none; }
.sc-panel { margin: 0; outline: none; }
.no-js .sc-panel { margin-bottom: 56px; }
/* All features share one grid cell, so the section keeps the height of the tallest — no jump when it switches. */
html:not(.no-js) .sc-panels { display: grid; }
html:not(.no-js) .sc-panel { grid-area: 1 / 1; transition: opacity 360ms var(--ease), transform 360ms var(--ease), visibility 0s; }
html:not(.no-js) .sc-panel[inert] { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 220ms ease-out, transform 220ms ease-out, visibility 0s 220ms; }
.sc-panel[inert] * { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .sc-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 22px; padding: 2px 16px 8px; scroll-snap-type: x proximity; }
  .sc-tabs::-webkit-scrollbar { display: none; }
  .sc-tabs [role="tab"] { flex-shrink: 0; scroll-snap-align: start; }
}

/* Phones: less scrolling — tighter sections, 2-column feature tiles, swipe rows for the why and AI-platform cards */
@media (max-width: 640px) {
  section { padding: 52px 16px; }
  .stories { padding-left: 0; padding-right: 0; }
  .section-head { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid6 .tile { padding: 16px 14px; }
  .grid6 .tile h3 { font-size: 15px; }
  .grid6 .tile p { font-size: 13px; line-height: 1.5; margin: 0; }
  .grid6 .ico { font-size: 22px; margin-bottom: 6px; }
  .pf-grid, .cards3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin: 0 -16px 22px; padding: 4px 16px 12px; }
  .pf-grid::-webkit-scrollbar, .cards3::-webkit-scrollbar { display: none; }
  .pf-grid > .tile, .cards3 > .card { flex: 0 0 82%; scroll-snap-align: center; }
  .pf-grid > .tile p, .cards3 > .card p { font-size: 14px; }
}

/* Tap targets of at least 44 px */
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.consent a { padding: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .sc-panel, html:not(.no-js) .sc-panel[inert], .nav-links a::after, .skip { transition: none; }
}

/* ── Menu rebuild (owner 2026-10-06): a sheet from the right below 1,024 px ── */
@media (max-width: 1024px) { .nav-menu { display: inline-flex; } .nav { gap: 10px; } .nav .btn { min-height: 44px; } }
@media (min-width: 1025px) { .mnav { display: none !important; } }
html.menu-open { overflow: hidden; }
.mnav { position: fixed; inset: 0; z-index: 60; }
.mnav[hidden] { display: none; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 26, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: mfade 200ms ease-out; }
.mnav-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; background: var(--navy); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; animation: msheet 260ms var(--ease); }
.mnav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mnav-top img { height: 28px; width: auto; }
.mnav-close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.mnav-links { display: grid; gap: 2px; }
.mnav-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-radius: 12px; text-decoration: none; color: #E7EAF3; transition: background 160ms ease-out; }
.mnav-links a:hover, .mnav-links a.active { background: rgba(255, 255, 255, 0.07); }
.mnav-links a.active { box-shadow: inset 3px 0 0 #A78BFA; }
.mnav-links .mi { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, 0.07); font-size: 17px; }
.mnav-links b { display: block; font-size: 15.5px; }
.mnav-links small { display: block; font-size: 12.5px; color: #8A93A6; font-weight: 600; }
.mnav-cta { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; }
.mnav-cta .btn { min-height: 48px; }
.mnav-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.mnav-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; }
.mnav-legal a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12.5px; font-weight: 700; color: #8A93A6; text-decoration: none; }
@keyframes msheet { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
/* Signed in (landing.js asks /api/public/session): "Sign in" becomes "Open MiraiAG →" */
[data-signin].signed-in { font-weight: 800; }
