/* Shared brand and semantic tokens. Both product surfaces consume this source. */
:root {
  color-scheme: dark;
  --bg: #101217;
  --bg-2: #14171d;
  --sidebar: #14171d;
  --surface: #191d25;
  --surface-2: #202630;
  --surface-3: #29313e;
  --input: #12161d;
  --line: #303846;
  --line-2: #465266;
  --text: #f0f2f7;
  --text-2: #c2c9d6;
  --muted: #9ca8bc;
  --brand: #7054cd;
  --brand-hi: #c3b4ff;
  --brand-soft: #26213e;
  --brand-line: #8d77d3;
  --teal: #79dbc8;
  --teal-soft: #173931;
  --gradient: linear-gradient(135deg, #7054cd, #7054cd);
  --me: #c3b4ff;
  --them: #79dbc8;
  --success: #79dbc8;
  --success-soft: #173931;
  --warn: #f3cd83;
  --warn-soft: #392e1d;
  --danger: #ffaaaa;
  --danger-soft: #3f242b;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 8px 24px #0002;
  --shadow-sm: 0 2px 8px #0002;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}
/* Website layout. Brand tokens come from packages/shared/src/design-tokens.css. */
/* Semantic tokens are prepended by build.mjs. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
.site-footer { margin-top: auto; }
img, svg { display: block; }
a { color: var(--brand-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-hi); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 13, 18, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-name { font: 700 19px var(--font-display); letter-spacing: -0.02em; }
.brand-name span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 24px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--text-2); padding: 3px 0; font-size: 14.5px; }
.footer-title { font-weight: 650; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 15px var(--font); cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: background 0.12s, border-color 0.12s, filter 0.12s;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled, .btn.disabled { opacity: 0.5; pointer-events: none; cursor: default; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--brand-hi); }
.btn-gradient { background: var(--gradient); border: 0; color: #fff; box-shadow: 0 8px 24px rgba(95, 139, 255, 0.28); }
.btn-gradient:hover { filter: brightness(1.08); background: var(--gradient); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); border-color: transparent; color: #210707; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.cta-row.center { justify-content: center; }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding: 24px 0 56px; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 36px; }
.page-hero { padding: 64px 0 24px; text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(123, 107, 255, 0.16), transparent 70%); }
.page-hero .lead { margin: 8px auto 0; }
.hero { padding: 72px 0 56px; background: radial-gradient(900px 500px at 10% 0%, rgba(123, 107, 255, 0.22), transparent 60%), radial-gradient(700px 500px at 100% 30%, rgba(54, 208, 189, 0.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.display { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.08; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-hi); font-weight: 700; margin-bottom: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-hi); margin-bottom: 14px; flex: none; }
.feature-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.feature-icon.big .icon { width: 26px; height: 26px; }
.privacy-band { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(135deg, rgba(123, 107, 255, 0.12), rgba(54, 208, 189, 0.07)); border: 1px solid var(--brand-line); border-radius: 20px; padding: 32px; }
.cta-band { background: radial-gradient(600px 260px at 50% 100%, rgba(123, 107, 255, 0.18), transparent 70%); }

/* App mock (home hero) */
.mock { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--danger-soft); color: #fecaca; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; }
.live-pill .timer { color: var(--text-2); font-weight: 600; letter-spacing: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.mock-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--input); border: 1px solid var(--line-2); border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock-seg span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px; }
.mock-seg .icon { width: 14px; height: 14px; }
.mock-seg .on { background: var(--surface-3); color: var(--text); }
.mock-line { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.mock-line .who { font-weight: 650; color: var(--teal); width: 44px; flex: none; }
.mock-answer { position: relative; margin-top: 14px; border-radius: 14px; padding: 18px; border: 1px solid #2c2a52; background: linear-gradient(180deg, rgba(123, 107, 255, 0.08), rgba(19, 22, 29, 0) 140px), var(--surface); overflow: hidden; }
.mock-answer::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--gradient); }
.mock-status { margin-bottom: 10px; }
.mock-say { font: 500 19px/1.5 var(--font-display); margin: 0; }
.mock-points { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.mock-points li::marker { color: var(--brand-hi); }
.mock-next { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--text-2); }
.mock-next .eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: #c9c2ff; margin-left: 8px; }
.mock-status .badge { margin-left: 0; }
.badge .icon { width: 13px; height: 13px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; }
.price-card.featured { border-color: var(--brand-line); background: linear-gradient(180deg, rgba(123, 107, 255, 0.1), rgba(19, 22, 29, 0) 220px), var(--surface); }
.ribbon { position: absolute; top: 20px; right: 20px; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price .amount { font: 700 52px var(--font-display); letter-spacing: -0.03em; }
.price .per { color: var(--muted); }
.credits-line { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--teal); margin: 16px 0; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); }
.checks .icon { color: var(--success); margin-top: 3px; }
.price-side { display: flex; flex-direction: column; gap: 24px; }
.topups { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.topup { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--input); }
.topup-price { font: 700 20px var(--font-display); }
.estimates { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.estimates td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; }
.help-section { margin-bottom: 40px; }

