/* ScoutBrief — shared styles */

:root {
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent2: #0d9488;
  --accent-soft: #eeecfd;
  --ink: #14151a;
  --ink-soft: #55575f;
  --ink-faint: #8b8d96;
  --line: #e7e7ec;
  --surface: #fafafb;
  --card: #ffffff;
  --good-bg: #e7f6ec;
  --good-ink: #157a3d;
  --warn-bg: #fdf1e0;
  --warn-ink: #a1650f;
  --bad-bg: #fdeceb;
  --bad-ink: #c02b26;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 21, 26, 0.04), 0 2px 14px rgba(20, 21, 26, 0.05);
  --shadow-lg: 0 2px 6px rgba(20, 21, 26, 0.05), 0 18px 48px -12px rgba(40, 36, 120, 0.22);
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent2) 100%);
  --hover-line: #d6d4f5;
  --warn-line: #f2ddb8;
  --recheck-hover: #0b7c72;
  --focus-ring: rgba(79, 70, 229, 0.14);
}

:root[data-theme="dark"] {
  --accent: #8583f5;
  --accent-dark: #a5a3ff;
  --accent2: #2dd4c4;
  --accent-soft: #232244;
  --ink: #f0f0f4;
  --ink-soft: #b7b8c2;
  --ink-faint: #7d7e8a;
  --line: #2c2d38;
  --surface: #131319;
  --card: #1a1b23;
  --good-bg: #123321;
  --good-ink: #4ade80;
  --warn-bg: #3a2c12;
  --warn-ink: #f0b649;
  --bad-bg: #3a1817;
  --bad-ink: #f28b85;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px -12px rgba(0, 0, 0, 0.6);
  --hover-line: #45437a;
  --warn-line: #5a4520;
  --recheck-hover: #22b3a5;
  --focus-ring: rgba(133, 131, 245, 0.25);
}

* { box-sizing: border-box; }

/* Visible keyboard focus ring on links, buttons and other tabbable elements.
   The browser default outline is easy to lose against --card in dark mode,
   so this gives keyboard users (not mouse/touch) a clear, consistent ring.
   Text inputs already get their own focus ring further down (box-shadow),
   so they're left out here rather than fighting that rule. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(560px 300px at 12% -8%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(480px 260px at 100% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    var(--surface);
  background-attachment: fixed;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink-soft);
  text-decoration: underline;
}

.site-footer .dot {
  margin: 0 8px;
  opacity: 0.6;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.footer-brand img { width: 18px; height: 18px; }
.footer-copy { margin-top: 12px; }

.footer-badges {
  margin-top: 18px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.footer-badges:hover {
  opacity: 1;
}

.footer-badges img {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .site-footer .dot {
    display: none;
  }
  .site-footer a {
    display: inline-block;
    margin: 3px 8px;
  }
}

/* Top nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav .brand .mark {
  width: 22px; height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.nav .back-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 2px;
}
.nav .back-link:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.nav-right > a, .nav-right > button { white-space: nowrap; }
@media (max-width: 480px) {
  .nav .back-link { padding: 8px 4px; }
}

/* Account menu (nav dropdown) */
.account-menu { position: relative; }
.account-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 160px;
}
.account-trigger:hover { background: var(--accent-soft); }
.account-trigger .account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-trigger .caret {
  font-size: 0.6rem;
  color: var(--ink-faint);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.account-menu[data-open="true"] .caret { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 190px;
  padding: 6px;
  z-index: 20;
  display: none;
}
.account-menu[data-open="true"] .account-dropdown { display: block; }
.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-family: inherit;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: var(--accent-soft); }
.account-dropdown .dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 2px;
}
.account-dropdown form { margin: 0; }
@media (max-width: 480px) {
  .nav-right { gap: 10px; }
}

