:root {
  --bg: #f4f6fb;
  --bg-accent: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e3e7ef;
  --border-strong: #cdd4e3;
  --text: #1b2233;
  --text-muted: #5b6478;
  --text-faint: #97a0b4;
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef0fe;
  --accent: #7c6cf0;
  --danger: #d14343;
  --shadow: 0 1px 2px rgba(20, 28, 56, 0.04), 0 8px 24px rgba(20, 28, 56, 0.06);
  --shadow-lg: 0 18px 50px rgba(20, 28, 56, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

/* i18n resilience: translated labels are frequently longer than the English
   source, and some languages have long single words. This zero-specificity
   baseline lets text wrap and, only as a last resort, break inside its box so
   it never spills out of buttons, chips, cards, or table cells. It kicks in
   only when content would otherwise overflow, and any explicit rule (e.g. the
   deliberate `white-space: nowrap` labels) still overrides it. */
:where(h1, h2, h3, h4, h5, h6, p, span, strong, small, em, a, li, dt, dd,
  th, td, label, button, figcaption, blockquote, summary) {
  min-width: 0;
  overflow-wrap: break-word;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 50% -10%, var(--bg-accent), transparent 70%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4000;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #084f4a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(8, 79, 74, 0.28);
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Animated background orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #8b7bf2, transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}

.orb-2 {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -100px;
  background: radial-gradient(circle at 30% 30%, #5bc0eb, transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 30%;
  background: radial-gradient(circle at 30% 30%, #c78bf2, transparent 70%);
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 50px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.12); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.06); }
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* ---------- Entrance motion ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-soft {
  animation: fadeIn 0.4s ease both;
}
#search-view .reveal { animation-delay: 0.05s; }
#results-view .reveal:nth-of-type(2) { animation-delay: 0.08s; }

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-name {
  background: linear-gradient(90deg, var(--text), var(--primary-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  animation: pulseMark 3.4s ease-in-out infinite;
}

@keyframes pulseMark {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 8px 24px rgba(124, 108, 240, 0.55); }
}

.tagline {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.card-head.subhead {
  margin-top: 0.25rem;
}

.card h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.muted {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.optional {
  color: var(--text-faint);
  font-weight: 500;
}

.field-hint {
  margin: -0.2rem 0 0.95rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.req {
  color: var(--primary);
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.6rem 0;
}

/* ---------- Form ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}

label,
.field {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

input,
select,
textarea {
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

textarea {
  resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-2);
  color: var(--text-faint);
  cursor: not-allowed;
}

/* A native <select> that has been replaced by a styled .select-menu overlay
   stays in the DOM (source of truth for its value and i18n option text) but is
   hidden from view. */
.select-native-hidden {
  display: none !important;
}

/* The styled overlay lists are short and fixed, so let the panel grow to fit
   the longest label instead of clamping it to the control width. */
.select-menu .combo-panel {
  right: auto;
  min-width: 100%;
  width: max-content;
  max-width: min(340px, 90vw);
}
.select-menu .combo-option-text {
  white-space: normal;
}

/* ---------- Combobox ---------- */
.combo {
  position: relative;
  font-weight: 500;
}
/* Lift an open combobox (and its dropdown) above any sibling fields below it. */
.combo.open {
  z-index: 60;
}

.combo-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.62rem 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.combo-control:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--primary);
}

.combo.open .combo-control {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.combo.invalid .combo-control {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.16);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.combo-control:disabled {
  background: var(--surface-2);
  color: var(--text-faint);
  cursor: not-allowed;
}

.combo-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-value.placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

/* CSS-drawn chevron (the raw "▾" glyph rendered small and off-baseline). */
.combo-caret {
  flex: none;
  width: 0.46rem;
  height: 0.46rem;
  font-size: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-top: -0.14rem;
  transition: transform 0.2s ease;
}

.combo.open .combo-caret {
  transform: rotate(225deg);
  margin-top: 0.05rem;
}

.combo-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  transform-origin: top center;
  animation: comboIn 0.16s ease;
}

@keyframes comboIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.combo-search {
  width: 100%;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
}

.combo-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.combo-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s ease;
}

.combo-option:hover {
  background: var(--surface-2);
}

.combo-option.selected {
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 600;
}

.combo-tick {
  flex: none;
  width: 1rem;
  font-size: 0.8rem;
  color: var(--primary);
  visibility: hidden;
}

.combo-option.selected .combo-tick {
  visibility: visible;
}

.combo-option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-empty {
  padding: 0.6rem 0.55rem;
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.66rem 1.3rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

button:hover:not(:disabled) {
  background: var(--primary-strong);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  background: var(--border-strong);
  box-shadow: none;
  cursor: not-allowed;
}

button.secondary,
a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.66rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button.secondary:hover:not(:disabled),
a.secondary:hover {
  background: var(--bg-accent);
  transform: translateY(-1px);
}

#back-btn {
  margin-bottom: 1.1rem;
}

#search-status {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.search-cost-preview {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Progress ---------- */
#progress-section {
  margin-top: 1.2rem;
}

.progress-track {
  position: relative;
  background: var(--bg-accent);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

#progress-label {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Results ---------- */
.leads-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.leads-head h2,
.leads-head .muted {
  margin-left: 0;
  margin-right: 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 0.42rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.profile-summary dt {
  color: var(--text-muted);
  font-weight: 800;
}

.profile-summary dd {
  margin: 0;
  color: var(--text);
}

.raw-toggle {
  margin-top: 0.95rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.raw-toggle summary {
  cursor: pointer;
}

#profile-output,
.profile-raw {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.9rem 0 0;
}

.empty-state {
  margin-top: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Give the descriptive columns room so the text isn't smashed together.
   Columns: 1 Name, 2 Platform, 3 What they do, 4 Why they match, 5 Email,
   6 Phone, 7 Send, 8 Outreach, 9 Problem. */
#leads-table th:nth-child(1), #leads-table td:nth-child(1) { width: 8%; }
#leads-table th:nth-child(2), #leads-table td:nth-child(2) { width: 9%; }
#leads-table th:nth-child(3), #leads-table td:nth-child(3) { width: 11%; }
#leads-table th:nth-child(4), #leads-table td:nth-child(4) {
  width: 13%;
  min-width: 155px;
  line-height: 1.45;
  white-space: normal;
}
#leads-table th:nth-child(5), #leads-table td:nth-child(5) { width: 10%; }
#leads-table th:nth-child(6), #leads-table td:nth-child(6) { width: 9%; }
#leads-table th:nth-child(7), #leads-table td:nth-child(7) { width: 12%; }
#leads-table th:nth-child(8), #leads-table td:nth-child(8) { width: 18%; }
#leads-table th:nth-child(9), #leads-table td:nth-child(9) { width: 10%; }

/* Show only the contact column the search asked for: a phone-only search hides
   the Email column, an email-only search hides the Phone + Send columns (Send
   only makes sense with a phone number). "both" (and the default) shows all. */
#leads-table[data-contact="phone"] .col-email,
#leads-table[data-contact="email"] .col-phone,
#leads-table[data-contact="email"] .col-send {
  display: none;
}
/* Same, but with enough specificity to beat the phone-card td display rules. */
html[data-device-mode="phone"] #leads-table[data-contact="phone"] .col-email,
html[data-device-mode="phone"] #leads-table[data-contact="email"] .col-phone,
html[data-device-mode="phone"] #leads-table[data-contact="email"] .col-send {
  display: none;
}
/* On the phone-card layout, a lead with no number would show an empty "Send"
   row; drop it. (On desktop the blank cell just keeps the grid aligned.) */
html[data-device-mode="phone"] #leads-table .col-send:empty { display: none; }

thead th {
  background: var(--surface-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: sticky;
  top: 0;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: var(--surface-2);
}

.lead-row {
  animation: fadeInUp 0.4s ease both;
}

.lead-row.skipped {
  opacity: 0.4;
}

.lead-row.reported {
  background: rgba(240, 165, 93, 0.08);
}

td a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

td a:hover {
  text-decoration: underline;
}

.not-found {
  color: var(--text-faint);
  font-style: italic;
}

/* Stack the source lines with block layout, NOT `display: grid`.
   A <td> forced to `display: grid` drops out of the `table-layout: fixed`
   column-width calculation on mobile Safari and collapses to its min-content
   width. Combined with `overflow-wrap: anywhere` (whose min-content is a single
   character) that makes every letter wrap onto its own line. Keeping the cell a
   real table cell and using `break-word` avoids the collapse. */
.lead-source-cell strong,
.lead-source-cell span,
.lead-source-cell a {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}

.lead-source-cell strong + span,
.lead-source-cell strong + a,
.lead-source-cell span + a {
  margin-top: 0.2rem;
}

.lead-source-cell span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ============================================================
   Phone: the 8-column, 1120px-wide results table can't be read
   by horizontal scrolling on a handset, so collapse each lead
   row into a stacked, labelled card. The <tr>/<td> structure is
   kept intact (block display only) so the outreach + report
   rows injected via nextElementSibling still work. Field labels
   come from each cell's data-label (set in app.js).
   ============================================================ */
html[data-device-mode="phone"] .table-wrap {
  overflow-x: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Drop table formatting entirely (incl. on the table element itself) so the
   layout is constrained to the viewport instead of shrink-to-fitting to the
   widest no-wrap cell (which pushed the cards past the screen edge). */
html[data-device-mode="phone"] #leads-table,
html[data-device-mode="phone"] #leads-table thead,
html[data-device-mode="phone"] #leads-table tbody,
html[data-device-mode="phone"] #leads-table tr,
html[data-device-mode="phone"] #leads-table td {
  display: block;
  width: auto;
  min-width: 0;
}

html[data-device-mode="phone"] #leads-table {
  max-width: 100%;
}

/* Visually hide the column header row; labels move into each card. */
html[data-device-mode="phone"] #leads-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Each lead row becomes a card. */
html[data-device-mode="phone"] #leads-table .lead-row {
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.95rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 32, 29, 0.06);
}

html[data-device-mode="phone"] #leads-table .lead-row.reported {
  background: rgba(240, 165, 93, 0.08);
}

html[data-device-mode="phone"] #leads-table .lead-row > td {
  width: auto;
  min-width: 0;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  overflow-wrap: break-word;
}

html[data-device-mode="phone"] #leads-table .lead-row > td:last-child {
  border-bottom: 0;
}

/* Field label above each value. */
html[data-device-mode="phone"] #leads-table .lead-row > td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Empty action-label cells and the source stack read better full width. */
html[data-device-mode="phone"] #leads-table .lead-source-cell {
  display: block;
}

html[data-device-mode="phone"] #leads-table .outreach-cell .outreach-actions {
  width: 100%;
}

html[data-device-mode="phone"] #leads-table .outreach-cell .generate-btn,
html[data-device-mode="phone"] #leads-table .outreach-cell .skip-btn,
html[data-device-mode="phone"] #leads-table .report-cell .report-lead-btn {
  flex: 1 1 auto;
}

/* The full-width outreach / report editors sit between cards. */
html[data-device-mode="phone"] #leads-table .outreach-row > td,
html[data-device-mode="phone"] #leads-table .lead-report-row > td {
  padding: 0;
}

html[data-device-mode="phone"] #leads-table .outreach-row > td::before,
html[data-device-mode="phone"] #leads-table .lead-report-row > td::before {
  content: none;
}

.history-panel {
  max-width: 980px;
  margin: 0 auto;
}

.history-status {
  min-height: 1.4rem;
  margin: 0 0 0.7rem;
  text-align: center;
}

.history-list {
  border-top: 1px solid var(--border);
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.history-item-copy {
  min-width: 0;
}

.history-item-title,
.history-item-meta {
  margin: 0;
}

.history-item-title {
  color: var(--text);
  font-size: 1rem;
}

.history-item-meta {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.history-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .history-item {
    grid-template-columns: 1fr;
  }

  .history-item-actions {
    width: 100%;
  }

  .history-item-actions button {
    flex: 1 1 0;
  }
}

.outreach-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
}

.outreach-cell .generate-btn,
.outreach-cell .skip-btn,
.report-lead-btn {
  white-space: nowrap;
}

/* Keep Generate + Skip compact enough to sit side by side in the column, and
   never let flex shrink them below their label (which would clip the text). */
.outreach-cell .generate-btn,
.outreach-cell .skip-btn {
  flex: 0 0 auto;
  padding: 0.44rem 0.6rem;
  font-size: 0.8rem;
  min-height: 32px;
}

.outreach-error {
  margin-top: 0.55rem;
  color: var(--danger);
  font-size: 0.82rem;
  white-space: normal;
}

.report-cell {
  white-space: nowrap;
}

.report-lead-btn {
  padding: 0.44rem 0.6rem;
  font-size: 0.8rem;
  min-height: 32px;
}

.lead-report-row > td {
  padding: 0;
  background: transparent;
}

.lead-report-box {
  display: grid;
  gap: 0.85rem;
  margin: 0.2rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 165, 93, 0.26);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255, 246, 231, 0.92), rgba(255, 254, 250, 0.95));
  box-shadow: 0 14px 32px rgba(86, 55, 22, 0.08);
}

.lead-report-box label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.lead-report-box select,
.lead-report-box textarea {
  width: 100%;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
}

.lead-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.lead-report-status {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.chat-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(15, 111, 104, 0.2);
  border-radius: 999px;
  background: rgba(226, 241, 237, 0.86);
  color: var(--primary-strong);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.chat-retry:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Full-width editor row beneath the lead - gives the email plenty of room. */
.outreach-row > td {
  padding: 0;
  background: transparent;
}
.outreach-box {
  margin: 0.2rem 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  animation: fadeIn 0.25s ease;
  display: flex;
  flex-direction: column;
}

.outreach-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.outreach-head {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.outreach-close {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  margin: -0.15rem -0.2rem 0 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-faint);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.outreach-close:hover { background: var(--surface); color: var(--text); }

.outreach-box label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.outreach-box textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  white-space: pre-wrap;
}
.outreach-box .body-field { min-height: 170px; }

.outreach-box .send-to { margin-bottom: 0.5rem; }

.outreach-box .send-link {
  text-decoration: none;
  align-self: flex-start;
}
.outreach-box .send-link button {
  white-space: nowrap;
}

.outreach-box .copy-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.site-footer > span {
  display: inline-block;
  max-width: 720px;
}

/* ---------- Reviews ---------- */
.reviews-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 1.4rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.4rem;
  border-radius: var(--radius);
}

.reviews-score-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.25rem 0 0.35rem;
}

.reviews-score strong {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.reviews-score span,
.review-stars {
  color: #d99335;
  letter-spacing: 0.08em;
}

.reviews-breakdown {
  display: grid;
  gap: 0.7rem;
}

.reviews-breakdown div {
  display: grid;
  grid-template-columns: 2.2rem 1fr 1.2rem;
  gap: 0.7rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reviews-breakdown meter {
  width: 100%;
  height: 0.6rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card,
.review-submit {
  padding: 1.15rem;
  border-radius: var(--radius);
}

.review-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.review-card-head strong,
.review-card-head span {
  display: block;
}

.review-card-head span:not(.review-stars) {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.review-card p {
  margin: 1rem 0 0;
  color: var(--text);
  line-height: 1.55;
}

.review-response {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.review-creator-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: rgba(45, 129, 255, 0.12);
  color: #1d6fe8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.review-response p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-reply-actions {
  margin-top: 1rem;
}

.review-reply-toggle,
.review-reply-submit {
  padding: 0.48rem 0.78rem;
  font-size: 0.82rem;
}

.review-reply-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.review-reply-form.hidden {
  display: none;
}

.review-pending-response {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px dashed rgba(45, 129, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(45, 129, 255, 0.06);
}

.review-pending-response p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-submit {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.review-submit h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.review-form-wide,
.review-form-actions {
  grid-column: 1 / -1;
}

.review-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.review-form-actions .muted {
  max-width: 360px;
}

@media (max-width: 900px) {
  .reviews-hero,
  .review-submit,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .page {
    padding: 1.75rem 1rem 2.5rem;
  }
  .card {
    padding: 1.25rem 1.1rem;
  }
  .brand {
    font-size: 1.4rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orb {
    display: none;
  }
}

/* ---------- Dark mode ---------- */
@media screen and (max-width: 0px) {
  :root {
    --bg: #0e1118;
    --bg-accent: #161b27;
    --surface: #161b26;
    --surface-2: #1c222f;
    --border: #262d3c;
    --border-strong: #333c4f;
    --text: #e7eaf1;
    --text-muted: #9aa3b6;
    --text-faint: #6b7488;
    --primary: #7c6cf0;
    --primary-strong: #6a59e6;
    --primary-soft: #232238;
    --accent: #8b7bf2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
  .brand-name {
    background: linear-gradient(90deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .orb { opacity: 0.32; }
}

/* ============================================================
   Animated homepage hero (motion-driven)
   ============================================================ */
.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Give the wordmark a little breathing room from the left edge. */
.topbar > .brand {
  margin-left: 0.5rem;
}

.topbar-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.topbar-cta:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

.hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem 0 2.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  box-shadow: var(--shadow);
}
.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.2rem;
}

.hero-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2.34rem, 5.35vw, 4.38rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }
.hero-title .grad {
  background: linear-gradient(100deg, var(--primary), var(--accent) 55%, #5bc0eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 1.2rem auto 0;
  max-width: 540px;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.7rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.42);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.cta:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
}
.hero-note { font-size: 0.82rem; color: var(--text-faint); }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.9rem;
}

/* Hero product peek: one finished result so a first-time visitor sees what the
   tool produces (contact + why it fits + a draft), not just reads about it. */
.hero-preview {
  width: min(100%, 30rem);
  margin: 2rem auto 0;
  padding: 1.15rem 1.2rem 1.3rem;
  text-align: left;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-preview-tag {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

.hero-preview-query {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.hero-preview-query strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.3;
}

.hero-preview-query small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-preview-lead strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero-preview-lead small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hero-preview-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-preview-contact {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.hero-preview-row p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-preview-draft {
  color: var(--text) !important;
  font-style: italic;
}
.pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.46rem 0.95rem;
  box-shadow: var(--shadow);
  will-change: transform;
}

/* Initial states the motion module animates from.
   NOTE: no `will-change` here on purpose - it (like a residual transform) would
   create a stacking context on the animated wrappers and trap the combobox
   dropdown below later fields. The motion module clears any transform it leaves
   once each entrance animation finishes. */
[data-reveal],
.hero-title .word {
  opacity: 0;
}
/* Safety net: if the motion module never runs, reveal anyway */
[data-reveal],
.hero-title .word {
  animation: motionSafety 0.001s linear 0.9s forwards;
}
@keyframes motionSafety {
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-title .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ============================================================
   Landing sections + tool-view redesign
   ============================================================ */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}

/* Stats row with count-ups */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}
.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* How it works */
.how { margin-top: 3.5rem; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.how-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
  margin-bottom: 0.9rem;
}
.how-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; }
.how-step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Final CTA band */
.cta-band { margin-top: 3.5rem; }
.cta-band-inner {
  text-align: center;
  padding: 2.6rem 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 240px at 50% -20%, rgba(124, 108, 240, 0.25), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.cta-band-inner h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Tool view ---------- */
.ghost-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  margin-bottom: 1.4rem;
  text-decoration: none;
  cursor: pointer;
}
.ghost-back:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}
.results-bar {
  display: flex;
  gap: 1.3rem;
  margin-bottom: 1.4rem;
}
/* The back link and "Past searches" share this row as quiet, boxless text
   controls — no border, no fill — so they read as navigation, not as buttons
   competing with the page. Scoped to .results-bar so the site-wide .secondary /
   .ghost-back styles are untouched elsewhere. */
.results-bar .ghost-back,
.results-bar .secondary,
.results-bar #back-btn {
  min-height: 0;
  margin-bottom: 0;
  padding: 0.2rem 0.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}
.results-bar .ghost-back:hover:not(:disabled),
.results-bar .secondary:hover:not(:disabled),
.results-bar #back-btn:hover:not(:disabled) {
  background: transparent;
  color: var(--text);
  transform: none;
}

.tool-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}
.tool-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.7rem;
}
.tool-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tool-sub {
  margin: 0.6rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Frosted card for the tool */
.card.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), var(--surface));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
  gap: 1.15rem;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

.card.glass.search-card {
  padding: 0;
  overflow: visible;
  border-color: rgba(205, 212, 227, 0.9);
}

.search-section {
  padding: 1.35rem 1.45rem;
}

.search-section + .search-section {
  border-top: 1px solid var(--border);
}

.search-section-primary {
  background:
    linear-gradient(135deg, rgba(238, 240, 254, 0.72), rgba(255, 255, 255, 0) 58%);
  border-radius: var(--radius) var(--radius) 0 0;
}

.search-grid {
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(180px, 1fr));
}

.search-section-detail textarea {
  min-height: 112px;
}

.search-yields {
  margin: 0.4rem 0 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.search-actions {
  align-items: center;
  padding-top: 0.2rem;
}

.search-actions .cta {
  min-width: 180px;
  justify-content: center;
}

.search-assist-panel {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(205, 212, 227, 0.88);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 252, 0.96));
  box-shadow: var(--shadow-lg);
}

