/* ============================================================
   LABBIE — SEO LANDING PAGES (marketing surfaces)
   Shared design system for the public, indexable landing pages
   (/ai-website-generator, /small-business-website-builder,
    /startup-website-builder, /ai-landing-page-builder).

   Reuses the homepage's visual DNA verbatim — cream background,
   white cards, ink text, the two-tone gold brand accent,
   Geist (sans) + Fraunces (serif) — but as a NORMAL, scrollable,
   fully responsive content page (not the homepage card-state
   machine). The homepage itself is untouched.
   ============================================================ */

/* Design tokens copied from the homepage (scripts/_landing_template.html). */
:root {
  --ink:        #16140f;   /* near-black brand text / primary buttons */
  --lp-text:    #1d1b16;   /* body text */
  --lp-muted:   #6b7280;   /* secondary text */
  --lp-line:    rgba(0,0,0,0.06);
  --lp-line-2:  rgba(0,0,0,0.10);
  --cream-1:    #fbf8f0;
  --cream-2:    #f5eddc;
  --cream-hi:   #fdfaf3;
  --lp-card:    #ffffff;
  --gold:       #F6B72D;   /* brand gold — main */
  --gold-2:     #F2AE2B;   /* brand gold — depth */
  --glow:       rgba(247,201,72,0.55);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 20px;
  --radius-lg:   28px;
  --shadow-card: 0 1px 3px rgba(28,24,16,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-soft: 0 14px 40px -18px rgba(28,24,16,0.20), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hero: 0 40px 90px -50px rgba(28,24,16,0.32), 0 2px 8px rgba(28,24,16,0.04);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--cream-1);
  scroll-behavior: smooth;
  /* Belt-and-braces against any child pushing the page wider than the
     viewport on small screens (the mobile no-overflow guarantee). */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--lp-text);
  line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }

/* Warm cream backdrop — same recipe as the homepage .bg-cream layer. */
.bg-cream {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--cream-hi) 0%, var(--cream-1) 40%, var(--cream-2) 100%);
}

/* Focus visibility for keyboard users (accessibility, no visual cost otherwise). */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ═══════════════════════════════ NAVBAR ═══════════════════════════════ */
.lp-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 28px), var(--maxw));
  height: 56px;
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--lp-line);
  box-shadow: 0 6px 24px -12px rgba(20,18,15,0.18), 0 1px 3px rgba(0,0,0,0.04);
}
.lp-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  gap: 12px;
}
.lp-brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lp-brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: url(/assets/brand/labbie-logo.png) center / contain no-repeat;
  flex-shrink: 0;
}
.lp-brand-word {
  font-family: var(--sans); font-weight: 500; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.lp-nav-links {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.lp-nav-links a {
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.86rem; color: var(--lp-muted);
  transition: color 160ms, background 160ms;
}
.lp-nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.035); }
.lp-nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ═══════════════════════════════ BUTTONS ═══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-weight: 500; text-align: center;
  transition: opacity 160ms, transform 160ms, border-color 160ms, background 160ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; padding: 13px 26px; font-size: 0.95rem; }
.btn-primary:hover { opacity: 0.86; }
.btn-primary.sm { padding: 9px 20px; font-size: 0.86rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--lp-line-2); padding: 12px 24px; font-size: 0.95rem;
}
.btn-ghost:hover { border-color: rgba(0,0,0,0.32); background: rgba(0,0,0,0.02); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; }

/* ═══════════════════════════════ LAYOUT ═══════════════════════════════ */
main { position: relative; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1rem; color: var(--gold-2); letter-spacing: 0;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.02em; color: var(--ink); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.section-lead {
  font-size: 1.02rem; color: var(--lp-muted); line-height: 1.6;
  max-width: 620px; margin-top: 14px;
}
.section-head { margin-bottom: 40px; }

/* ═══════════════════════════════ HERO ═══════════════════════════════ */
.hero { padding: 132px 0 60px; text-align: center; }
.hero .wrap { max-width: 860px; }
.hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 0 auto 22px; max-width: 15ch;
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--lp-muted);
  line-height: 1.55; max-width: 620px; margin: 0 auto 34px;
}
.hero-em { color: var(--gold); }
.hero-em-depth { color: var(--gold-2); }
.hero-cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--lp-muted); }

/* Soft gold under-glow beneath the hero, echoing the homepage card glow. */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  width: min(720px, 92%); height: 220px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--glow) 0%, rgba(247,201,72,0.12) 45%, rgba(247,201,72,0) 72%);
  filter: blur(6px); opacity: 0.6;
}