/* Header block */
.hero { margin: 18px 0 36px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.05rem); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 8px; }
.hero .tagline, .hero .subject { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.hero .kicker, .landing-hero .kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.landing-hero .kicker { margin-bottom: 18px; padding: 5px 12px; }

/* Section headings */
h2.section {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Form */
.card-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 18px 0 7px; color: var(--ink); }
label:first-child { margin-top: 0; }
textarea, input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  width: 100%;
  padding: 11px 13px;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
/* iOS Safari zooms the page in on focus for any input under 16px, which is
   jarring mid-form. Bumping to 16px on small screens (where iOS applies)
   avoids that without changing the desktop size. */
@media (max-width: 640px) {
  textarea, input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
    font-size: 16px;
  }
}
textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
textarea { min-height: 92px; resize: vertical; }
.hint { color: var(--ink-faint); font-size: 0.82rem; margin: 6px 0 0; }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 21, 26, 0.08), 0 4px 14px -4px rgba(79, 70, 229, 0.45);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }
button:disabled, button:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
button.ghost, .btn.ghost {
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  box-shadow: none;
}
button.ghost:hover, .btn.ghost:hover { background: var(--accent-soft); color: var(--ink); }
.btn.lg { padding: 14px 26px; font-size: 1rem; border-radius: 10px; }
.btn.sm, .nav .btn { padding: 7px 15px; font-size: 0.84rem; }
button.danger-text {
  background: none;
  color: var(--bad-ink);
  padding: 0;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: none;
}
button.danger-text:hover { text-decoration: underline; background: none; transform: none; }
button.theme-toggle, button.account-trigger { box-shadow: none; }
button.theme-toggle:hover, button.account-trigger:hover { transform: none; }
button.recheck { background: var(--accent2); box-shadow: 0 4px 14px -4px rgba(13, 148, 136, 0.5); }
button.recheck:hover { background: var(--recheck-hover); }

.form-submit { margin-top: 22px; }

/* Error / info banners */
.error {
  background: var(--bad-bg);
  color: var(--bad-ink);
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* Saved businesses list */
.biz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.biz-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.biz-list li:hover { border-color: var(--hover-line); box-shadow: var(--shadow); }
.biz-list a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.98rem; }
.biz-list a:hover { color: var(--accent); }
.biz-list .desc { color: var(--ink-soft); font-size: 0.87rem; margin-top: 4px; }
.biz-list .last-checked { color: var(--ink-faint); font-size: 0.78rem; margin-top: 4px; }
.empty { color: var(--ink-faint); font-size: 0.9rem; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }

/* Business detail toolbar */
.toolbar { display: flex; align-items: center; gap: 16px; margin: 20px 0 4px; flex-wrap: wrap; }
.report-count { color: var(--ink-faint); font-size: 0.85rem; margin: 0 0 20px; }

/* Diff card */
.diff {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 8px;
  border: 1px solid var(--line);
}
.diff.changed { background: var(--warn-bg); border-color: var(--warn-line); }
.diff.unchanged { background: var(--card); }
.diff h3 { margin: 0 0 8px; font-size: 0.98rem; }
.diff p { margin: 6px 0; font-size: 0.92rem; }
.diff ul { margin: 8px 0 0; padding-left: 20px; font-size: 0.92rem; }

.type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.watchlist {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 14px;
}
.watchlist h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--accent-dark); }
.watchlist ul { margin: 0; padding-left: 20px; }
.watchlist li { font-size: 0.92rem; margin-bottom: 4px; }

.verdict {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent2);
  margin: 6px 0 4px;
}

/* Summary */
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent2);
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