.search-assist-kicker {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assist-metric {
  display: grid;
  gap: 0.12rem;
  margin: 0.9rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.assist-value {
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.assist-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.assist-scan-visual {
  position: relative;
  min-height: 108px;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    rgba(226, 241, 237, 0.34);
  background-size: 22px 22px, 22px 22px, auto;
}

.assist-scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(85, 183, 170, 0.34), transparent);
  animation: assistScan 3.6s ease-in-out infinite;
}

.assist-node {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(184, 111, 50, 0.14);
}

.assist-node-a { left: 20%; top: 32%; }
.assist-node-b { left: 54%; top: 58%; animation: assistPulse 2.4s ease-in-out infinite; }
.assist-node-c { right: 16%; top: 36%; animation: assistPulse 2.4s ease-in-out 0.8s infinite; }

@keyframes assistScan {
  0%, 100% { transform: translateX(-20%); opacity: 0.45; }
  50% { transform: translateX(210%); opacity: 0.95; }
}

@keyframes assistPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.assist-steps {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.assist-steps span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 760;
}

.assist-steps span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-assist-panel .muted {
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .stats,
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .search-shell {
    grid-template-columns: 1fr;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .search-assist-panel {
    position: static;
  }
  .assist-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero { padding: 1.6rem 0 2rem; }
  .topbar-cta { display: none; }
  .search-section {
    padding: 1.05rem;
  }
  .search-actions .cta {
    width: 100%;
  }
  .assist-steps {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 0px) {
  .card.glass {
    background: linear-gradient(180deg, rgba(30, 36, 50, 0.75), var(--surface));
  }
  .search-section-primary {
    background:
      linear-gradient(135deg, rgba(35, 34, 56, 0.78), rgba(22, 27, 38, 0) 58%);
  }
  .search-assist-panel {
    background: linear-gradient(180deg, rgba(28, 34, 47, 0.86), rgba(22, 27, 38, 0.96));
    border-color: rgba(51, 60, 79, 0.9);
  }
}

/* ---------- Scroll progress bar (motion-driven) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent), #5bc0eb);
  pointer-events: none;
}

/* 3D tilt context for the how-it-works cards */
.how-grid { perspective: 900px; }
.how-step { transform-style: preserve-3d; }

/* Animated gradient sheen on the headline accent words */
.hero-title .grad {
  background-size: 200% 100%;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .grad { animation: none; }
  .scroll-progress { display: none; }
}

/* ======================= Top nav, credits badge ======================= */
.topnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  gap: 0.18rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(23, 32, 29, 0.12);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(8, 13, 18, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-menu {
  position: fixed;
  top: max(0.8rem, env(safe-area-inset-top));
  right: max(0.8rem, env(safe-area-inset-right));
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  width: min(21rem, calc(100% - 1.6rem));
  padding: 1rem;
  border: 1px solid rgba(15, 111, 104, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 254, 250, 0.96), rgba(239, 247, 244, 0.94));
  box-shadow: 0 26px 70px rgba(23, 32, 29, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-head strong,
.mobile-menu-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-head small {
  color: var(--text-muted);
}

.mobile-menu-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-section {
  display: grid;
  gap: 0.44rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 111, 104, 0.12);
}

.mobile-menu-section button,
.mobile-menu-section a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(15, 111, 104, 0.14);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.76);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu-section button:hover,
.mobile-menu-section button:focus-visible,
.mobile-menu-section a:hover,
.mobile-menu-section a:focus-visible {
  border-color: rgba(15, 111, 104, 0.34);
  background: rgba(226, 241, 237, 0.9);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .mobile-menu-toggle {
    display: grid;
  }

  .topnav .navlink[data-go],
  .topnav .navlink-research,
  .topnav .credits-badge,
  .topbar-cta {
    display: none;
  }
}
.navlink {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.navlink:hover { color: var(--primary); background: var(--surface-2); }

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.credits-badge:hover { border-color: var(--primary); }
.credits-dot { color: var(--accent); font-size: 0.7rem; }
.credits-plan {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-left: 0.35rem;
  border-left: 1px solid var(--border-strong);
}
/* Logged out, the badge is the "Sign in" button and this plan span is emptied.
   Left rendered it still adds its divider, padding, and the flex gap slot, which
   pushed the "Sign in" label off-center. Drop it entirely when it has no text. */
.credits-plan:empty {
  display: none;
}

/* ======================= Back-to-top button ======================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.18);
}
.to-top .to-top-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fffefa;
}
.to-top:focus-visible {
  outline: none;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.18), 0 0 0 3px var(--primary-soft);
  border-color: var(--primary);
}
.to-top:active {
  transform: translateY(0) scale(0.94);
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fffefa;
}

/* ======================= Results stats line ======================= */
.results-stats {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}

.results-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.result-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.2;
}

.result-stat-chip strong {
  color: var(--text);
  font-size: 0.92rem;
}

.result-stat-chip.is-success {
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.86);
  border-color: rgba(15, 111, 104, 0.22);
}

.result-stat-chip.is-warning {
  color: #7a4b00;
  background: #fff7e6;
  border-color: #ffd789;
}

.results-stats.shortfall {
  color: #7a4b00;
  background: #fff7e6;
  border-color: #ffd789;
}

@media screen and (max-width: 0px) {
  .results-stats.shortfall {
    color: #ffcf80;
    background: #2a2113;
    border-color: #5a4a1e;
  }
}

.send-to {
  font-size: 0.8rem;
  margin: 0.4rem 0 0.2rem;
}

/* ======================= Pricing / subscriptions ======================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.18);
  padding-top: 2.65rem;
  transform: translateY(-4px);
}
.price-flag {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.price-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0.3rem 0 0.1rem;
  color: var(--text);
}
.price-cur { font-size: 1.3rem; font-weight: 700; vertical-align: super; }
.price-per { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-credits { font-size: 0.95rem; margin-bottom: 1rem; }
.price-credits strong { color: var(--primary-strong); }
.price-mult {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--primary-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.3rem;
}
.price-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.price-feats li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.price-pick { width: 100%; justify-content: center; }
.price-card.owned {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.14);
}
.price-pick.owned:disabled {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.42);
  box-shadow: none;
  cursor: default;
}
.pricing-note { text-align: center; margin-top: 1.6rem; font-size: 0.85rem; }
.linklike {
  background: none;
  border: none;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ======================= Support chat ======================= */
.support-card { max-width: 720px; margin: 1.4rem auto 0; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 260px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 0.4rem;
  margin-bottom: 0.9rem;
}
.chat-msg {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-email-link { color: inherit; font-weight: 700; }
.chat-input-row { display: flex; gap: 0.5rem; }
.chat-input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.chat-input:focus { outline: none; border-color: var(--primary); }
.chat-fallback { margin: 0.7rem 0 0; font-size: 0.82rem; text-align: center; }

.support-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  max-width: 820px;
  margin: 1.5rem auto 0;
}

.support-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.support-contact-card.primary {
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(135deg, rgba(238, 240, 254, 0.95), rgba(255, 255, 255, 0.92));
}

.support-contact-card strong {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.support-contact-card small {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.support-contact-kicker,
.legal-page .tool-kicker {
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-card,
.landing-hero,
.comparison-table-wrap {
  max-width: 900px;
  margin: 1.35rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.policy-card :is(h1, [role="heading"][aria-level="1"]),
.landing-hero :is(h1, [role="heading"][aria-level="1"]) {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.policy-card h2 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.15rem;
}

.policy-card h3,
.landing-grid h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.policy-card h3 {
  margin-top: 1rem;
  color: var(--text);
}

.policy-card p,
.landing-hero p,
.landing-grid p,
.clean-list {
  color: var(--text-muted);
}

.explain-grid,
.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.explain-grid article,
.landing-grid article {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.clean-list {
  padding-left: 1.2rem;
  line-height: 1.7;
}

.landing-page .ghost-back,
.policy-card + .policy-card {
  margin-top: 1rem;
}

.landing-hero {
  display: grid;
  gap: 0.8rem;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 240, 254, 0.88)),
    var(--surface);
}

.landing-hero .cta {
  width: fit-content;
}

/* ---- Audience / use-case page building blocks ---- */
.landing-page > section + section {
  margin-top: 1rem;
}
.audience-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
.audience-block h2 + h2 {
  margin-top: 1.4rem;
}

.feature-benefit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.2rem 0 0;
}
.feature-benefit > div {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.feature-benefit dt {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.feature-benefit dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.workflow-steps {
  counter-reset: wf;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.workflow-steps li {
  position: relative;
  padding: 0.15rem 0 0.15rem 2.4rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.workflow-steps li::before {
  counter-increment: wf;
  content: counter(wf);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-family: var(--data-font, inherit);
  font-size: 0.85rem;
  font-weight: 800;
}
.workflow-steps li strong {
  color: var(--text);
}

.do-avoid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.do-avoid > div {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.do-avoid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.do-avoid > div:first-child h3 {
  color: var(--primary-strong);
}
.do-avoid > div:last-child h3 {
  color: var(--accent-strong, var(--accent));
}

.faq {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}
.faq summary {
  padding: 0.7rem 0.95rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p {
  margin: 0;
  padding: 0.7rem 0.95rem 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.landing-cta {
  text-align: center;
}
.landing-cta h2 {
  margin: 0 0 0.4rem;
}
.landing-cta p {
  margin: 0 auto 0.9rem;
  max-width: 46ch;
}
.landing-cta .cta {
  width: fit-content;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .feature-benefit,
  .do-avoid {
    grid-template-columns: 1fr;
  }
}

.about-page {
  max-width: 1120px;
  margin: 0 auto;
}

.about-hero,
.about-note-band {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: center;
  margin: 1.35rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(226, 241, 237, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
}

.about-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  min-height: 360px;
}

.about-hero-copy :is(h1, [role="heading"][aria-level="1"]) {
  max-width: 12ch;
  margin: 0.35rem 0 0.75rem;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.about-hero-copy p {
  max-width: 66ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.about-origin-story {
  margin: 1rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(238, 244, 239, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
}

.about-origin-story h2 {
  max-width: 18ch;
  margin: 0.45rem 0 0;
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-origin-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.about-origin-copy p {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 111, 104, 0.22);
  color: var(--text-muted);
  line-height: 1.65;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.about-founder-card {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    rgba(255, 254, 250, 0.72);
  background-size: 22px 22px, 22px 22px, auto;
}

.about-founder-avatar {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fffefa;
  font-family: var(--data-font);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 254, 250, 0.22), transparent 22%),
    linear-gradient(135deg, var(--surface-3), var(--primary-strong));
  box-shadow: inset 0 0 0 5px rgba(255, 254, 250, 0.7), 0 22px 56px rgba(23, 32, 29, 0.18);
}

.about-founder-card span {
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.about-founder-card strong {
  font-size: 1.15rem;
  line-height: 1.18;
}

.about-founder-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.about-story-grid article {
  padding: 1.1rem;
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.about-story-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(226, 241, 237, 0.9);
}

.about-story-grid h2,
.about-note-band h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display-font);
  letter-spacing: 0;
}

.about-story-grid h2 {
  font-size: 1.16rem;
}

.about-story-grid p,
.about-note-band p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-note-band {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 1rem;
}

.about-note-band .secondary-cta {
  white-space: nowrap;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--text);
  background: var(--surface-2);
}

/* =========================================================================
   Comparison page — Lead Outreach Agent vs other tools (/compare).
   Reuses .landing-page / .landing-hero / .comparison-table-wrap; everything
   below is theme-token based so it tracks light & dark automatically.
   ========================================================================= */
.cmp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 0.1rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cmp-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}
.cmp-yes { color: var(--primary-strong); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.cmp-partial { color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.cmp-no { color: var(--text-faint); background: color-mix(in srgb, var(--text-faint) 24%, transparent); }

/* Keep the wide matrix scrollable inside its own card at any width. */
.comparison-table-wrap:has(.cmp-matrix) { overflow-x: auto; }

.cmp-matrix { min-width: 860px; }
/* Column headers may wrap to two lines (e.g. "Lead Outreach / Agent") rather
   than overflow into the next column. */
.cmp-matrix th[scope="col"] {
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  vertical-align: bottom;
}
.cmp-matrix th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  position: sticky;
  left: 0;
  z-index: 1;
}
.cmp-matrix td {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
}
.cmp-matrix td .cmp-mark { margin-right: 0.4rem; vertical-align: -0.28rem; }

/* Highlighted "Lead Outreach Agent" column. */
.cmp-matrix .cmp-col-us {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  color: var(--text);
}
.cmp-matrix thead .cmp-col-us {
  color: var(--primary-strong);
  box-shadow: inset 0 3px 0 var(--primary);
}

/* "Which one is right for you?" cards. */
.cmp-best { margin-top: 1.8rem; }
.cmp-section-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.3rem; }
.cmp-section-sub { color: var(--text-muted); margin: 0 0 1.15rem; max-width: 640px; }
.cmp-best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}
.cmp-best-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.cmp-best-card p { margin: 0.5rem 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.cmp-best-tag { font-weight: 700; color: var(--text); }
.cmp-best-us { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.cmp-best-us .cmp-best-tag { color: var(--primary-strong); }

/* Closing CTA band + legal note. */
.cmp-cta-band {
  margin-top: 1.8rem;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cmp-cta-band h2 { margin: 0 0 0.3rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cmp-cta-band p { margin: 0; color: var(--text-muted); max-width: 540px; }
.cmp-cta-band .cta { flex: 0 0 auto; }

.cmp-note {
  margin: 1.25rem 0 0;
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.5;
  max-width: 840px;
}

@media (max-width: 760px) {
  .cmp-cta-band { flex-direction: column; align-items: flex-start; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.8rem;
  max-width: 900px;
  margin: 0.7rem auto 0;
}

.footer-links button,
.footer-links a {
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.1rem 0;
  text-decoration: none;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

/* Grouped footer: labeled columns instead of one flat link row. */
.footer-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem 1.2rem;
  max-width: 940px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h3 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col button,
.footer-col a {
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.83rem;
  cursor: pointer;
  text-decoration: none;
}

.footer-col button:hover,
.footer-col a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1rem;
  max-width: 940px;
  margin: 1.5rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.footer-legal button,
.footer-legal a {
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.footer-legal button:hover,
.footer-legal a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.terms-consent-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terms-consent-actions .cta {
  flex: 1;
}

#terms-consent-cancel {
  white-space: nowrap;
}

.terms-consent-status {
  min-height: 1.4em;
  margin: 0 0 0.65rem !important;
  color: var(--danger) !important;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1rem;
    width: 100%;
    max-width: 100%;
  }
}

.auth-link {
  align-self: center;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .support-contact-grid,
  .explain-grid,
  .landing-grid,
  .about-origin-copy,
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-hero,
  .about-note-band {
    grid-template-columns: 1fr;
  }

  .about-founder-card {
    justify-items: center;
    text-align: center;
  }

  .comparison-table-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 660px;
  }
}

@media screen and (max-width: 0px) {
  .support-contact-card,
  .policy-card,
  .landing-hero,
  .about-origin-story,
  .about-hero,
  .about-note-band,
  .about-story-grid article,
  .comparison-table-wrap {
    background: rgba(20, 24, 38, 0.86);
  }

  .support-contact-card.primary,
  .landing-hero,
  .about-hero,
  .about-note-band {
    background: linear-gradient(135deg, rgba(31, 36, 58, 0.94), rgba(20, 24, 38, 0.9));
  }

  .explain-grid article,
  .landing-grid article,
  .about-founder-card,
  .comparison-table th {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ======================= High-risk search warning ======================= */
.risk-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.25rem 0 0.9rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #8a5a00;
  background: #fff7e6;
  border: 1px solid #ffd789;
  border-radius: var(--radius-sm);
}
.risk-icon { flex-shrink: 0; }
@media screen and (max-width: 0px) {
  .risk-warning { color: #ffcf80; background: #2a2113; border-color: #5a4a1e; }
}

/* ======================= Pricing: billing toggle + team cards ======================= */
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin: 1.4rem auto 0;
  padding: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  justify-self: center;
}
#pricing-view { display: flex; flex-direction: column; align-items: center; }
#pricing-view .tool-head, #pricing-view .pricing-grid, #pricing-view .buy-credits,
#pricing-view .pricing-note, #pricing-view .ghost-back { align-self: stretch; }
.bt-opt {
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bt-opt.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.pricing-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; }
.price-team-note {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0.6rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.price-users {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.price-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.price-tier-lg { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.price-blurb { margin: 0.1rem 0 1rem; color: var(--text-muted); font-size: 0.9rem; }
.seat-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0; border-top: 1px solid var(--border);
}
.seat-row:first-of-type { border-top: none; }
.seat-name { font-weight: 700; font-size: 0.95rem; }
.seat-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.seat-price { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.seat-price .price-cur { font-size: 0.9rem; vertical-align: super; }
.seat-qty { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.8rem; font-size: 0.85rem; }
.seat-qty input { width: 90px; }

/* ======================= Buy credits box ======================= */
.buy-credits {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-top: 1.4rem; padding: 1.2rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.buy-credits h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.buy-credits-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.usd-input {
  display: inline-flex; align-items: center; gap: 0.2rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0 0.6rem; background: var(--surface);
}
.usd-input span { color: var(--text-muted); font-weight: 700; }
.usd-input input { border: none; width: 90px; padding-left: 0.2rem; }
.usd-input input:focus { outline: none; box-shadow: none; }
.buy-preview { font-weight: 700; color: var(--primary-strong); white-space: nowrap; }

/* ======================= Account / auth gate ======================= */
#account-menu-wrap.account-menu-wrap {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1050;
  max-width: min(220px, 24vw);
  filter: none;
}

.account-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  max-width: min(220px, 24vw);
  padding: 0.26rem 0.7rem 0.26rem 0.3rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20, 28, 56, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-menu-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.account-menu-btn[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.account-menu-label {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
  text-align: left;
  line-height: 1.1;
}

.account-name {
  max-width: 154px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 800;
}

.account-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.account-plan-pill::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #10b981;
}

.account-caret {
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-left: 0.02rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.account-menu-btn[aria-expanded="true"] .account-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 1200;
  width: min(304px, calc(100vw - 36px));
  max-height: min(448px, calc(100vh - 118px));
  overflow-y: auto;
  padding: 0.68rem;
  border: 1px solid rgba(205, 212, 227, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 253, 0.97));
  box-shadow: 0 24px 66px rgba(20, 28, 56, 0.22), 0 3px 12px rgba(20, 28, 56, 0.08);
  backdrop-filter: blur(18px);
  transform-origin: right top;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.5rem 0.55rem 0.68rem;
}

.account-menu-mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.account-menu-head-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.account-menu-head-title {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.account-menu-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.account-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.62rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.account-menu-item:hover:not(:disabled) {
  background: rgba(238, 240, 254, 0.78);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.menu-shortcut {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
}

.account-language-row select {
  width: 156px;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

@media screen and (max-width: 0px) {
  .account-menu-btn {
    background:
      linear-gradient(180deg, rgba(28, 34, 47, 0.96), rgba(22, 27, 38, 0.94));
    border-color: rgba(51, 60, 79, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.32);
  }
  .account-menu-btn:hover:not(:disabled),
  .account-menu-btn[aria-expanded="true"] {
    border-color: rgba(139, 123, 242, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.42);
  }
  .account-menu {
    background:
      linear-gradient(180deg, rgba(28, 34, 47, 0.98), rgba(22, 27, 38, 0.97));
    border-color: rgba(51, 60, 79, 0.96);
    box-shadow: 0 24px 66px rgba(0, 0, 0, 0.46), 0 3px 12px rgba(0, 0, 0, 0.28);
  }
  .account-menu-item:hover:not(:disabled) {
    background: rgba(124, 108, 240, 0.14);
  }
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(3px);
}

.account-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.auth-panel {
  position: relative;
  display: block;
  width: min(400px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 0;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(23, 32, 29, 0.22);
}

.auth-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.auth-close:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
}

.auth-copy {
  text-align: center;
  margin-bottom: 1.2rem;
}

.auth-copy .tool-kicker {
  display: none;
}

.auth-copy h2 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.auth-copy .muted {
  max-width: 320px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-box {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Segmented Log in / Sign up toggle. Falls back to a single clean segment when
   sign-up is unavailable (that tab is hidden by JS). */
.auth-tabs {
  display: flex;
  flex-direction: row;
  order: 1;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 100%;
}

.auth-tab {
  flex: 1 1 0;
  min-height: 40px;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  box-shadow: none;
}

.auth-tab.active {
  color: var(--primary-strong);
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(23, 32, 29, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  order: 3;
  gap: 0.6rem;
  margin-top: 0.1rem;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: none;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.auth-terms-check label {
  cursor: pointer;
}

.auth-form .auth-terms-check input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  margin: 0.12rem 0 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--primary);
}

.auth-terms-check a {
  color: var(--primary-strong);
  font-weight: 700;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 5.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.48rem;
  transform: translateY(-50%);
  min-width: 4.05rem;
  min-height: 2.25rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(23, 32, 29, 0.16);
  border-radius: 999px;
  background: rgba(226, 241, 237, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: rgba(15, 111, 104, 0.38);
  background: rgba(216, 246, 240, 0.96);
}

.auth-form .cta {
  min-height: 46px;
  margin-top: 0.3rem;
  color: #fffefa;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-weight: 700;
  box-shadow: none;
}

.auth-form .cta:hover:not(:disabled) {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  box-shadow: none;
  transform: none;
}

.google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  order: 2;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.google-login:hover {
  border-color: var(--primary);
  color: var(--text);
}

.auth-message {
  order: 4;
  min-height: 1.2em;
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-message:not(:empty) {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-message.auth-message-success {
  border-color: rgba(37, 129, 92, 0.38);
  background: rgba(222, 246, 235, 0.9);
  color: #145c43;
}

.auth-message.auth-message-error {
  border-color: rgba(184, 92, 47, 0.38);
  background: rgba(255, 239, 226, 0.94);
  color: #7a351d;
}

.auth-reset-support {
  align-self: center;
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 750;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
  max-width: 1080px;
  margin: 1.4rem auto 0;
}

.settings-form,
.settings-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.settings-side {
  position: sticky;
  top: 6rem;
}

.settings-panel {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(205, 212, 227, 0.85);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94));
  box-shadow: 0 18px 48px rgba(20, 28, 56, 0.08), 0 1px 2px rgba(20, 28, 56, 0.04);
}

.settings-language-panel {
  border-color: rgba(124, 108, 240, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 245, 255, 0.96));
}

.settings-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.settings-panel-head h2,
.settings-panel h2 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.settings-panel-kicker {
  margin: 0 0 0.18rem;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-panel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.settings-grid label,
.settings-wide {
  min-width: 0;
  margin-bottom: 0;
}

.settings-wide {
  margin-top: 0.85rem;
}

#settings-email-language,
#account-language-select {
  min-width: 0;
}

#settings-sender-context {
  min-height: 112px;
}

.settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.2rem 0.1rem 0;
}

.settings-actions .cta {
  min-width: 170px;
}

.settings-status {
  min-height: 1.25em;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-account-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-top: 0.75rem;
  padding: 0.78rem;
  border: 1px solid rgba(227, 231, 239, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.settings-avatar-mini {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.settings-account-card span:last-child {
  display: grid;
  min-width: 0;
}

.settings-account-card strong,
.settings-stat-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-account-card small {
  color: var(--text-muted);
  font-weight: 700;
}

.settings-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(227, 231, 239, 0.9);
}

.settings-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-stat-row span {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.settings-stat-row strong {
  max-width: 58%;
  color: var(--text);
  text-align: right;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-grid,
  .settings-side {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    padding: 1rem;
  }

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions .cta {
    width: 100%;
  }

  .settings-stat-row strong {
    max-width: 52%;
  }
}

@media (max-width: 760px) {
  .auth-panel { width: min(420px, 100%); }
  .account-email { max-width: 135px; }
  #account-menu-wrap.account-menu-wrap {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
  .account-menu-btn {
    min-height: 46px;
    max-width: min(220px, calc(100vw - 24px));
    padding: 0.34rem 0.62rem 0.34rem 0.38rem;
  }
  .account-avatar {
    width: 2.1rem;
    height: 2.1rem;
  }
  .account-menu-label { display: grid; }
  .account-name { max-width: 118px; }
  .account-menu {
    left: 0;
    width: min(300px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 88px));
  }
  .account-language-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
  }
  .account-language-row select {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .account-menu-btn {
    max-width: calc(100vw - 24px);
  }
  .account-name {
    max-width: 92px;
  }
  .account-plan-pill {
    font-size: 0.68rem;
  }
}

/* ============================================================
   Studio refresh: prospecting command desk
   ============================================================ */
:root {
  --bg: #f3f6f1;
  --bg-accent: #dfe9e0;
  --surface: #fffefa;
  --surface-2: #eef4ef;
  --surface-3: #19211f;
  --border: #d7dfd5;
  --border-strong: #aab9ac;
  --text: #17201d;
  --text-muted: #5b6961;
  --text-faint: #8a978e;
  --primary: #0f6f68;
  --primary-strong: #084f4a;
  --primary-soft: #e2f1ed;
  --accent: #b86f32;
  --accent-strong: #8f4f20;
  --plum: #6b4d7d;
  --danger: #bf3d35;
  --shadow: 0 1px 2px rgba(23, 32, 29, 0.05), 0 12px 32px rgba(23, 32, 29, 0.09);
  --shadow-lg: 0 18px 52px rgba(23, 32, 29, 0.16), 0 2px 8px rgba(23, 32, 29, 0.06);
  --focus-ring: 0 0 0 3px rgba(15, 111, 104, 0.2);
  --radius: 8px;
  --radius-sm: 6px;
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --data-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--body-font);
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 29, 0.03) 1px, transparent 1px),
    radial-gradient(900px 420px at 18% 0%, rgba(15, 111, 104, 0.13), transparent 64%),
    radial-gradient(880px 520px at 88% 4%, rgba(184, 111, 50, 0.12), transparent 68%),
    linear-gradient(180deg, #f8faf5 0%, var(--bg) 46%, #edf3f0 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.bg-orbs {
  display: none;
}

.page {
  max-width: 1180px;
  padding: 1.35rem 1.25rem 3rem;
}

.topbar {
  position: sticky;
  top: 14px;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(170, 185, 172, 0.7);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 14px 42px rgba(23, 32, 29, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  width: 2.36rem;
  height: 2.36rem;
  border: 1px solid rgba(15, 111, 104, 0.22);
  border-radius: 10px;
  color: #fffefa;
  font-family: var(--data-font);
  font-size: 0;
  background:
    linear-gradient(145deg, rgba(20, 129, 119, 0.94) 0%, rgba(8, 79, 74, 0.9) 54%, rgba(17, 32, 29, 0.9) 100%),
    rgba(17, 32, 29, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(15, 111, 104, 0.22);
  animation: none;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-mark::before {
  content: "L";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fffefa;
  -webkit-text-fill-color: #fffefa;
  font-family: var(--display-font);
  font-size: 1.44rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
  transform: translateY(-0.02rem);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.brand-name {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: var(--display-font);
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

@media (min-width: 901px) {
  html[data-device-mode="desktop"] .topnav {
    flex-wrap: nowrap;
  }

  html[data-device-mode="desktop"] #auth-open {
    display: none;
  }
}

.navlink,
.credits-badge,
.topbar-cta,
.ghost-back,
.bt-opt {
  min-height: 38px;
  border-radius: 999px;
  border-color: transparent;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}

.navlink:hover,
.credits-badge:hover,
.topbar-cta:hover,
.ghost-back:hover:not(:disabled),
.bt-opt:hover {
  color: var(--text);
  background: rgba(15, 111, 104, 0.08);
  border-color: rgba(15, 111, 104, 0.16);
}

.topbar-cta,
.cta,
button.price-pick {
  color: #fffefa;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary) 52%, #16877e);
  box-shadow: 0 14px 34px rgba(15, 111, 104, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.topbar-cta:hover,
.cta:hover:not(:disabled),
button.price-pick:hover:not(:disabled) {
  background: linear-gradient(135deg, #073d39, var(--primary) 55%, #20968c);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 111, 104, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.combo-control:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.credits-badge {
  background: rgba(238, 244, 239, 0.72);
  border-color: rgba(170, 185, 172, 0.6);
}

.credits-dot {
  color: var(--accent);
}

.theme-toggle {
  gap: 0.42rem;
  min-width: 0;
  padding: 0.3rem 0.56rem 0.3rem 0.36rem;
  border: 1px solid rgba(170, 185, 172, 0.62);
  background: rgba(255, 254, 250, 0.74);
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.36rem;
  height: 1.18rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 999px;
  background: rgba(226, 241, 237, 0.86);
  box-shadow: inset 0 1px 2px rgba(23, 32, 29, 0.08);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  position: absolute;
  left: 0.12rem;
  top: 50%;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 999px;
  color: #fffefa;
  background: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: left 0.18s ease, background 0.18s ease, color 0.18s ease;
}

/* The toggle switch (icon + position) already conveys the theme, and the button
   carries an aria-label, so the text label is redundant. Keep it for screen
   readers but out of the layout — this reclaims ~60px in the top bar so the
   nav + CTA fit inline in longer-label languages instead of collapsing early. */
.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html[data-resolved-theme="dark"] .theme-toggle-track {
  border-color: rgba(85, 183, 170, 0.28);
  background: rgba(17, 23, 20, 0.9);
}

html[data-resolved-theme="dark"] .theme-toggle-icon {
  left: calc(100% - 1rem);
  color: #17201d;
  background: #f5f2e9;
}

.hero {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  min-height: auto;
  display: grid;
  place-items: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) 1rem clamp(1.8rem, 4vw, 2.8rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 1px solid rgba(170, 185, 172, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(15, 111, 104, 0.18), transparent 23%),
    radial-gradient(circle at 50% 38%, transparent 0 16%, rgba(23, 32, 29, 0.08) 16.2% 16.7%, transparent 17% 29%, rgba(184, 111, 50, 0.16) 29.2% 29.8%, transparent 30%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.76), rgba(255, 254, 250, 0.9));
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent 0 72%, rgba(243, 246, 241, 0.96));
}

.eyebrow {
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.86);
  border-color: rgba(15, 111, 104, 0.18);
  box-shadow: none;
  font-family: var(--data-font);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-dot {
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 111, 50, 0.14);
}

.hero-title,
.tool-title,
.section-title,
.policy-card :is(h1, [role="heading"][aria-level="1"]),
.landing-hero :is(h1, [role="heading"][aria-level="1"]),
.cta-band-inner h2,
.price-amount {
  font-family: var(--display-font);
  letter-spacing: 0;
}

.hero-title {
  max-width: 980px;
  margin: 0.35rem auto 0;
  font-size: clamp(2.34rem, 5.35vw, 4.38rem);
  line-height: 0.96;
  font-weight: 700;
  color: var(--text);
}

.hero-title .grad {
  background: linear-gradient(90deg, var(--primary-strong), var(--primary), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.hero-command-board {
  width: min(720px, 100%);
  margin: 1.35rem auto 0;
  border: 1px solid rgba(128, 160, 150, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(232, 244, 240, 0.88)),
    radial-gradient(circle at 22% 18%, rgba(15, 111, 104, 0.12), transparent 32%),
    var(--surface);
  box-shadow: 0 26px 68px rgba(23, 32, 29, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.command-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.74rem 0.95rem;
  border-bottom: 1px solid rgba(170, 185, 172, 0.54);
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.board-live-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 111, 50, 0.14);
}

.command-board-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.88rem;
}

.radar-plate {
  position: relative;
  aspect-ratio: 1;
  min-height: 154px;
  border: 1px solid rgba(15, 111, 104, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 111, 104, 0.16), transparent 9%),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(15, 111, 104, 0.08) 35%, transparent 36%),
    linear-gradient(90deg, rgba(15, 111, 104, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    #eaf3ef;
  background-size: auto, auto, 24px 24px, 24px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(15, 111, 104, 0.28);
  border-radius: 50%;
}

.radar-ring.ring-b {
  inset: 31%;
}

.radar-sweep {
  position: absolute;
  inset: 50% 50% auto auto;
  width: 50%;
  height: 3px;
  transform-origin: 100% 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(184, 111, 50, 0.92));
  box-shadow: 0 0 18px rgba(184, 111, 50, 0.3);
  animation: radarSweep 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(15, 111, 104, 0.16);
}

.dot-a { left: 28%; top: 32%; }
.dot-b { left: 64%; top: 45%; background: var(--accent); box-shadow: 0 0 0 5px rgba(184, 111, 50, 0.16); }
.dot-c { left: 48%; top: 70%; background: var(--plum); box-shadow: 0 0 0 5px rgba(107, 77, 125, 0.14); }

.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  border: 1px solid rgba(15, 111, 104, 0.24);
  border-radius: 50%;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.72);
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.12);
  transform: translate(-50%, -50%);
}

.radar-core strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display-font);
  font-size: 1.24rem;
  line-height: 0.88;
}

.radar-core small {
  color: var(--text-muted);
  font-family: var(--data-font);
  font-size: 0.52rem;
  line-height: 1;
  text-transform: uppercase;
}

.lead-signal-stack {
  display: grid;
  gap: 0.62rem;
  align-content: center;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 3.55rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(170, 185, 172, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.08), transparent 44%),
    rgba(255, 254, 250, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.signal-row.strong {
  border-color: rgba(15, 111, 104, 0.42);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.14), transparent 48%),
    rgba(226, 241, 237, 0.88);
}

.signal-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.signal-name {
  color: var(--text);
  font-weight: 760;
  line-height: 1.15;
}

.signal-meta {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-chip {
  flex: none;
  padding: 0.26rem 0.55rem;
  border: 1px solid rgba(15, 111, 104, 0.14);
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.9);
  font-family: var(--data-font);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.section-head .section-title {
  margin-bottom: 0.72rem;
}

.section-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.home-usecases,
.home-result-preview,
.home-quality {
  margin-top: clamp(3.4rem, 6vw, 5rem);
}

.home-research-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin: 0 0 clamp(3.4rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(0.25rem, 2vw, 1.25rem);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-2);
}

.home-research-copy .section-title {
  max-width: 18ch;
  margin: 0.55rem 0 0.7rem;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  line-height: 1.06;
}

.home-research-copy p {
  max-width: 60ch;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.home-research-copy .cta {
  margin-top: 1.15rem;
  text-decoration: none;
}

.home-research-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--border-strong);
}

.home-research-facts div {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 8.5rem;
  padding: 0.8rem clamp(0.7rem, 2vw, 1.15rem);
  border-right: 1px solid var(--border-strong);
}

.home-research-facts strong {
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-research-facts span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.usecase-card,
.quality-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 249, 245, 0.86)),
    var(--surface);
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.1);
}

.usecase-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 0;
  padding: 1.15rem;
}

.usecase-card::after,
.quality-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.48;
}

.usecase-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
}

.usecase-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.82);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 900;
}

.usecase-card h3,
.quality-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.usecase-card p,
.quality-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.usecase-recipe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.usecase-recipe div {
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(15, 111, 104, 0.11);
  border-radius: 8px;
  background: rgba(226, 241, 237, 0.58);
}

.usecase-recipe small {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.usecase-recipe span {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.usecase-card .linklike {
  align-self: end;
  justify-self: start;
  margin-top: 0.1rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 999px;
  color: #fffefa;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 10px 24px rgba(15, 111, 104, 0.18);
  font-size: 0.84rem;
}

.usecase-card:hover,
.quality-card:hover {
  border-color: rgba(15, 111, 104, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.home-result-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.result-preview-copy {
  text-align: left;
}

.result-preview-copy .section-title,
.result-preview-copy .section-sub {
  margin-left: 0;
  text-align: left;
}

.result-preview-table {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(170, 185, 172, 0.66);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.045) 1px, transparent 1px),
    rgba(255, 254, 250, 0.9);
  background-size: 30px 30px;
  box-shadow: 0 22px 62px rgba(23, 32, 29, 0.12);
}

.preview-row {
  display: grid;
  grid-template-columns: 1.05fr 0.62fr 1.3fr 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.1rem;
  padding: 0.78rem 0.95rem;
  border-top: 1px solid rgba(170, 185, 172, 0.52);
  color: var(--text);
  font-size: 0.88rem;
}

.preview-row:first-child {
  border-top: 0;
}

.preview-head {
  min-height: 2.8rem;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.78);
  font-family: var(--data-font);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.preview-row strong,
.preview-row small {
  display: block;
}

.preview-row small {
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.preview-pill {
  display: inline-grid;
  justify-self: start;
  place-items: center;
  min-width: 4rem;
  padding: 0.26rem 0.58rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.92);
  font-family: var(--data-font);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.preview-pill.alt {
  color: #6d451f;
  background: rgba(243, 222, 198, 0.9);
}

.preview-pill.draft {
  color: #433757;
  background: rgba(232, 222, 241, 0.9);
}

.home-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.quality-card {
  padding: 1.15rem;
}

.quality-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fffefa;
  background: var(--surface-3);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 900;
}

.cta-band-inner p {
  max-width: 560px;
  margin: -0.45rem auto 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.stats,
.how-grid,
.pricing-grid,
.landing-grid {
  gap: 0.9rem;
}

.stat,
.how-step,
.price-card,
.policy-card,
.landing-hero,
.comparison-table-wrap,
.support-contact-card,
.support-card,
.settings-panel,
.card,
.buy-credits,
.search-assist-panel {
  border-radius: 8px;
  border-color: rgba(170, 185, 172, 0.66);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow);
}

.stat,
.how-step,
.price-card,
.support-contact-card,
.settings-panel,
.usecase-card,
.quality-card {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease;
}

.stat:hover,
.how-step:hover,
.price-card:hover,
.support-contact-card:hover,
.settings-panel:hover,
.usecase-card:hover,
.quality-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 111, 104, 0.3);
  box-shadow: var(--shadow-lg);
}

.stat-num,
.price-credits strong,
.buy-preview {
  color: var(--primary-strong);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.how-num,
.step-badge,
.settings-panel-icon,
.settings-avatar-mini,
.account-avatar,
.account-menu-mini-avatar {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-3), #27332f);
  color: #fffefa;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.18);
}

.tool-head {
  max-width: 720px;
}

.tool-kicker,
.search-assist-kicker,
.settings-panel-kicker,
.support-contact-kicker,
.legal-page .tool-kicker {
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.88);
  border: 1px solid rgba(15, 111, 104, 0.13);
  border-radius: 999px;
  font-family: var(--data-font);
  letter-spacing: 0;
}

/* Eyebrow kicker badges (e.g. "LEAD FINDER") add noise without adding meaning,
   so they're hidden site-wide. Section headings already say what each view is. */
.tool-kicker,
.search-assist-kicker,
.settings-panel-kicker,
.support-contact-kicker {
  display: none;
}

.tool-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
}

.card.glass,
.card.glass.search-card,
.search-assist-panel,
.auth-panel,
.account-menu,
.settings-panel,
.policy-card,
.landing-hero,
.comparison-table-wrap,
.buy-credits {
  background: rgba(255, 254, 250, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-shell {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.search-section-primary {
  background:
    linear-gradient(135deg, rgba(226, 241, 237, 0.78), rgba(255, 254, 250, 0) 62%);
  border-radius: 8px 8px 0 0;
}

.search-section + .search-section {
  border-top-color: rgba(170, 185, 172, 0.62);
}

.search-assist-panel {
  background:
    linear-gradient(180deg, rgba(25, 33, 31, 0.94), rgba(25, 33, 31, 0.86)),
    var(--surface-3);
  color: #fffefa;
  border-color: rgba(25, 33, 31, 0.24);
}

.search-assist-panel .search-assist-kicker {
  color: #bfe0d9;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.search-assist-panel .assist-value,
.search-assist-panel .assist-steps span,
.search-assist-panel .muted {
  color: #fffefa;
}

.search-assist-panel .assist-label {
  color: rgba(255, 254, 250, 0.66);
}

.home-founder-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 980px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.92), rgba(226, 241, 237, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.founder-note-mark {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  color: #fffefa;
  font-family: var(--data-font);
  font-size: 0.92rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--surface-3), var(--primary-strong));
  box-shadow: inset 0 0 0 3px rgba(255, 254, 250, 0.72), 0 16px 34px rgba(23, 32, 29, 0.16);
}

.founder-note-copy {
  min-width: 0;
}

.founder-note-copy .tool-kicker {
  margin-bottom: 0.45rem;
}

.founder-note-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display-font);
  font-size: clamp(1.18rem, 3vw, 1.7rem);
  line-height: 1.08;
}

.founder-note-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-founder-note .secondary-cta {
  white-space: nowrap;
}

.search-assist-panel .assist-scan-visual {
  border-color: rgba(255, 254, 250, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 254, 250, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 22px 22px, 22px 22px, auto;
}

.search-assist-panel .assist-scan-line {
  background: linear-gradient(90deg, transparent, rgba(191, 224, 217, 0.28), transparent);
}

.assist-steps span::before {
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 111, 50, 0.16);
}

input,
select,
textarea,
.combo-control,
.combo-panel,
.chat-input,
.usd-input {
  border-radius: 6px;
  border-color: var(--border-strong);
  background: rgba(255, 254, 250, 0.88);
}

input:focus,
select:focus,
textarea:focus,
.combo-control:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.combo-option.selected {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.progress-track {
  background: rgba(15, 111, 104, 0.12);
}

.progress-fill,
.scroll-progress {
  background: linear-gradient(90deg, var(--primary-strong), var(--primary), var(--accent));
}

.price-card.featured {
  border-color: rgba(15, 111, 104, 0.5);
  box-shadow: 0 24px 64px rgba(15, 111, 104, 0.2);
}

.price-flag {
  background: linear-gradient(135deg, var(--surface-3), var(--primary-strong));
}

.price-feats li::before {
  content: "+";
  color: var(--accent-strong);
}

.support-contact-card.primary {
  border-color: rgba(15, 111, 104, 0.28);
  background:
    linear-gradient(135deg, rgba(226, 241, 237, 0.94), rgba(255, 254, 250, 0.9)),
    var(--surface);
}

.landing-hero {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(226, 241, 237, 0.84)),
    var(--surface);
}

.comparison-table th {
  background: rgba(226, 241, 237, 0.8);
}

.auth-backdrop {
  background: rgba(23, 32, 29, 0.48);
}

.auth-panel {
  border-radius: 16px;
  border: 1px solid rgba(170, 185, 172, 0.72);
}

.auth-form input,
.auth-form .cta,
.google-login {
  border-radius: 12px;
}

#account-menu-wrap.account-menu-wrap {
  filter: none;
}

.account-menu-btn {
  border-radius: 999px;
  border-color: rgba(170, 185, 172, 0.7);
  background: rgba(255, 254, 250, 0.9);
}

.account-menu {
  border-radius: 8px;
}

.site-footer {
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    top: auto;
    align-items: flex-start;
    border-radius: 8px;
  }

  .topnav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .command-board-body {
    grid-template-columns: 1fr;
  }

  .radar-plate {
    min-height: 210px;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-result-preview {
    grid-template-columns: 1fr;
  }

  .result-preview-copy,
  .result-preview-copy .section-title,
  .result-preview-copy .section-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0.75rem 0.75rem 2rem;
  }

  .topbar {
    gap: 0.65rem;
    padding: 0.65rem;
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    width: 100%;
  }

  .brand-name {
    font-size: 1.18rem;
    white-space: normal;
    line-height: 1.1;
  }

  .topnav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .navlink,
  .credits-badge {
    min-height: 34px;
    padding-inline: 0.62rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  .topbar-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 1.8rem 0.72rem 1.65rem;
  }

  .hero-title {
    font-size: clamp(2.32rem, 12.8vw, 3.25rem);
    line-height: 0.98;
  }

  .hero-command-board {
    margin-top: 1.1rem;
  }

  .command-board-head {
    font-size: 0.62rem;
  }

  .command-board-body {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.62rem;
  }

  .radar-plate {
    min-height: 104px;
  }

  .signal-row {
    padding: 0.46rem 0.5rem;
    gap: 0.3rem;
  }

  .signal-name {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .signal-chip {
    padding: 0.18rem 0.38rem;
    font-size: 0.6rem;
  }

  .home-usecases,
  .home-result-preview,
  .home-quality {
    margin-top: 2.4rem;
  }

  .section-head {
    margin-bottom: 1rem;
  }

  .usecase-grid,
  .home-quality {
    grid-template-columns: 1fr;
  }

  .usecase-recipe {
    grid-template-columns: 1fr;
  }

  .usecase-card {
    min-height: auto;
  }

  .home-research-band {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.4rem;
    padding: 1.35rem 0.25rem;
  }

  .home-research-copy {
    text-align: left;
  }

  .home-research-facts {
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }

  .home-research-facts div {
    min-height: 6.8rem;
    padding-inline: 0.55rem;
  }

  .home-research-facts strong {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .home-research-facts span {
    font-size: 0.72rem;
  }

  .result-preview-table {
    overflow-x: auto;
  }

  .preview-row {
    grid-template-columns: minmax(132px, 1fr) minmax(74px, 0.58fr) minmax(180px, 1.2fr) minmax(150px, 1fr);
    min-width: 680px;
  }

  .cta-band-inner p {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  .chat-input-row {
    flex-direction: column;
  }
}

@media screen and (max-width: 0px) {
  :root {
    --bg: #111714;
    --bg-accent: #17211d;
    --surface: #18211e;
    --surface-2: #202b27;
    --surface-3: #f5f2e9;
    --border: #2d3a34;
    --border-strong: #4a5c54;
    --text: #f6f3eb;
    --text-muted: #b9c5bd;
    --text-faint: #85948b;
    --primary: #55b7aa;
    --primary-strong: #8bd3ca;
    --primary-soft: rgba(85, 183, 170, 0.14);
    --accent: #d9904c;
    --accent-strong: #f0ad67;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.34), 0 16px 38px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 62px rgba(0, 0, 0, 0.48);
  }

  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      radial-gradient(900px 420px at 18% 0%, rgba(85, 183, 170, 0.16), transparent 64%),
      radial-gradient(880px 520px at 88% 4%, rgba(217, 144, 76, 0.13), transparent 68%),
      #111714;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
  }

  .topbar,
  .hero-command-board,
  .stat,
  .how-step,
  .price-card,
  .policy-card,
  .landing-hero,
  .comparison-table-wrap,
  .support-contact-card,
  .support-card,
  .settings-panel,
  .card,
  .buy-credits,
  .usecase-card,
  .quality-card,
  .result-preview-table,
  .auth-panel,
  .account-menu-btn {
    background: rgba(24, 33, 30, 0.86);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(85, 183, 170, 0.12) 1px, transparent 1px),
      linear-gradient(0deg, rgba(85, 183, 170, 0.1) 1px, transparent 1px),
      radial-gradient(circle at 50% 38%, rgba(85, 183, 170, 0.14), transparent 23%),
      radial-gradient(circle at 50% 38%, transparent 0 16%, rgba(255, 255, 255, 0.08) 16.2% 16.7%, transparent 17% 29%, rgba(217, 144, 76, 0.18) 29.2% 29.8%, transparent 30%),
      linear-gradient(180deg, rgba(17, 23, 20, 0.82), rgba(17, 23, 20, 0.94));
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
  }

  .hero::after {
    background: linear-gradient(180deg, transparent 0 70%, rgba(17, 23, 20, 0.98));
  }

  .radar-plate,
  input,
  select,
  textarea,
  .combo-control,
  .combo-panel,
  .chat-input,
  .usd-input,
  .signal-row {
    background: rgba(17, 23, 20, 0.6);
  }

  .hero-command-board {
    border-color: rgba(74, 92, 84, 0.86);
    background:
      linear-gradient(135deg, rgba(24, 33, 30, 0.92), rgba(15, 24, 21, 0.88)),
      radial-gradient(circle at 22% 18%, rgba(85, 183, 170, 0.14), transparent 32%);
  }

  .command-board-head {
    border-bottom-color: rgba(74, 92, 84, 0.72);
  }

  .radar-core {
    color: #dff8f2;
    background: rgba(17, 23, 20, 0.72);
  }

  .signal-meta,
  .radar-core small {
    color: rgba(255, 254, 250, 0.62);
  }

  .usecase-card,
  .quality-card,
  .result-preview-table {
    border-color: rgba(74, 92, 84, 0.78);
  }

  .usecase-icon,
  .preview-head,
  .preview-pill {
    background: rgba(85, 183, 170, 0.14);
  }

  .preview-row {
    border-top-color: rgba(74, 92, 84, 0.62);
  }

  .preview-pill.alt,
  .preview-pill.draft {
    color: #f6f3eb;
    background: rgba(217, 144, 76, 0.13);
  }

  .search-assist-panel {
    background: rgba(246, 243, 235, 0.92);
    color: #17201d;
  }

  .search-assist-panel .assist-value,
  .search-assist-panel .assist-steps span,
  .search-assist-panel .muted {
    color: #17201d;
  }

  .search-assist-panel .assist-label {
    color: #5b6961;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep,
  .assist-scan-line,
  .assist-node {
    animation: none;
  }
}

/* ============================================================
   Account and settings polish
   ============================================================ */
#settings-view .tool-head {
  max-width: 760px;
}

#settings-view .settings-layout {
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: 1.15rem;
  max-width: 1180px;
}

#settings-view .settings-form,
#settings-view .settings-side {
  gap: 1.05rem;
}

#settings-view .settings-panel {
  border-color: rgba(170, 185, 172, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.8)),
    var(--surface);
}

#settings-view .settings-profile-panel {
  background:
    linear-gradient(90deg, rgba(25, 33, 31, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(226, 241, 237, 0.86));
  background-size: 18px 18px, auto;
}

.settings-profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(170, 185, 172, 0.52);
}

