/* ---------------------------------------------------------
   PollTwin site stylesheet -- dark navy ground with a signature
   teal-to-orange gradient accent and gold highlights, set in Space
   Grotesk (display) + IBM Plex Sans (body/UI). Ported from the
   PollTwin Design Canvas prototype into one shared file every page
   links to.
   --------------------------------------------------------- */

:root {
  --bg: oklch(0.205 0.025 255);
  --surface: oklch(0.255 0.03 255);
  --surface-2: oklch(0.225 0.028 255);
  --ink: oklch(0.96 0.006 250);
  --ink-soft: oklch(0.73 0.018 250);
  --ink-faint: oklch(0.54 0.018 250);
  --border: oklch(0.34 0.03 255);
  --border-strong: oklch(0.44 0.03 255);
  --teal: oklch(0.76 0.11 195);
  --teal-dark: oklch(0.62 0.1 195);
  --orange: oklch(0.7 0.16 45);
  --orange-dark: oklch(0.6 0.16 45);
  --gold: oklch(0.8 0.14 85);
  --gold-dark: oklch(0.65 0.13 78);
  --gradient: linear-gradient(90deg, var(--teal), var(--orange));
  --accent: var(--orange);
  --accent-dark: var(--orange-dark);
  --accent-soft: oklch(0.32 0.05 45);
  --coral: oklch(0.66 0.19 25);
  --coral-dark: oklch(0.58 0.19 25);
  --coral-soft: oklch(0.3 0.07 25);
  --green: var(--teal);
  --green-soft: oklch(0.3 0.055 195);
  --gray: oklch(0.6 0.012 250);
  --gray-soft: oklch(0.3 0.015 250);
  --shadow-sm: 0 1px 2px oklch(0.05 0 0 / 0.4);
  --shadow-md: 0 2px 6px oklch(0.05 0 0 / 0.35), 0 18px 40px oklch(0.05 0 0 / 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Several components below (.confirm-bar, .dash-card-actions, .manage-actions-row)
   set their own `display: flex`, which -- being an author-stylesheet rule --
   overrides the browser's default `[hidden] { display: none }` UA rule even
   though that rule technically has the same specificity. Without this line,
   toggling the `hidden` attribute on those elements (dashboard.php's and
   manage.php's delete-confirm toggle) has no visible effect. !important
   keeps this rule winning regardless of what else targets the same element. */
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', system-ui, sans-serif; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--gold); }
.btn-text-link { background: none; border: none; padding: 0; margin: 0; color: var(--teal); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; }
.btn-text-link:hover { color: var(--gold); }
button, input, select, textarea { font-family: inherit; color: inherit; font-size: 15px; }
::placeholder { color: var(--ink-faint); }
svg { display: block; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 28px; }

/* ---- site header / nav ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; }
.site-logo-img { display: block; height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a, .site-nav button.linklike { font-size: 14px; font-weight: 600; color: var(--ink-soft); background: none; border: none; cursor: pointer; padding: 0; }
.site-nav a:hover, .site-nav button.linklike:hover { color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; font-family: 'Space Grotesk', sans-serif; flex-shrink: 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s, color .15s, opacity .15s; text-decoration: none; }
.btn-solid, .btn-primary { background: var(--gradient); color: #101820; }
.btn-solid:hover, .btn-primary:hover { filter: brightness(1.08); color: #101820; }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover, .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.btn-danger { color: var(--coral); border-color: var(--coral); background: transparent; }
.btn-danger:hover { background: var(--coral-soft); color: var(--coral); }
.btn-danger-solid { background: var(--coral); color: #fff; }
.btn-danger-solid:hover { background: var(--coral-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border-strong); background: transparent; cursor: pointer; color: var(--ink-soft); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn-danger { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--coral); cursor: pointer; color: #fff; }
.icon-btn-danger:hover { background: var(--coral-dark); }

/* ---- status pill ---- */
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 999px; }
.status-live { background: var(--green-soft); color: var(--teal); }
.status-live .dot { background: var(--teal); }
.status-closed { background: var(--coral-soft); color: var(--coral); }
.status-closed .dot { background: var(--coral); }

/* ---- hero (landing) ---- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 76px;
  background-image:
    radial-gradient(620px 340px at 12% -10%, oklch(0.76 0.11 195 / 0.16), transparent 68%),
    radial-gradient(620px 340px at 88% 25%, oklch(0.7 0.16 45 / 0.14), transparent 68%),
    radial-gradient(oklch(1 0 0 / 0.05) 1.4px, transparent 1.4px);
  background-size: auto, auto, 22px 22px;
  background-position: 0 0, 0 0, -6px -6px;
}
.hero-inner { position: relative; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--gold); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .03em; }
.hero h1 { font-size: 54px; line-height: 1.06; font-weight: 700; letter-spacing: -0.015em; text-shadow: 0 0 34px oklch(0.76 0.11 195 / 0.3); }
.hero-sub { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 520px; }
.hero-ctas { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-cta-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--teal); background: none; border: none; cursor: pointer; padding: 0; }
.hero-cta-link:hover { color: var(--gold); }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step-num { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: auto; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-logo-img { display: block; height: 20px; width: auto; }
.footer-tag { color: var(--ink-faint); font-size: 13px; }
.footer-tag a { color: var(--ink-faint); text-decoration: underline; }
.footer-tag a:hover { color: var(--ink-soft); }

/* ---- poll card (landing trending grid + dashboard grid) ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.poll-card, .dash-card { position: relative; overflow: hidden; }
.poll-card::before, .dash-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.poll-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s, transform .15s, border-color .15s; }
.poll-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.poll-card-top { display: flex; align-items: center; justify-content: space-between; }
.poll-card-top-left { display: flex; align-items: center; gap: 8px; }
.poll-card-date { font-size: 12px; color: var(--ink-faint); }
.poll-card-question { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.poll-card-question a { color: inherit; }
.poll-card-question a:hover { color: var(--gold); }
.card-divider { border-top: 1px solid var(--border); }
.poll-card-meta { font-size: 13px; color: var(--ink-soft); padding-top: 12px; }
.brand-dot { width: 14px; height: 14px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--border-strong); flex-shrink: 0; }

/* ---- dashboard ---- */
.page-head { padding: 48px 0 8px; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 28px 0 36px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; }
.stat-lbl { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding-bottom: 72px; }
.dash-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dash-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.confirm-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; flex-wrap: wrap; }
.confirm-text { font-size: 13.5px; font-weight: 600; color: var(--coral); }
.confirm-actions { display: flex; gap: 8px; flex-shrink: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h2 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.empty-state .btn { margin-top: 18px; }

/* ---- auth / gate ---- */
.gate-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.gate-card { width: 100%; max-width: 420px; padding: 32px; }
.gate-tabs { display: flex; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.gate-tab { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft); background: none; border: none; text-decoration: none; display: block; }
.gate-tab-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.gate-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.gate-lede { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-label, .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field-input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--border-strong); background: var(--surface-2); outline: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--orange); }
.gate-switch, .gate-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

