/* Clipwedge SEO waitlist · redesign B-20261028-01
   Token table from landing-redesign-brief.md §3 · hand-built utility CSS (Tailwind-equivalent) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #020617;          /* slate-950 */
  --bg-elev: #0f172a;     /* slate-900 */
  --surface: rgba(15, 23, 42, 0.8);
  --border: #334155;      /* slate-700 */
  --text: #f8fafc;        /* slate-50 */
  --muted: #cbd5e1;       /* slate-300 */
  --muted-2: #94a3b8;     /* slate-400 */
  --ok: #34d399;
  --err: #f87171;
  --accent: #8b5cf6;      /* default violet; overridden per body.variant-* */
  --accent-soft: rgba(139, 92, 246, 0.15);
  --accent-glow: rgba(139, 92, 246, 0.35);
  --radius-card: 1rem;    /* rounded-2xl */
  --radius-ctl: 0.75rem;  /* rounded-xl */
  --sticky-h: 3.5rem;
}

body.variant-a { --accent: #8b5cf6; --accent-soft: rgba(139, 92, 246, 0.15); --accent-glow: rgba(139, 92, 246, 0.35); }
body.variant-b { --accent: #06b6d4; --accent-soft: rgba(6, 182, 212, 0.15); --accent-glow: rgba(6, 182, 212, 0.35); }
body.variant-c { --accent: #10b981; --accent-soft: rgba(16, 185, 129, 0.15); --accent-glow: rgba(16, 185, 129, 0.35); }
body.variant-d { --accent: #f59e0b; --accent-soft: rgba(245, 158, 11, 0.15); --accent-glow: rgba(245, 158, 11, 0.35); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(900px 480px at 12% -8%, var(--accent-glow), transparent 55%),
    radial-gradient(700px 420px at 88% 8%, rgba(51, 65, 85, 0.45), transparent 50%),
    var(--bg);
  padding-bottom: calc(var(--sticky-h) + 1rem);
}
body.sticky-hidden { padding-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 64rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.5rem; max-width: 64rem; margin: 0 auto; padding: 0 1.25rem;
}
.brand { font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.25rem 0.65rem; background: var(--surface);
}
.badge-dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--accent); }
.nav-cta {
  display: none; appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #020617; font: inherit; font-weight: 600; font-size: 0.875rem;
  min-height: 2.25rem; padding: 0 0.9rem; border-radius: var(--radius-ctl);
  text-decoration: none;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; color: #020617; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; align-items: center; } }

/* Sections */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-tight { padding: 3rem 0; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.75rem;
}
.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 1.5rem; line-height: 1.25;
}

/* Hero */
.hero { padding: 3rem 0 2.5rem; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0 3.5rem; } }
.hero-grid {
  display: grid; gap: 2rem; align-items: start;
  max-width: 64rem; margin: 0 auto; padding: 0 1.25rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin: 0 0 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.5rem; max-width: 36rem; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.35rem; box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 24px 48px -24px var(--accent-glow);
}
.hero-card-title { font-weight: 600; margin: 0 0 0.75rem; font-size: 0.95rem; }
.privacy { font-size: 0.8rem; color: var(--muted-2); margin: 0.75rem 0 0; line-height: 1.45; }

/* Cards / grids */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.25rem;
}
.pain-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card h3 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 600; }
.pain-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.icon-wrap {
  width: 2.25rem; height: 2.25rem; border-radius: 0.65rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 0.75rem;
}
.icon-wrap svg { width: 1.15rem; height: 1.15rem; }

/* How steps */
.steps { display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 1.25rem;
}
.step-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 0.5rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* Who */
.who-text { color: var(--muted); line-height: 1.55; margin: 0 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 500;
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
details.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 0.85rem 1.1rem;
}
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0.75rem 0 0.15rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Bottom CTA */
.cta-band {
  background: linear-gradient(180deg, rgba(15,23,42,0.4), var(--accent-soft));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-band .section-title { margin-bottom: 0.5rem; }
.cta-band .lead { color: var(--muted); margin: 0 0 1.25rem; }

/* Forms */
.waitlist-form { display: grid; gap: 0.75rem; }
.waitlist-form label { font-size: 0.8rem; color: var(--muted-2); font-weight: 500; }
.waitlist-form .field { display: grid; gap: 0.35rem; }
.waitlist-form input,
.waitlist-form textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-ctl);
  padding: 0.75rem 0.9rem; font: inherit; min-height: 2.75rem;
}
.waitlist-form textarea { min-height: 5rem; resize: vertical; }
.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-color: var(--accent);
}
.waitlist-form input:disabled,
.waitlist-form textarea:disabled,
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #020617;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  min-height: 2.75rem; padding: 0.7rem 1.1rem; border-radius: var(--radius-ctl);
  width: 100%;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.msg { min-height: 1.25rem; font-size: 0.9rem; margin: 0; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  min-height: var(--sticky-h); padding: 0.65rem 1rem;
  background: rgba(2, 6, 23, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(0); transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 28rem; min-height: 2.75rem;
  background: var(--accent); color: #020617; font-weight: 700;
  border-radius: var(--radius-ctl); text-decoration: none;
}
.sticky-cta a:hover { filter: brightness(1.08); text-decoration: none; }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem; color: var(--muted-2); font-size: 0.85rem; line-height: 1.55;
  border-top: 1px solid var(--border);
}
.site-footer strong { color: var(--muted); font-weight: 600; }
.notice {
  margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-ctl);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft); color: var(--text); font-size: 0.9rem; line-height: 1.45;
}

/* Hub cards */
.hub-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 1.25rem; color: inherit; text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); text-decoration: none; }
.hub-card .hub-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.hub-card h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.hub-a { --accent: #8b5cf6; }
.hub-b { --accent: #06b6d4; }
.hub-c { --accent: #10b981; }
.hub-d { --accent: #f59e0b; }

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