/* Folderly Flash — hybrid Folderly design system */

:root {
  --blue: #195EE6;
  --blue-hover: #1755CF;
  --blue-soft: #EEF4FF;
  --blue-soft-2: #F7FAFF;
  --blue-border: #B5CEFF;
  --ink: #101828;
  --text: #303744;
  --muted: #5B6171;
  --subtle: #737A8C;
  --border: #DFE3EC;
  --border-strong: #C9D8FF;
  --page: #F8F9FC;
  --surface: #FFFFFF;
  --yellow: #FFCC00;
  --success: #00994C;
  --success-soft: #DCF4E8;
  --warning: #FF9028;
  --danger: #DF3A44;
  --danger-soft: #FFF1F2;
  --display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(25, 94, 230, 0.10);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
.wrap { width: min(100% - 48px, 1180px); margin: 0 auto; }

/* === Shared chrome === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.wordmark {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.cobrand {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--blue); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* === Product hero === */
.product { padding: 64px 0 72px; }
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-copy {
  min-width: 0;
  max-width: 890px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid var(--blue-border);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product h1 {
  max-width: 900px;
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}
.product h1 .accent {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(255, 204, 0, 0.82) 62%);
  padding: 0 4px;
}
.lede {
  max-width: 780px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 100%;
}
.hero-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.hero-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--blue-soft);
}