/* ═══════════════════════════════ CARD GRID (benefits / use cases) ═══════ */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.card:hover {
  border-color: var(--lp-line-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.card .ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(246,183,45,0.18), rgba(242,174,43,0.10));
  border: 1px solid rgba(242,174,43,0.28);
}
.card .ic svg { width: 21px; height: 21px; stroke: var(--gold-2); fill: none; stroke-width: 2; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--lp-muted); line-height: 1.58; }

/* ═══════════════════════════════ STEPS (how it works) ═══════════════════ */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step {
  background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: var(--radius-card); padding: 24px 22px; position: relative;
}
.step .num {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  color: var(--gold-2); line-height: 1; margin-bottom: 14px;
  display: inline-block;
}
.step h3 { margin-bottom: 7px; font-size: 1.05rem; }
.step p { font-size: 0.9rem; color: var(--lp-muted); line-height: 1.55; }

/* ═══════════════════════════════ EXAMPLE PROMPT ═══════════════════════ */
.prompt-block {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px 30px 26px;
  max-width: 760px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.prompt-block::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.prompt-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lp-muted); margin-bottom: 14px;
}
.prompt-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.prompt-text {
  font-size: 1.12rem; line-height: 1.5; color: var(--lp-text);
  font-weight: 400;
}
.prompt-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  background: var(--gold-2); vertical-align: text-bottom; border-radius: 2px;
}
.prompt-foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--lp-line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--lp-muted);
}

/* ═══════════════════════════════ TEMPLATE LINKS ═══════════════════════ */
.tmpl-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tmpl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lp-card); border: 1px solid var(--lp-line-2);
  border-radius: 999px; padding: 9px 16px; font-size: 0.9rem; color: var(--lp-text);
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.tmpl-chip:hover { border-color: rgba(0,0,0,0.30); background: #fff; transform: translateY(-1px); }
.tmpl-chip .swatch {
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(140deg, var(--gold), var(--gold-2));
}

/* ═══════════════════════════════ FEATURE ROWS (alternating) ═══════════ */
.feature-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
}
.feature-row + .feature-row { margin-top: 40px; }
.feature-row .fr-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.feature-row .fr-body p { color: var(--lp-muted); font-size: 1rem; line-height: 1.62; }
.feature-list { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; color: var(--lp-text); }
.feature-list li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; stroke: var(--gold-2); fill: none; stroke-width: 2.4; }
.fr-visual {
  background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 26px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.fr-visual .bar { height: 12px; border-radius: 6px; background: var(--cream-2); }
.fr-visual .bar.w1 { width: 70%; } .fr-visual .bar.w2 { width: 90%; } .fr-visual .bar.w3 { width: 55%; }
.fr-visual .bar.gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); width: 40%; height: 14px; }
.fr-visual .chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fr-visual .chip { font-size: 0.78rem; color: var(--lp-muted); border: 1px solid var(--lp-line-2); border-radius: 999px; padding: 5px 12px; }

/* ═══════════════════════════════ FAQ ═══════════════════════════════════ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: 16px; padding: 4px 22px; margin-bottom: 12px;
  transition: border-color 200ms;
}
.faq details[open] { border-color: var(--lp-line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform 200ms;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--gold-2); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq summary .plus::before { width: 14px; height: 2px; }
.faq summary .plus::after  { width: 2px; height: 14px; transition: transform 200ms; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq details p { padding: 0 0 20px; color: var(--lp-muted); font-size: 0.96rem; line-height: 1.62; }

/* ═══════════════════════════════ FINAL CTA ═══════════════════════════ */
.cta-band {
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(246,183,45,0.16) 0%, rgba(246,183,45,0) 55%),
    var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hero);
  text-align: center; padding: 56px 32px; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: var(--lp-muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.03rem; }

/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */
.lp-footer {
  border-top: 1px solid var(--lp-line);
  margin-top: 20px; padding: 44px 0 60px; color: var(--lp-muted);
}
.lp-footer .wrap { display: flex; flex-wrap: wrap; gap: 34px 60px; justify-content: space-between; }
.lp-footer .foot-brand { max-width: 280px; }
.lp-footer .foot-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; }
.foot-col h4 { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lp-text); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 0.92rem; color: var(--lp-muted); padding: 5px 0; transition: color 150ms; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { width: 100%; border-top: 1px solid var(--lp-line); margin-top: 12px; padding-top: 22px; font-size: 0.84rem; }

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 860px) {
  .lp-nav-links { display: none; }               /* keep brand + CTA; links live in footer */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .feature-row .fr-visual { order: -1; }
  .section { padding: 48px 0; }
  .hero { padding: 116px 0 48px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost { width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .prompt-block { padding: 24px 20px; }
  .cta-band { padding: 44px 22px; }
  .lp-footer .wrap { gap: 26px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .card, .card:hover, .tmpl-chip:hover, .btn:active { transform: none !important; }
}
