/* VisibilitySearch - purple AI-visibility theme, light + dark */
:root {
  --bg: #ffffff;
  --bg-soft: #faf8ff;
  --bg-tint: #f5f3ff;
  --bg-elev: #ffffff;
  --line: #e5e1f0;
  --line-strong: #d4ccea;
  --ink: #110e1f;
  --ink-2: #1e1b2e;
  --ink-soft: #2d2a40;
  --muted: #6b6585;
  --muted-2: #9990ad;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-soft: rgba(124, 58, 237, 0.10);
  --accent: #a78bfa;
  --success: #16a34a;
  --success-soft: rgba(34, 197, 94, 0.12);
  --warn: #ea580c;
  --warn-soft: rgba(234, 88, 12, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.10);

  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  --gradient-button: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(124,58,237,0.06);
  --shadow: 0 6px 20px -4px rgba(124,58,237,0.15), 0 2px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 30px 60px -15px rgba(124,58,237,0.30);
  --shadow-purple: 0 10px 25px -5px rgba(124,58,237,0.45);

  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}
html[data-theme="dark"] {
  --bg: #0f0a1a;
  --bg-soft: #150f24;
  --bg-tint: #1a1230;
  --bg-elev: #1a1230;
  --line: #2d2245;
  --line-strong: #3d3055;
  --ink: #f5f3ff;
  --ink-2: #e2ddf0;
  --ink-soft: #c9c2db;
  --muted: #9990ad;
  --muted-2: #6b6585;
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: #c4b5fd;
  --primary-soft: rgba(167, 139, 250, 0.15);
  --accent: #c4b5fd;
  --info-soft: rgba(37, 99, 235, 0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 6px 20px -4px rgba(0,0,0,0.4);
  --shadow-lg: 0 30px 60px -15px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}
a { color: var(--primary); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--primary-dark); }
html[data-theme="dark"] a:hover { color: var(--primary-light); }
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.it { font-style: italic; font-family: var(--font-serif); font-weight: 500; }
.em-accent { font-style: italic; font-family: var(--font-serif); font-weight: 500; color: var(--primary); }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.icon { display: inline-block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }

.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-button);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-purple);
}
.brand-mark .icon { stroke: #fff; }
.nav-wrap { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gradient-button); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.theme-toggle {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  width: 38px; height: 38px; border-radius: 10px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline-block; }
html[data-theme="dark"] .theme-toggle .sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); padding: 8px; border-radius: 10px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px; gap: 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