/* Download */
.download-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.req-list { list-style: none; padding: 0; margin: 12px 0 0; }
.req-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--text-2); }
.req-list .icon { color: var(--brand-hi); }

/* Legal */
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 14.5px; margin: 12px 0; }
.notice .icon { margin-top: 2px; }
.notice-warn { background: var(--warn-soft); border-color: rgba(245, 185, 74, 0.35); color: #fde3b0; }
.notice-error { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.notice-success { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #bbf7d0; }
.notice-info { background: var(--brand-soft); border-color: var(--brand-line); color: #d9d4ff; align-items: center; }

/* Account */
.account-wrap { max-width: 760px; }
.account-title { font-size: 30px; margin: 24px 0 20px; }
.auth-card { max-width: 440px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
input { width: 100%; height: 46px; padding: 0 14px; background: var(--input); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 16px; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.code-input { font: 650 26px ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.5em; text-align: center; height: 60px; }
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; align-items: center; gap: 14px; }
.dash-head h2 { font-size: 20px; margin: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 700; font-size: 18px; flex: none; }
.plan-card { display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(123, 107, 255, 0.14), rgba(54, 208, 189, 0.07)); border-color: var(--brand-line); }
.stat { display: flex; flex-direction: column; }
.stat-num { font: 700 36px var(--font-display); line-height: 1; }
.bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: var(--gradient); }
.buy-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.buy-option { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--input); }
.buy-option > div { flex: 1; }
.amount-input { display: flex; align-items: center; gap: 8px; }
.amount-input input { width: 110px; height: 40px; text-align: right; }
@media (max-width: 640px) { .buy-option.custom-amount { flex-wrap: wrap; } }
.devices { list-style: none; padding: 0; margin: 8px 0 0; }
.devices li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.devices li:first-child { border-top: 0; }
.devices .badge { margin-left: 6px; }
.card.danger { border-color: rgba(248, 113, 113, 0.3); }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; animation: spin 0.7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .pricing-grid, .download-grid { grid-template-columns: 1fr; }
  .feature-grid, .steps, .steps.four { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .feature-grid, .steps, .steps.four, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .privacy-band, .plan-card { flex-direction: column; }
  .price-card { padding: 24px; }
}
/* Product identity: quiet surfaces, clear reading order, one primary action. */
.wrap { max-width: 1248px; }
.hero, .page-hero, .cta-band { background: var(--bg); }
.hero { padding: 88px 0 80px; }
.hero-grid { gap: 64px; grid-template-columns: 1fr 1fr; }
.display { font-size: clamp(42px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
.grad { background: none; color: var(--brand-hi); }
.hero .lead { font-size: 17px; line-height: 1.75; margin: 24px 0; max-width: 54ch; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .cta-row { gap: 12px; margin-bottom: 20px; }
.btn { min-height: 44px; }
.btn-primary, .btn-gradient { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-gradient:hover { background: #7c60d9; filter: none; box-shadow: none; }
.btn:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.text-button { font: inherit; color: var(--brand-hi); background: none; border: 0; padding: 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.product-preview { min-width: 0; }
.preview-label { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 650; letter-spacing: .08em; color: var(--teal); margin: 0 4px 12px; }
.preview-label span { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.mock { padding: 20px; box-shadow: var(--shadow); border-radius: 16px; }
.mock-answer { background: var(--surface-2); border-color: var(--line); }
.mock-answer::before { background: var(--brand-hi); }
.mock-say { font-size: 18px; line-height: 1.6; }
.mock .live-dot { animation: none; }
.preview-caption { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.section { padding: 80px 0; }
.section.alt { border-block: 1px solid var(--line); background: var(--bg-2); }
.section-title { margin-bottom: 32px; letter-spacing: -.035em; }
.step-card { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; padding: 24px 12px 0 0; }
.step-n { background: var(--teal-soft); color: var(--teal); }
.feature-card { box-shadow: none; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 16px 12px 0; }
.feature-icon { background: var(--brand-soft); color: var(--brand-hi); }
.privacy-band { background: var(--surface); border-color: var(--line-2); }
.hero .live-pill { background: var(--teal-soft); color: var(--teal); }
.hero .live-dot { background: var(--teal); }
.cta-band { border-top: 1px solid var(--line); }
.footer-grid .brand { display: flex; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-size: 14px; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: grid; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 12px; color: var(--text); border-radius: 6px; }
.mobile-nav nav a:hover, .mobile-nav nav a[aria-current] { background: var(--surface-3); }
.notice { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0; }
  .hero-grid > div:first-child { max-width: 660px; }
  .product-preview { max-width: 660px; width: 100%; }
}
@media (max-width: 640px) {
  .header-row { gap: 12px; justify-content: space-between; }
  .mobile-nav { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .mobile-nav nav::after { content: none; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .hero .lead { font-size: 16px; }
  .mock { padding: 12px; }
  .mock-say { font-size: 16px; }
  .mock-seg { display: none; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.pricing-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:24px; }
@media(max-width:900px){.pricing-plans{grid-template-columns:1fr}}
