/* Shared styles for the public marketing pages (generator + industry pages).
   Tokens mirror the homepage so the new pages inherit the brand exactly.
   Light is the default; `html.light` overrides the dark :root values, matching
   the homepage's rr_theme behaviour. */

:root {
  --navy-900: #030712;
  --navy-800: #09090b;
  --navy-700: #18181b;
  --blue-500: #818cf8;
  --blue-600: #4338ca;
  --cyan-400: #a78bfa;
  --slate-400: #a1a1aa;
  --slate-500: #71717a;
  --white: #fafafa;

  --bg-chem: var(--navy-900);
  --bg-card: var(--navy-700);
  --bg-card-hover: #27272a;
  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.4);
  --text-main: var(--white);
  --text-muted: var(--slate-400);
  --primary: var(--blue-500);
  --primary-glow: rgba(99, 102, 241, 0.4);

  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html.light {
  --bg-chem: #fafafa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(244, 244, 245, 0.9);
  --border: rgba(9, 9, 11, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  --text-main: #09090b;
  --text-muted: #52525b;
  --navy-800: #ffffff;
  --navy-900: #f4f4f5;
  --primary: #4338ca;
  --primary-glow: rgba(67, 56, 202, 0.3);
  --cyan-400: #7c3aed;
}

* { box-sizing: border-box; }

/* An author-declared `display` beats the UA stylesheet's [hidden] rule, so
   .btn[hidden] would still render. Force it, or the copy button and the upgrade
   prompt show before there is anything to copy or upgrade for. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg-chem);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--primary); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--navy-800);
  position: sticky; top: 0; z-index: 50;
}
.site-head .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
         font-family: var(--font-display); color: var(--text-main); text-decoration: none; }
.brand img { height: 28px; width: auto; }
.head-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.head-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.head-links a:hover { color: var(--text-main); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-size: 1rem; font-family: var(--font-body);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border); }

/* ── Sections & cards ───────────────────────────────────────────────────── */
section { padding: 56px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}

/* ── Before/after proof pair ────────────────────────────────────────────── */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-col { display: flex; flex-direction: column; }
.proof-head {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px;
}
.proof-body { flex: 1; }
.stars-bad { color: var(--warn); letter-spacing: 2px; }
.review-quote { font-style: italic; }
.reply-quote { border-left: 3px solid var(--ok); padding-left: 14px; }
.example-note {
  font-size: .82rem; color: var(--text-muted); margin-top: 10px;
}

.honesty {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  border: 1px dashed var(--border-highlight); background: var(--bg-card);
  font-size: .95rem; color: var(--text-muted);
}
.honesty strong { color: var(--text-main); }

/* ── Generator form ─────────────────────────────────────────────────────── */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .gen-grid { grid-template-columns: 1fr; } }

label.field { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
textarea, select, input[type="text"] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--navy-800);
  color: var(--text-main); font-family: var(--font-body); font-size: 1rem;
}
textarea { min-height: 170px; resize: vertical; }
textarea:focus, select:focus, input:focus {
  outline: 2px solid var(--border-highlight); outline-offset: 1px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.quota { font-size: .85rem; color: var(--text-muted); margin-top: 12px; }
.result {
  margin-top: 18px; padding: 18px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  white-space: pre-wrap;
}
.result.empty { color: var(--text-muted); font-style: italic; white-space: normal; }
.upsell {
  margin-top: 16px; padding: 18px; border-radius: 12px;
  background: linear-gradient(135deg, #059669, #047857); color: #fff;
}
.upsell a { color: #fff; font-weight: 700; }
.err { color: var(--bad); font-size: .9rem; margin-top: 10px; }

/* ── FAQ / prose ────────────────────────────────────────────────────────── */
.prose h2 { margin-top: 34px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ── Internal link grid ─────────────────────────────────────────────────── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.link-card {
  display: block; padding: 18px; border-radius: 12px; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-main);
}
.link-card:hover { border-color: var(--border-highlight); background: var(--bg-card-hover); }
.link-card strong { display: block; margin-bottom: 4px; font-family: var(--font-display); }
.link-card span { font-size: .88rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--border); padding: 30px 0; margin-top: 40px;
  color: var(--text-muted); font-size: .9rem;
}
.site-foot a { color: var(--text-muted); text-decoration: none; margin-right: 16px; }
.site-foot a:hover { color: var(--text-main); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue-600);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