.settings-avatar-large,
.settings-avatar-mini,
.account-avatar,
.account-menu-mini-avatar {
  border-radius: 50%;
}

.settings-avatar-large {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.7rem;
  height: 4.7rem;
  border: 3px solid rgba(255, 254, 250, 0.92);
  color: #fffefa;
  font-family: var(--data-font);
  font-size: 1.35rem;
  font-weight: 850;
  background: linear-gradient(135deg, var(--surface-3), #2c3a35);
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.2);
}

.settings-profile-copy {
  min-width: 0;
}

.settings-profile-copy h2 {
  overflow: hidden;
  margin: 0.1rem 0 0.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.settings-profile-copy .muted {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#settings-view .settings-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#settings-view .settings-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#settings-view input,
#settings-view select,
#settings-view textarea {
  min-height: 46px;
  border-color: rgba(170, 185, 172, 0.82);
  background: rgba(255, 254, 250, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#settings-view textarea {
  line-height: 1.55;
}

.settings-preferences-panel {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(245, 239, 225, 0.7)),
    var(--surface);
}

.settings-toggle-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(170, 185, 172, 0.62);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
}

.settings-toggle-row input {
  flex: 0 0 auto;
  width: 1.18rem;
  height: 1.18rem;
  min-height: auto;
  accent-color: var(--primary);
}

.settings-toggle-row span {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.settings-toggle-row strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.settings-toggle-row small {
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-account-card {
  border-color: rgba(170, 185, 172, 0.68);
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.88), rgba(226, 241, 237, 0.58));
}

.settings-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.settings-mini-actions button {
  min-height: 40px;
  border: 1px solid rgba(170, 185, 172, 0.74);
  border-radius: 999px;
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 254, 250, 0.76);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.settings-mini-actions button:hover,
.settings-mini-actions button:focus-visible {
  border-color: rgba(15, 111, 104, 0.38);
  background: rgba(226, 241, 237, 0.88);
  transform: translateY(-1px);
}

.settings-mini-actions button:active {
  transform: translateY(0);
}