/* === Test card === */
.test-card {
  min-width: 0;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.test-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.addr-label,
.score-label,
.top-fixes-title,
.technical-title,
.eyebrow,
.t-name,
.callout-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.addr-label,
.score-label,
.top-fixes-title,
.technical-title { color: var(--blue); }
.card-copy {
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.addr-row { margin-top: 18px; }
.addr-box,
.seed-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  background: var(--blue-soft-2);
}
.addr,
.seed-list {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.seed-list { font-size: 12px; }
.copy-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.copy-btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.copy-btn:active { transform: translateY(0); }
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.quick-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.placement-cta {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue-soft);
}
.placement-label {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.placement-sub,
.placement-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.placement-note { margin-top: 8px; font-size: 12px; }
.placement-cta .seed-box {
  margin-top: 10px;
  background: var(--surface);
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
.status[data-state="scoring"] .dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(25, 94, 230, 0.16);
}
.status[data-state="done"] .dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(0, 153, 76, 0.16);
  animation: none;
}
.status[data-state="error"] .dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(223, 58, 68, 0.14);
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* === Score reveal === */
.score-reveal {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.score-domain {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}
.big-score {
  margin-bottom: 6px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(76px, 12vw, 118px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.big-score[data-band="excellent"] { color: var(--success); }
.big-score[data-band="good"] { color: var(--yellow); }
.big-score[data-band="at-risk"] { color: var(--warning); }
.big-score[data-band="failing"] { color: var(--danger); }
.verdict {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-bottom: 22px;
}
.readiness-panel,
.top-fixes,
.domain-history,
.action-plan {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.readiness-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 14px;
}
.readiness-pill {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.readiness-pill[data-band="excellent"],
.readiness-pill[data-band="good"] {
  background: var(--success-soft);
  border-color: rgba(0, 153, 76, 0.22);
  color: var(--success);
}
.readiness-pill[data-band="at-risk"] {
  background: #FFF7ED;
  border-color: rgba(255, 144, 40, 0.28);
  color: #B45309;
}
.readiness-pill[data-band="failing"] {
  background: var(--danger-soft);
  border-color: rgba(223, 58, 68, 0.22);
  color: var(--danger);
}
.readiness-title {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.readiness-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.top-fixes-title,
.technical-title,
.domain-history-title,
.action-plan-title { margin-bottom: 10px; }
.domain-history,
.action-plan {
  grid-column: 1 / -1;
}
.domain-history-title,
.action-plan-title {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.history-grid > div {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-soft-2);
}
.history-label {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.history-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2;
}
.domain-history p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.action-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.action-plan-scope {
  padding: 5px 8px;
  border: 1px solid rgba(25, 94, 230, 0.22);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-list {
  display: grid;
  gap: 10px;
}
.plan-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-soft-2);
}
.plan-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.plan-body { min-width: 0; }
.plan-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.plan-meta span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-body p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.plan-body small {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}
.fix-brief {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue-soft-2);
}
.fix-brief-title {
  margin-bottom: 5px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fix-brief p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}
.brief-copy-btn { min-width: 112px; }
.top-fix-list {
  list-style: none;
  counter-reset: fix;
  display: grid;
  gap: 10px;
}
.top-fix-list li {
  position: relative;
  min-height: 26px;
  padding-left: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.top-fix-list li::before {
  counter-increment: fix;
  content: counter(fix);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.top-fix-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 14px;
}
.top-fix-list span { display: block; }
.components {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.comp {
  display: grid;
  grid-template-columns: 112px 1fr 76px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.comp-name {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comp-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.comp-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.comp-info .comp-fill { background: var(--success); }
.comp-warn .comp-fill { background: var(--warning); }
.comp-error .comp-fill { background: var(--danger); }
.comp-pending .comp-name { color: var(--subtle); opacity: 0.8; }
.comp-fill-pending {
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 6px, #FFE57A 6px, #FFE57A 12px) !important;
  animation: pendingPulse 1.8s ease-in-out infinite;
}
@keyframes pendingPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
.comp-pts {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.comp-pending .comp-pts { color: var(--subtle); }
.comp-reason {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.fix-link {
  color: var(--blue);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.fix-link:hover { text-decoration: underline; }

/* === Buttons and actions === */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(25, 94, 230, 0.18);
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary,
.btn-folderly {
  border-color: var(--border);
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover,
.btn-folderly:hover {
  border-color: var(--blue-border);
  background: var(--blue-soft);
}
.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: var(--blue-border);
  color: var(--blue);
  background: var(--blue-soft-2);
}
.folderly-cta {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.folderly-cta a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
}
.meta-row a {
  color: var(--blue);
  text-decoration: none;
}
.meta-row a:hover { text-decoration: underline; }

/* === Sections === */
.why,
.pricing {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}
.why { background: var(--surface); }
.why h2,
.pricing h2,
.article-wrap h1,
.paywall h1,
.rate-limited h1,
.components-full h2,
.placements-full h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
}
.why h2,
.pricing h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}
.why p {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.why-tile,
.tier,
.fix-card,
.faq,
.comp-full {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.why-tile { padding: 22px; }
.why-tile b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}
.why-tile span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.tier {
  position: relative;
  padding: 26px;
}
.tier.featured {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}
.t-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-name { color: var(--blue); margin-bottom: 14px; }
.t-price {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
}
.t-period {
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
}
.t-icp {
  min-height: 36px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.tier ul {
  list-style: none;
  margin-bottom: 20px;
}
.tier li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.t-cta { width: 100%; }
.agency-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.agency-note a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

/* === Footer === */
.footer {
  margin-top: 0;
  padding: 44px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer .brand { margin-bottom: 14px; }
.footer-copy {
  max-width: 540px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover { color: var(--blue); }
.legal {
  margin-top: 28px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.6;
}
.legal a {
  color: var(--blue);
  text-decoration: none;
}

/* === Article and secondary surfaces === */
body.article,
body.share,
body.teardown { background: var(--page); }
.article-wrap {
  max-width: 780px;
  padding: 56px 0 80px;
}
.crumbs {
  margin-bottom: 18px;
  color: var(--subtle);
  font-size: 13px;
}
.crumbs a {
  color: var(--blue);
  text-decoration: none;
}
.article-wrap h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}
.article-wrap h2 {
  margin: 38px 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}
.article-wrap p,
.article-wrap li {
  color: var(--text);
}
.article-lede {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.article-lede a,
.related a { color: var(--blue); font-weight: 700; text-decoration: none; }
.article-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.callout-label { color: var(--blue); margin-bottom: 8px; }
.fix-steps {
  list-style: none;
  counter-reset: step;
}
.fix-steps li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.fix-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.article-test-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 38px 0;
  padding: 22px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue-soft);
}
.article-test-cta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
}
.article-test-cta span {
  color: var(--muted);
  font-size: 14px;
}
.faqs {
  display: grid;
  gap: 14px;
}
.faq { padding: 16px 18px; }
.faq-q {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}
.faq-a {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.related {
  padding-left: 18px;
  line-height: 1.9;
}
.fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.fix-card {
  display: block;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.fix-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.fix-card-h {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}
.fix-card-m {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.article .folderly-cta {
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

/* === Share / paywall / teardown / limits === */
.share-wrap,
.paywall,
.rate-limited {
  max-width: 760px;
  padding: 56px 0 80px;
}
.score-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.score-card .head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.score-card .label {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.score-card .domain {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}
.score-card .stamp,
.tear-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
}
.share-action-plan {
  margin-bottom: 22px;
}
.back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.paywall,
.rate-limited {
  min-height: 52vh;
}
.paywall h1,
.rate-limited h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
}
.paywall p,
.rate-limited p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.paywall ul {
  margin: 22px 0;
  padding-left: 20px;
  color: var(--text);
}
.paywall li { margin-bottom: 8px; }
.paywall .footnote {
  margin-top: 18px;
  color: var(--subtle);
  font-size: 13px;
}
.paywall .footnote a { color: var(--blue); text-decoration: none; font-weight: 700; }
.teardown main.wrap {
  padding: 48px 0 72px;
}
.tear-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.eyebrow { color: var(--blue); margin-bottom: 6px; }
.tear-head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}
.muted {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.components-full h2,
.placements-full h2 {
  margin: 28px 0 16px;
  font-size: 24px;
}
.comp-full {
  padding: 18px;
  margin-bottom: 12px;
}
.comp-full header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.comp-full .comp-name { color: var(--blue); }
.comp-full .reason,
.comp-full .fix { color: var(--text); line-height: 1.55; }
.placements-full table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.placements-full th,
.placements-full td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.placements-full th {
  border-top: 0;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placements-full .folder-spam,
.placements-full .folder-bulk,
.placements-full .folder-junk { background: var(--danger-soft); }

@media (max-width: 980px) {
  .product h1,
  .lede { max-width: none; }
  .tiers { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 1180px); }
  .topbar-inner {
    min-height: 62px;
    gap: 14px;
  }
  .nav { display: none; }
  .header-cta { display: none; }
  .product { padding: 42px 0 56px; }
  .product h1 { font-size: 38px; }
  .lede { font-size: 16px; line-height: 1.6; }
  .hero-steps { display: grid; grid-template-columns: 1fr; }
  .hero-step { width: 100%; }
  .test-card { padding: 18px; }
  .test-card-head { flex-direction: column; gap: 12px; }
  .card-badge { align-self: flex-start; }
  .addr-box,
  .seed-box {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-btn { width: 100%; min-height: 42px; }
  .quick-facts { display: grid; grid-template-columns: 1fr; }
  .quick-facts span { width: 100%; }
  .result-summary { grid-template-columns: 1fr; }
  .readiness-panel { grid-template-columns: 1fr; }
  .readiness-pill { justify-self: flex-start; white-space: normal; }
  .history-grid { grid-template-columns: 1fr; }
  .fix-brief {
    flex-direction: column;
    align-items: stretch;
  }
  .brief-copy-btn { width: 100%; }
  .comp { grid-template-columns: minmax(0, 1fr) auto; }
  .comp-bar { grid-column: 1 / -1; grid-row: 2; }
  .comp-reason { grid-column: 1 / -1; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .meta-row,
  .footer-grid,
  .article-test-cta,
  .tear-head {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-links { justify-content: flex-start; }
  .article-wrap,
  .share-wrap,
  .paywall,
  .rate-limited { padding: 42px 0 58px; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .topbar { position: static; }
  .brand-mark { width: 32px; height: 32px; }
  .wordmark { font-size: 14px; }
  .cobrand { display: none; }
  .hero-kicker { font-size: 10px; line-height: 1.35; }
  .product h1 { font-size: 34px; }
  .big-score { font-size: 72px; }
  .verdict { font-size: 19px; }
  .score-card { padding: 20px; }
  .placements-full {
    overflow-x: auto;
  }
}