/* Competitor cards */
.competitor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.competitor h3 { margin: 0 0 8px; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.badge { font-size: 0.66rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.verified { background: var(--good-bg); color: var(--good-ink); }
.badge.unverified { background: var(--warn-bg); color: var(--warn-ink); }
.source-link { font-size: 0.82rem; margin-top: 6px; }
.source-link a { color: var(--ink-faint); }
.source-link a:hover { color: var(--accent); }
.competitor .meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.social-presence { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.social-presence strong { color: var(--ink); }
.cols { display: flex; gap: 24px; margin-top: 12px; }
.cols div { flex: 1; }
.cols h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin: 0 0 6px; }

ul { margin: 4px 0; padding-left: 20px; }
ul li { margin-bottom: 3px; }

.caveats {
  margin-top: 28px;
  font-size: 0.87rem;
  color: var(--ink-faint);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.report-brand .mark {
  width: 16px; height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.report-brand strong { color: var(--ink-soft); }

.history { color: var(--ink-faint); font-size: 0.85rem; margin: 6px 0 0; padding-left: 20px; }
.history li { margin-bottom: 5px; }

.back { display: inline-block; margin-top: 40px; color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.back:hover { color: var(--ink); }

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 20px;
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--ink); }

/* Loading overlay (shown on generate/recheck submit) */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 26, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  /* Visible immediately; the fade is pure CSS so it doesn't depend on JS
     timing, which mobile browsers pause while a form is submitting. */
  animation: overlay-in 0.18s ease-out;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.loading-box {
  background: var(--card);
  border-radius: 16px;
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 380px;
}
.loading-box .loading-sub { margin-top: 6px; font-weight: 400; font-size: 0.85rem; color: var(--ink-faint); }
.spinner {
  width: 32px; height: 32px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Confidence stat + read time chips, shown alongside the report */
.report-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
}
.meta-chip strong { color: var(--ink); }

/* Copy-as-text button reuses .btn.ghost; plain-text source stays offscreen */
.report-text-source {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
}

/* Example-fill link on the homepage */
.example-link { font-size: 0.82rem; color: var(--accent); text-decoration: none; margin-left: 8px; }
.example-link:hover { text-decoration: underline; }

/* Business tag badges */
.tag-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tag-form input[type="text"] {
  width: auto;
  padding: 6px 10px;
  font-size: 0.82rem;
}
.tag-form button {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Homepage hero with illustration + demo video (logged-out visitors) */
.hero-with-media {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-with-media .hero-content { flex: 1 1 300px; min-width: 260px; }
.hero-media {
  flex: 0 1 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-illustration {
  width: 100%;
  height: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 620px) {
  .hero-with-media { flex-direction: column; }
  .hero-media { width: 100%; flex: none; }
}

/* Homepage report preview (logged-out visitors) */
.report-preview-wrap {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}
.report-preview { padding-bottom: 30px; }
.report-preview-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--surface) 82%);
  pointer-events: none;
}

/* Stats page */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .stat-label { color: var(--ink-faint); font-size: 0.85rem; margin-top: 4px; }

/* Print styles: strip chrome, keep the report content */
@media print {
  .nav, .toolbar, .card-form, .form-submit, form, .theme-toggle,
  .biz-list, .empty, h2.section + form, .back, .report-brand,
  .tag-form, button, .loading-overlay {
    display: none !important;
  }
  body { background: #fff !important; }
  .page { max-width: 100%; padding: 0; }
  .competitor, .summary, .diff { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* Problem-first entry points on the logged-out homepage */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 26px; }
.problem-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.problem-card:hover { border-color: var(--accent); }
.problem-card strong { font-size: 0.95rem; }
.problem-card span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.45; }
@media (max-width: 720px) { .problem-grid { grid-template-columns: 1fr; } }

/* "How to use this report" action plan */
.jump-link { margin: 8px 0 0; font-size: 0.88rem; }
.action-plan { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.action-plan .plan-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.action-plan .plan-row:first-child { padding-top: 0; }
.action-plan .plan-row:last-child { border-bottom: none; padding-bottom: 0; }
.action-plan .plan-label { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); margin-bottom: 4px; }
.action-plan p { margin: 0; line-height: 1.55; }
.action-plan ul, .action-plan ol { margin: 4px 0 0; padding-left: 20px; line-height: 1.55; }
.action-plan li { margin-bottom: 4px; }
.action-plan .plan-generic li { margin-bottom: 10px; }

/* ================================================================
   Logged-out homepage (landing) — wider layout and marketing sections
   ================================================================ */
.page.page-wide { max-width: 1060px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 40px 0 64px;
}
.landing-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.landing-hero .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 540px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.trust-row li { display: flex; align-items: center; gap: 7px; margin: 0; }
.trust-row li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--good-bg);
  color: var(--good-ink);
}

/* Demo video in a browser-style frame with a soft glow behind it */
.media-stage { position: relative; }
.media-stage::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 6%;
  background: var(--grad);
  filter: blur(46px);
  opacity: 0.28;
  border-radius: 40px;
  z-index: 0;
}
.browser-frame {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar .url {
  flex: 1;
  width: auto;
  height: auto;
  margin-left: 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 3px 10px;
  text-align: center;
}
.media-caption { position: relative; z-index: 1; text-align: center; margin-top: 12px; }

/* Section scaffolding */
.landing-section { margin: 0 0 72px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Problem cards get an icon tile and lift on hover */
.page-wide .problem-grid { gap: 18px; margin: 0; }
.page-wide .problem-card {
  padding: 24px;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.page-wide .problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--hover-line); }
.page-wide .problem-card strong { font-size: 1.02rem; }
.page-wide .problem-card span { font-size: 0.92rem; }
.problem-card .more { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: auto; padding-top: 6px; }
.icon-tile {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 6px;
}
.icon-tile svg { width: 22px; height: 22px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* What's inside + sample report side by side */
.inside {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.inside .section-head { text-align: left; margin: 0 0 22px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; margin: 0; }
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.feature-list strong { display: block; font-size: 0.96rem; }
.feature-list span { color: var(--ink-soft); font-size: 0.9rem; }
.page-wide .report-preview-wrap { border-radius: 0; max-height: 440px; }
.page-wide .report-preview { padding: 20px 22px 30px; }
.page-wide .report-preview-fade { background: linear-gradient(to bottom, transparent, var(--card) 85%); }

/* Closing CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 52px 28px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.025em; margin: 0 0 10px; }
.cta-band p { margin: 0 auto 26px; max-width: 520px; opacity: 0.9; }
.cta-band .btn { background: #fff; color: #312e81; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35); }
.cta-band .btn:hover { background: #f3f3ff; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.cta-band .cta-row { justify-content: center; }

@media (max-width: 860px) {
  .landing-hero, .inside { grid-template-columns: 1fr; gap: 36px; }
  .landing-hero { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .landing-section { margin-bottom: 56px; }
}

/* Logged-in dashboard: saved businesses as a two-column card grid */
@media (min-width: 640px) {
  .biz-list { grid-template-columns: 1fr 1fr; }
}
.biz-list li { display: flex; flex-direction: column; }
.biz-list .last-checked { margin-top: auto; padding-top: 8px; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.price-card h2 { margin: 0; font-size: 1.1rem; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
}
.price-card .amount { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.price-card ul { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }
.price-card li { display: flex; gap: 9px; margin-bottom: 6px; }
.price-card li::before { content: "✓"; color: var(--good-ink); font-weight: 700; }
.price-card form, .price-card > .btn { margin-top: auto; }
.price-card form button, .price-card > .btn { width: 100%; justify-content: center; }
.free-note {
  text-align: center;
  background: var(--good-bg);
  color: var(--good-ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* End-of-article CTA on blog posts */
.post-cta {
  margin: 44px 0 0;
  padding: 28px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--hover-line);
  text-align: center;
}
.post-cta h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.015em; }
.post-cta p { margin: 0 auto 18px; color: var(--ink-soft); max-width: 480px; }
.post-cta .cta-row { justify-content: center; }

/* Stale-report nudge (business page + dashboard badge) */
.stale-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 0.9rem;
}
.stale-nudge form { margin: 0; }
.stale-nudge button { padding: 8px 14px; font-size: 0.85rem; }
.stale-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--warn-ink);
  background: var(--warn-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Share link controls (owner) */
.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  font-size: 0.85rem;
}
.share-box form { margin: 0; }
.share-box button.ghost { padding: 6px 12px; font-size: 0.82rem; }
.share-label { color: var(--ink-soft); }
.share-url {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Banner on a report someone shared */
.shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--hover-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 22px;
}
.shared-banner strong { display: block; margin-bottom: 2px; }
.shared-banner span { color: var(--ink-soft); font-size: 0.9rem; }

/* Action plan checklist */
.plan-progress {
  margin-left: 8px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}
.progress-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin: 6px 0 10px;
}
.progress-bar span { display: block; height: 100%; background: var(--grad); transition: width 0.3s ease; }
.plan-checklist { list-style: none; padding: 0; margin: 0; }
.plan-checklist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.plan-checklist form { margin: 0; }
.plan-checklist li.done span { color: var(--ink-faint); text-decoration: line-through; }
button.plan-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  padding: 0;
  margin-top: 1px;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid var(--ink-faint);
  background: var(--card);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: none;
}
button.plan-check:hover { border-color: var(--accent); background: var(--accent-soft); transform: none; }
button.plan-check[aria-pressed="true"] { background: var(--accent2); border-color: var(--accent2); }

/* FAQ accordion (Bosnian landing page) */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.6; }

/* Referral nudge on the dashboard */
.invite-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--hover-line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}
.invite-nudge:hover { transform: translateY(-1px); }
.invite-nudge .more { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Industry pages */
.article { max-width: 680px; margin: 0 auto; }
.article > p { line-height: 1.65; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.compare-item strong { display: block; margin-bottom: 4px; }
.compare-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.gap-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.gap-list li {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent2);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.industry-links { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-links a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}
.industry-links a:hover { border-color: var(--accent); color: var(--accent); }
.industry-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .industry-grid { grid-template-columns: 1fr; } }
.industry-grid .problem-card .more { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: auto; padding-top: 4px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.testimonial {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testimonial blockquote { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
.testimonial figcaption { margin-top: auto; font-size: 0.86rem; color: var(--ink-soft); }
.testimonial figcaption strong { display: block; color: var(--ink); }
.stars { color: var(--line); letter-spacing: 2px; font-size: 1rem; }
.stars .on { color: #f5a524; }

/* Review box under a report */
.review-box {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.review-box h3 { margin: 0 0 8px; font-size: 1.02rem; }
.review-thanks { margin: 0; font-weight: 500; }
.review-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .review-row { grid-template-columns: 1fr; } }
.check-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.check-label input { margin-top: 3px; }
select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
/* Star picker: radios in reverse order so CSS can light up the hovered star and all before it */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 6px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5a524; }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Report mockup in the homepage hero (replaces the old demo video) */
.mock-report { padding: 18px 20px 20px; display: grid; gap: 10px; font-size: 0.88rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mock-chip { font-size: 0.75rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; }
.mock-title { font-size: 1.02rem; letter-spacing: -0.01em; }
.mock-comp { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.mock-comp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.mock-comp p { margin: 0; color: var(--accent2); font-weight: 500; font-size: 0.84rem; line-height: 1.45; }
.mock-plan { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.mock-plan .plan-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); margin-bottom: 6px; }
.mock-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mock-plan li { display: flex; gap: 8px; align-items: flex-start; margin: 0; line-height: 1.4; }
.mock-plan li.done { color: var(--ink-faint); text-decoration: line-through; }
.mock-check { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border: 2px solid var(--ink-faint); border-radius: 4px; display: grid; place-items: center; font-size: 0.65rem; color: #fff; }
.mock-plan li.done .mock-check { background: var(--accent2); border-color: var(--accent2); }

/* Loading screen: title, progress bar and step list */
html.is-loading, html.is-loading body { overflow: hidden; }
.loading-title { margin: 16px 0 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.loading-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 16px 0 18px; }
.loading-bar span {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--grad);
  border-radius: 6px;
  /* Eases toward ~92% over about a minute and waits there for the page. */
  animation: loading-fill 110s cubic-bezier(0.3, 0.25, 0.55, 1) forwards;
}
@keyframes loading-fill { to { width: 92%; } }
.loading-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.loading-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-faint); margin: 0; transition: color 0.3s ease; }
.loading-steps li.active { color: var(--ink); font-weight: 600; }
.loading-steps li.done { color: var(--ink-soft); }
.step-dot { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.7rem; color: #fff; }
.loading-steps li.active .step-dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.loading-steps li.done .step-dot { background: var(--accent2); border-color: var(--accent2); }
.loading-steps li.done .step-dot::after { content: "\2713"; }
.loading-box .loading-sub { margin: 18px 0 0; font-size: 0.82rem; color: var(--ink-faint); font-weight: 400; line-height: 1.5; }
button.is-busy { opacity: 0.6; pointer-events: none; }

/* On phones the loading screen takes the whole screen, card style dropped */
@media (max-width: 560px) {
  .loading-overlay { padding: 0; background: var(--card); }
  .loading-box {
    max-width: none;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
  }
  .loading-box .spinner { width: 44px; height: 44px; border-width: 4px; }
  .loading-title { font-size: 1.2rem; }
  .loading-steps li { font-size: 0.98rem; }
}

/* The standalone "generating..." page: same loading screen, on a solid background */
.loading-overlay.job-screen { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Free snapshot */
.loading-overlay.snap .loading-bar span { animation-duration: 35s; }
.snapshot-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 560px) { .snapshot-compare { grid-template-columns: 1fr; } }
.snapshot-compare > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 0.9rem; }
.snapshot-compare > div.featured { border: 2px solid var(--accent); }
.snapshot-compare ul { list-style: none; padding: 0; margin: 8px 0 0; color: var(--ink-soft); }
.snapshot-compare li { display: flex; gap: 8px; margin-bottom: 5px; }
.snapshot-compare li::before { content: "\2713"; color: var(--good-ink); font-weight: 700; }
.locked-preview { position: relative; margin-top: 18px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); overflow: hidden; }
.locked-rows { filter: blur(0.6px); opacity: 0.55; font-size: 0.9rem; }
.locked-rows p { margin: 6px 0; letter-spacing: 1px; }
.snapshot-link { display: inline-block; margin-top: 14px; font-size: 0.92rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.snapshot-link:hover { text-decoration: underline; }
.snapshot-prefill { background: var(--good-bg); color: var(--good-ink); border-radius: 8px; padding: 10px 14px; font-size: 0.88rem; margin: 0 0 14px; }

/* Homepage quick start: describe the business right in the hero */
.quickstart { margin: 4px 0 0; }
.qs-label { font-size: 0.85rem; margin: 0 0 8px; color: var(--ink-soft); }
.qs-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qs-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-lg); }
.qs-box textarea {
  flex: 1;
  border: none;
  box-shadow: none;
  background: transparent;
  min-height: 64px;
  resize: none;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.45;
}
.qs-box textarea:focus { box-shadow: none; border: none; }
.qs-button { flex-shrink: 0; align-self: stretch; padding: 0 20px; font-size: 0.98rem; border-radius: 10px; white-space: nowrap; }
.qs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.qs-chips-label { font-size: 0.82rem; color: var(--ink-faint); margin-right: 2px; }
button.qs-chip {
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: none;
}
button.qs-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--hover-line); transform: none; }
.qs-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.qs-secondary { margin: 14px 0 0; font-size: 0.86rem; color: var(--ink-faint); }
.qs-secondary a { color: var(--accent); text-decoration: none; font-weight: 500; }
.qs-secondary a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .qs-box { flex-direction: column; }
  .qs-button { padding: 14px 20px; justify-content: center; }
}

/* The same form inside the closing gradient band */
.cta-band-form .quickstart { max-width: 640px; margin: 0 auto; text-align: left; }
.cta-band-form .qs-label { color: rgba(255, 255, 255, 0.85); }
.cta-band-form .qs-box { border-color: transparent; }
.cta-band-form .qs-box textarea { color: var(--ink); }
.cta-band-form .qs-note { color: rgba(255, 255, 255, 0.9); text-align: center; }
.cta-band-form .qs-button { background: var(--accent); color: #fff; }

/* Popular guides: keyword-rich internal links */
.guide-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 620px) { .guide-links { grid-template-columns: 1fr; } }
.guide-links a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.guide-links a::after { content: " \2192"; color: var(--accent); }
.guide-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Sticky "start" bar on phones */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta:not([hidden]) {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 92%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    z-index: 50;
    animation: overlay-in 0.2s ease-out;
  }
  .sticky-cta .btn { width: 100%; justify-content: center; padding: 13px 18px; }
  .page-wide { padding-bottom: 96px; }
}