/* ---- terms-of-service consent checkbox (signup.php) ---- */
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; margin-bottom: 16px; }
.check-row input[type=checkbox] { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; accent-color: var(--orange); cursor: pointer; }
.check-row a { color: var(--ink); text-decoration: underline; }
.check-row a:hover { color: var(--orange); }

/* ---- flash messages ---- */
.flash-msg { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 14px; line-height: 1.55; }
.flash-error { background: var(--coral-soft); color: var(--coral); border: 1.5px solid var(--coral); }
.flash-success { background: var(--green-soft); color: var(--teal); border: 1.5px solid var(--teal); }
.flash-msg p + p { margin-top: 6px; }

/* ---- create / edit poll form ---- */
.form-wrap { padding: 44px 0 80px; max-width: 620px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.back-link:hover { color: var(--ink); }
.form-card { padding: 30px; }
.form-section-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 26px 0 12px; }
.form-section-label:first-child { margin-top: 0; }
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.option-input { flex: 1; height: 44px; padding: 0 14px; border-radius: 9px; border: 1.5px solid var(--border-strong); background: var(--surface-2); outline: none; }
.option-input:focus { border-color: var(--orange); }
.add-option-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--gold); background: transparent; border: 1.5px dashed var(--gold-dark); border-radius: 10px; cursor: pointer; padding: 10px 16px; }
.add-option-btn:hover { color: var(--gold); border-color: var(--gold); background: oklch(0.32 0.05 45 / 0.4); }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.toggle-row:first-of-type { border-top: none; padding-top: 0; }
.toggle-copy-title { font-size: 14.5px; font-weight: 600; }
.toggle-copy-desc { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; flex-shrink: 0; transition: background .15s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.toggle-switch input:checked + .toggle-track { background: var(--teal); }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.error-text { color: var(--coral); font-size: 13.5px; font-weight: 600; margin-top: 10px; }

/* ---- brand color swatches ---- */
.brand-swatch-row { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.brand-swatch-label { display: block; }
.brand-swatch { width: 32px; height: 32px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.35); appearance: none; -webkit-appearance: none; }
.brand-swatch:checked, .brand-swatch.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.brand-logo-thumb { width: 14px; height: 14px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--border-strong); flex-shrink: 0; display: block; }

