/* ClariPrompt website. Same tokens as the desktop app (apps/desktop/src/renderer/index.html). */
:root {
  --bg: #0b0d12;
  --bg-2: #0e1016;
  --surface: #13161d;
  --surface-2: #181c25;
  --surface-3: #1f2430;
  --input: #0f1117;
  --line: #1f2430;
  --line-2: #2a3040;
  --text: #eceef4;
  --text-2: #b6bccb;
  --muted: #8a92a5;
  --brand: #7b6bff;
  --brand-hi: #9a8dff;
  --brand-soft: rgba(123, 107, 255, 0.14);
  --brand-line: rgba(123, 107, 255, 0.45);
  --teal: #36d0bd;
  --teal-soft: rgba(54, 208, 189, 0.13);
  --gradient: linear-gradient(135deg, #8b7bff 0%, #5f8bff 50%, #36d0bd 100%);
  --success: #34d399;
  --warn: #f5b94a;
  --warn-soft: rgba(245, 185, 74, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --r: 10px;
  --r-lg: 16px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: dark;
}
* { 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; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