.settings-health-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.settings-health-list span {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.settings-health-list small {
  color: inherit;
  font: inherit;
}

.settings-health-list strong {
  display: block;
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(15, 111, 104, 0.12);
}

.account-menu-btn .account-avatar {
  box-shadow: inset 0 0 0 2px rgba(255, 254, 250, 0.74), 0 8px 20px rgba(23, 32, 29, 0.16);
}

.account-menu-mini-avatar {
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  #settings-view .settings-layout {
    grid-template-columns: 1fr;
  }

  #settings-view .settings-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }
}

@media (max-width: 760px) {
  #settings-view .settings-side,
  #settings-view .settings-grid-three,
  #settings-view .settings-grid-four {
    grid-template-columns: 1fr;
  }

  .settings-profile-hero {
    align-items: flex-start;
  }

  .settings-avatar-large {
    width: 4rem;
    height: 4rem;
    font-size: 1.15rem;
  }
}

@media (max-width: 520px) {
  .settings-profile-hero {
    flex-direction: column;
  }

  .settings-profile-copy h2,
  .settings-profile-copy .muted {
    white-space: normal;
  }

  .settings-mini-actions {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 0px) {
  #settings-view .settings-panel,
  #settings-view .settings-profile-panel,
  #settings-view .settings-preferences-panel {
    border-color: rgba(74, 92, 84, 0.84);
    background:
      linear-gradient(180deg, rgba(24, 33, 30, 0.92), rgba(32, 43, 39, 0.82)),
      var(--surface);
  }

  .settings-profile-hero {
    border-bottom-color: rgba(74, 92, 84, 0.78);
  }

  #settings-view input,
  #settings-view select,
  #settings-view textarea,
  .settings-toggle-row,
  .settings-account-card,
  .settings-mini-actions button {
    border-color: rgba(74, 92, 84, 0.84);
    background: rgba(17, 23, 20, 0.58);
  }

  .settings-mini-actions button:hover,
  .settings-mini-actions button:focus-visible {
    background: rgba(85, 183, 170, 0.12);
  }
}

@media (max-width: 640px) {
  .topbar {
    overflow: hidden;
  }

  .topnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .topnav > * {
    width: 100%;
    min-width: 0;
  }

  .topnav .credits-badge {
    grid-column: 1 / -1;
  }

  .navlink,
  .credits-badge {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============================================================
   Public page polish, excluding the lead-search workspace
   ============================================================ */
:is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page) > .tool-head,
:is(#privacy-view, #terms-view, #refunds-view, #acceptable-use-view) .legal-page,
:is(#pricing-view, #support-view, #how-it-works-view, .landing-page) .landing-hero {
  position: relative;
}

:is(#pricing-view, #support-view, #how-it-works-view, #settings-view) > .tool-head {
  margin-top: 1.4rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(170, 185, 172, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 33, 31, 0.04) 1px, transparent 1px),
    rgba(255, 254, 250, 0.58);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 18px 54px rgba(23, 32, 29, 0.07);
}

/* The How it works title is long ("How Lead Outreach Agent works") and at the
   shared 4rem size the card filled the first screen before any content. Scope a
   smaller title + tighter padding to this view so the guide starts sooner.
   Placed after the shared rule above so it wins at equal specificity. */
#how-it-works-view > .tool-head {
  margin-top: 1rem;
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

#how-it-works-view .tool-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

#pricing-view .pricing-grid {
  max-width: 1120px;
}

#pricing-view .price-card {
  overflow: hidden;
  min-height: 430px;
}

#pricing-view .price-card::after,
.support-contact-card::after,
.landing-grid article::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.42;
}

#pricing-view .price-card,
.support-contact-card,
.landing-grid article {
  position: relative;
}

#pricing-view .price-amount {
  font-family: var(--display-font);
  letter-spacing: 0;
}

#pricing-view .buy-credits {
  border-color: rgba(15, 111, 104, 0.24);
  background:
    linear-gradient(135deg, rgba(226, 241, 237, 0.9), rgba(255, 254, 250, 0.78)),
    var(--surface);
}

#support-view .support-contact-grid {
  max-width: 980px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#support-view .support-card {
  max-width: 980px;
  border-color: rgba(15, 111, 104, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(226, 241, 237, 0.5)),
    var(--surface);
}

#support-view .chat-log {
  border: 1px solid rgba(170, 185, 172, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(25, 33, 31, 0.035) 1px, transparent 1px),
    rgba(255, 254, 250, 0.58);
  background-size: 18px 18px, auto;
}

#how-it-works-view .policy-card {
  max-width: 1040px;
}

#how-it-works-view .explain-grid article,
.landing-grid article {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.74)),
    var(--surface);
}

.how-guide-hero,
.how-final-cta {
  max-width: 1060px;
  margin: 1.25rem auto 0;
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    radial-gradient(480px 240px at 82% 8%, rgba(226, 241, 237, 0.84), transparent 72%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(246, 249, 245, 0.84)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.how-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(310px, 0.72fr);
  gap: 1.1rem;
  align-items: center;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  overflow: hidden;
}

.how-guide-copy h2,
.how-final-cta h2 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.how-guide-copy p,
.how-final-cta p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.how-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.76);
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  border-color: rgba(15, 111, 104, 0.32);
  background: rgba(226, 241, 237, 0.78);
}

.how-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1fr) 2.6rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(15, 111, 104, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.052) 1px, transparent 1px),
    rgba(255, 254, 250, 0.74);
  background-size: 24px 24px;
}

.pipeline-node {
  display: grid;
  gap: 0.22rem;
  min-height: 6.6rem;
  padding: 0.7rem 0.5rem;
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

/* These node columns are narrow (a two-column layout on wide screens), so keep
   the step title compact enough that longer-language words like "Recherche" or
   "Busqueda" stay on one line instead of breaking. */
.pipeline-node strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.pipeline-node span {
  width: fit-content;
  max-width: 100%;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.86);
  font-family: var(--data-font);
  font-size: 0.66rem;
  font-weight: 900;
}

.pipeline-node strong,
.pipeline-card strong {
  color: var(--text);
}

.pipeline-node small,
.pipeline-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.pipeline-link {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 111, 104, 0.14), var(--primary));
}

.pipeline-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.45rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
  background: rgba(226, 241, 237, 0.78);
}

.pipeline-card div {
  display: grid;
  gap: 0.12rem;
}

.pipeline-card > span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.82);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 900;
}

.how-process-section,
.lead-standard-section,
.expectation-grid {
  max-width: 1060px;
  margin: 3rem auto 0;
}

.how-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.how-process-card,
.lead-standard-card,
.expectation-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.how-process-card {
  min-height: 15.8rem;
  padding: 1.05rem;
}

.how-process-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.88rem;
  border-radius: 8px;
  color: #fffefa;
  background: linear-gradient(135deg, var(--surface-3), #27332f);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 900;
}

.how-process-card h3,
.lead-standard-card h3,
.expectation-card h3 {
  margin: 0 0 0.46rem;
  color: var(--text);
  font-size: 1rem;
}

.how-process-card p,
.lead-standard-card p,
.expectation-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lead-standard-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.lead-standard-copy {
  text-align: left;
}

.lead-standard-copy .section-title,
.lead-standard-copy .section-sub {
  margin-left: 0;
  text-align: left;
}

.lead-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.lead-standard-card,
.expectation-card {
  padding: 1rem;
}

.muted-mark {
  background: rgba(184, 111, 50, 0.86);
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.how-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.how-final-cta .cta {
  flex: none;
}

.legal-page {
  max-width: 980px;
  border-left: 5px solid var(--primary);
}

.legal-page h2 {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(170, 185, 172, 0.48);
}

.legal-page p {
  max-width: 74ch;
}

.landing-page .landing-hero {
  max-width: 1060px;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.56fr);
  align-items: center;
  overflow: hidden;
}

.landing-page .landing-hero::after {
  content: "";
  min-height: 230px;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 45%, rgba(15, 111, 104, 0.26), transparent 7%),
    radial-gradient(circle at 28% 28%, rgba(184, 111, 50, 0.28), transparent 8%),
    radial-gradient(circle at 72% 70%, rgba(15, 111, 104, 0.2), transparent 8%),
    linear-gradient(90deg, rgba(15, 111, 104, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    rgba(226, 241, 237, 0.58);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 254, 250, 0.56);
}

.landing-grid {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-table-wrap {
  max-width: 1060px;
}

.comparison-table tbody tr:hover {
  background: rgba(226, 241, 237, 0.54);
}

.settings-preference-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.95rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(170, 185, 172, 0.62);
  border-radius: 8px;
  background: rgba(226, 241, 237, 0.62);
}

.settings-preference-preview span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-preference-preview strong {
  min-width: 0;
  overflow: hidden;
  color: var(--primary-strong);
  font-size: 0.9rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-action-status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.settings-health-list span.ready strong {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 111, 50, 0.14);
}

html[data-density="compact"] :is(#home-view, #pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page) :is(.price-card, .policy-card, .landing-hero, .landing-grid article, .support-contact-card, .support-card, .settings-panel) {
  padding-block: clamp(0.8rem, 2vw, 1.1rem);
}

html[data-density="focused"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page) :is(.price-card, .policy-card, .landing-hero, .support-card, .settings-panel) {
  box-shadow: 0 26px 74px rgba(23, 32, 29, 0.12);
}

html[data-results-view="compact"] :is(.landing-grid article p, #how-it-works-view .explain-grid article p) {
  display: none;
}

html[data-results-view="review"] :is(.landing-grid article, #how-it-works-view .explain-grid article, .comparison-table tbody tr) {
  outline: 1px solid rgba(15, 111, 104, 0.18);
  outline-offset: -1px;
}

html[data-outreach-tone="direct"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, .landing-page) .tool-kicker {
  border-color: rgba(184, 111, 50, 0.22);
  color: var(--accent-strong);
}

html[data-outreach-tone="professional"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, .landing-page) .tool-kicker {
  background: rgba(255, 254, 250, 0.9);
}

html[data-outreach-tone="playful"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, .landing-page) .tool-kicker {
  box-shadow: 0 0 0 5px rgba(184, 111, 50, 0.1);
}

/* Interface density and results view apply to the actual lead workspace (the
   results table), so the settings change the working experience, not only
   marketing cards. */
html[data-density="compact"] #leads-table :is(th, td) {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

html[data-density="focused"] #leads-table tbody tr:hover {
  outline: 2px solid rgba(15, 111, 104, 0.28);
  outline-offset: -2px;
}

/* Compact results view tightens the table by dropping the secondary
   "why they match" column, but always keeps the primary "what they do"
   description so a lead is never shown with no description at all. */
html[data-results-view="compact"] #leads-table :is(th, td):nth-child(4) {
  display: none;
}

/* Review view separates each lead row for careful, one-at-a-time checking. */
html[data-results-view="review"] #leads-table tbody tr {
  border-bottom: 2px solid rgba(15, 111, 104, 0.16);
}

@media (max-width: 900px) {
  .landing-page .landing-hero {
    grid-template-columns: 1fr;
  }

  .home-founder-note,
  .about-origin-copy,
  .about-hero,
  .about-note-band {
    grid-template-columns: 1fr;
  }

  .home-founder-note {
    justify-items: start;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .landing-page .landing-hero::after {
    min-height: 150px;
  }

  .how-guide-hero,
  .lead-standard-section {
    grid-template-columns: 1fr;
  }

  .how-guide-copy,
  .lead-standard-copy,
  .lead-standard-copy .section-title,
  .lead-standard-copy .section-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .how-guide-actions {
    justify-content: center;
  }

  .how-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-standard-grid,
  .expectation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #support-view .support-contact-grid {
    grid-template-columns: 1fr;
  }

  .settings-preference-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-preference-preview strong {
    text-align: left;
    white-space: normal;
  }
}

@media screen and (max-width: 0px) {
  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) > .tool-head,
  #support-view .chat-log,
  .settings-preference-preview {
    border-color: rgba(74, 92, 84, 0.78);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      rgba(24, 33, 30, 0.72);
    background-size: 22px 22px, auto;
  }

  .comparison-table tbody tr:hover {
    background: rgba(85, 183, 170, 0.1);
  }

  .usecase-recipe div,
  .home-founder-note,
  .about-origin-story,
  .how-guide-hero,
  .how-final-cta,
  .how-pipeline,
  .pipeline-node,
  .pipeline-card,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .about-hero,
  .about-note-band,
  .about-story-grid article,
  .about-founder-card {
    border-color: rgba(74, 92, 84, 0.78);
    background: rgba(24, 33, 30, 0.82);
  }

  .pipeline-card > span,
  .secondary-cta {
    background: rgba(255, 254, 250, 0.08);
  }
}

@media (max-width: 640px) {
  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) > .tool-head,
  .landing-page .landing-hero,
  .about-origin-story,
  .about-hero,
  .about-note-band,
  .legal-page {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) .tool-title,
  .landing-page .landing-hero :is(h1, [role="heading"][aria-level="1"]),
  .about-origin-story h2,
  .about-hero-copy :is(h1, [role="heading"][aria-level="1"]),
  .legal-page :is(h1, [role="heading"][aria-level="1"]) {
    display: block;
    max-width: min(100%, 15ch);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.48rem, 6.9vw, 1.8rem);
    line-height: 1.08;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  #pricing-view .tool-title {
    font-size: clamp(1.48rem, 6.8vw, 1.78rem);
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) .tool-sub,
  .landing-page .landing-hero p,
  .about-origin-copy p,
  .about-hero-copy p,
  .about-note-band p,
  .legal-page p {
    max-width: min(100%, 31ch);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.9rem, 3.8vw, 0.96rem);
    line-height: 1.48;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .how-guide-hero,
  .how-final-cta {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .how-guide-copy h2,
  .how-final-cta h2 {
    font-size: 1.55rem;
    text-align: center;
  }

  .how-guide-copy p,
  .how-final-cta p {
    max-width: 31ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .how-pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-link {
    width: 2px;
    height: 1rem;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(15, 111, 104, 0.14), var(--primary));
  }

  .how-process-section,
  .lead-standard-section,
  .expectation-grid {
    width: 100%;
    max-width: 100%;
    margin-top: 2.2rem;
  }

  .how-process-grid,
  .lead-standard-grid,
  .expectation-grid {
    grid-template-columns: 1fr;
  }

  .how-process-card {
    min-height: auto;
  }

  .how-final-cta {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .how-final-cta .cta,
  .how-guide-actions .cta,
  .how-guide-actions .secondary-cta,
  .home-founder-note .secondary-cta,
  .about-actions .cta,
  .about-actions .secondary-cta,
  .about-note-band .secondary-cta {
    width: 100%;
    justify-content: center;
  }

  #pricing-view .pricing-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  #pricing-view .price-card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.35rem 1.15rem;
    transform: none;
  }

  #pricing-view .price-card.featured {
    transform: none;
  }

  #pricing-view .price-pick {
    max-width: 100%;
    min-width: 0;
    padding-inline: 1rem;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page)
  :is(.tool-head, .support-contact-grid, .support-contact-card, .support-card, .policy-card, .landing-hero, .landing-grid, .landing-grid article, .comparison-table-wrap, .pricing-grid, .price-card, .buy-credits, .settings-layout, .settings-panel) {
    max-width: 100%;
    min-width: 0;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page)
  :is(h1, h2, h3, p, small, li, strong, a) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page)
  :is(p, small, li) {
    display: block;
    white-space: normal;
    word-break: normal;
  }

  :is(#pricing-view, #support-view, #how-it-works-view, #settings-view, #privacy-view, #terms-view, #refunds-view, #acceptable-use-view, .landing-page)
  :is(.tool-sub, .support-contact-card small, .landing-grid article p, .policy-card p, .buy-credits p) {
    max-width: min(100%, 26ch);
    margin-left: auto;
    margin-right: auto;
  }

  #pricing-view .tool-sub,
  #pricing-view .buy-credits p {
    max-width: min(100%, 24ch);
  }

  .landing-page .landing-hero p,
  #pricing-view .pricing-note {
    width: min(100%, 24ch);
    max-width: min(100%, 24ch);
    margin-left: auto;
    margin-right: auto;
  }

  .landing-page .landing-hero p {
    justify-self: start;
    margin-left: 0;
  }

  #pricing-view .buy-credits {
    align-items: stretch;
  }

  #pricing-view .buy-credits-row {
    align-items: stretch;
    flex-direction: column;
  }

  #pricing-view .buy-preview {
    white-space: normal;
  }

  #pricing-view .usd-input,
  #pricing-view #buy-credits-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    overflow-x: hidden;
  }

  .footer-links {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .footer-links button,
  .footer-links a {
    width: 100%;
    min-width: 0;
    padding: 0.34rem 0.38rem;
    border: 1px solid rgba(170, 185, 172, 0.52);
    border-radius: 8px;
    background: rgba(255, 254, 250, 0.66);
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* ============================================================
   Phone mode: detected by JS for real handset-style viewports
   ============================================================ */
.phone-nav {
  display: none;
}

.phone-hero-title {
  display: none;
}

html[data-device-mode="phone"],
html[data-device-mode="phone"] body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html[data-device-mode="phone"] body {
  padding-bottom: calc(5.9rem + env(safe-area-inset-bottom));
}

html[data-device-mode="phone"] .page {
  max-width: 100%;
  padding: 0.72rem 0.72rem calc(7rem + env(safe-area-inset-bottom));
}

html[data-device-mode="phone"] .topbar {
  position: relative;
  top: auto;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 8px;
  max-width: 100%;
  overflow: visible;
}

html[data-device-mode="phone"] .topbar[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

html[data-device-mode="phone"] .brand {
  min-width: 0;
  width: auto;
  overflow: hidden;
}

html[data-device-mode="phone"] .brand-mark {
  flex: 0 0 auto;
  width: 2.12rem;
  height: 2.12rem;
  border-radius: 9px;
}

html[data-device-mode="phone"] .brand-mark::before {
  font-size: 1.3rem;
}

html[data-device-mode="phone"] .brand-mark::after {
  inset: 0.2rem;
  border-radius: 7px;
}

html[data-device-mode="phone"] #home-view {
  padding-top: 0.25rem;
}

html[data-device-mode="phone"] .brand-name {
  min-width: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-device-mode="phone"] .brand-name::before {
  content: "";
}

html[data-device-mode="phone"] .brand-name::after {
  content: "";
}

html[data-device-mode="phone"] .topnav {
  display: flex;
  width: auto;
  min-width: 0;
  gap: 0.42rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

html[data-device-mode="phone"] .mobile-menu-toggle {
  display: grid;
  flex: 0 0 auto;
}

html[data-device-mode="phone"] .topnav .navlink[data-go],
html[data-device-mode="phone"] .topnav .credits-badge,
html[data-device-mode="phone"] .topbar-cta {
  display: none;
}

/* Free up room for the full brand name on phone; the language picker and
   Sign in both stay available in the hamburger menu. */
html[data-device-mode="phone"] #public-language-combo {
  display: none;
}
html[data-device-mode="phone"] #auth-open {
  display: none !important;
}

html[data-device-mode="phone"] #auth-open {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  width: auto;
  min-height: 36px;
  min-width: 4.6rem;
  max-width: none;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(170, 185, 172, 0.64);
  background: rgba(255, 254, 250, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-device-mode="phone"] #theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  width: auto;
  min-width: 2.9rem;
  min-height: 36px;
  padding: 0.35rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(170, 185, 172, 0.64);
  background: rgba(255, 254, 250, 0.76);
  box-shadow: none;
}

html[data-device-mode="phone"] #theme-toggle .theme-toggle-track {
  width: 2.18rem;
  height: 1.06rem;
}

html[data-device-mode="phone"] #theme-toggle .theme-toggle-icon {
  width: 0.78rem;
  height: 0.78rem;
  font-size: 0.48rem;
}

html[data-device-mode="phone"][data-resolved-theme="dark"] #theme-toggle .theme-toggle-icon {
  left: calc(100% - 0.9rem);
}

html[data-device-mode="phone"] #theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html[data-device-mode="phone"] .eyebrow {
  display: flex;
  justify-content: center;
  width: min(100%, 20.5rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0.38rem 0.65rem;
  font-size: 0.66rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

html[data-device-mode="phone"] #auth-open.hidden {
  display: none !important;
}

html[data-device-mode="phone"] .hero {
  min-height: auto;
  margin-top: 1.45rem;
  padding: clamp(1.7rem, 6vw, 2.1rem) 0.75rem 1.35rem;
}

html[data-device-mode="phone"] .hero [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html[data-device-mode="phone"] .hero-title {
  position: static;
  width: auto;
  height: auto;
  max-width: min(100%, 12ch);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 0;
  font-size: clamp(1.7rem, 7.65vw, 2.06rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
}

html[data-device-mode="phone"] .phone-hero-title {
  display: none;
}

html[data-device-mode="phone"] .phone-hero-title span {
  display: block;
  white-space: normal;
}

html[data-device-mode="phone"] .hero-sub {
  max-width: min(100%, 28ch);
}

html[data-device-mode="phone"] .hero-cta {
  align-items: stretch;
  width: min(100%, 19rem);
  margin-left: auto;
  margin-right: auto;
}

html[data-device-mode="phone"] .hero-cta .cta {
  width: 100%;
}

html[data-device-mode="phone"] .hero-pills,
html[data-device-mode="phone"] .hero-command-board,
html[data-device-mode="phone"] .stats {
  display: none;
}

html[data-device-mode="phone"] .phone-nav {
  position: fixed;
  right: auto;
  bottom: max(0.72rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1100;
  display: grid;
  width: min(calc(100vw - 1rem), 28rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.36rem;
  border: 1px solid rgba(170, 185, 172, 0.74);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: none;
  overflow: hidden;
  transform: translateX(-50%);
}

html[data-device-mode="phone"] .phone-nav :is(button, a) {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 3.2rem;
  padding: 0.32rem 0.14rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 900px) {
  #account-menu-wrap.account-menu-wrap {
    display: none !important;
  }
}

html[data-device-mode="phone"] .phone-nav :is(button, a).active {
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.9);
  color: var(--primary-strong);
}

html[data-device-mode="phone"] .phone-nav-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 7px;
  background: rgba(15, 111, 104, 0.1);
  color: var(--primary-strong);
  font-size: 0.68rem;
  line-height: 1;
}

html[data-device-mode="phone"] .phone-nav-home-icon {
  font-size: 0;
}

html[data-device-mode="phone"] .phone-nav-home-icon::before,
html[data-device-mode="phone"] .phone-nav-home-icon::after {
  content: "";
  position: absolute;
  display: block;
}

html[data-device-mode="phone"] .phone-nav-home-icon::before {
  bottom: 0.31rem;
  width: 0.72rem;
  height: 0.5rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

html[data-device-mode="phone"] .phone-nav-home-icon::after {
  top: 0.29rem;
  width: 0.58rem;
  height: 0.58rem;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

html[data-device-mode="phone"] .phone-nav :is(button, a).active .phone-nav-mark {
  background: var(--surface-3);
  color: #fffefa;
}

html[data-device-mode="phone"] #account-menu-wrap.account-menu-wrap {
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: calc(5.8rem + env(safe-area-inset-bottom));
  left: auto;
}

html[data-device-mode="phone"] .account-menu {
  right: 0;
  left: auto;
  width: min(19rem, calc(100vw - 1.5rem));
}

html[data-device-mode="phone"] .to-top {
  right: 1rem;
  bottom: calc(6.4rem + env(safe-area-inset-bottom));
}

html[data-device-mode="phone"] #pricing-view .price-card.featured {
  padding-top: 2.1rem;
  transform: none;
}

html[data-device-mode="phone"] #pricing-view .price-flag {
  top: 0.8rem;
  left: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: visible;
}

html[data-device-mode="phone"] .ghost-back {
  margin-bottom: 0.85rem;
}

html[data-device-mode="phone"] .tool-head {
  margin-bottom: 1rem;
}

html[data-device-mode="phone"] .tool-title {
  font-size: clamp(1.72rem, 8.8vw, 2.15rem);
}

/* The search view's heading is the page's own title, so it shouldn't sit inside
   a floating frosted card the way the public marketing pages do. Strip the panel
   (background, shadow, sheen overlay). The theme rules that paint the panel use
   an :is(...) list containing an id selector, which inflates their specificity
   past a plain scoped selector, so !important is used deliberately here to win. */
#search-view > .tool-head {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible;
}
#search-view > .tool-head::before {
  display: none !important;
}

html[data-device-mode="phone"] #search-view .tool-head {
  text-align: left;
}

