/* ==========================================================================
   Store From Scratch — Shopify Course Funnel
   Design system: modern-commercial. Indigo primary, ember orange accent,
   Bricolage Grotesque display + Inter body.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0e1b2e;
  --ink-soft: #2b3a52;
  --muted: #5a6a84;
  --border: #e2e8f3;
  --primary: #0064fe; /* Store From Scratch logo blue */
  --primary-dark: #004fd0;
  --primary-soft: #e6f0ff;
  --accent: #ff6b2c;
  --accent-soft: #fff0e8;
  --navy: #0e1b2e;
  --navy-2: #16263f;
  --success: #0e9f6e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 46, 0.06), 0 2px 8px rgba(14, 27, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 27, 46, 0.08), 0 12px 32px rgba(14, 27, 46, 0.1);
  --shadow-lg: 0 8px 24px rgba(14, 27, 46, 0.12), 0 24px 64px rgba(14, 27, 46, 0.14);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: var(--primary); }

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.5vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.5rem); }
h3 { font-size: 1.25rem; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: #ffa477; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2.5rem, 46rem); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1b2f52 100%);
  color: #e8eefb;
}
.section-accent h2 { color: #fff; }

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-sub { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 56rem) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 100, 254, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(0, 100, 254, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.section-accent .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.section-accent .btn-ghost:hover { border-color: #fff; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo { white-space: nowrap; }
.logo-accent { color: var(--primary); }
.site-footer .logo-accent { color: #4d9aff; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 56rem) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero visual (signature element) ---------- */
.hero-visual {
  position: relative;
  padding: 1.5rem 0 2.5rem;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  animation: dash-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.dash-dot:first-child { background: #ff5f57; }
.dash-title {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
}
.dash-stat-label { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding-top: 0.5rem;
}
.dash-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--primary) 0%, #6d84f7 100%);
  transform-origin: bottom;
  animation: bar-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dash-chart span:nth-child(2) { animation-delay: 0.08s; }
.dash-chart span:nth-child(3) { animation-delay: 0.16s; }
.dash-chart span:nth-child(4) { animation-delay: 0.24s; }
.dash-chart span:nth-child(5) { animation-delay: 0.32s; }
.dash-chart span:nth-child(6) { animation-delay: 0.4s; }
.dash-chart span:nth-child(7) { animation-delay: 0.48s; }
.dash-chart span:nth-child(8) { animation-delay: 0.56s; background: linear-gradient(180deg, var(--accent) 0%, #ffa477 100%); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.float-card strong { display: block; font-size: 0.85rem; }
.float-card span:last-child { color: var(--muted); display: block; }
.float-icon {
  font-size: 1.2rem;
  background: var(--primary-soft);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-card-1 {
  top: -0.5rem; right: -0.75rem;
  animation: float-drift 5s ease-in-out infinite, dash-in 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.float-card-2 {
  bottom: 0; left: -1rem;
  animation: float-drift 6s 0.8s ease-in-out infinite, dash-in 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.float-card-2 .float-icon { background: var(--accent-soft); }
@media (max-width: 56rem) {
  .float-card-1 { right: 0; }
  .float-card-2 { left: 0; }
}

@keyframes dash-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes float-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

.problem-card .problem-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.card-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.card-answer strong { color: var(--ink); }

.tool-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.tool-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.tool-link {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Lead magnet ---------- */
.lead-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lead-copy p { color: #b9c6dd; margin-top: 0.75rem; }
@media (max-width: 56rem) {
  .lead-grid { grid-template-columns: 1fr; }
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  padding-left: 1.9rem;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}
.section-accent .check-list li { color: #dbe4f5; }

/* ---------- Forms ---------- */
.capture-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.capture-form h3 { margin-bottom: 1.1rem; }
.capture-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.capture-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.offer-card > .form-note { text-align: left; }

.form-success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #e7f8f1;
  border: 1px solid #b5e8d4;
  border-radius: var(--radius-sm);
  color: #0b5c40;
  font-size: 0.95rem;
}
.form-success a { color: var(--primary-dark); font-weight: 600; }
.form-success p + p { margin-top: 0.4rem; }

.capture-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.capture-form-inline input[type="email"] {
  flex: 1 1 16rem;
  margin-bottom: 0;
}
.capture-form-inline .form-success { flex-basis: 100%; }

/* Form busy state */
.capture-form.is-submitting button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Modules ---------- */
.module-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}
.module {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module:hover { border-color: var(--primary); transform: translateX(4px); }
.module-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding-top: 0.2rem;
}
.module h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.module p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 40rem) {
  .module { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}
.stat-label {
  font-size: 0.85rem;
  color: #9db0cf;
}
@media (max-width: 40rem) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ---------- Testimonials ---------- */
.testimonial blockquote {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Offer card ---------- */
.offer-card {
  max-width: 34rem;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.offer-head { margin-bottom: 1.25rem; }
.offer-price { margin-top: 0.5rem; }
.offer-price-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.offer-card .check-list { margin-bottom: 1.75rem; }
.offer-card .form-note { text-align: left; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Final CTA ---------- */
.final-cta-inner { text-align: center; }
.final-cta-inner p {
  color: #b9c6dd;
  margin: 0.85rem auto 1.75rem;
  max-width: 34rem;
}
.final-cta-inner .capture-form-inline { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c6dd;
  padding: 3rem 0 0;
}
.site-footer .nav-logo { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-tag { font-size: 0.9rem; margin-top: 0.5rem; max-width: 20rem; }
.footer-links { display: grid; gap: 0.6rem; align-content: start; }
.footer-links a, .footer-contact a { color: #b9c6dd; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #7d90b3;
}
@media (max-width: 56rem) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TOOL PAGES
   ========================================================================== */

.tool-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.tool-hero .eyebrow { margin-bottom: 0.5rem; }
.tool-hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
}

/* ---------- Shared form fields ---------- */
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.field-hint { font-size: 0.8rem; color: var(--muted); }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ---------- Pill toggles (name generator styles, etc.) ---------- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-group input[type="radio"] { position: absolute; opacity: 0; }
.pill-group label {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.15s ease;
  background: var(--surface);
}
.pill-group input[type="radio"]:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pill-group input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Results (name generator) ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  animation: result-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.result-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
  overflow-wrap: anywhere;
}
.result-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
@keyframes result-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- Quiz (niche picker) ---------- */
.quiz-progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.quiz-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.quiz-question h2 { font-size: 1.45rem; margin-bottom: 1.5rem; }
.quiz-options { display: grid; gap: 0.7rem; }
.quiz-option {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
}
.quiz-option:hover { border-color: var(--primary); transform: translateX(4px); }
.quiz-back {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
}
.quiz-back:hover { color: var(--primary); }

/* Quiz results */
.match-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  background: var(--bg);
  animation: result-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.match-card:first-of-type {
  border: 2px solid var(--primary);
  background: var(--surface);
}
.match-card:nth-of-type(2) { animation-delay: 0.12s; }
.match-card:nth-of-type(3) { animation-delay: 0.24s; }
.match-rank {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.match-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.3rem 0 0.75rem;
}
.match-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}
.score-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.score-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.match-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.match-why { color: var(--muted); font-size: 0.95rem; }

/* ---------- Tabs (marketing toolkit) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel[hidden] { display: none; }

/* ---------- Output cards (generated copy) ---------- */
.output-stack { display: grid; gap: 1rem; margin-top: 1.75rem; }
.output-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  animation: result-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.output-card:nth-child(2) { animation-delay: 0.1s; }
.output-card:nth-child(3) { animation-delay: 0.2s; }
.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.output-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
}
.output-card p { white-space: pre-line; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Calculator ---------- */
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease;
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.metric-label { font-size: 0.82rem; color: var(--muted); }
.metric.metric-good { border-color: var(--success); background: #e7f8f1; }
.metric.metric-good .metric-value { color: var(--success); }
.metric.metric-warn { border-color: #f5b40a; background: #fdf6e3; }
.metric.metric-warn .metric-value { color: #a37b00; }
.metric.metric-bad { border-color: #e02424; background: #fdf0f0; }
.metric.metric-bad .metric-value { color: #c81e1e; }

.calc-verdict {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--primary-soft);
  color: var(--ink-soft);
}

/* ---------- Tool page CTA strip ---------- */
.tool-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius);
  color: #e8eefb;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3.5rem;
}
.tool-cta h2 { color: #fff; font-size: 1.6rem; }
.tool-cta p { color: #b9c6dd; margin: 0.75rem auto 1.5rem; max-width: 30rem; }
.tool-cta .capture-form-inline { justify-content: center; }

.breadcrumb {
  font-size: 0.88rem;
  padding-top: 1.25rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Reel Factory's dedicated product section; styles stay scoped to the funnel. */
.factory-section{--primary:#d1ee8a;--primary-dark:#bddb76;--ink:#f0f1e9;--ink-soft:#c5ccbf;--muted:#a4ac9e;--border:#353d32;--accent:#d1ee8a;--navy:#1a1e19;background:#111411;color:var(--ink);border-block:1px solid var(--border);color-scheme:dark}
.factory-section .btn-primary{color:#111411;box-shadow:none}
.factory-section .btn-primary:hover{box-shadow:0 6px 20px #d1ee8a20}
.factory-section .factory-poster{color:#26321d}
.factory-intro{display:grid;grid-template-columns:1.2fr 1fr;gap:64px;align-items:center}
.factory-intro h2{font-size:clamp(42px,5vw,70px);line-height:1.05;letter-spacing:-2px;margin:20px 0}
.factory-intro h2 em{font-family:Georgia,serif;color:var(--primary);font-weight:400}
.factory-copy{max-width:540px;font-size:18px;color:var(--ink-soft);margin:24px 0}
.factory-note{max-width:520px;font-size:13px;line-height:1.6;color:var(--muted);margin-top:18px}
.factory-poster{max-width:350px;aspect-ratio:4/5;padding:32px;display:flex;flex-direction:column;justify-content:space-between;background:var(--primary);color:#26321d;border-radius:18px;transform:rotate(4deg);box-shadow:var(--shadow-lg);justify-self:center}
.factory-poster span{font-size:10px;letter-spacing:2px}.factory-poster p{font-size:clamp(40px,4vw,62px);line-height:1.05;letter-spacing:-2px;font-weight:700}.factory-poster em{font-family:Georgia,serif;font-weight:400}
.factory-screening{display:grid;grid-template-columns:1fr 1.2fr;gap:48px;align-items:center;border-top:1px solid var(--border);padding-top:48px;margin-top:64px}.factory-screening h3{font-size:32px;margin:14px 0}
.factory-films{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.factory-films figure{margin:0;min-width:0}.factory-films video{display:block;width:100%;aspect-ratio:9/16;max-height:360px;background:var(--navy);border-radius:12px}.factory-films figcaption{font-size:14px;margin-top:12px;font-weight:600}
@media(max-width:700px){.factory-intro,.factory-screening{grid-template-columns:1fr;gap:32px}.factory-poster{width:75%;max-width:300px;margin:16px auto}.factory-screening{margin-top:40px;padding-top:32px}.factory-films{gap:12px}.factory-intro h2{letter-spacing:-1px}}
