/* Hub product site. Light only: warm paper, ink, one purple accent.
   Layout: a 1160px column; sections alternate paper and white; product mocks are built in HTML. */
:root {
  --paper: #FAF9F6; --white: #FFFFFF; --ink: #15171C; --ink-2: #33363E; --muted: #5E6470; --faint: #8B8F98;
  --line: #E6E3DC; --line-2: #F0EEE8;
  --accent: #7B2D8B; --accent-hover: #5C2068; --accent-soft: #F5EDF8; --accent-text: #5C2068; --accent-line: #EAD8F0;
  --night: #15171C; --night-2: #1F2229; --night-ink: #F1F0EC; --night-muted: #A7AAB2;
  --good: #0B6657; --good-bg: #E2F4EF; --warn: #8A4F06; --warn-bg: #FDF1DE; --bad: #A1271B; --bad-bg: #FCEBE8;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --col: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 640px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--faint); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--white); border-color: var(--line); }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.p-good { color: var(--good); background: var(--good-bg); } .p-warn { color: var(--warn); background: var(--warn-bg); } .p-bad { color: var(--bad); background: var(--bad-bg); } .p-accent { color: var(--accent-text); background: var(--accent-soft); } .p-neutral { color: var(--muted); background: var(--line-2); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(250, 249, 246, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand:hover { color: var(--ink); }
.mark { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.brand b { display: block; font: 700 19px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand small { display: block; font-size: 12px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
.top .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav, .top .actions { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-nav a { padding: 12px 4px; font-size: 17px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
  .mobile-nav .btn { margin-top: 10px; }
}

/* Sections */
section { padding-block: 96px; }
section.tight { padding-block: 64px; }
.white { background: var(--white); border-block: 1px solid var(--line); }
.night { background: var(--night); color: var(--night-ink); }
.night h2, .night h3 { color: #FFFFFF; }
.night .muted { color: var(--night-muted); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 20px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex: none; }

/* Hero */
.hero { padding-block: 72px 40px; }
.hero .wrap { display: flex; flex-direction: column; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.provenance { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.provenance i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }

/* Product window mock */
.window { margin-top: 36px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 40px 80px -40px rgba(21, 23, 28, .35), 0 2px 0 rgba(21, 23, 28, .03); overflow: hidden; }
.window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #F6F5F1; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #DAD7CF; }
.window .bar span { margin-left: 12px; font-size: 12.5px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px; }
.app { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; min-height: 520px; font-size: 13.5px; line-height: 1.45; }
.app .side { background: var(--night); color: #D8D9DE; padding: 18px 12px; display: flex; flex-direction: column; gap: 16px; }
.app .side .who { display: flex; gap: 9px; align-items: center; padding: 0 6px; color: #FFFFFF; }
.app .side .who .mark { width: 28px; height: 28px; } .app .side .who .mark svg { width: 15px; height: 15px; }
.app .side .role { border: 1px solid #2E313A; background: var(--night-2); border-radius: 9px; padding: 7px 10px; font-size: 12px; color: #A3A6AE; }
.app .side .role b { display: block; color: #FFFFFF; font-size: 12.5px; }
.app .side nav { display: flex; flex-direction: column; gap: 2px; }
.app .side nav span { padding: 8px 10px; border-radius: 8px; }
.app .side nav span.on { background: #262A33; color: #FFFFFF; font-weight: 600; }
.app .mid { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: #F3F2EE; min-width: 0; }
.app .mid h4 { font-size: 22px; }
.ai { display: flex; gap: 10px; }
.ai .av { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.you { align-self: flex-end; background: var(--night); color: #FFFFFF; padding: 8px 13px; border-radius: 14px 14px 4px 14px; max-width: 80%; }
.readback { border: 1.5px solid var(--accent); border-radius: 14px; background: var(--white); overflow: hidden; }
.readback .h { padding: 10px 14px; background: var(--accent-soft); display: flex; gap: 8px; align-items: center; font-weight: 700; }
.readback .b { padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.readback .f { padding: 10px 14px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.readback .code { display: inline-flex; gap: 4px; }
.readback .code span { width: 22px; height: 28px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mini-btn { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 12.5px; border: 1px solid var(--line); background: var(--white); }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.app .right { border-left: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.trow { display: flex; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; }
.trow .box { flex: none; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #C9C6BD; margin-top: 1px; }
.trow b { display: block; font-weight: 600; line-height: 1.3; }
.trow .pill { margin-top: 5px; font-size: 11px; padding: 1px 8px; }
.composer-mock { margin-top: auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); color: var(--faint); }
.composer-mock .go { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1080px) { .app { grid-template-columns: minmax(0, 1fr) 280px; } .app .side { display: none; } }
@media (max-width: 760px) { .app { grid-template-columns: minmax(0, 1fr); } .app .right { display: none; } .window .bar span { display: none; } }

/* Works with */
.works { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: center; color: var(--muted); font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.works span { white-space: nowrap; }

/* Morning timeline */
.timeline { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline div { position: relative; padding: 0 0 26px 28px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.timeline div::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); }
.timeline div:last-child { padding-bottom: 0; }
.timeline time { font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .timeline div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature .copy { display: flex; flex-direction: column; gap: 14px; }
.feature .copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature .copy li { display: flex; gap: 10px; color: var(--ink-2); }
.feature .copy li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6657' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; } .feature.flip > :first-child { order: 0; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 14px; box-shadow: 0 24px 50px -36px rgba(21, 23, 28, .35); }
.panel .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel .ph b { font: 700 16px/1.2 var(--display); }
.panel .r { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.panel .r:first-of-type { border-top: 0; }
.panel .r .grow { flex: 1; min-width: 120px; }
.panel .foot { padding: 14px 18px; background: var(--night); color: #FFFFFF; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.panel .foot .mini-btn { background: #FFFFFF; color: var(--night); border-color: #FFFFFF; }
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 44px; background: var(--night); padding: 10px; box-shadow: 0 40px 70px -40px rgba(21, 23, 28, .55); }
.phone .scr { border-radius: 35px; background: #F3F2EE; overflow: hidden; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; min-height: 520px; }
.phone .notch { width: 84px; height: 24px; border-radius: 999px; background: var(--night); margin: 0 auto 6px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chips span { border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 10px; font-weight: 600; background: var(--white); }
.chips span.on { border-color: var(--accent); background: var(--accent-soft); }
.amount { border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); padding: 10px 14px; font: 700 28px/1 var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.amount small { font: 700 13px/1 var(--body); color: var(--faint); }

/* Built by a provider */
.provider { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.provider .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2E313A; border: 1px solid #2E313A; border-radius: 16px; overflow: hidden; }
.provider .facts div { background: var(--night-2); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.provider .facts b { font: 700 18px/1.2 var(--display); color: #FFFFFF; }
.provider .facts span { font-size: 13px; color: var(--night-muted); }
@media (max-width: 860px) { .provider { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Control list */
.control { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.control div { padding: 24px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.control b { font: 700 18px/1.25 var(--display); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--body); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }

/* CTA band */
.cta { border-radius: 26px; background: var(--accent); color: #FFFFFF; padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #FFFFFF; max-width: 620px; }
.cta p { color: #E8DDF6; margin-top: 10px; max-width: 560px; }
.cta .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--accent-text); }
.cta .btn.alt { background: transparent; color: #FFFFFF; border-color: #B79BDD; }

/* Page header */
.pagehead { padding-block: 72px 48px; }
.pagehead .wrap { display: flex; flex-direction: column; gap: 18px; }
.pagehead h1 { font-size: clamp(36px, 5vw, 58px); max-width: 860px; }

/* Role sections */
.role { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.role:first-child { border-top: 0; }
.role .tag { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.role li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.role li b { display: block; font-size: 16px; margin-bottom: 2px; }
.role li span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .role { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Integrations */
.tool { display: flex; gap: 16px; align-items: flex-start; }
.tool .tile { flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font: 700 18px/1 var(--display); }
.levels { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* Forms */
form.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.demo .full { grid-column: 1 / -1; }
form.demo label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
form.demo input, form.demo select, form.demo textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
form.demo textarea { min-height: 120px; resize: vertical; }
form.demo input:focus, form.demo select:focus, form.demo textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500 !important; cursor: pointer; }
.checks input { width: 17px !important; height: 17px; min-height: 0 !important; accent-color: var(--accent); }
@media (max-width: 640px) { form.demo { grid-template-columns: minmax(0, 1fr); } }
.notice { padding: 16px 18px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 600; }

/* Legal */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }
.legal h2 { font-size: 24px; margin-top: 22px; color: var(--ink); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
footer.site { background: var(--night); color: var(--night-muted); padding-block: 64px 40px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 14px; }
footer.site a { color: var(--night-muted); text-decoration: none; display: block; padding: 4px 0; }
footer.site a:hover { color: #FFFFFF; }
footer.site .brand { color: #FFFFFF; }
footer.site .brand small { color: var(--night-muted); }
footer.site .legalline { margin-top: 48px; padding-top: 22px; border-top: 1px solid #2A2D35; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } section { padding-block: 72px; } .hero { padding-block: 48px 24px; } }

footer.site a, .card a { overflow-wrap: anywhere; }


/* ---------- other pages ---------- */
.rolenav { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(250, 249, 246, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.rolenav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.rolenav a { flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.rolenav a:hover { background: var(--white); }
.rolenav a.on { background: var(--accent); color: #FFFFFF; }
.role li.hov { transition: transform .2s, border-color .2s, box-shadow .2s; }
.role li.hov:hover { transform: translateX(6px); border-color: var(--accent-line); box-shadow: -4px 0 0 var(--accent); }
.vframe .vplay { cursor: pointer; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 13px/1 var(--body); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.seg.big { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.seg:hover { border-color: var(--accent); }
.seg[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.lvl-desc { min-height: 42px; }
.askdemo { gap: 14px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .chip-btn { min-height: 36px; font-size: 13.5px; }
.ad-log { min-height: 210px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: #F3F2EE; font-size: 14.5px; }
.ad-log .ai .av { font-size: 13px; }
.ad-a { white-space: pre-line; }
.readback.big { font-size: 15px; box-shadow: 0 30px 60px -40px rgba(91, 30, 110, .45); }
.readback.big .h { padding: 14px 18px; } .readback.big .b, .readback.big .f { padding: 14px 18px; }
.readback.cancelled { border-color: var(--line); }
.readback .muted { color: var(--muted); }
.codein { font: 600 16px/1 var(--body); letter-spacing: .2em; width: 150px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.codein:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.areas { padding: 8px; gap: 0; }
.area { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 500; transition: background .2s, color .2s; }
.area .mark-yn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--line-2); color: var(--faint); }
.area.yes { background: var(--good-bg); }
.area.yes .mark-yn { background: var(--good); color: #FFFFFF; }
.area.no { color: var(--faint); }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 12px; }
.statrow div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.statrow b { font: 700 40px/1 var(--display); color: var(--accent); }
.statrow span { color: var(--muted); font-size: 14px; }
.rotator { font-weight: 700; }
.sumcard .bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.sumcard .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.sumcard p { color: var(--ink-2); }
/* hero as a laptop: 16:10 screen plus a base */
.laptop { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }
.laptop .window { margin-top: 0; width: 100%; border: 10px solid #1B1D23; border-radius: 22px 22px 6px 6px; box-shadow: 0 50px 90px -50px rgba(21, 23, 28, .55); }
.laptop .base { width: 112%; max-width: calc(100vw - 16px); height: 18px; margin-top: -1px; border-radius: 2px 2px 16px 16px; background: linear-gradient(#D9D7D1, #B9B6AE); box-shadow: 0 18px 30px -18px rgba(21, 23, 28, .5); position: relative; }
.laptop .base i { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 120px; height: 7px; border-radius: 0 0 8px 8px; background: #A9A69E; }
.laptop .app { aspect-ratio: 16 / 9.4; min-height: 0; }
.laptop .app .side, .laptop .app .mid, .laptop .app .right { min-height: 0; overflow: hidden; }
.app .side .conn { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; border-radius: 10px; background: var(--night-2); font-size: 12px; }
.app .side .ck { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #A3A6AE; }
.app .side .cd { display: flex; justify-content: space-between; align-items: center; color: #D9DADF; }
.app .side .cd i { width: 6px; height: 6px; border-radius: 50%; background: #3FBF97; }
.kstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kstrip .k { background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kstrip .k span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kstrip .k b { font: 700 19px/1.1 var(--display); }
.kstrip .k em { font-style: normal; font-size: 11px; font-weight: 600; }
.payday { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 12px; background: var(--accent-soft); }
@media (max-width: 1080px) { .laptop .app { aspect-ratio: 16 / 11; } }
@media (max-width: 760px) { .laptop .app { aspect-ratio: auto; min-height: 520px; } .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .laptop .window { border-width: 6px; border-radius: 16px 16px 4px 4px; } .laptop .base { height: 12px; width: 108%; } }
/* ---------- homepage motion & interaction ---------- */
.hero { position: relative; overflow: hidden; }
.hero .glow { position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none; z-index: 0; background: radial-gradient(40% 50% at 22% 30%, rgba(123, 45, 139, .16), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(233, 162, 59, .14), transparent 70%), radial-gradient(30% 40% at 60% 70%, rgba(11, 102, 87, .10), transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .hero .glow { animation: drift 18s ease-in-out infinite alternate; } @keyframes drift { to { transform: translate3d(0, 30px, 0) scale(1.06); } } }
.hero .wrap { position: relative; z-index: 1; }
.rotator { display: inline-block; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .rotator.swap { animation: swap .5s ease; } @keyframes swap { 0% { transform: translateY(.3em); opacity: 0; } 100% { transform: none; opacity: 1; } } }
.window { transition: transform .25s ease-out; transform-style: preserve-3d; }
.window .bar .live-dot { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--good); display: inline-flex; align-items: center; gap: 6px; }
.window .bar .live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
@media (prefers-reduced-motion: no-preference) { .window .bar .live-dot::before { animation: pulse 1.6s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 102, 87, .5); } 70% { box-shadow: 0 0 0 8px rgba(11, 102, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 102, 87, 0); } }
#hero-convo { display: flex; flex-direction: column; gap: 12px; min-height: 236px; }
.typing.caret::after { content: ''; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; }
@media (prefers-reduced-motion: no-preference) { .typing.caret::after { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.typing { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .enter { animation: rise .35s cubic-bezier(.2, .7, .3, 1) both; } @keyframes rise { from { transform: translateY(10px); opacity: 0; } } }
.thinkdots { display: inline-flex; gap: 4px; align-items: center; padding-top: 8px; }
.thinkdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
@media (prefers-reduced-motion: no-preference) { .thinkdots i { animation: bob 1s infinite; } .thinkdots i:nth-child(2) { animation-delay: .15s; } .thinkdots i:nth-child(3) { animation-delay: .3s; } @keyframes bob { 50% { transform: translateY(-4px); opacity: .5; } } }
button.mini-btn { cursor: pointer; font-family: inherit; }
.mini-btn.primary:hover { background: var(--accent-hover); }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse-accent 1.8s infinite; } @keyframes pulse-accent { 0% { box-shadow: 0 0 0 0 rgba(123, 45, 139, .45); } 70% { box-shadow: 0 0 0 10px rgba(123, 45, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 45, 139, 0); } } }
.readback.done { border-color: var(--good); }
.readback.done .h { background: var(--good-bg); color: var(--good); }
.readback .ok { color: var(--good); font-weight: 700; }
.pill.pop { animation: popin .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes popin { from { transform: scale(.5); opacity: 0; } }
.spark { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 9999; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; }
.chip-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 14px/1 var(--body); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* works-with marquee */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; color: var(--muted); font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; }
.marquee .track span { white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee .track span::after { content: '♥'; color: var(--accent-line); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: marquee 34s linear infinite; } .marquee:hover .track { animation-play-state: paused; } @keyframes marquee { to { transform: translateX(-50%); } } }
@media (prefers-reduced-motion: reduce) { .marquee .track { flex-wrap: wrap; justify-content: center; width: auto; } .marquee .track span.dup { display: none; } }

/* video player */
.player { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.vtabs { display: flex; flex-direction: column; gap: 8px; }
.vtab { position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; color: inherit; overflow: hidden; transition: border-color .2s, transform .2s; }
.vtab:hover { transform: translateX(3px); border-color: var(--faint); }
.vtab.on { border-color: var(--accent); background: var(--accent-soft); }
.vt-n { font: 700 13px/1.6 var(--body); color: var(--faint); }
.vtab.on .vt-n { color: var(--accent-text); }
.vt-t { display: flex; flex-direction: column; gap: 2px; }
.vt-t b { font: 700 16px/1.25 var(--display); }
.vt-t span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.vt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.vt-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.vstage { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.vframe { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: var(--night); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(21, 23, 28, .45); cursor: pointer; }
.vframe .vbar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #F6F5F1; border-bottom: 1px solid var(--line-2); }
.vframe .vbar i { width: 10px; height: 10px; border-radius: 50%; background: #DAD7CF; }
.vframe .vbar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.vframe video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; background: #F3F2EE; }
.vframe.phone { width: min(330px, 100%); border-radius: 42px; padding: 10px; border: 0; }
.vframe.phone .vbar { display: none; }
.vframe.phone video { aspect-ratio: 390 / 780; border-radius: 32px; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(123, 45, 139, .92); color: #FFFFFF; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); }
.vframe.paused .vplay { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.vcap { font-size: 15px; color: var(--ink-2); text-align: center; }
@media (max-width: 900px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .vtabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .vtab { flex: 0 0 240px; scroll-snap-align: start; }
}

/* timeline */
.tl-clock { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline div { transition: opacity .4s; }
.js .timeline div:not(.lit) { opacity: .45; }
.timeline div.lit::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 40px 80px -50px rgba(21, 23, 28, .4); }
.calc-in { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.slider { display: flex; flex-direction: column; gap: 8px; }
.slider > span:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.slider b { font: 700 18px/1.2 var(--display); }
.slider output { font: 700 32px/1 var(--display); color: var(--accent); }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-2) var(--fill, 50%)); outline-offset: 6px; margin-top: 6px; cursor: pointer; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transition: transform .15s; }
.slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.calc-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); align-self: flex-start; }
.calc-toggle button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: 600 14px/1 var(--body); color: var(--ink-2); cursor: pointer; }
.calc-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.calc-out { background: var(--accent); color: #FFFFFF; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; overflow: hidden; }
.calc-out::after { content: '♥'; position: absolute; right: -20px; bottom: -70px; font-size: 260px; line-height: 1; color: rgba(255, 255, 255, .06); pointer-events: none; }
.calc-plan { font: 700 28px/1 var(--display); }
.calc-price { font: 700 clamp(48px, 7vw, 76px)/1 var(--display); letter-spacing: -0.04em; }
.calc-per { font-size: 18px; color: #E8DDF6; }
.calc-compare { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 14px; }
.calc-out .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--accent-text); }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* roles & cards */
.card.lift { transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s; }
.card.lift:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(91, 30, 110, .35); }
.watch-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-top: auto; }
.watch-link::before { content: '▶'; font-size: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }
.control div { transition: background .2s; }
.control div:hover { background: var(--accent-soft); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].pre { transform: translateY(26px); transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
  [data-reveal].pre.in { transform: none; }
}