html[data-device-mode="phone"] #search-view .tool-title,
html[data-device-mode="phone"] #search-view .tool-sub {
  margin-left: 0;
  margin-right: 0;
  max-width: min(100%, 30ch);
}

html[data-device-mode="phone"] .search-shell {
  display: block;
  max-width: 100%;
}

html[data-device-mode="phone"] .card.glass.search-card,
html[data-device-mode="phone"] .search-assist-panel {
  max-width: 100%;
  border-radius: 8px;
}

html[data-device-mode="phone"] .search-section {
  padding: 1rem 0.85rem;
}

html[data-device-mode="phone"] .card-head {
  gap: 0.6rem;
}

html[data-device-mode="phone"] .grid,
html[data-device-mode="phone"] .search-grid {
  grid-template-columns: 1fr;
}

html[data-device-mode="phone"] input,
html[data-device-mode="phone"] select,
html[data-device-mode="phone"] textarea,
html[data-device-mode="phone"] .combo-control {
  min-height: 46px;
  font-size: 16px;
}

html[data-device-mode="phone"] .search-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 0.55rem;
}

html[data-device-mode="phone"] .search-actions .cta {
  width: 100%;
  min-height: 52px;
}

html[data-device-mode="phone"] .search-assist-panel {
  margin-top: 0.9rem;
  padding: 0.95rem;
}

html[data-device-mode="phone"] .assist-metric {
  margin: 0.55rem 0;
  padding-bottom: 0.7rem;
}

html[data-device-mode="phone"] .assist-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

html[data-device-mode="phone"] .assist-steps span {
  justify-content: center;
  padding: 0.38rem 0.3rem;
  border: 1px solid rgba(170, 185, 172, 0.54);
  border-radius: 8px;
  font-size: 0.73rem;
}

html[data-device-mode="phone"] .assist-steps span::before {
  display: none;
}

@media screen and (max-width: 0px) {
  html[data-device-mode="phone"] .phone-nav,
  html[data-device-mode="phone"] #auth-open {
    border-color: rgba(74, 92, 84, 0.82);
    background: rgba(24, 33, 30, 0.92);
  }

  html[data-device-mode="phone"] .phone-nav :is(button, a).active {
    border-color: rgba(85, 183, 170, 0.25);
    background: rgba(85, 183, 170, 0.12);
  }
}


/* Mobile recipe and support polish: appended to avoid disturbing search logic. */
@media (max-width: 760px) {
  .home-usecases,
  .home-result-preview,
  .home-quality,
  .cta-band,
  .support-contact-grid,
  .support-card {
    scroll-margin-top: 88px;
  }

  .usecase-grid,
  .support-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .usecase-card,
  .support-contact-card,
  .support-card {
    border-radius: 14px;
  }

  .usecase-card {
    padding: 1rem;
  }

  .usecase-card-head {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .usecase-recipe {
    margin-top: 0.75rem;
  }

  .usecase-recipe p,
  .support-contact-card p {
    line-height: 1.55;
  }

  .linklike {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.75rem;
  }

  .support-contact-card {
    min-height: auto;
    padding: 0.95rem;
  }

  .support-contact-kicker {
    display: inline-flex;
    width: fit-content;
  }

  .chat-log {
    max-height: min(56vh, 520px);
  }
}

html[data-device-mode="phone"] .usecase-grid,
html[data-device-mode="phone"] .support-contact-grid {
  grid-template-columns: 1fr;
}

html[data-device-mode="phone"] .linklike,
html[data-device-mode="phone"] .support-contact-card {
  min-height: 44px;
}

/* First-visit legal acceptance gate. */
.terms-consent {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(620px 340px at 18% 16%, rgba(85, 183, 170, 0.22), transparent 70%),
    radial-gradient(520px 300px at 86% 72%, rgba(230, 160, 104, 0.18), transparent 72%),
    rgba(11, 18, 16, 0.66);
  backdrop-filter: blur(18px);
}

body.terms-consent-open {
  overflow: hidden;
}

.terms-consent-panel {
  width: min(660px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.45rem);
  border: 1px solid rgba(170, 185, 172, 0.68);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(238, 244, 239, 0.94));
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 30px 90px rgba(8, 15, 14, 0.34);
}

.terms-consent-panel h2 {
  margin: 0.45rem 0 0.65rem;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.terms-consent-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.terms-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.terms-consent-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(15, 111, 104, 0.2);
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.terms-consent-links a:hover,
.terms-consent-links a:focus-visible {
  border-color: rgba(15, 111, 104, 0.38);
  background: rgba(255, 254, 250, 0.9);
}

.terms-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0.78rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  background: rgba(226, 241, 237, 0.62);
  color: var(--text);
  font-weight: 750;
  line-height: 1.42;
  cursor: pointer;
}

.terms-consent-check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.16rem;
  accent-color: var(--primary);
}

#terms-consent-accept {
  width: 100%;
  min-height: 3.1rem;
}

#terms-consent-accept:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
  transform: none;
}

@media (max-width: 560px) {
  .terms-consent {
    align-items: end;
    padding: 0.75rem;
  }

  .terms-consent-panel {
    max-height: 86vh;
    border-radius: 12px 12px 8px 8px;
  }

  .terms-consent-links a {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}

html[data-device-mode="phone"] .terms-consent {
  z-index: 30000;
  align-items: center;
  padding:
    calc(0.8rem + env(safe-area-inset-top))
    0.75rem
    calc(0.9rem + env(safe-area-inset-bottom));
}

html[data-device-mode="phone"] .terms-consent-panel {
  width: min(100%, 420px);
  max-height: min(82dvh, 620px);
  border-radius: 8px;
}

html[data-device-mode="phone"] .terms-consent-panel h2 {
  font-size: clamp(1.58rem, 8vw, 2rem);
}

html[data-device-mode="phone"] .terms-consent-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.terms-consent-open .phone-nav,
body.terms-consent-open .to-top,
body.terms-consent-open #account-menu-wrap {
  opacity: 0;
  pointer-events: none;
}

/* Crawlable SEO pages, tools, and report assets. */
.seo-page-shell {
  max-width: 1180px;
}

.seo-topbar {
  align-items: center;
  margin-bottom: clamp(1.1rem, 3vw, 2rem);
}

.seo-topnav a {
  text-decoration: none;
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.seo-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.seo-breadcrumbs a:hover,
.seo-breadcrumbs a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  padding: clamp(1.15rem, 4vw, 1.9rem);
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    radial-gradient(600px 280px at 82% 8%, rgba(226, 241, 237, 0.82), transparent 72%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 249, 245, 0.86)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.seo-hero h1 {
  max-width: 11ch;
  margin: 0.55rem 0 0.75rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.seo-hero p {
  max-width: 68ch;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.64;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.seo-actions a {
  text-decoration: none;
}

.seo-hero-proof {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.seo-intent-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(170, 185, 172, 0.54);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
}

.seo-intent-strip article {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(183, 195, 178, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.seo-intent-strip strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.seo-intent-strip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.seo-signal-board {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  min-height: 280px;
  padding: 1rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 48% 32%, rgba(15, 111, 104, 0.26), transparent 7%),
    radial-gradient(circle at 24% 64%, rgba(184, 111, 50, 0.24), transparent 8%),
    radial-gradient(circle at 76% 72%, rgba(15, 111, 104, 0.18), transparent 8%),
    linear-gradient(90deg, rgba(15, 111, 104, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    rgba(226, 241, 237, 0.62);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
}

.seo-signal-board span,
.seo-metrics article span,
.seo-benchmark-grid article span {
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.84);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-signal-board strong {
  color: var(--text);
  font-size: 1.08rem;
}

.seo-signal-board small {
  max-width: 30ch;
  color: var(--text-muted);
  line-height: 1.45;
}

.seo-signal-board ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.seo-signal-board li {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 254, 250, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

.seo-card-grid,
.seo-metrics,
.seo-benchmark-grid,
.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.seo-card-grid article,
.seo-card-grid a,
.seo-metrics article,
.seo-benchmark-grid article,
.seo-related-grid a {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(170, 185, 172, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.74)),
    var(--surface);
  box-shadow: 0 14px 38px rgba(23, 32, 29, 0.06);
}

.seo-card-grid article::after,
.seo-card-grid a::after,
.seo-related-grid a::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.8rem 1rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.36;
}

.seo-card-grid h2,
.seo-related h2,
.seo-tool-head h2,
.seo-faq h2 {
  margin: 0.45rem 0 0.45rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.seo-card-grid p,
.seo-related-grid span {
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-card-grid a {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.seo-card-grid a:hover,
.seo-card-grid a:focus-visible {
  border-color: rgba(15, 111, 104, 0.34);
  transform: translateY(-1px);
}

.seo-tool-panel,
.seo-demo-assets,
.seo-benchmark-live,
.seo-content,
.seo-faq {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.035) 1px, transparent 1px),
    rgba(255, 254, 250, 0.78);
  background-size: 24px 24px, 24px 24px, auto;
}

#interactive-tool {
  scroll-margin-top: 6rem;
}

.seo-tool-head p {
  max-width: 64ch;
  margin: 0;
  color: var(--text-muted);
}

.seo-tool-question {
  display: grid;
  gap: 0.22rem;
  max-width: 64ch;
  margin-top: 0.9rem;
  padding: 0.72rem 0.85rem;
  border-left: 3px solid var(--primary-strong);
  background: rgba(226, 241, 237, 0.68);
}

.seo-tool-question span,
.seo-result-label,
.seo-result-next-label {
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-tool-question strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.seo-demo-head h2,
.seo-benchmark-live h2 {
  margin: 0.45rem 0 0.45rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.seo-demo-head p,
.seo-benchmark-live > div > p {
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.62;
}

.seo-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.seo-demo-grid figure {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(170, 185, 172, 0.6);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.74);
}

.seo-demo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
}

.seo-demo-grid figcaption {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.seo-video-script {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 8px;
  background: rgba(226, 241, 237, 0.72);
}

.seo-video-script strong,
.seo-video-script span {
  color: var(--text);
  font-size: 0.9rem;
}

.seo-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.seo-tool-grid.single {
  grid-template-columns: 1fr;
}

.seo-tool-grid label,
.seo-checklist label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 800;
}

.seo-tool-grid label > span {
  line-height: 1.32;
}

.seo-tool-grid label > small {
  min-height: 2.55em;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.32;
}

.seo-tool-grid input,
.seo-tool-grid select,
.seo-tool-grid textarea {
  width: 100%;
  border: 1px solid rgba(170, 185, 172, 0.78);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.seo-range-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.9rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(170, 185, 172, 0.78);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.seo-tool-grid .seo-range-control input[type="range"] {
  min-width: 0;
  height: 1.4rem;
  padding: 0;
  border: 0;
  accent-color: var(--primary-strong);
  background: transparent;
  cursor: pointer;
}

.seo-range-control output {
  min-width: 7.4rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.seo-range-control output strong {
  color: var(--text);
  font-family: var(--data-font);
  font-size: 1rem;
}

.seo-checklist {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.seo-checklist label {
  display: flex;
  align-items: flex-start;
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(170, 185, 172, 0.52);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
}

.seo-checklist input {
  flex: none;
  margin-top: 0.18rem;
}

#seo-tool-run {
  margin-top: 1rem;
}

.seo-tool-output {
  display: block;
  min-height: 4rem;
  margin-top: 1rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 254, 250, 0.84);
  overflow: hidden;
}

.seo-tool-output[data-state="success"] {
  border-left: 4px solid #0f6f68;
}

.seo-tool-output[data-state="warning"] {
  border-left: 4px solid #b66a16;
}

.seo-tool-output[data-state="danger"] {
  border-left: 4px solid #b43a3a;
}

.seo-tool-output:not(.is-structured) {
  padding: 0.85rem;
}

.seo-result-summary {
  padding: 1rem;
}

.seo-result-label {
  display: block;
  margin-bottom: 0.35rem;
}

.seo-result-headline {
  display: block;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.12;
}

.seo-result-explanation {
  max-width: 68ch;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid rgba(15, 111, 104, 0.14);
  border-bottom: 1px solid rgba(15, 111, 104, 0.14);
  background: rgba(226, 241, 237, 0.5);
}

.seo-result-metrics > div {
  min-width: 0;
  padding: 0.82rem 1rem;
  border-right: 1px solid rgba(15, 111, 104, 0.12);
}

.seo-result-metrics > div:last-child {
  border-right: 0;
}

.seo-result-metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.seo-result-metric-value {
  display: block;
  margin-top: 0.32rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.seo-result-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.9rem 1rem 0.15rem;
  color: var(--text-muted);
  list-style: none;
}

.seo-result-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  line-height: 1.45;
}

.seo-result-list li:not(:has(.seo-result-item-status)) {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 1rem;
  position: relative;
}

.seo-result-list li:not(:has(.seo-result-item-status))::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--primary-strong);
}

.seo-result-item-status {
  min-width: 2.8rem;
  padding: 0.15rem 0.34rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--data-font);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.seo-result-list .is-pass .seo-result-item-status {
  color: #0f6f68;
}

.seo-result-list .is-fix .seo-result-item-status {
  color: #a82f2f;
}

.seo-result-list .is-note .seo-result-item-status {
  color: #8a5716;
}

.seo-result-item-text {
  min-width: 0;
}

.seo-result-body-wrap {
  margin: 0.8rem 1rem 0;
  border: 1px solid rgba(15, 111, 104, 0.16);
  border-radius: 6px;
  overflow: hidden;
}

.seo-result-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.72rem;
  border-bottom: 1px solid rgba(15, 111, 104, 0.14);
  background: rgba(226, 241, 237, 0.52);
}

.seo-result-body-label {
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-result-copy {
  flex: none;
  min-height: 2rem;
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(15, 111, 104, 0.28);
  border-radius: 6px;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.86);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.seo-result-copy:hover,
.seo-result-copy:focus-visible {
  border-color: var(--primary-strong);
  background: #fff;
}

.seo-result-body {
  margin: 0;
  padding: 0.85rem;
  color: var(--text);
  background: rgba(246, 249, 245, 0.86);
  font-family: var(--body-font);
  line-height: 1.55;
  white-space: pre-wrap;
}

.seo-result-next {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(15, 111, 104, 0.14);
}

.seo-result-next p {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.48;
}

.seo-tool-note {
  margin: 0.72rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.seo-tool-note strong {
  color: var(--text);
}

.seo-tool-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.seo-tool-context article,
.not-found-card {
  border: 1px solid rgba(15, 111, 104, 0.14);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
}

.seo-tool-context article {
  padding: 0.95rem;
}

.seo-tool-context span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-tool-context strong {
  display: block;
  color: var(--text);
}

.seo-tool-context p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.2rem;
}

.not-found-card {
  display: grid;
  gap: 1rem;
  width: min(44rem, 100%);
  padding: clamp(1.35rem, 5vw, 2.5rem);
}

.not-found-card h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0;
}

.not-found-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.seo-metrics article {
  display: grid;
  gap: 0.35rem;
}

.seo-metrics article strong,
.seo-benchmark-grid article strong {
  color: var(--text);
  font-family: var(--display-font);
  font-size: 1.7rem;
  letter-spacing: 0;
}

.seo-metrics article p,
.seo-benchmark-grid article p {
  margin: 0;
  color: var(--text-muted);
}

.seo-research {
  margin-top: 1.5rem;
}

.seo-research-head {
  max-width: 48rem;
}

.seo-research-head h2 {
  margin: 0.45rem 0;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.seo-research-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.seo-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.seo-study-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 38px rgba(23, 32, 29, 0.06);
}

.seo-study-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--primary-strong);
  font-family: var(--data-font);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-study-meta time {
  flex: none;
  color: var(--accent-strong);
}

.seo-study-card h3 {
  margin: 0.65rem 0 0.45rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.seo-study-finding {
  margin: 0;
  color: var(--text);
  line-height: 1.58;
}

.seo-study-card dl {
  display: grid;
  gap: 0.6rem;
  margin: 0.9rem 0;
}

.seo-study-card dl div {
  padding-left: 0.7rem;
  border-left: 3px solid rgba(15, 111, 104, 0.24);
}

.seo-study-card dt {
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-study-card dd {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.seo-source-link {
  width: fit-content;
  margin-top: auto;
  color: var(--primary-strong);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.seo-source-link:hover,
.seo-source-link:focus-visible {
  color: var(--accent-strong);
}

.seo-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.seo-proof-grid article {
  display: grid;
  gap: 0.42rem;
  min-height: 10.5rem;
  padding: 1rem;
  border: 1px solid rgba(15, 111, 104, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(226, 241, 237, 0.68)),
    var(--surface);
  box-shadow: 0 16px 40px rgba(23, 32, 29, 0.07);
}

.seo-proof-grid article span {
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(255, 254, 250, 0.82);
  font-family: var(--data-font);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-proof-grid article strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.seo-proof-grid article p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-table-stack {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(170, 185, 172, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.035) 1px, transparent 1px),
    rgba(255, 254, 250, 0.82);
  background-size: 24px 24px, 24px 24px, auto;
}

.seo-table-block {
  display: grid;
  gap: 0.85rem;
}

.seo-table-copy h2 {
  margin: 0.45rem 0 0.45rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.seo-table-copy p {
  max-width: 76ch;
  color: var(--text-muted);
  line-height: 1.62;
}

.seo-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(170, 185, 172, 0.64);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.seo-depth-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text);
}

.seo-depth-table th,
.seo-depth-table td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid rgba(170, 185, 172, 0.5);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.seo-depth-table th {
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-depth-table tbody tr:last-child td {
  border-bottom: 0;
}

.seo-depth-table tbody tr:nth-child(even) td {
  background: rgba(246, 249, 245, 0.68);
}

.seo-benchmark-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-benchmark-grid article a {
  color: var(--primary-strong);
  font-weight: 850;
}

.seo-content {
  display: grid;
  gap: 1rem;
}

.seo-content article {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(170, 185, 172, 0.46);
}

.seo-content article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.seo-content h2 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.seo-content p,
.seo-faq p {
  max-width: 76ch;
  color: var(--text-muted);
  line-height: 1.65;
}

.seo-faq details {
  padding: 0.82rem 0;
  border-top: 1px solid rgba(170, 185, 172, 0.48);
}

.seo-faq summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.seo-related {
  margin-top: 1.5rem;
}

.seo-related-grid a {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
}

.seo-related-grid a:hover,
.seo-related-grid a:focus-visible {
  border-color: rgba(15, 111, 104, 0.34);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .seo-hero,
  .seo-card-grid,
  .seo-demo-grid,
  .seo-metrics,
  .seo-proof-grid,
  .seo-benchmark-grid,
  .seo-related-grid,
  .seo-study-grid,
  .seo-intent-strip,
  .seo-tool-grid {
    grid-template-columns: 1fr;
  }

  .seo-hero h1 {
    max-width: 12ch;
  }

  .seo-signal-board {
    min-height: 0;
  }
}

/* ======================= Public polish pass ======================= */
.seo-demo-assets,
.seo-card-grid article,
.seo-card-grid a,
.seo-proof-grid article,
.seo-related-grid a {
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-demo-assets {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.96), rgba(226, 241, 237, 0.7)),
    var(--surface);
}

.seo-demo-grid figure {
  background: rgba(255, 254, 250, 0.84);
}

.seo-video-script {
  align-items: center;
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(255, 254, 250, 0.72);
}

.seo-card-grid article:hover,
.seo-card-grid a:hover,
.seo-proof-grid article:hover,
.seo-related-grid a:hover {
  border-color: rgba(15, 111, 104, 0.34);
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.1);
}

.policy-card [role="heading"][aria-level="1"],
.landing-hero [role="heading"][aria-level="1"],
.about-hero-copy [role="heading"][aria-level="1"] {
  display: block;
}

@media (max-width: 640px) {
  .seo-tool-grid label > small {
    min-height: 0;
  }

  .seo-result-metrics {
    grid-template-columns: 1fr;
  }

  .seo-result-metrics > div {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 111, 104, 0.12);
  }

  .seo-result-metrics > div:last-child {
    border-bottom: 0;
  }

  .seo-range-control {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .seo-range-control output {
    min-width: 0;
    text-align: left;
  }

  .seo-result-body-head {
    align-items: flex-start;
  }

  .seo-topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .seo-topnav .topbar-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .seo-demo-grid figure,
  .seo-video-script,
  .seo-tool-context {
    width: 100%;
    max-width: 100%;
  }

  .seo-tool-context {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 0px) {
  .seo-demo-assets,
  .seo-demo-grid figure,
  .seo-video-script {
    border-color: rgba(74, 92, 84, 0.78);
    background: rgba(24, 33, 30, 0.82);
  }
}

/* Manual theme overrides. These sit last so the saved user choice beats system preference. */
html[data-theme="light"] {
  --bg: #f3f6f1;
  --bg-accent: #dfe9e0;
  --surface: #fffefa;
  --surface-2: #eef4ef;
  --surface-3: #19211f;
  --border: #d7dfd5;
  --border-strong: #aab9ac;
  --text: #17201d;
  --text-muted: #5b6961;
  --text-faint: #8a978e;
  --primary: #0f6f68;
  --primary-strong: #084f4a;
  --primary-soft: #e2f1ed;
  --accent: #b86f32;
  --accent-strong: #8f4f20;
  --shadow: 0 1px 2px rgba(23, 32, 29, 0.05), 0 12px 32px rgba(23, 32, 29, 0.09);
  --shadow-lg: 0 18px 52px rgba(23, 32, 29, 0.16), 0 2px 8px rgba(23, 32, 29, 0.06);
}

html[data-theme="dark"] {
  --bg: #111714;
  --bg-accent: #17211d;
  --surface: #18211e;
  --surface-2: #202b27;
  --surface-3: #f5f2e9;
  --border: #2d3a34;
  --border-strong: #4a5c54;
  --text: #f6f3eb;
  --text-muted: #b9c5bd;
  --text-faint: #85948b;
  --primary: #55b7aa;
  --primary-strong: #8bd3ca;
  --primary-soft: rgba(85, 183, 170, 0.14);
  --accent: #d9904c;
  --accent-strong: #f0ad67;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.34), 0 16px 38px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 62px rgba(0, 0, 0, 0.48);
}

html[data-theme="light"] body {
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 29, 0.03) 1px, transparent 1px),
    radial-gradient(900px 420px at 18% 0%, rgba(15, 111, 104, 0.13), transparent 64%),
    radial-gradient(880px 520px at 88% 4%, rgba(184, 111, 50, 0.12), transparent 68%),
    linear-gradient(180deg, #f8faf5 0%, var(--bg) 46%, #edf3f0 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(900px 420px at 18% 0%, rgba(85, 183, 170, 0.16), transparent 64%),
    radial-gradient(880px 520px at 88% 4%, rgba(217, 144, 76, 0.13), transparent 68%),
    #111714;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .hero-command-board,
html[data-theme="light"] .stat,
html[data-theme="light"] .how-step,
html[data-theme="light"] .price-card,
html[data-theme="light"] .policy-card,
html[data-theme="light"] .landing-hero,
html[data-theme="light"] .comparison-table-wrap,
html[data-theme="light"] .support-contact-card,
html[data-theme="light"] .support-card,
html[data-theme="light"] .settings-panel,
html[data-theme="light"] .card,
html[data-theme="light"] .buy-credits,
html[data-theme="light"] .usecase-card,
html[data-theme="light"] .quality-card,
html[data-theme="light"] .result-preview-table,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .account-menu-btn,
html[data-theme="light"] .account-menu,
html[data-theme="light"] .home-founder-note,
html[data-theme="light"] .about-origin-story,
html[data-theme="light"] .about-hero,
html[data-theme="light"] .about-note-band,
html[data-theme="light"] .about-story-grid article,
html[data-theme="light"] .about-founder-card,
html[data-theme="light"] .seo-demo-assets,
html[data-theme="light"] .seo-demo-grid figure,
html[data-theme="light"] .seo-video-script {
  border-color: rgba(170, 185, 172, 0.7);
  background: rgba(255, 254, 250, 0.88);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .hero-command-board,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .how-step,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .policy-card,
html[data-theme="dark"] .landing-hero,
html[data-theme="dark"] .comparison-table-wrap,
html[data-theme="dark"] .support-contact-card,
html[data-theme="dark"] .support-card,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .buy-credits,
html[data-theme="dark"] .usecase-card,
html[data-theme="dark"] .quality-card,
html[data-theme="dark"] .result-preview-table,
html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .account-menu-btn,
html[data-theme="dark"] .account-menu,
html[data-theme="dark"] .home-founder-note,
html[data-theme="dark"] .about-origin-story,
html[data-theme="dark"] .about-hero,
html[data-theme="dark"] .about-note-band,
html[data-theme="dark"] .about-story-grid article,
html[data-theme="dark"] .about-founder-card,
html[data-theme="dark"] .seo-demo-assets,
html[data-theme="dark"] .seo-demo-grid figure,
html[data-theme="dark"] .seo-video-script {
  border-color: rgba(74, 92, 84, 0.78);
  background: rgba(24, 33, 30, 0.86);
}

html[data-theme="light"] .brand-mark {
  border-color: rgba(15, 111, 104, 0.22);
  background:
    linear-gradient(145deg, rgba(20, 129, 119, 0.94) 0%, rgba(8, 79, 74, 0.9) 54%, rgba(17, 32, 29, 0.9) 100%),
    rgba(17, 32, 29, 0.64);
}

html[data-theme="dark"] .brand-mark {
  border-color: rgba(85, 183, 170, 0.34);
  background:
    linear-gradient(145deg, rgba(85, 183, 170, 0.88) 0%, rgba(15, 111, 104, 0.86) 54%, rgba(11, 18, 16, 0.9) 100%),
    rgba(11, 18, 16, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 254, 250, 0.78);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(74, 92, 84, 0.82);
  background: rgba(17, 23, 20, 0.82);
}

html[data-theme="light"] .theme-toggle-track {
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.86);
}

html[data-theme="dark"] .theme-toggle-track {
  border-color: rgba(85, 183, 170, 0.28);
  background: rgba(10, 15, 13, 0.9);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .combo-control,
html[data-theme="light"] .combo-panel,
html[data-theme="light"] .chat-input,
html[data-theme="light"] .usd-input,
html[data-theme="light"] .signal-row,
html[data-theme="light"] #settings-view input,
html[data-theme="light"] #settings-view select,
html[data-theme="light"] #settings-view textarea {
  color: var(--text);
  background: rgba(255, 254, 250, 0.92);
  border-color: rgba(170, 185, 172, 0.82);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .combo-control,
html[data-theme="dark"] .combo-panel,
html[data-theme="dark"] .chat-input,
html[data-theme="dark"] .usd-input,
html[data-theme="dark"] .signal-row,
html[data-theme="dark"] #settings-view input,
html[data-theme="dark"] #settings-view select,
html[data-theme="dark"] #settings-view textarea {
  color: var(--text);
  background: rgba(17, 23, 20, 0.78);
  border-color: rgba(74, 92, 84, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .terms-consent-panel {
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(238, 244, 239, 0.94));
}

html[data-theme="dark"] .terms-consent-panel {
  border-color: rgba(74, 92, 84, 0.88);
  background:
    linear-gradient(90deg, rgba(85, 183, 170, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(85, 183, 170, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 33, 30, 0.98), rgba(17, 23, 20, 0.96));
}

html[data-theme="dark"] .terms-consent-check,
html[data-theme="dark"] .terms-consent-links a {
  border-color: rgba(74, 92, 84, 0.78);
  background: rgba(17, 23, 20, 0.66);
}

html[data-theme="light"][data-device-mode="phone"] .phone-nav,
html[data-theme="light"][data-device-mode="phone"] #auth-open,
html[data-theme="light"][data-device-mode="phone"] #theme-toggle {
  border-color: rgba(170, 185, 172, 0.64);
  background: rgba(255, 254, 250, 0.9);
}

html[data-theme="dark"][data-device-mode="phone"] .phone-nav,
html[data-theme="dark"][data-device-mode="phone"] #auth-open,
html[data-theme="dark"][data-device-mode="phone"] #theme-toggle {
  border-color: rgba(74, 92, 84, 0.82);
  background: rgba(24, 33, 30, 0.92);
}

/* Dedicated phone light mode. Keep this after all dark/system rules. */
html[data-resolved-theme="light"][data-device-mode="phone"],
html[data-resolved-theme="light"][data-device-mode="phone"] body {
  color: #17201d;
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 29, 0.03) 1px, transparent 1px),
    radial-gradient(640px 320px at 18% -4%, rgba(15, 111, 104, 0.12), transparent 66%),
    radial-gradient(560px 340px at 92% 4%, rgba(184, 111, 50, 0.1), transparent 70%),
    linear-gradient(180deg, #fffefa 0%, #f3f6f1 52%, #edf3f0 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

html[data-resolved-theme="light"][data-device-mode="phone"] body::before {
  opacity: 0.22;
  mix-blend-mode: multiply;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .topbar,
html[data-resolved-theme="light"][data-device-mode="phone"] #theme-toggle,
html[data-resolved-theme="light"][data-device-mode="phone"] #auth-open,
html[data-resolved-theme="light"][data-device-mode="phone"] .phone-nav,
html[data-resolved-theme="light"][data-device-mode="phone"] .auth-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] .account-menu,
html[data-resolved-theme="light"][data-device-mode="phone"] .account-menu-btn,
html[data-resolved-theme="light"][data-device-mode="phone"] .card,
html[data-resolved-theme="light"][data-device-mode="phone"] .card.glass,
html[data-resolved-theme="light"][data-device-mode="phone"] .card.glass.search-card,
html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] .support-card,
html[data-resolved-theme="light"][data-device-mode="phone"] .support-contact-card,
html[data-resolved-theme="light"][data-device-mode="phone"] .price-card,
html[data-resolved-theme="light"][data-device-mode="phone"] .buy-credits,
html[data-resolved-theme="light"][data-device-mode="phone"] .settings-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] .policy-card,
html[data-resolved-theme="light"][data-device-mode="phone"] .landing-hero,
html[data-resolved-theme="light"][data-device-mode="phone"] .comparison-table-wrap,
html[data-resolved-theme="light"][data-device-mode="phone"] .terms-consent-panel {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.7);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 16px 46px rgba(23, 32, 29, 0.1);
}

html[data-resolved-theme="light"][data-device-mode="phone"] .hero::before {
  border-color: rgba(170, 185, 172, 0.62);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(15, 111, 104, 0.14), transparent 22%),
    radial-gradient(circle at 50% 38%, transparent 0 16%, rgba(23, 32, 29, 0.06) 16.2% 16.7%, transparent 17% 29%, rgba(184, 111, 50, 0.14) 29.2% 29.8%, transparent 30%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.84), rgba(255, 254, 250, 0.94));
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .hero::after {
  background: linear-gradient(180deg, transparent 0 72%, rgba(243, 246, 241, 0.98));
}