.hero {
  position: relative;
  padding: 100px 24px 80px;
  background:
    radial-gradient(ellipse 1000px 500px at 50% 0%, var(--primary-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(124,58,237,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700;
  color: #fff;
  background: var(--gradient-button);
  padding: 7px 18px; border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-purple);
}
.hero h1 { margin: 0 0 22px; font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; }
.hero h1 .accent {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 720px; margin: 0 auto 32px; line-height: 1.55; }

/* Checker form */
.checker {
  background: var(--bg-elev);
  border: 2px solid var(--primary-soft);
  border-radius: 18px;
  padding: 32px;
  max-width: 720px;
  margin: 24px auto 0;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.checker::before {
  content: "Free AI Visibility Check";
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-button);
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-purple);
}
.checker-form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker-form input {
  flex: 1; min-width: 220px;
  padding: 16px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.checker-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.checker-form button {
  padding: 16px 28px;
  background: var(--gradient-button);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-purple);
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.2s;
}
.checker-form button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -5px rgba(124,58,237,0.55); }
.checker-form button:disabled { opacity: 0.6; cursor: wait; }
.checker-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Score panel */
.score-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  max-width: 880px;
  margin: 32px auto 0;
  box-shadow: var(--shadow);
}
.score-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
@media (max-width: 600px) { .score-head { grid-template-columns: 1fr; text-align: center; } }
.score-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--primary) var(--p, 0%), var(--bg-tint) var(--p, 0%));
  position: relative;
  margin: 0 auto;
}
.score-ring::before {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.score-ring .v { position: relative; font-size: 3rem; font-weight: 900; color: var(--ink); letter-spacing: -0.04em; }
.score-ring .v .total { font-size: 1rem; color: var(--muted); font-weight: 600; }
.score-info h2 { margin: 0 0 6px; font-size: 1.8rem; }
.score-info .domain { color: var(--muted); font-family: var(--font-mono); font-size: 1rem; margin-bottom: 14px; }
.score-info .band { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.score-info .band.success { background: var(--success-soft); color: var(--success); }
.score-info .band.info    { background: var(--info-soft); color: var(--info); }
.score-info .band.warn    { background: var(--warn-soft); color: var(--warn); }
.score-info .band.danger  { background: var(--danger-soft); color: var(--danger); }
.score-info .desc { margin: 12px 0 0; color: var(--ink-soft); }

.score-breakdown {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.score-cell {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.score-cell .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.score-cell .val { font-size: 1.4rem; font-weight: 800; margin-top: 4px; color: var(--ink); letter-spacing: -0.02em; }
.score-cell .sub { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.score-cell .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.score-cell .badge.yes { background: var(--success-soft); color: var(--success); }
.score-cell .badge.no  { background: var(--danger-soft); color: var(--danger); }
.score-cell .badge.unknown { background: var(--bg-tint); color: var(--muted); }

.score-recommendations {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.score-recommendations h3 { margin: 0 0 14px; font-size: 1.15rem; }
.score-recommendations ul { padding-left: 20px; margin: 0; }
.score-recommendations li { margin-bottom: 8px; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--gradient-button); color: #fff; box-shadow: var(--shadow-purple); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(124,58,237,0.55); color: #fff; }
.btn-secondary { background: var(--bg-elev); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }
section.dark-strip { background: var(--gradient-purple); color: #fff; padding: 56px 24px; }
section.dark-strip h2, section.dark-strip h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  display: inline-block;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { margin: 0 0 14px; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 0; line-height: 1.55; }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-button);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-purple);
}
.feature .icon-wrap .icon { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.stat-strip { background: var(--gradient-purple); color: #fff; padding: 56px 24px; }
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
@media (max-width: 720px) { .stat-strip .wrap { grid-template-columns: 1fr 1fr; gap: 24px; } }
.stat .num { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.stat .lbl { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); font-weight: 700; margin-top: 6px; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tool-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: block;
  color: var(--ink-2);
  transition: all 0.2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--ink-2); }
.tool-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-button);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-purple);
}
.tool-card .icon-wrap .icon { width: 22px; height: 22px; }
.tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.tool-card .meta-pill { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.tool-card .arrow { margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 700; font-size: 0.9rem; }

article { padding: 48px 0 80px; }
article h1 { margin: 0 0 14px; }
article h2 { margin: 1.8em 0 0.6em; color: var(--primary-dark); }
html[data-theme="dark"] article h2 { color: var(--primary-light); }
article h3 { margin: 1.4em 0 0.4em; }
article p, article li { color: var(--ink-soft); }
article ul, article ol { padding-left: 1.4em; }
article li { margin-bottom: 0.4em; }
article blockquote {
  border-left: 4px solid var(--primary);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.meta-pill { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 0.74rem; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }

.callout { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 18px 22px; border-radius: 6px; margin: 22px 0; font-size: 0.96rem; }
.callout.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.callout.tip { background: var(--success-soft); border-left-color: var(--success); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--ink-soft); }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 4px 0; list-style: none; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; color: var(--primary); }
.faq-item p { margin: 12px 0 4px; color: var(--ink-soft); }

.ad-slot { background: var(--bg-soft); border: 1px dashed var(--line-strong); text-align: center; padding: 22px; margin: 28px 0; color: var(--muted); font-size: 0.78rem; border-radius: var(--radius); letter-spacing: 0.06em; text-transform: uppercase; }

.cta-banner {
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.cta-banner h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); position: relative; }
.cta-banner p { color: rgba(255,255,255,0.92); margin: 0 auto 28px; font-size: 1.1rem; max-width: 620px; position: relative; }
.cta-banner .btn { position: relative; background: #fff; color: var(--primary-dark); }
.cta-banner .btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.site-footer { background: var(--ink); color: #c9c2db; padding: 72px 24px 28px; margin-top: 80px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 768px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9c2db; }
.site-footer a:hover { color: var(--primary-light); }
.site-footer p { color: #9990ad; }
.copyright { max-width: var(--max); margin: 48px auto 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; color: #9990ad; font-size: 0.85rem; line-height: 1.7; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.blog-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: block;
  color: var(--ink-2);
  transition: all 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--ink-2); }
.blog-card h3 { margin: 12px 0 10px; font-size: 1.2rem; line-height: 1.3; }
.blog-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.byline { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0; }
.byline .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-button); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--shadow-purple); }
.byline .name { font-weight: 700; color: var(--ink); }
.byline .role { font-size: 0.86rem; color: var(--muted); }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; color: var(--ink); }
form input, form textarea, form select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 12px; font-size: 1rem; font-family: inherit; background: var(--bg-elev); color: var(--ink); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
form textarea { min-height: 140px; resize: vertical; }

.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Email gate for recommendations */
.vs-gate {
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 100%);
  border: 1.5px dashed var(--primary);
  border-radius: 14px;
  padding: 28px;
  margin-top: 8px;
}
.vs-gate-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.vs-gate-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-button);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-purple);
}
.vs-gate h3 { margin: 0 0 8px; font-size: 1.3rem; }
.vs-gate p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.98rem; }
.vs-gate-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto 16px;
}
.vs-gate-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}
.vs-gate-form input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.vs-gate-form button {
  padding: 13px 22px;
  background: var(--gradient-button);
  color: #fff; border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-purple);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.vs-gate-form button:hover { transform: translateY(-1px); }
.vs-gate-form button:disabled { opacity: 0.7; cursor: wait; }
.vs-gate-promise {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 480px;
  line-height: 1.55;
  text-align: left;
  display: flex; align-items: flex-start; gap: 8px;
}
.vs-gate-promise strong { color: var(--ink); font-weight: 700; }
.vs-gate-promise a { color: var(--primary); }
.vs-gate-promise svg { flex-shrink: 0; margin-top: 2px; }