/* ---- poll logo upload (create/edit form) + display ---- */
.logo-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 22px; color: var(--ink-soft); font-size: 13.5px; text-align: center; cursor: pointer; }
.logo-dropzone:hover { border-color: var(--gold-dark); color: var(--ink); }
.logo-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.logo-optional { color: var(--ink-faint); }
.logo-current { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.logo-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1.5px solid var(--border-strong); background: var(--surface-2); flex-shrink: 0; }
.logo-remove-label { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.poll-logo { display: block; max-height: 52px; max-width: 220px; object-fit: contain; margin: 0 auto 16px; }
/* On the public/customer-facing vote page the logo is the poll's main
   visual identity, so it gets shown bigger above the question --
   centered either way, same as manage.php's owner view. */
.vote-card .poll-logo { max-height: 96px; max-width: 320px; margin: 0 auto 20px; }

/* ---- vote / results ---- */
.vote-section { flex: 1; padding: 56px 24px 80px; }
.vote-card { max-width: 620px; margin: 0 auto; padding: 34px; }
.vote-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vote-source { font-size: 12.5px; color: var(--ink-faint); }
.vote-question { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 22px; }
.vote-helper { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; font-weight: 600; }

.ballot-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.ballot-row:hover { background: var(--surface-2); }
.ballot-row:has(input:checked) { border-color: var(--orange); background: var(--accent-soft); }
.ballot-row input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--orange); }
.ballot-text { font-size: 15px; font-weight: 500; }
.add-own-option { margin-top: 6px; margin-bottom: 14px; display: flex; gap: 8px; }
.add-own-option input { flex: 1; }

.results-list { display: flex; flex-direction: column; gap: 16px; }
.result-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.result-text { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.result-star { flex-shrink: 0; }
.result-pct-num { font-size: 13px; color: var(--gold); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.result-bar-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.result-bar-fill { height: 100%; border-radius: 999px; }
.results-total { margin-top: 22px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 16px; }
.vote-cta-row { margin-top: 30px; text-align: center; padding-top: 26px; border-top: 1px solid var(--border); }
.vote-cta-lede { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.share-box { display: flex; gap: 8px; margin-top: 10px; }
.share-box input { flex: 1; font-size: 13.5px; }

.manage-wrap { padding: 40px 0 80px; }
.manage-card { max-width: 720px; margin: 0 auto; padding: 34px; }
.manage-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.manage-question { font-size: 26px; font-weight: 700; line-height: 1.3; margin: 14px 0 6px; }
.manage-created { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.manage-actions-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.manage-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 24px; }

/* ---- pricing (landing) ---- */
.pricing-wrap { display: flex; justify-content: center; }
.pricing-card { width: 100%; max-width: 440px; padding: 36px 34px; text-align: center; }
.pricing-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 14px; }
.pricing-price { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 24px; }
.pricing-num { font-family: 'Space Grotesk', sans-serif; font-size: 58px; font-weight: 700; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-period { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.pricing-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; text-align: left; }
.pricing-features li { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 500; }
.pricing-check { width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pricing-fine { font-size: 12.5px; color: var(--ink-faint); margin-top: 16px; line-height: 1.5; }

/* ---- checkout ---- */
.checkout-summary { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.checkout-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; font-weight: 700; }
.checkout-amount { font-family: 'Space Grotesk', sans-serif; font-size: 20px; }
.checkout-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.checkout-fine { font-size: 12px; color: var(--ink-faint); margin-top: 14px; text-align: center; line-height: 1.5; }
.checkout-fine strong { color: var(--gold); }

/* ---- no-ads badge / welcome banner ---- */
.no-ads-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--teal); font-size: 12.5px; font-weight: 700; }
.welcome-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border: 1.5px solid var(--orange); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; }
.welcome-banner-text { font-size: 14px; color: var(--gold); line-height: 1.5; }
.welcome-dismiss { border-color: var(--orange); color: var(--gold); flex-shrink: 0; }

/* ---- terms / static doc page ---- */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 56px 32px 100px; }
.doc-title { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.doc-meta { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 28px; }
.disclaimer { background: var(--accent-soft); border: 1.5px solid var(--orange); border-radius: 12px; padding: 18px 20px; margin-bottom: 40px; }
.disclaimer-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin-bottom: 6px; }
.disclaimer p { font-size: 13.5px; line-height: 1.6; color: var(--gold); }
.doc-section { margin-bottom: 34px; }
.doc-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.005em; }
.doc-section p, .doc-section li { font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.doc-section p + p { margin-top: 12px; }
.doc-section ul, .doc-section ol { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.highlight-box { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-top: 14px; }
.highlight-box p { font-size: 14px; }
.highlight-box p + p { margin-top: 10px; }
.doc-placeholder { color: var(--gold); font-weight: 600; }

@media (max-width: 860px) {
  .hero h1 { font-size: 40px; }
  .trend-grid, .steps-row, .dash-grid, .stat-row { grid-template-columns: 1fr; }
}