html[data-resolved-theme="light"][data-device-mode="phone"] .brand-name,
html[data-resolved-theme="light"][data-device-mode="phone"] .phone-hero-title,
html[data-resolved-theme="light"][data-device-mode="phone"] .hero-title,
html[data-resolved-theme="light"][data-device-mode="phone"] .tool-title,
html[data-resolved-theme="light"][data-device-mode="phone"] .section-title,
html[data-resolved-theme="light"][data-device-mode="phone"] .card-head h2,
html[data-resolved-theme="light"][data-device-mode="phone"] .price-name,
html[data-resolved-theme="light"][data-device-mode="phone"] .price-amount {
  color: #17201d;
  -webkit-text-fill-color: currentColor;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .hero-sub,
html[data-resolved-theme="light"][data-device-mode="phone"] .tool-sub,
html[data-resolved-theme="light"][data-device-mode="phone"] .muted,
html[data-resolved-theme="light"][data-device-mode="phone"] .hero-note,
html[data-resolved-theme="light"][data-device-mode="phone"] .assist-label,
html[data-resolved-theme="light"][data-device-mode="phone"] .settings-profile-copy .muted,
html[data-resolved-theme="light"][data-device-mode="phone"] .account-menu-email {
  color: #5b6961;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .eyebrow,
html[data-resolved-theme="light"][data-device-mode="phone"] .tool-kicker,
html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-kicker,
html[data-resolved-theme="light"][data-device-mode="phone"] .settings-panel-kicker,
html[data-resolved-theme="light"][data-device-mode="phone"] .price-flag {
  color: #084f4a;
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.9);
}

html[data-resolved-theme="light"][data-device-mode="phone"] input,
html[data-resolved-theme="light"][data-device-mode="phone"] select,
html[data-resolved-theme="light"][data-device-mode="phone"] textarea,
html[data-resolved-theme="light"][data-device-mode="phone"] .combo-control,
html[data-resolved-theme="light"][data-device-mode="phone"] .combo-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] .chat-input,
html[data-resolved-theme="light"][data-device-mode="phone"] .usd-input,
html[data-resolved-theme="light"][data-device-mode="phone"] .signal-row {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.82);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-panel .assist-value,
html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-panel .assist-steps span,
html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-panel .muted {
  color: #17201d;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .search-assist-panel .assist-scan-visual {
  border-color: rgba(15, 111, 104, 0.14);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    rgba(226, 241, 237, 0.55);
  background-size: 24px 24px, 24px 24px, auto;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .phone-nav :is(button, a) {
  color: #5b6961;
  background: transparent;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .phone-nav :is(button, a).active {
  color: #084f4a;
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.95);
}

html[data-resolved-theme="light"][data-device-mode="phone"] .phone-nav-mark,
html[data-resolved-theme="light"][data-device-mode="phone"] .assist-steps span,
html[data-resolved-theme="light"][data-device-mode="phone"] .settings-panel-icon,
html[data-resolved-theme="light"][data-device-mode="phone"] .account-avatar,
html[data-resolved-theme="light"][data-device-mode="phone"] .account-menu-mini-avatar {
  color: #084f4a;
  background: rgba(226, 241, 237, 0.92);
}

html[data-resolved-theme="light"][data-device-mode="phone"] .phone-nav :is(button, a).active .phone-nav-mark {
  color: #fffefa;
  background: #084f4a;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .theme-toggle-track {
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.92);
}

html[data-resolved-theme="light"][data-device-mode="phone"] .theme-toggle-icon {
  left: 0.12rem;
  background: #0f6f68;
}

html[data-resolved-theme="light"][data-device-mode="phone"] .terms-consent {
  background:
    radial-gradient(520px 280px at 18% 16%, rgba(85, 183, 170, 0.18), transparent 70%),
    radial-gradient(480px 260px at 86% 72%, rgba(230, 160, 104, 0.14), transparent 72%),
    rgba(243, 246, 241, 0.76);
}

html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-profile-panel,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-preferences-panel {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(238, 244, 239, 0.82)),
    #fffefa;
}

html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-profile-panel {
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(226, 241, 237, 0.86));
  background-size: 18px 18px, auto;
}

html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view input,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view select,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view textarea,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-toggle-row,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-account-card,
html[data-resolved-theme="light"][data-device-mode="phone"] #settings-view .settings-mini-actions button {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.82);
  background: rgba(255, 254, 250, 0.88);
}

html[data-resolved-theme="light"][data-device-mode="phone"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) > .tool-head,
html[data-resolved-theme="light"][data-device-mode="phone"] #support-view .chat-log,
html[data-resolved-theme="light"][data-device-mode="phone"] .settings-preference-preview {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.7);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    rgba(255, 254, 250, 0.78);
  background-size: 22px 22px, 22px 22px, auto;
}

html[data-resolved-theme="light"][data-device-mode="phone"] :is(
  .usecase-recipe div,
  .home-founder-note,
  .about-origin-story,
  .how-guide-hero,
  .how-final-cta,
  .how-pipeline,
  .pipeline-node,
  .pipeline-card,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .about-hero,
  .about-note-band,
  .about-story-grid article,
  .about-founder-card
) {
  color: #17201d;
  border-color: rgba(170, 185, 172, 0.72);
  background: rgba(255, 254, 250, 0.88);
}

/* Dedicated dark interface. Keep this last so dark mode is a full skin, not partial overrides. */
@keyframes darkAuroraDrift {
  0%, 100% { background-position: 0 0, 0 0, 16% 0, 86% 8%, 50% 0; }
  50% { background-position: 28px 16px, -18px 22px, 22% 4%, 76% 12%, 50% 0; }
}

@keyframes darkPanelScan {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 0.8; }
  62% { opacity: 0.28; }
  100% { transform: translateX(160%); opacity: 0; }
}

@keyframes darkSignalPulse {
  0%, 100% { opacity: 0.56; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.045); }
}

html[data-resolved-theme="dark"] {
  color-scheme: dark;
  --bg: #080d12;
  --bg-accent: #101922;
  --surface: #0d151b;
  --surface-2: #121f27;
  --surface-3: #132a2d;
  --border: #263942;
  --border-strong: #3c5a61;
  --text: #f4f1e8;
  --text-muted: #b8c4bd;
  --text-faint: #71827b;
  --primary: #4dd8c9;
  --primary-strong: #92fff1;
  --primary-soft: rgba(77, 216, 201, 0.14);
  --accent: #f0a55d;
  --accent-strong: #ffc985;
  --danger: #ff7c7c;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 86px rgba(0, 0, 0, 0.58);
  --focus-ring: 0 0 0 3px rgba(77, 216, 201, 0.28), 0 0 0 1px rgba(146, 255, 241, 0.7);
}

