/* Intuvora — shared styles for the homepage (index.html) and the campaign page (campaign.html). */

:root {
  --ink: #0b1026;          /* dark sections */
  --ink-2: #141a3a;
  --fg: #12172b;           /* body text */
  --muted: #5b6378;
  --line: #e5e7ef;
  --bg: #f6f6f3;           /* page background */
  --card: #ffffff;
  --brand: #5b4bff;        /* primary */
  --brand-dark: #4636e6;
  --brand-soft: #eeecff;
  --mint: #19c6a7;         /* "live" accents */
  --ok: #0f7b5f;  --ok-soft: #e6f6f0;
  --warn: #a35a00; --warn-soft: #fff4e0;
  --bad: #b42318; --bad-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* ---------- buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.secondary, .btn.secondary { background: var(--card); color: var(--fg); border-color: var(--line); }
button.secondary:hover, .btn.secondary:hover { background: #f1f2f6; }
button.danger { background: var(--bad); }
button.danger:hover { background: #8f1c13; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.ghost-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.btn.ghost-dark:hover { background: rgba(255, 255, 255, .16); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.on-dark { background: color-mix(in srgb, var(--ink) 92%, transparent); }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.on-dark.scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.on-dark .brand { color: #fff; }
.brand-mark { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.brand-mark img { height: 27px; width: auto; display: block; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; }
.brand-mark.small img { height: 22px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.on-dark .nav-links a { color: rgba(255, 255, 255, .72); }
.nav-links a:hover { color: var(--fg); }
.on-dark .nav-links a:hover { color: #fff; }

/* ---------- homepage: hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 75, 255, .35), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 20px 96px; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: #b9b1ff; }
.hero .lead { font-size: 19px; color: rgba(255, 255, 255, .74); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--mint); }

/* live call mock */
.call-card { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.call-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #2a3166; display: grid; place-items: center; font-weight: 700; }
.call-head b { display: block; font-size: 15px; }
.call-head span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.live { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mint); background: rgba(25, 198, 167, .12); padding: 4px 10px; border-radius: 99px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.4s infinite; }
.wave { display: flex; align-items: center; gap: 4px; height: 28px; margin: 16px 0 4px; }
.wave span { flex: none; width: 4px; background: rgba(185, 177, 255, .55); border-radius: 2px; animation: wave 1.1s ease-in-out infinite; }
.bubbles { display: grid; gap: 10px; margin-top: 12px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; opacity: 0; animation: rise .5s forwards; }
.bubble.ai { background: rgba(91, 75, 255, .22); border-bottom-left-radius: 4px; }
.bubble.user { justify-self: end; background: rgba(255, 255, 255, .08); border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }
.bubble:nth-child(1) { animation-delay: .3s; } .bubble:nth-child(2) { animation-delay: 1.3s; }
.bubble:nth-child(3) { animation-delay: 2.3s; } .bubble:nth-child(4) { animation-delay: 3.3s; }
.call-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; background: rgba(25, 198, 167, .1); border: 1px solid rgba(25, 198, 167, .25); border-radius: 12px; font-size: 14px; opacity: 0; animation: rise .5s 4.3s forwards; }
.call-result b { color: var(--mint); }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- homepage: sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin: 10px 0 14px; }
.section-head p { font-size: 18px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 14px; }

.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; margin: 10px 0 16px; }
.problem p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.compare { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-cell { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.compare-cell small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.compare-cell.good { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); }
.compare-cell.good small { color: var(--brand); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.step-icon svg { width: 22px; height: 22px; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; right: 24px; font-size: 14px; font-weight: 800; color: #c9cbd8; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.demo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-frame iframe, .demo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .8); padding: 24px;
  background: radial-gradient(60% 80% at 50% 40%, rgba(91, 75, 255, .35), transparent), var(--ink); }
.play { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 12px rgba(255, 255, 255, .1); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.demo-placeholder b { display: block; font-size: 20px; color: #fff; margin-bottom: 4px; }
.demo-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.demo-notes div { font-size: 15px; color: var(--muted); }
.demo-notes b { color: var(--fg); display: block; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.feature .step-icon { margin-bottom: 16px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.sample-bar span { font-weight: 600; color: var(--muted); font-size: 13px; }

.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.price-card { background: var(--ink); color: #fff; border-radius: 22px; padding: 36px; box-shadow: 0 30px 80px rgba(11, 16, 38, .25); }
.price-card .eyebrow { color: var(--mint); }
.price-amount { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-amount small { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .82); font-size: 15px; }
.price-card li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--mint); }
.price-card .btn { width: 100%; }
.price-note { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 12px; text-align: center; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .7); font-size: 17px; }

.site-footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row nav a { color: var(--muted); text-decoration: none; }


/* ---------- campaign page ---------- */
.page { max-width: 980px; margin: 0 auto; padding: 32px 20px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.progress li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.progress li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #eef0f5; color: var(--muted); }
.progress li.done { color: var(--fg); }
.progress li.done i { background: var(--ok); color: #fff; }
.progress li.current { color: var(--fg); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft); }
.progress li.current i { background: var(--brand); color: #fff; }

.banner { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; margin-bottom: 8px; }
.link-row { display: flex; gap: 10px; }
.link-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--bg); color: var(--fg); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 16px 0; box-shadow: var(--shadow); transition: opacity .2s; }
.card.locked { opacity: .5; pointer-events: none; box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.card-head .num { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.card-head h2 { font-size: 20px; font-weight: 800; }
.card-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
label .opt { font-weight: 500; color: var(--muted); }
input[type=text], textarea, select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--fg); transition: border-color .15s, box-shadow .15s; }
input[type=text]:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px; border: 2px dashed #cfd2e0; border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 32px; height: 32px; color: var(--brand); }
.dropzone b { font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-name { font-weight: 700; color: var(--fg); }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.msg { margin-top: 12px; font-size: 14px; }
.msg:empty { display: none; }
.msg.error { color: var(--bad); }
.msg.ok { color: var(--ok); }
#topmsg { padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }

.start-status { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.start-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #c9cbd8; }
.start-status.running .dot { background: var(--mint); animation: pulse 1.4s infinite; }
.start-status.completed .dot { background: var(--ok); }
.bar { height: 8px; background: #eef0f5; border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .4s; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); text-transform: capitalize; }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #fafafc; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
td.empty { text-align: center; color: var(--muted); padding: 28px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; text-transform: capitalize; }
.pill.interested, .pill.completed { background: var(--ok-soft); color: var(--ok); }
.pill.not_interested, .pill.failed, .pill.wrong_number, .pill.timed_out, .pill.error { background: var(--bad-soft); color: var(--bad); }
.pill.no_answer, .pill.no-answer, .pill.busy, .pill.callback_requested, .pill.voicemail, .pill.skipped { background: var(--warn-soft); color: var(--warn); }
details summary { cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 600; margin-top: 4px; }
pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }

/* ---------- accounts: login, dashboard, wallet ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card h1 + p { color: var(--muted); margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.tabs button { background: transparent; color: var(--muted); border: 0; padding: 9px; }
.tabs button:hover { background: rgba(0, 0, 0, .03); }
.tabs button.active { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.auth-card form button[type=submit] { width: 100%; margin-top: 20px; }
input[type=email], input[type=password], input[type=number] { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--fg); }
input[type=email]:focus, input[type=password]:focus, input[type=number]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.auth-row .link-btn { margin-left: auto; color: var(--brand); padding: 0; }
.auth-note .link-btn { color: var(--brand); padding: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { width: 100%; background: #fff; color: var(--fg); border: 1px solid var(--line); gap: 10px; }
.google-btn:hover { background: #f6f7fb; }
.auth-card .msg:not(:empty) { margin-top: 16px; }
.auth-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.balance-chip.low { background: var(--bad-soft); color: var(--bad); }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 4px; }
.link-btn:hover { background: none; color: var(--fg); }
.on-dark .link-btn { color: rgba(255, 255, 255, .75); }
.on-dark .link-btn:hover { color: #fff; }
a.link-btn { text-decoration: none; }

.dash-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.wallet-balance { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0; }
.wallet-meta { color: var(--muted); font-size: 14px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.amounts button { background: var(--card); color: var(--fg); border: 1px solid var(--line); min-width: 92px; }
.amounts button:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.amounts button.selected { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.custom-amount { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.custom-amount input { max-width: 180px; }
.new-campaign { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.campaign-list { display: grid; gap: 10px; }
.campaign-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); }
.campaign-item:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: #fcfcff; }
.campaign-item b { display: block; }
.campaign-item span { font-size: 13px; color: var(--muted); }
.amount-pos { color: var(--ok); font-weight: 700; white-space: nowrap; }
.amount-neg { color: var(--fg); font-weight: 700; white-space: nowrap; }
.empty-note { color: var(--muted); font-size: 14px; padding: 8px 0; }

.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.voice { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; margin: 0; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.voice:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.voice input { position: absolute; opacity: 0; }
.voice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.voice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.voice-top { display: flex; align-items: center; gap: 12px; }
.voice-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); }
.voice-avatar.f { background: var(--mint); }
.voice b { display: block; font-size: 15px; }
.voice-meta { display: block; font-size: 13px; color: var(--muted); }
.voice audio { width: 100%; height: 34px; margin-top: 12px; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-top: 14px; }
.alert.info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert.info .link-btn { color: var(--brand-dark); text-decoration: underline; padding: 0; }
.booked { color: var(--ok); white-space: nowrap; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f5d9a8; }
.alert a { color: inherit; font-weight: 700; }
.cost-line { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.cost-line b { color: var(--fg); }

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubble, .call-result { opacity: 1; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .hero-grid, .problem, .pricing { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 48px 20px 88px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .progress { grid-template-columns: repeat(4, auto); overflow-x: auto; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .facts, .steps-grid, .features, .demo-notes, .compare-row, .form-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .price-card { padding: 28px 22px; }
  .progress li span { display: none; }
  .progress { grid-template-columns: repeat(4, 1fr); }
  .nav-right .user-name { display: none; }
  .progress li { justify-content: center; padding: 10px; }
  .link-row { flex-direction: column; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
}