html[data-resolved-theme="dark"],
html[data-resolved-theme="dark"] body {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(146, 255, 241, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(146, 255, 241, 0.028) 1px, transparent 1px),
    radial-gradient(900px 420px at 12% -4%, rgba(77, 216, 201, 0.18), transparent 68%),
    radial-gradient(820px 480px at 92% 6%, rgba(240, 165, 93, 0.14), transparent 70%),
    linear-gradient(180deg, #05080d 0%, #0a1118 48%, #070b10 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  animation: darkAuroraDrift 22s ease-in-out infinite;
}

html[data-resolved-theme="dark"] body::before {
  opacity: 0.08;
  mix-blend-mode: screen;
}

html[data-resolved-theme="dark"] .bg-orbs .orb {
  filter: blur(74px);
  opacity: 0.36;
}

html[data-resolved-theme="dark"] .orb-1 {
  background: radial-gradient(circle at 30% 30%, rgba(77, 216, 201, 0.56), transparent 70%);
}

html[data-resolved-theme="dark"] .orb-2 {
  background: radial-gradient(circle at 30% 30%, rgba(240, 165, 93, 0.42), transparent 72%);
}

html[data-resolved-theme="dark"] .orb-3 {
  background: radial-gradient(circle at 30% 30%, rgba(124, 108, 240, 0.35), transparent 72%);
}

html[data-resolved-theme="dark"] .topbar {
  border-color: rgba(77, 216, 201, 0.18);
  background:
    linear-gradient(90deg, rgba(146, 255, 241, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 28, 36, 0.92), rgba(8, 13, 18, 0.88));
  background-size: 24px 24px, auto;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

html[data-resolved-theme="dark"] .brand-name,
html[data-resolved-theme="dark"] .hero-title,
html[data-resolved-theme="dark"] .phone-hero-title,
html[data-resolved-theme="dark"] .tool-title,
html[data-resolved-theme="dark"] .section-title,
html[data-resolved-theme="dark"] .price-name,
html[data-resolved-theme="dark"] .price-amount,
html[data-resolved-theme="dark"] .card-head h2,
html[data-resolved-theme="dark"] .settings-panel h2,
html[data-resolved-theme="dark"] .support-contact-card strong,
html[data-resolved-theme="dark"] .policy-card :is(h1, h2, h3, [role="heading"][aria-level="1"]),
html[data-resolved-theme="dark"] .landing-hero :is(h1, h2, h3, [role="heading"][aria-level="1"]) {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

html[data-resolved-theme="dark"] .brand-mark {
  color: #fffefa;
  border-color: rgba(146, 255, 241, 0.34);
  background:
    radial-gradient(circle at 34% 28%, rgba(146, 255, 241, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(28, 62, 62, 0.94), rgba(5, 10, 13, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -16px 28px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(77, 216, 201, 0.22);
}

html[data-resolved-theme="dark"] .brand-mark::after {
  opacity: 0.38;
  border-color: rgba(146, 255, 241, 0.52);
}

html[data-resolved-theme="dark"] .navlink,
html[data-resolved-theme="dark"] .ghost-back,
html[data-resolved-theme="dark"] .credits-badge,
html[data-resolved-theme="dark"] .bt-opt {
  color: #c7d4ce;
  border-color: rgba(77, 216, 201, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

html[data-resolved-theme="dark"] .navlink:hover,
html[data-resolved-theme="dark"] .ghost-back:hover:not(:disabled),
html[data-resolved-theme="dark"] .credits-badge:hover,
html[data-resolved-theme="dark"] .bt-opt:hover {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.28);
  background: rgba(77, 216, 201, 0.1);
}

html[data-resolved-theme="dark"] .credits-dot,
html[data-resolved-theme="dark"] .credits-badge {
  color: var(--primary-strong);
}

html[data-resolved-theme="dark"] .theme-toggle {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 34, 42, 0.94), rgba(8, 13, 18, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 26px rgba(0, 0, 0, 0.24);
}

html[data-resolved-theme="dark"] .theme-toggle-track {
  border-color: rgba(146, 255, 241, 0.32);
  background: rgba(3, 7, 10, 0.88);
  box-shadow: inset 0 0 14px rgba(77, 216, 201, 0.14);
}

html[data-resolved-theme="dark"] .theme-toggle-icon {
  left: calc(100% - 1rem);
  color: #071014;
  background: linear-gradient(135deg, #92fff1, #f0a55d);
  box-shadow: 0 0 18px rgba(77, 216, 201, 0.34);
}

html[data-resolved-theme="dark"] .theme-toggle-label {
  color: #d9e6df;
}

html[data-resolved-theme="dark"] .hero {
  perspective: 1200px;
}

html[data-resolved-theme="dark"] .hero::before {
  border-color: rgba(77, 216, 201, 0.22);
  background:
    linear-gradient(90deg, rgba(146, 255, 241, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(146, 255, 241, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(77, 216, 201, 0.18), transparent 17%),
    radial-gradient(circle at 50% 38%, transparent 0 15%, rgba(146, 255, 241, 0.09) 15.2% 15.7%, transparent 16% 30%, rgba(240, 165, 93, 0.18) 30.2% 31%, transparent 31.5%),
    linear-gradient(180deg, rgba(13, 21, 27, 0.94), rgba(5, 8, 13, 0.98));
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 70px rgba(77, 216, 201, 0.06),
    0 34px 94px rgba(0, 0, 0, 0.62);
  animation: darkAuroraDrift 18s ease-in-out infinite;
}

html[data-resolved-theme="dark"] .hero::after {
  inset: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(146, 255, 241, 0.14), transparent),
    linear-gradient(180deg, transparent 0 72%, rgba(5, 8, 13, 0.82));
  background-size: 46% 100%, auto;
  background-position: -60% 0, 0 0;
  animation: darkPanelScan 8s ease-in-out infinite;
}

html[data-resolved-theme="dark"] .hero-title {
  text-shadow: 0 0 28px rgba(146, 255, 241, 0.1), 0 18px 42px rgba(0, 0, 0, 0.42);
}

html[data-resolved-theme="dark"] .hero-title .grad {
  color: var(--primary-strong);
  background: linear-gradient(90deg, #92fff1, #f0a55d 56%, #c8bdff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-resolved-theme="dark"] .hero-sub,
html[data-resolved-theme="dark"] .tool-sub,
html[data-resolved-theme="dark"] .section-sub,
html[data-resolved-theme="dark"] .muted,
html[data-resolved-theme="dark"] .hero-note,
html[data-resolved-theme="dark"] .chat-fallback,
html[data-resolved-theme="dark"] .policy-card p,
html[data-resolved-theme="dark"] .landing-hero p,
html[data-resolved-theme="dark"] .landing-grid p,
html[data-resolved-theme="dark"] .support-contact-card small,
html[data-resolved-theme="dark"] .settings-toggle-row small,
html[data-resolved-theme="dark"] .settings-profile-copy .muted,
html[data-resolved-theme="dark"] .account-menu-email {
  color: var(--text-muted);
}

html[data-resolved-theme="dark"] .eyebrow,
html[data-resolved-theme="dark"] .tool-kicker,
html[data-resolved-theme="dark"] .search-assist-kicker,
html[data-resolved-theme="dark"] .settings-panel-kicker,
html[data-resolved-theme="dark"] .support-contact-kicker,
html[data-resolved-theme="dark"] .price-flag,
html[data-resolved-theme="dark"] .legal-page .tool-kicker {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.18);
  background: rgba(77, 216, 201, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 22px rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] .eyebrow-dot,
html[data-resolved-theme="dark"] .board-live-dot,
html[data-resolved-theme="dark"] .assist-node,
html[data-resolved-theme="dark"] .settings-health-list strong {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 165, 93, 0.12), 0 0 18px rgba(240, 165, 93, 0.28);
  animation: darkSignalPulse 3.4s ease-in-out infinite;
}

html[data-resolved-theme="dark"] .cta,
html[data-resolved-theme="dark"] .topbar-cta,
html[data-resolved-theme="dark"] button.price-pick,
html[data-resolved-theme="dark"] .usecase-card .linklike,
html[data-resolved-theme="dark"] #terms-consent-accept {
  color: #061014;
  border: 1px solid rgba(146, 255, 241, 0.28);
  background: linear-gradient(135deg, #92fff1, #4dd8c9 48%, #f0a55d);
  box-shadow: 0 18px 38px rgba(77, 216, 201, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  text-shadow: none;
}

html[data-resolved-theme="dark"] .cta:hover:not(:disabled),
html[data-resolved-theme="dark"] .topbar-cta:hover,
html[data-resolved-theme="dark"] button.price-pick:hover:not(:disabled),
html[data-resolved-theme="dark"] .usecase-card .linklike:hover {
  color: #061014;
  background: linear-gradient(135deg, #dffef9, #69f2e1 48%, #ffc985);
  box-shadow: 0 22px 52px rgba(77, 216, 201, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

html[data-resolved-theme="dark"] .secondary-cta,
html[data-resolved-theme="dark"] .linklike,
html[data-resolved-theme="dark"] .terms-consent-links a,
html[data-resolved-theme="dark"] .settings-mini-actions button {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.2);
  background: rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] .secondary-cta:hover,
html[data-resolved-theme="dark"] .linklike:hover,
html[data-resolved-theme="dark"] .settings-mini-actions button:hover {
  color: #061014;
  background: var(--primary-strong);
}

html[data-resolved-theme="dark"] :is(
  .hero-command-board,
  .stat,
  .how-step,
  .usecase-card,
  .quality-card,
  .result-preview-table,
  .price-card,
  .policy-card,
  .landing-hero,
  .landing-grid article,
  .comparison-table-wrap,
  .support-contact-card,
  .support-card,
  .settings-panel,
  .card,
  .card.glass,
  .card.glass.search-card,
  .buy-credits,
  .search-assist-panel,
  .auth-panel,
  .account-menu,
  .account-menu-btn,
  .home-founder-note,
  .about-origin-story,
  .about-hero,
  .about-note-band,
  .about-story-grid article,
  .about-founder-card,
  .how-guide-hero,
  .how-final-cta,
  .how-pipeline,
  .pipeline-node,
  .pipeline-card,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .terms-consent-panel
) {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 28, 36, 0.94), rgba(8, 13, 18, 0.92)),
    #0d151b;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-resolved-theme="dark"] :is(
  .usecase-card,
  .quality-card,
  .price-card,
  .support-contact-card,
  .support-card,
  .settings-panel,
  .card.glass.search-card,
  .search-assist-panel,
  .how-guide-hero,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .landing-hero,
  .landing-grid article,
  .policy-card
) {
  position: relative;
  overflow: hidden;
}

html[data-resolved-theme="dark"] :is(
  .usecase-card,
  .quality-card,
  .price-card,
  .support-card,
  .settings-panel,
  .card.glass.search-card,
  .search-assist-panel,
  .how-guide-hero,
  .how-process-card,
  .lead-standard-card,
  .expectation-card
)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(146, 255, 241, 0.08), transparent);
  transform: translateX(-120%);
  animation: darkPanelScan 9s ease-in-out infinite;
}

html[data-resolved-theme="dark"] .hero-command-board {
  background:
    radial-gradient(circle at 24% 14%, rgba(77, 216, 201, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(17, 28, 36, 0.96), rgba(6, 10, 14, 0.96));
}

html[data-resolved-theme="dark"] .command-board-head {
  color: var(--primary-strong);
  border-bottom-color: rgba(77, 216, 201, 0.18);
  background: rgba(77, 216, 201, 0.045);
}

html[data-resolved-theme="dark"] .radar-plate,
html[data-resolved-theme="dark"] .assist-scan-visual {
  border-color: rgba(77, 216, 201, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 216, 201, 0.2), transparent 8%),
    radial-gradient(circle at 50% 50%, transparent 0 32%, rgba(77, 216, 201, 0.13) 33%, transparent 34%),
    linear-gradient(90deg, rgba(146, 255, 241, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(146, 255, 241, 0.07) 1px, transparent 1px),
    #071014;
  background-size: auto, auto, 22px 22px, 22px 22px, auto;
  box-shadow: inset 0 0 34px rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] .radar-core {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.28);
  background: rgba(3, 7, 10, 0.74);
  box-shadow: 0 0 28px rgba(77, 216, 201, 0.16);
}

html[data-resolved-theme="dark"] .signal-row,
html[data-resolved-theme="dark"] .usecase-recipe div,
html[data-resolved-theme="dark"] .preview-row,
html[data-resolved-theme="dark"] .settings-toggle-row,
html[data-resolved-theme="dark"] .settings-account-card,
html[data-resolved-theme="dark"] .chat-bot,
html[data-resolved-theme="dark"] .pipeline-card,
html[data-resolved-theme="dark"] .pipeline-node {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.16);
  background:
    linear-gradient(90deg, rgba(77, 216, 201, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

html[data-resolved-theme="dark"] .signal-row.strong,
html[data-resolved-theme="dark"] .preview-head {
  border-color: rgba(77, 216, 201, 0.28);
  background: rgba(77, 216, 201, 0.11);
}

html[data-resolved-theme="dark"] .signal-chip,
html[data-resolved-theme="dark"] .preview-pill,
html[data-resolved-theme="dark"] .price-mult {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.2);
  background: rgba(77, 216, 201, 0.1);
}

html[data-resolved-theme="dark"] .preview-pill.alt,
html[data-resolved-theme="dark"] .preview-pill.draft {
  color: var(--accent-strong);
  background: rgba(240, 165, 93, 0.11);
  border-color: rgba(240, 165, 93, 0.2);
}

html[data-resolved-theme="dark"] .usecase-icon,
html[data-resolved-theme="dark"] .quality-mark,
html[data-resolved-theme="dark"] .how-num,
html[data-resolved-theme="dark"] .step-badge,
html[data-resolved-theme="dark"] .settings-panel-icon,
html[data-resolved-theme="dark"] .settings-avatar-mini,
html[data-resolved-theme="dark"] .settings-avatar-large,
html[data-resolved-theme="dark"] .account-avatar,
html[data-resolved-theme="dark"] .account-menu-mini-avatar,
html[data-resolved-theme="dark"] .phone-nav-mark {
  color: #071014;
  border-color: rgba(146, 255, 241, 0.24);
  background: linear-gradient(135deg, #92fff1, #4dd8c9);
  box-shadow: 0 0 24px rgba(77, 216, 201, 0.2);
}

html[data-resolved-theme="dark"] .usecase-card h3,
html[data-resolved-theme="dark"] .quality-card h3,
html[data-resolved-theme="dark"] .how-step h3,
html[data-resolved-theme="dark"] .how-process-card h3,
html[data-resolved-theme="dark"] .lead-standard-card h3,
html[data-resolved-theme="dark"] .expectation-card h3,
html[data-resolved-theme="dark"] .signal-name,
html[data-resolved-theme="dark"] .usecase-recipe span,
html[data-resolved-theme="dark"] .preview-row strong,
html[data-resolved-theme="dark"] .settings-copy-label,
html[data-resolved-theme="dark"] .settings-digest-label {
  color: var(--text);
}

html[data-resolved-theme="dark"] .usecase-recipe small,
html[data-resolved-theme="dark"] .preview-head,
html[data-resolved-theme="dark"] .stat-num,
html[data-resolved-theme="dark"] .price-credits strong,
html[data-resolved-theme="dark"] .buy-preview,
html[data-resolved-theme="dark"] .settings-preference-preview strong,
html[data-resolved-theme="dark"] .quality-mark {
  color: var(--primary-strong);
}

html[data-resolved-theme="dark"] .usecase-card::after,
html[data-resolved-theme="dark"] .quality-card::after,
html[data-resolved-theme="dark"] #pricing-view .price-card::after,
html[data-resolved-theme="dark"] .support-contact-card::after,
html[data-resolved-theme="dark"] .landing-grid article::after {
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.8;
}

html[data-resolved-theme="dark"] .price-card.featured {
  border-color: rgba(146, 255, 241, 0.42);
  box-shadow: 0 28px 78px rgba(77, 216, 201, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-resolved-theme="dark"] .price-feats li,
html[data-resolved-theme="dark"] .clean-list,
html[data-resolved-theme="dark"] .chat-msg,
html[data-resolved-theme="dark"] .preview-row small {
  color: var(--text-muted);
}

html[data-resolved-theme="dark"] .price-feats li::before {
  color: var(--accent-strong);
}

html[data-resolved-theme="dark"] input,
html[data-resolved-theme="dark"] select,
html[data-resolved-theme="dark"] textarea,
html[data-resolved-theme="dark"] .combo-control,
html[data-resolved-theme="dark"] .combo-panel,
html[data-resolved-theme="dark"] .combo-search,
html[data-resolved-theme="dark"] .chat-input,
html[data-resolved-theme="dark"] .usd-input,
html[data-resolved-theme="dark"] #settings-view input,
html[data-resolved-theme="dark"] #settings-view select,
html[data-resolved-theme="dark"] #settings-view textarea {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.22);
  background: rgba(3, 7, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

html[data-resolved-theme="dark"] input::placeholder,
html[data-resolved-theme="dark"] textarea::placeholder,
html[data-resolved-theme="dark"] .chat-input::placeholder {
  color: rgba(184, 196, 189, 0.68);
}

html[data-resolved-theme="dark"] .combo-option {
  color: var(--text);
}

html[data-resolved-theme="dark"] .combo-option:hover,
html[data-resolved-theme="dark"] .combo-option.selected {
  color: #061014;
  background: var(--primary-strong);
}

html[data-resolved-theme="dark"] .search-section-primary {
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(77, 216, 201, 0.1), transparent 72%),
    rgba(77, 216, 201, 0.035);
}

html[data-resolved-theme="dark"] .search-section + .search-section {
  border-top-color: rgba(77, 216, 201, 0.14);
}

html[data-resolved-theme="dark"] .search-assist-panel .assist-value,
html[data-resolved-theme="dark"] .search-assist-panel .assist-steps span,
html[data-resolved-theme="dark"] .search-assist-panel .muted,
html[data-resolved-theme="dark"] .search-assist-panel .assist-label {
  color: var(--text);
}

html[data-resolved-theme="dark"] .assist-steps span {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.16);
  background: rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] .assist-steps span::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 165, 93, 0.14), 0 0 18px rgba(240, 165, 93, 0.22);
}

html[data-resolved-theme="dark"] .table-wrap,
html[data-resolved-theme="dark"] table,
html[data-resolved-theme="dark"] .results-stats,
html[data-resolved-theme="dark"] .results-bar {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.16);
  background: rgba(8, 13, 18, 0.86);
}

html[data-resolved-theme="dark"] th {
  color: var(--primary-strong);
  background: rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] td {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.1);
}

html[data-resolved-theme="dark"] .results-stats.shortfall {
  color: var(--accent-strong);
  background: rgba(240, 165, 93, 0.1);
  border-color: rgba(240, 165, 93, 0.22);
}

html[data-resolved-theme="dark"] .chat-user {
  color: #061014;
  background: linear-gradient(135deg, #92fff1, #f0a55d);
}

html[data-resolved-theme="dark"] .auth-backdrop,
html[data-resolved-theme="dark"] .terms-consent {
  background:
    radial-gradient(720px 420px at 18% 12%, rgba(77, 216, 201, 0.18), transparent 72%),
    radial-gradient(580px 340px at 88% 76%, rgba(240, 165, 93, 0.14), transparent 70%),
    rgba(3, 6, 9, 0.82);
}

html[data-resolved-theme="dark"] .terms-consent-check {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.18);
  background: rgba(77, 216, 201, 0.08);
}

html[data-resolved-theme="dark"] .to-top {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.26);
  background: rgba(8, 13, 18, 0.9);
}

html[data-resolved-theme="dark"] .to-top:hover {
  color: #061014;
  background: var(--primary-strong);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] body {
  padding-bottom: calc(5.9rem + env(safe-area-inset-bottom));
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .topbar {
  background:
    radial-gradient(180px 90px at 18% 0%, rgba(77, 216, 201, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(17, 28, 36, 0.94), rgba(8, 13, 18, 0.92));
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .hero {
  margin-top: 1.35rem;
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .hero::before {
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .phone-nav {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.24);
  background:
    linear-gradient(90deg, rgba(146, 255, 241, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 28, 36, 0.96), rgba(5, 8, 13, 0.96));
  background-size: 22px 22px, auto;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .phone-nav :is(button, a) {
  color: var(--text-muted);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .phone-nav :is(button, a).active {
  color: var(--primary-strong);
  border-color: rgba(77, 216, 201, 0.26);
  background: rgba(77, 216, 201, 0.11);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .phone-nav :is(button, a).active .phone-nav-mark {
  color: #061014;
  background: linear-gradient(135deg, #92fff1, #f0a55d);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] #auth-open,
html[data-resolved-theme="dark"][data-device-mode="phone"] #theme-toggle,
html[data-resolved-theme="dark"][data-device-mode="phone"] .account-menu-btn {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.22);
  background: rgba(8, 13, 18, 0.84);
}

html[data-resolved-theme="dark"] .mobile-menu-toggle,
html[data-resolved-theme="dark"] .mobile-menu,
html[data-resolved-theme="dark"] .mobile-menu-close,
html[data-resolved-theme="dark"] .mobile-menu-section button,
html[data-resolved-theme="dark"] .mobile-menu-section a,
html[data-resolved-theme="dark"] .password-toggle,
html[data-resolved-theme="dark"] .lead-report-box,
html[data-resolved-theme="dark"] .seo-study-card,
html[data-resolved-theme="dark"] .seo-tool-context article,
html[data-resolved-theme="dark"] .not-found-card {
  color: #f4f1e8;
  border-color: rgba(77, 216, 201, 0.22);
  background:
    linear-gradient(145deg, rgba(13, 21, 27, 0.96), rgba(5, 9, 13, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-resolved-theme="dark"] .seo-tool-question,
html[data-resolved-theme="dark"] .seo-result-metrics {
  border-color: rgba(77, 216, 201, 0.2);
  background: rgba(77, 216, 201, 0.09);
}

html[data-resolved-theme="dark"] .seo-tool-output,
html[data-resolved-theme="dark"] .seo-result-body,
html[data-resolved-theme="dark"] .seo-result-body-wrap {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.22);
  background: rgba(5, 9, 13, 0.82);
}

html[data-resolved-theme="dark"] .seo-result-metrics > div,
html[data-resolved-theme="dark"] .seo-result-next {
  border-color: rgba(77, 216, 201, 0.16);
}

html[data-resolved-theme="dark"] .seo-tool-grid input,
html[data-resolved-theme="dark"] .seo-tool-grid select,
html[data-resolved-theme="dark"] .seo-tool-grid textarea,
html[data-resolved-theme="dark"] .seo-range-control {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.24);
  background: rgba(4, 9, 12, 0.92);
}

html[data-resolved-theme="dark"] .seo-result-body-head {
  border-color: rgba(77, 216, 201, 0.18);
  background: rgba(77, 216, 201, 0.09);
}

html[data-resolved-theme="dark"] .seo-result-copy {
  color: #71e0d3;
  border-color: rgba(77, 216, 201, 0.35);
  background: rgba(5, 9, 13, 0.9);
}

/* Dark-mode surfaces for SEO landing-page components (originals were light-only) */
html[data-resolved-theme="dark"] .seo-intent-strip article,
html[data-resolved-theme="dark"] .seo-card-grid article,
html[data-resolved-theme="dark"] .seo-card-grid a,
html[data-resolved-theme="dark"] .seo-related-grid a,
html[data-resolved-theme="dark"] .seo-metrics article,
html[data-resolved-theme="dark"] .seo-benchmark-grid article,
html[data-resolved-theme="dark"] .seo-proof-grid article,
html[data-resolved-theme="dark"] .seo-tool-panel,
html[data-resolved-theme="dark"] .seo-benchmark-live,
html[data-resolved-theme="dark"] .seo-content,
html[data-resolved-theme="dark"] .seo-table-stack,
html[data-resolved-theme="dark"] .seo-faq {
  color: #f4f1e8;
  border-color: rgba(77, 216, 201, 0.2);
  background: linear-gradient(145deg, rgba(13, 21, 27, 0.96), rgba(5, 9, 13, 0.96));
}

html[data-resolved-theme="dark"] .seo-signal-board {
  color: #f4f1e8;
  border-color: rgba(77, 216, 201, 0.2);
  background:
    radial-gradient(circle at 48% 32%, rgba(77, 216, 201, 0.22), transparent 7%),
    radial-gradient(circle at 24% 64%, rgba(184, 111, 50, 0.22), transparent 8%),
    radial-gradient(circle at 76% 72%, rgba(77, 216, 201, 0.16), transparent 8%),
    linear-gradient(90deg, rgba(77, 216, 201, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(77, 216, 201, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(13, 21, 27, 0.96), rgba(5, 9, 13, 0.96));
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
}

html[data-resolved-theme="dark"] .seo-signal-board li {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.16);
  background: rgba(5, 9, 13, 0.6);
}

/* Uppercase mint label pills inside SEO cards */
html[data-resolved-theme="dark"] .seo-signal-board span,
html[data-resolved-theme="dark"] .seo-metrics article span,
html[data-resolved-theme="dark"] .seo-benchmark-grid article span,
html[data-resolved-theme="dark"] .seo-proof-grid article span {
  color: #92fff1;
  background: rgba(77, 216, 201, 0.12);
}

html[data-resolved-theme="dark"] .seo-checklist label {
  border-color: rgba(77, 216, 201, 0.18);
  background: rgba(5, 9, 13, 0.55);
}

html[data-resolved-theme="dark"] .seo-intent-strip {
  border-color: rgba(77, 216, 201, 0.16);
  background: rgba(5, 9, 13, 0.4);
}

/* SEO comparison / depth tables */
html[data-resolved-theme="dark"] .seo-table-scroll {
  border-color: rgba(77, 216, 201, 0.2);
  background: rgba(5, 9, 13, 0.6);
}
html[data-resolved-theme="dark"] .seo-depth-table th {
  color: #92fff1;
  background: rgba(77, 216, 201, 0.12);
}
html[data-resolved-theme="dark"] .seo-depth-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}
html[data-resolved-theme="dark"] .seo-table-scroll td,
html[data-resolved-theme="dark"] .seo-table-scroll th {
  border-color: rgba(77, 216, 201, 0.12);
}

/* Research nav link stays mint (not a filled button) in dark mode */
html[data-resolved-theme="dark"] .topnav .navlink-research {
  color: #71e0d3;
}
html[data-resolved-theme="dark"] .topnav .navlink-research:hover,
html[data-resolved-theme="dark"] .topnav .navlink-research:focus-visible,
html[data-resolved-theme="dark"] .topnav .navlink-research[aria-current="page"] {
  color: #92fff1;
}

html[data-resolved-theme="dark"] .mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.58);
}

html[data-resolved-theme="dark"] .mobile-menu-head small,
html[data-resolved-theme="dark"] .lead-report-status,
html[data-resolved-theme="dark"] .seo-study-card dd,
html[data-resolved-theme="dark"] .seo-tool-context p,
html[data-resolved-theme="dark"] .not-found-card p {
  color: rgba(244, 241, 232, 0.72);
}

html[data-resolved-theme="dark"] .lead-report-box select,
html[data-resolved-theme="dark"] .lead-report-box textarea {
  color: #f4f1e8;
  border-color: rgba(77, 216, 201, 0.24);
  background: rgba(4, 9, 12, 0.92);
}

html[data-resolved-theme="dark"] .lead-row.reported {
  background: rgba(240, 165, 93, 0.11);
}

html[data-resolved-theme="dark"][data-device-mode="phone"] .theme-toggle-icon {
  left: calc(100% - 0.9rem);
}

html[data-resolved-theme="dark"] :is(#pricing-view, #support-view, #how-it-works-view, #settings-view) > .tool-head,
html[data-resolved-theme="dark"] #pricing-view .price-card,
html[data-resolved-theme="dark"] #pricing-view .buy-credits,
html[data-resolved-theme="dark"] #support-view .support-card,
html[data-resolved-theme="dark"] #support-view .support-contact-card,
html[data-resolved-theme="dark"] #support-view .chat-log,
html[data-resolved-theme="dark"] #settings-view .settings-panel,
html[data-resolved-theme="dark"] #settings-view .settings-profile-panel,
html[data-resolved-theme="dark"] #settings-view .settings-preferences-panel,
html[data-resolved-theme="dark"] #settings-view .settings-account-card,
html[data-resolved-theme="dark"] .settings-preference-preview {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.2);
  background:
    linear-gradient(90deg, rgba(146, 255, 241, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 28, 36, 0.94), rgba(8, 13, 18, 0.92));
  background-size: 24px 24px, auto;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-resolved-theme="dark"] #support-view .support-contact-card.primary {
  border-color: rgba(77, 216, 201, 0.28);
  background:
    radial-gradient(320px 160px at 12% 0%, rgba(77, 216, 201, 0.12), transparent 76%),
    linear-gradient(180deg, rgba(17, 28, 36, 0.96), rgba(8, 13, 18, 0.92));
}

html[data-resolved-theme="dark"] #settings-view input,
html[data-resolved-theme="dark"] #settings-view select,
html[data-resolved-theme="dark"] #settings-view textarea,
html[data-resolved-theme="dark"] #settings-view .settings-toggle-row,
html[data-resolved-theme="dark"] #settings-view .settings-mini-actions button {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.22);
  background: rgba(3, 7, 10, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  html[data-resolved-theme="dark"],
  html[data-resolved-theme="dark"] body,
  html[data-resolved-theme="dark"] .hero::before,
  html[data-resolved-theme="dark"] .hero::after,
  html[data-resolved-theme="dark"] :is(
    .usecase-card,
    .quality-card,
    .price-card,
    .support-card,
    .settings-panel,
    .card.glass.search-card,
    .search-assist-panel,
    .how-guide-hero,
    .how-process-card,
    .lead-standard-card,
    .expectation-card
  )::before,
  html[data-resolved-theme="dark"] :is(.eyebrow-dot, .board-live-dot, .assist-node, .settings-health-list strong) {
    animation: none;
  }
}

/* Final light-theme isolation. This beats OS dark media queries without
   weakening the dedicated dark skin. */
html[data-resolved-theme="light"] {
  color-scheme: only light;
  --bg: #f3f6f1;
  --bg-accent: #dfe9e0;
  --surface: #fffefa;
  --surface-2: #eef4ef;
  --surface-3: #19211f;
  --border: #d7dfd5;
  --border-strong: #aab9ac;
  --text: #17201d;
  --text-muted: #5b6961;
  --text-faint: #8a978e;
  --primary: #0f6f68;
  --primary-strong: #084f4a;
  --primary-soft: #e2f1ed;
  --accent: #b86f32;
  --accent-strong: #8b4f21;
  --shadow: 0 1px 2px rgba(23, 32, 29, 0.06), 0 16px 38px rgba(23, 32, 29, 0.09);
  --shadow-lg: 0 24px 62px rgba(23, 32, 29, 0.14);
}

html[data-resolved-theme="light"],
html[data-resolved-theme="light"] body {
  color: var(--text);
  background-color: #f3f6f1;
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.04) 1px, transparent 1px),
    radial-gradient(900px 420px at 18% 0%, rgba(15, 111, 104, 0.12), transparent 64%),
    radial-gradient(880px 520px at 88% 4%, rgba(184, 111, 50, 0.1), transparent 68%),
    #f3f6f1;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

html[data-resolved-theme="light"] body::before {
  opacity: 0.22;
  mix-blend-mode: multiply;
}

html[data-resolved-theme="light"] .topbar,
html[data-resolved-theme="light"] .theme-toggle,
html[data-resolved-theme="light"] .mobile-menu-toggle,
html[data-resolved-theme="light"] .mobile-menu,
html[data-resolved-theme="light"] .mobile-menu-close,
html[data-resolved-theme="light"] .mobile-menu-section button,
html[data-resolved-theme="light"] .mobile-menu-section a,
html[data-resolved-theme="light"] .phone-nav,
html[data-resolved-theme="light"] #auth-open,
html[data-resolved-theme="light"] .account-menu-btn,
html[data-resolved-theme="light"] .account-menu,
html[data-resolved-theme="light"] .auth-panel,
html[data-resolved-theme="light"] .card,
html[data-resolved-theme="light"] .card.glass,
html[data-resolved-theme="light"] .card.glass.search-card,
html[data-resolved-theme="light"] .hero-command-board,
html[data-resolved-theme="light"] .stat,
html[data-resolved-theme="light"] .how-step,
html[data-resolved-theme="light"] .usecase-card,
html[data-resolved-theme="light"] .quality-card,
html[data-resolved-theme="light"] .result-preview-table,
html[data-resolved-theme="light"] .price-card,
html[data-resolved-theme="light"] .policy-card,
html[data-resolved-theme="light"] .landing-hero,
html[data-resolved-theme="light"] .landing-grid article,
html[data-resolved-theme="light"] .comparison-table-wrap,
html[data-resolved-theme="light"] .support-contact-card,
html[data-resolved-theme="light"] .support-card,
html[data-resolved-theme="light"] .settings-panel,
html[data-resolved-theme="light"] .settings-profile-panel,
html[data-resolved-theme="light"] .settings-preferences-panel,
html[data-resolved-theme="light"] .settings-account-card,
html[data-resolved-theme="light"] .buy-credits,
html[data-resolved-theme="light"] .search-assist-panel,
html[data-resolved-theme="light"] .home-founder-note,
html[data-resolved-theme="light"] .about-origin-story,
html[data-resolved-theme="light"] .about-hero,
html[data-resolved-theme="light"] .about-note-band,
html[data-resolved-theme="light"] .about-story-grid article,
html[data-resolved-theme="light"] .about-founder-card,
html[data-resolved-theme="light"] .how-guide-hero,
html[data-resolved-theme="light"] .how-final-cta,
html[data-resolved-theme="light"] .how-pipeline,
html[data-resolved-theme="light"] .pipeline-node,
html[data-resolved-theme="light"] .pipeline-card,
html[data-resolved-theme="light"] .how-process-card,
html[data-resolved-theme="light"] .lead-standard-card,
html[data-resolved-theme="light"] .expectation-card,
html[data-resolved-theme="light"] .terms-consent-panel,
html[data-resolved-theme="light"] .lead-report-box,
html[data-resolved-theme="light"] .seo-demo-assets,
html[data-resolved-theme="light"] .seo-demo-grid figure,
html[data-resolved-theme="light"] .seo-video-script,
html[data-resolved-theme="light"] .seo-study-card,
html[data-resolved-theme="light"] .seo-tool-context article,
html[data-resolved-theme="light"] .not-found-card {
  color: var(--text);
  border-color: rgba(170, 185, 172, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 249, 245, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

/* Light mode: give the search-path visual a clean, visible mint grid (the
   shared default renders it as a near-invisible white grid meant for the dark
   card). The animated scan beam has been removed, so this is a calm static
   panel: subtle grid + the three lead nodes. */
html[data-resolved-theme="light"] .search-assist-panel .assist-scan-visual {
  border-color: rgba(15, 111, 104, 0.16);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    rgba(226, 241, 237, 0.45);
  background-size: 22px 22px, 22px 22px, auto;
}

html[data-resolved-theme="light"] .hero::before {
  border-color: rgba(170, 185, 172, 0.62);
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.105) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(15, 111, 104, 0.13), transparent 22%),
    radial-gradient(circle at 50% 38%, transparent 0 16%, rgba(23, 32, 29, 0.055) 16.2% 16.7%, transparent 17% 29%, rgba(184, 111, 50, 0.14) 29.2% 29.8%, transparent 30%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.86), rgba(255, 254, 250, 0.95));
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 62px rgba(23, 32, 29, 0.1);
  animation: none;
}

html[data-resolved-theme="light"] .hero::after {
  background:
    linear-gradient(90deg, transparent, rgba(15, 111, 104, 0.1), transparent),
    linear-gradient(180deg, transparent 0 72%, rgba(243, 246, 241, 0.98));
  animation: none;
}

html[data-resolved-theme="light"] .brand-name,
html[data-resolved-theme="light"] .hero-title,
html[data-resolved-theme="light"] .phone-hero-title,
html[data-resolved-theme="light"] .tool-title,
html[data-resolved-theme="light"] .section-title,
html[data-resolved-theme="light"] .price-name,
html[data-resolved-theme="light"] .price-amount,
html[data-resolved-theme="light"] .card-head h2,
html[data-resolved-theme="light"] .settings-panel h2,
html[data-resolved-theme="light"] .usecase-card h3,
html[data-resolved-theme="light"] .quality-card h3,
html[data-resolved-theme="light"] .how-step h3,
html[data-resolved-theme="light"] .how-process-card h3,
html[data-resolved-theme="light"] .lead-standard-card h3,
html[data-resolved-theme="light"] .expectation-card h3,
html[data-resolved-theme="light"] .signal-name,
html[data-resolved-theme="light"] .usecase-recipe span,
html[data-resolved-theme="light"] .preview-row strong,
html[data-resolved-theme="light"] .settings-copy-label,
html[data-resolved-theme="light"] .settings-digest-label,
html[data-resolved-theme="light"] .policy-card :is(h1, h2, h3, [role="heading"][aria-level="1"]),
html[data-resolved-theme="light"] .landing-hero :is(h1, h2, h3, [role="heading"][aria-level="1"]) {
  color: var(--text);
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

html[data-resolved-theme="light"] .brand-name {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

html[data-resolved-theme="light"] .hero-title .grad {
  color: var(--primary-strong);
  background: linear-gradient(90deg, var(--primary-strong), var(--primary), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-resolved-theme="light"] .hero-sub,
html[data-resolved-theme="light"] .tool-sub,
html[data-resolved-theme="light"] .section-sub,
html[data-resolved-theme="light"] .muted,
html[data-resolved-theme="light"] .hero-note,
html[data-resolved-theme="light"] .chat-fallback,
html[data-resolved-theme="light"] .policy-card p,
html[data-resolved-theme="light"] .landing-hero p,
html[data-resolved-theme="light"] .landing-grid p,
html[data-resolved-theme="light"] .support-contact-card small,
html[data-resolved-theme="light"] .settings-toggle-row small,
html[data-resolved-theme="light"] .settings-profile-copy .muted,
html[data-resolved-theme="light"] .account-menu-email,
html[data-resolved-theme="light"] .clean-list,
html[data-resolved-theme="light"] .chat-msg,
html[data-resolved-theme="light"] .preview-row small,
html[data-resolved-theme="light"] .seo-study-card dd,
html[data-resolved-theme="light"] .seo-tool-context p,
html[data-resolved-theme="light"] .not-found-card p {
  color: var(--text-muted);
}

html[data-resolved-theme="light"] .eyebrow,
html[data-resolved-theme="light"] .tool-kicker,
html[data-resolved-theme="light"] .search-assist-kicker,
html[data-resolved-theme="light"] .settings-panel-kicker,
html[data-resolved-theme="light"] .support-contact-kicker,
html[data-resolved-theme="light"] .price-flag,
html[data-resolved-theme="light"] .legal-page .tool-kicker,
html[data-resolved-theme="light"] .signal-chip,
html[data-resolved-theme="light"] .preview-pill,
html[data-resolved-theme="light"] .price-mult,
html[data-resolved-theme="light"] .hero-pills .pill {
  color: var(--primary-strong);
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.92);
  box-shadow: none;
}

html[data-resolved-theme="light"] .usecase-recipe div,
html[data-resolved-theme="light"] .signal-row,
html[data-resolved-theme="light"] .preview-row,
html[data-resolved-theme="light"] .settings-toggle-row,
html[data-resolved-theme="light"] .settings-account-card,
html[data-resolved-theme="light"] .chat-bot,
html[data-resolved-theme="light"] .pipeline-card,
html[data-resolved-theme="light"] .pipeline-node,
html[data-resolved-theme="light"] .assist-steps span,
html[data-resolved-theme="light"] input,
html[data-resolved-theme="light"] select,
html[data-resolved-theme="light"] textarea,
html[data-resolved-theme="light"] .combo-control,
html[data-resolved-theme="light"] .combo-panel,
html[data-resolved-theme="light"] .combo-search,
html[data-resolved-theme="light"] .chat-input,
html[data-resolved-theme="light"] .usd-input,
html[data-resolved-theme="light"] .lead-report-box select,
html[data-resolved-theme="light"] .lead-report-box textarea {
  color: var(--text);
  border-color: rgba(170, 185, 172, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(238, 244, 239, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html[data-resolved-theme="light"] .usecase-recipe small,
html[data-resolved-theme="light"] .preview-head,
html[data-resolved-theme="light"] .stat-num,
html[data-resolved-theme="light"] .price-credits strong,
html[data-resolved-theme="light"] .buy-preview,
html[data-resolved-theme="light"] .settings-preference-preview strong,
html[data-resolved-theme="light"] .quality-mark {
  color: var(--primary-strong);
}

html[data-resolved-theme="light"] .usecase-icon,
html[data-resolved-theme="light"] .quality-mark,
html[data-resolved-theme="light"] .how-num,
html[data-resolved-theme="light"] .step-badge,
html[data-resolved-theme="light"] .settings-panel-icon,
html[data-resolved-theme="light"] .settings-avatar-mini,
html[data-resolved-theme="light"] .settings-avatar-large,
html[data-resolved-theme="light"] .account-avatar,
html[data-resolved-theme="light"] .account-menu-mini-avatar,
html[data-resolved-theme="light"] .phone-nav-mark {
  color: var(--primary-strong);
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.92);
  box-shadow: none;
}

html[data-resolved-theme="light"] .theme-toggle-track {
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.92);
}

html[data-resolved-theme="light"] .theme-toggle-icon {
  left: 0.12rem;
  background: #0f6f68;
}

html[data-resolved-theme="light"] .table-wrap,
html[data-resolved-theme="light"] table,
html[data-resolved-theme="light"] .results-stats,
html[data-resolved-theme="light"] .results-bar {
  color: var(--text);
  border-color: rgba(170, 185, 172, 0.7);
  background: rgba(255, 254, 250, 0.9);
}

html[data-resolved-theme="light"] th {
  color: var(--primary-strong);
  background: rgba(226, 241, 237, 0.75);
}

html[data-resolved-theme="light"] td {
  color: var(--text);
  border-color: rgba(170, 185, 172, 0.5);
}

/* Cross-page theme completion: every non-search page has page-specific
   widgets, so keep their light/dark skins explicit instead of inherited. */
html[data-resolved-theme="light"] :is(
  .tool-head,
  .legal-page,
  .reviews-hero,
  .review-card,
  .review-submit,
  .review-response,
  .review-pending-response,
  .cmp-best-card,
  .cmp-cta-band,
  .chat-log,
  .settings-preference-preview,
  .settings-mini-actions button,
  .settings-health-list span,
  #how-it-works-view .explain-grid article,
  .how-guide-hero,
  .how-final-cta,
  .how-pipeline,
  .pipeline-node,
  .pipeline-card,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .comparison-table th,
  .cmp-matrix th[scope="row"],
  .cmp-best-card,
  .cmp-matrix .cmp-col-us
) {
  color: var(--text);
  border-color: rgba(170, 185, 172, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 249, 245, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
}

html[data-resolved-theme="light"] :is(
  .how-pipeline,
  .review-response,
  .review-pending-response,
  .settings-preference-preview,
  .settings-health-list span,
  .pipeline-card,
  .pipeline-card > span,
  .pipeline-node span,
  .secondary-cta
) {
  color: var(--text);
  border-color: rgba(15, 111, 104, 0.16);
  background:
    linear-gradient(180deg, rgba(238, 244, 239, 0.92), rgba(226, 241, 237, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-resolved-theme="light"] :is(
  .tool-head .tool-title,
  .review-card-head strong,
  .review-submit h2,
  .cmp-section-title,
  .cmp-best-tag,
  .cmp-matrix th[scope="row"],
  .how-guide-copy h2,
  .how-final-cta h2,
  .pipeline-node strong,
  .pipeline-card strong,
  .how-process-card h3,
  .lead-standard-card h3,
  .expectation-card h3,
  .about-origin-story h2,
  .about-note-band h2,
  .comparison-table th
) {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

html[data-resolved-theme="light"] :is(
  .tool-head .tool-sub,
  .review-card-head span:not(.review-stars),
  .review-response p,
  .review-pending-response p,
  .cmp-section-sub,
  .cmp-best-card p,
  .cmp-note,
  .cmp-matrix td,
  .comparison-table td,
  .how-guide-copy p,
  .how-final-cta p,
  .pipeline-node small,
  .pipeline-card small,
  .how-process-card p,
  .lead-standard-card p,
  .expectation-card p,
  .legal-page p,
  .support-card p,
  .settings-health-list small
) {
  color: var(--text-muted);
}

html[data-resolved-theme="light"] :is(
  .tool-kicker,
  .review-creator-tag,
  .pipeline-node span,
  .pipeline-card > span,
  .cmp-best-us .cmp-best-tag,
  .cmp-matrix thead .cmp-col-us
) {
  color: var(--primary-strong);
  border-color: rgba(15, 111, 104, 0.18);
  background: rgba(226, 241, 237, 0.92);
  box-shadow: none;
}

html[data-resolved-theme="light"] :is(.how-process-num, .quality-mark) {
  color: #fffefa;
  border-color: rgba(15, 111, 104, 0.16);
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 10px 24px rgba(15, 111, 104, 0.14);
}

html[data-resolved-theme="light"] .quality-mark.muted-mark,
html[data-resolved-theme="light"] .muted-mark {
  background: rgba(184, 111, 50, 0.86);
}

html[data-resolved-theme="light"] .secondary-cta {
  color: var(--primary-strong);
}

html[data-resolved-theme="light"] :is(
  .tool-head,
  .landing-hero,
  .reviews-hero,
  .how-guide-hero,
  .how-final-cta,
  .legal-page,
  .policy-card,
  .comparison-table-wrap,
  .cmp-cta-band,
  .review-submit,
  .home-founder-note,
  .about-hero,
  .about-note-band
) {
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 104, 0.078) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 38%, rgba(15, 111, 104, 0.055) 38% 54%, transparent 54%),
    radial-gradient(circle at 18% 26%, transparent 0 9.5rem, rgba(15, 111, 104, 0.075) 9.6rem 9.75rem, transparent 9.85rem),
    radial-gradient(520px 220px at 12% 0%, rgba(15, 111, 104, 0.14), transparent 68%),
    radial-gradient(440px 220px at 94% 14%, rgba(184, 111, 50, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(246, 249, 245, 0.84));
  background-size: 31px 31px, 31px 31px, auto, auto, auto, auto, auto;
}

html[data-resolved-theme="light"] .tool-head {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 54px rgba(23, 32, 29, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-resolved-theme="light"] .tool-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(15, 111, 104, 0.11), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 38%);
  background-size: 34% 100%, auto;
  background-position: -38% 0, 0 0;
  opacity: 0.68;
}

html[data-resolved-theme="light"] .tool-head > * {
  position: relative;
  z-index: 1;
}

html[data-resolved-theme="light"] :is(
  .review-card,
  .cmp-best-card,
  .how-process-card,
  .lead-standard-card,
  .expectation-card,
  .price-card,
  .support-card,
  .support-contact-card,
  .settings-panel,
  .settings-profile-panel,
  .settings-preferences-panel,
  .settings-account-card,
  .buy-credits,
  .quality-card,
  .usecase-card
) {
  background:
    linear-gradient(90deg, rgba(15, 111, 104, 0.032) 1px, transparent 1px),
    radial-gradient(280px 150px at 100% 0%, rgba(15, 111, 104, 0.075), transparent 70%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 249, 245, 0.86));
  background-size: 28px 28px, auto, auto;
}

html[data-resolved-theme="light"] .comparison-table tbody tr:hover {
  background: rgba(15, 111, 104, 0.07);
}

html[data-resolved-theme="dark"] :is(
  .reviews-hero,
  .review-card,
  .review-submit,
  .review-response,
  .review-pending-response,
  .cmp-best-card,
  .cmp-cta-band,
  .cmp-matrix .cmp-col-us,
  .comparison-table th,
  .cmp-matrix th[scope="row"]
) {
  color: var(--text);
  border-color: rgba(77, 216, 201, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 28, 36, 0.94), rgba(8, 13, 18, 0.92)),
    #0d151b;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

html[data-resolved-theme="dark"] :is(
  .review-card-head span:not(.review-stars),
  .review-response p,
  .review-pending-response p,
  .cmp-section-sub,
  .cmp-best-card p,
  .cmp-note,
  .cmp-matrix td,
  .comparison-table td
) {
  color: var(--text-muted);
}

/* Cloudflare Turnstile widget spacing (only present when CAPTCHA is enabled). */
.auth-captcha { margin: 0.2rem 0 0.1rem; min-height: 65px; }

/* Deep search toggle on the search form. */
.deep-search-row { margin: 0.4rem 0 0.2rem; }
.deep-search-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}
.deep-search-label:hover { border-color: var(--border-strong); }
.deep-search-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex: 0 0 auto;
  cursor: pointer;
}
.deep-search-copy { display: flex; flex-direction: column; gap: 0.15rem; }
.deep-search-title { font-weight: 600; }
.deep-search-hint { color: var(--text-muted); font-size: 0.85rem; line-height: 1.35; }

/* Facebook login button (mirrors the Google button, Facebook blue). */
.facebook-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  order: 3;
  border: 1px solid #1877f2;
  border-radius: 8px;
  color: #fff;
  background: #1877f2;
  font-weight: 650;
  text-decoration: none;
  box-shadow: none;
}
.facebook-login:hover { background: #166fe0; }

/* Public website language selector in the header. */
.public-language-select {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  max-width: 9.5rem;
}
.public-language-select:hover { border-color: var(--border-strong); }

/* Language selector inside the mobile menu. */
.mobile-menu-language {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 1rem 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mobile-menu-language select {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
}

/* Review submission status line. */
.review-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--text-muted);
}
.review-status.is-error { color: #c0392b; }
.review-status.is-success { color: #1e874b; }
.reviews-grid-dynamic:empty { display: none; }

/* ============================================================
   Auth polish + compact header (2026-08 UI cleanup)
   ============================================================ */

/* Social login buttons: standard Google look + matching Facebook. */
.social-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.social-login .social-icon { flex: 0 0 auto; display: block; }
.google-login {
  order: 2;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}
.google-login:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.24); }
.facebook-login {
  order: 3;
  background: #1877f2;
  color: #fff;
  border: 1px solid #1877f2;
}
.facebook-login:hover { background: #166fe0; }

/* "or" divider between the email form and the social buttons. */
.auth-divider {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 0.1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-signup-unavailable {
  order: 1;
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(184, 111, 50, 0.3);
  border-radius: 8px;
  background: rgba(255, 245, 232, 0.88);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.auth-signup-unavailable a {
  width: fit-content;
  color: var(--primary-strong);
  font-weight: 700;
  text-underline-offset: 3px;
}

html[data-resolved-theme="dark"] .auth-signup-unavailable {
  border-color: rgba(232, 175, 118, 0.42);
  background: rgba(94, 57, 28, 0.34);
}

/* Compact, pill-shaped public language selector (was a bulky 46px box). */
.public-language-select {
  height: 32px;
  min-height: 32px;
  font-size: 0.8rem;
  max-width: 7.5rem;
  padding: 0 1.55rem 0 0.75rem;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23888' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.62rem;
}

/* Keep the header on one row without the wordmark colliding into the nav.
   The wordmark is a clamp() on .brand-name (not .brand), so it must be tuned
   there; a smaller max + a guaranteed gap + tighter nav gives it room. */
.brand { flex: 0 0 auto; margin-right: 1.2rem; }
.brand-name { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.topbar { gap: 1.2rem; }
.topnav { column-gap: 0.28rem; }
.topnav .navlink { padding-left: 0.55rem; padding-right: 0.55rem; }
.topnav .navlink-research {
  color: var(--primary-strong);
  border: 0;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
}
.topnav .navlink-research:hover,
.topnav .navlink-research:focus-visible,
.topnav .navlink-research[aria-current="page"] {
  color: var(--primary);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 901px) {
  .topnav { flex-wrap: nowrap; }
}

/* The phone header has its own compact grid. Keep desktop wordmark spacing
   from consuming that grid, and bound the primary mobile controls explicitly. */
@media (max-width: 640px) {
  html[data-device-mode="phone"] .topbar {
    column-gap: 0.55rem;
  }

  html[data-device-mode="phone"] .brand {
    margin-right: 0;
  }

  html[data-device-mode="phone"] .brand-name {
    font-size: clamp(0.9rem, 4.6vw, 0.98rem);
  }

  html[data-device-mode="phone"] .hero-cta,
  html[data-device-mode="phone"] .hero-cta .cta {
    box-sizing: border-box;
    max-width: 100%;
  }

  html[data-device-mode="phone"] .phone-nav {
    max-width: calc(100vw - 1rem);
  }

  html[data-device-mode="phone"] .phone-nav :is(button, a) {
    min-width: 0;
    overflow: hidden;
  }

  html[data-device-mode="phone"] .phone-nav :is(button, a) > span:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (max-width: 360px) {
  html[data-device-mode="phone"] .brand-name {
    font-size: 0.84rem;
  }
}

/* Header language picker as the site's searchable combobox: compact pill trigger
   with a comfortably wide, right-aligned dropdown for the full language list. */
.public-language-combo { position: relative; }
.public-language-combo .combo-control {
  min-height: 34px;
  height: 34px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  min-width: 0;
  gap: 0.4rem;
}
.public-language-combo .combo-value {
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Panel width for the header language picker is handled by the combobox's
   minPanelWidth option (the panel is portaled to <body> when open, so scoped
   CSS on it wouldn't apply). */

/* ---- Translation loading indicator ---- */
@keyframes loa-spin { to { transform: rotate(360deg); } }
/* Spinner on the header language pill while translating */
.public-language-combo.translating .combo-caret { visibility: hidden; }
.public-language-combo.translating .combo-control::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loa-spin 0.7s linear infinite;
}
.public-language-combo .combo-control { position: relative; }
/* Global "Translating…" toast */
#translation-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(0.5rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.18);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#translation-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#translation-toast.is-error { border-color: #c0392b; color: #c0392b; }
.translation-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loa-spin 0.7s linear infinite;
  flex: 0 0 auto;
}

/* Privacy/legal callout box + list spacing for the long-form legal pages. */
.legal-callout {
  margin: 0.4rem 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.legal-callout p { margin: 0.35rem 0; }
.legal-page ul { margin: 0.5rem 0 1rem; padding-left: 1.2rem; }
.legal-page li { margin: 0.3rem 0; line-height: 1.5; }

/* Localized header controls share one visual and sizing contract. */
.topbar {
  --topbar-control-bg: rgba(255, 254, 250, 0.88);
  --topbar-control-bg-hover: rgba(226, 241, 237, 0.92);
  --topbar-control-border: rgba(170, 185, 172, 0.72);
  --topbar-control-color: var(--text);
}

html[data-resolved-theme="dark"] .topbar {
  --topbar-control-bg: rgba(255, 255, 255, 0.055);
  --topbar-control-bg-hover: rgba(77, 216, 201, 0.13);
  --topbar-control-border: rgba(77, 216, 201, 0.22);
  --topbar-control-color: #f4f1e8;
}

html .topbar .topnav > :is(.navlink, .credits-badge, .topbar-cta, .theme-toggle),
html .topbar .public-language-combo .combo-control,
html .topbar .account-menu-btn,
html .topbar #auth-open {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  padding: 0 0.78rem;
  border: 1px solid var(--topbar-control-border);
  border-radius: 999px;
  color: var(--topbar-control-color);
  background: var(--topbar-control-bg);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

html .topbar .mobile-menu-toggle {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--topbar-control-border);
  color: var(--topbar-control-color);
  background: var(--topbar-control-bg);
}

html .topbar #auth-open {
  display: inline-grid;
  place-items: center;
  min-width: 5rem;
}

html .topbar #auth-open .auth-open-label {
  display: block;
  width: 100%;
  text-align: center;
}

html .topbar .topnav > :is(.navlink, .credits-badge, .topbar-cta, .theme-toggle):hover,
html .topbar .public-language-combo .combo-control:hover,
html .topbar .account-menu-btn:hover,
html .topbar #auth-open:hover {
  color: var(--topbar-control-color);
  background: var(--topbar-control-bg-hover);
  border-color: var(--primary);
  box-shadow: none;
  text-decoration: none;
  transform: none;
}

html .topbar .topnav > .navlink-research,
html[data-resolved-theme="dark"] .topbar .topnav > .navlink-research {
  color: var(--topbar-control-color);
  background: var(--topbar-control-bg);
  border: 1px solid var(--topbar-control-border);
  text-decoration: none;
}

.topbar-cta {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}

.mobile-menu-section > :is(a, button) {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  justify-content: center;
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

[data-i18n="startSearch"] {
  white-space: nowrap;
}

@media (max-width: 340px) {
  .mobile-menu-section > [data-i18n="startSearch"] {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
  }
}

@media (min-width: 1121px) {
  html .topbar #auth-open {
    display: none;
  }
}

html.topbar-compact .mobile-menu-toggle {
  display: grid;
}

html.topbar-compact .topbar .topnav > .navlink[data-go],
html.topbar-compact .topbar .topnav > .navlink-research,
html.topbar-compact .topbar .topnav > .credits-badge,
html.topbar-compact .topbar .topnav > .topbar-cta,
html.topbar-compact .topbar #public-language-combo {
  display: none;
}

html.topbar-compact .topbar #auth-open:not(.hidden) {
  display: inline-grid;
}

@media (max-width: 1120px) {
  .mobile-menu-toggle {
    display: grid;
  }

  .topbar .topnav > .navlink[data-go],
  .topbar .topnav > .navlink-research,
  .topbar .topnav > .credits-badge,
  .topbar .topnav > .topbar-cta,
  .topbar #public-language-combo {
    display: none;
  }
}

@media (max-width: 760px) {
  html .topbar #auth-open {
    display: none !important;
  }
}


/* ---------- Send-to-phone (desktop -> paired phone) ---------- */
.phone-number {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.phone-number:hover { color: var(--primary-strong); text-decoration: underline; }
/* Lives in its own "Send" column and looks like the other secondary buttons
   (it carries the .secondary class); size it to match the table buttons. The
   .col-send scope is needed to beat button.secondary's own padding. */
.col-send .phone-send-btn {
  padding: 0.44rem 0.6rem;
  font-size: 0.8rem;
  min-height: 32px;
  white-space: nowrap;
}
.phone-send-btn:disabled { opacity: 0.5; cursor: default; }

/* Pairing modal - sober, single-column, generous whitespace. */
.pair-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(9, 12, 22, 0.6);
  backdrop-filter: blur(2px);
}
.pair-modal.hidden { display: none; }
.pair-modal-panel {
  position: relative;
  width: 100%;
  max-width: 384px;
  padding: 2rem 1.8rem 1.6rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(9, 12, 22, 0.28);
}
.pair-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-faint);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.pair-modal-close:hover { background: var(--surface-2); color: var(--text); }
.pair-modal-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pair-modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 auto 1.4rem;
  max-width: 300px;
}
.pair-modal-qr {
  width: 224px;
  height: 224px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border-strong);
}
.pair-modal-qr img { width: 100%; height: 100%; display: block; }
.pair-modal-status {
  margin: 1rem auto 0;
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.pair-modal-status.is-note {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}
.pair-modal-status.is-error { color: var(--danger); }
.pair-modal-steps {
  counter-reset: pair-step;
  list-style: none;
  text-align: left;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pair-modal-steps li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pair-modal-steps li::before {
  counter-increment: pair-step;
  content: counter(pair-step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-radius: 50%;
}

/* "Sent to phone" toast */
#phone-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 1.5rem);
  z-index: 1300;
  max-width: 90vw;
  padding: 0.7rem 1.15rem;
  background: var(--text);
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#phone-toast.show { opacity: 1; transform: translate(-50%, 0); }
#phone-toast.is-error { background: var(--danger); color: #fff; }
