/* ============================================================
   GotIt Guides — Landing page styles
   Palette: coral primary, warm off-white, deep charcoal
   ============================================================ */

:root {
  --coral: #FF6B35;
  --coral-dark: #E8521C;
  --coral-soft: #FFE7DC;
  --amber: #FFB347;
  --bg: #FAFAF8;
  --bg-tint: #FFF4EE;
  --ink: #1A1A1A;
  --ink-soft: #565049;
  --ink-muted: #8B847C;
  --line: #EDE8E2;
  --white: #FFFFFF;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.05);
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(232, 82, 28, 0.18);

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── Reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  padding: 14px 26px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.32);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.42);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  padding: 14px 26px;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-mark {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-mark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: baseline;
}

/* ───────── Shared section ───────── */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(255, 179, 71, 0.18), transparent 60%),
    radial-gradient(50% 50% at 5% 30%, rgba(255, 107, 53, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin: 8px 0 20px;
}
.hero-title .accent { color: var(--coral); }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Hero phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  z-index: 2;
  width: 270px;
  background: var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: 18px 14px;
  overflow: hidden;
}
.mock-track {
  display: flex;
  transition: transform 0.5s var(--ease);
  touch-action: pan-y;
}
.mock-slide {
  min-width: 100%;
  box-sizing: border-box;
}
.mock-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.mock-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.mock-dot.active { background: var(--white); transform: scale(1.35); }
.mock-cover {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  color: var(--white);
  margin-bottom: 14px;
}
.mock-emoji { font-size: 2.4rem; display: block; }
.mock-title { font-weight: 800; font-size: 1.25rem; margin-top: 6px; }
.mock-subtitle { font-size: 0.78rem; opacity: 0.92; margin-top: 2px; }

.mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.mock-card-icon { font-size: 1.3rem; }
.mock-card-title { font-weight: 700; font-size: 0.85rem; }
.mock-card-bar {
  height: 6px;
  width: 110px;
  background: var(--line);
  border-radius: 4px;
  margin-top: 6px;
}
.mock-card-bar.short { width: 70px; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 1;
}
.blob-1 {
  width: 200px; height: 200px;
  background: rgba(255, 179, 71, 0.35);
  top: -20px; right: 0;
  animation: float 7s ease-in-out infinite reverse;
}
.blob-2 {
  width: 160px; height: 160px;
  background: rgba(255, 107, 53, 0.22);
  bottom: -10px; left: 10px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ───────── Steps ───────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.step-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.step-text { color: var(--ink-soft); font-size: 0.98rem; }

/* ───────── Use case cards ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-emoji {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: 14px;
}
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.card-text { color: var(--ink-soft); font-size: 0.95rem; }

/* ───────── Features ───────── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.feature {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.feature:hover { transform: translateY(-3px); }
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  border-radius: 14px;
}
.feature-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.feature-text { color: var(--ink-soft); font-size: 0.95rem; }

/* ───────── Pricing ───────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-featured {
  border: 2px solid var(--coral);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.15rem; font-weight: 700; color: var(--ink-soft); }
.plan-price { margin: 12px 0 4px; }
.plan-amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-period { color: var(--ink-muted); font-weight: 600; }
.plan-tagline { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; }
.plan-features { margin-bottom: 26px; flex-grow: 1; }
.plan-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 800;
}

/* ───────── CTA band / waitlist ───────── */
.cta-band {
  background: linear-gradient(135deg, var(--coral), var(--amber));
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; color: var(--white); }
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-sub { font-size: 1.1rem; opacity: 0.95; margin-bottom: 30px; }

/* Final CTA: secondary waitlist below the primary button */
.cta-waitlist { margin-top: 34px; }
.cta-waitlist-label { font-size: 0.95rem; opacity: 0.9; margin-bottom: 12px; }
.waitlist {
  display: flex;
  gap: 10px;
  background: var(--white);
  padding: 8px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  max-width: 480px;
  margin: 0 auto;
}
.waitlist-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  min-width: 0;
}
.waitlist-input::placeholder { color: var(--ink-muted); }
.waitlist-msg {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--white);
}

/* ───────── Footer ───────── */
.site-footer {
  background: var(--ink);
  color: #C9C4BD;
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand .logo-mark { color: var(--white); }
.footer-made { font-size: 0.9rem; margin-top: 4px; color: var(--ink-muted); }
.footer-copy { font-size: 0.9rem; color: var(--ink-muted); }

/* ───────── Scroll reveal ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ───────── Responsive ───────── */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .container { padding: 0 20px; }
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .waitlist { flex-direction: column; border-radius: var(--radius); background: transparent; box-shadow: none; padding: 0; gap: 12px; }
  .waitlist-input { background: var(--white); border-radius: 999px; padding: 15px 22px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   BUILDER + PUBLISHED GUIDE
   ============================================================ */

/* ---- Builder shell ---- */
.builder-main { padding: 40px 0 80px; min-height: calc(100vh - 68px); }
.builder-wrap { max-width: 760px; margin: 0 auto; }

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.wizard-progress .dot {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.3s var(--ease);
}
.wizard-progress .dot.active { background: var(--coral); }
.wizard-progress .dot.done { background: var(--amber); }

.step { display: none; animation: stepIn 0.45s var(--ease); }
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.step-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 10px;
}
.step-heading {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.step-lead {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* ---- Step 1: category cards ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 18px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: var(--shadow);
}
.cat-card:focus-visible { outline: 3px solid var(--coral-soft); }
.cat-card .cat-emoji { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.cat-card .cat-name { font-weight: 700; font-size: 1.05rem; }
.cat-card .cat-desc { font-size: 0.85rem; color: var(--ink-muted); margin-top: 4px; }

/* ---- Step 2: question flow ---- */
.q-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 28px;
}
.q-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: 999px;
  width: 0;
  transition: width 0.4s var(--ease);
}
.q-count { text-align: center; color: var(--ink-muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.q-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}
.q-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.q-hint { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 20px; }
.q-input, .q-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.q-input:focus, .q-textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}
.q-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

/* Dictation mic button inside fields */
.field-with-mic { position: relative; }
.q-input.has-mic { padding-right: 56px; }
.q-textarea.has-mic { padding-right: 56px; }
.mic-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background 0.18s var(--ease), transform 0.12s var(--ease);
}
/* In a multi-line textarea, anchor the mic to the bottom-right. */
.mic-btn--area { top: auto; bottom: 10px; transform: none; }
.mic-btn:hover { border-color: var(--coral); color: var(--coral); }
.mic-btn:active { transform: translateY(-50%) scale(0.94); }
.mic-btn--area:active { transform: scale(0.94); }
.mic-btn.listening {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  animation: micPulse 1.3s ease-out infinite;
}
@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(255, 107, 53, 0); }
}
.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 12px 4px;
}
.btn-link:hover { color: var(--ink); }
.btn-link:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---- Building loader ---- */
.building { text-align: center; padding: 80px 20px; }
.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--coral-soft);
  border-top-color: var(--coral);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.building-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.building-sub { color: var(--ink-soft); }

/* ============================================================
   GUIDE DOCUMENT (shared by preview + published)
   ============================================================ */
.guide-doc { max-width: 680px; margin: 0 auto; }

.guide-cover {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.guide-cover .cover-emoji { font-size: 3.4rem; display: block; }
.guide-cover .cover-title { font-size: 2rem; font-weight: 800; margin-top: 10px; }
.guide-cover .cover-sub { font-size: 1rem; opacity: 0.95; margin-top: 6px; }
.guide-cover [contenteditable]:focus { outline: 2px dashed rgba(255,255,255,0.7); border-radius: 6px; }

/* Cover photo */
.guide-cover.has-cover {
  background-size: cover;
  background-position: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-cover.has-cover .cover-emoji,
.guide-cover.has-cover .cover-title,
.guide-cover.has-cover .cover-sub {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.cover-tools { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cover-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.18s var(--ease);
}
.cover-btn:hover { background: rgba(255, 255, 255, 0.34); }

/* Accordion sections */
.guide-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  padding: 20px 22px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.acc-icon { font-size: 1.5rem; flex-shrink: 0; }
.acc-title-text { flex: 1; }
.acc-chevron {
  transition: transform 0.3s var(--ease);
  color: var(--ink-muted);
  flex-shrink: 0;
}
.guide-section.open .acc-chevron { transform: rotate(180deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.guide-section.open .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { overflow: hidden; }
.acc-content {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.acc-content[contenteditable]:focus {
  outline: 2px dashed var(--coral);
  border-radius: 8px;
  background: var(--bg-tint);
}

/* Section media */
.sec-media { padding: 0 22px 18px; }
.sec-photo { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px; }
.sec-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.sec-video iframe { width: 100%; height: 100%; border: 0; }

/* Edit controls inside section (builder only) */
.sec-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 20px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tool-btn:hover { border-color: var(--coral); color: var(--coral); }
.tool-btn.danger:hover { border-color: #d64545; color: #d64545; }
.video-input-row { display: flex; gap: 8px; padding: 0 22px 18px; }
.video-input-row input {
  flex: 1; font-family: inherit; font-size: 0.9rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px;
}
.video-input-row input:focus { outline: none; border-color: var(--coral); }

/* Emergency block */
.guide-emergency {
  background: #FFF1F0;
  border: 1.5px solid #FFD6D2;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
}
.guide-emergency .em-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: #C0392B; margin-bottom: 14px;
}
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid #FFD6D2;
}
.contact-row:first-of-type { border-top: none; }
.contact-label { font-weight: 700; min-width: 110px; }
.contact-label[contenteditable]:focus, .contact-value[contenteditable]:focus {
  outline: 2px dashed #C0392B; border-radius: 6px;
}
.contact-value { flex: 1; color: var(--ink-soft); }
.contact-value a { color: #C0392B; font-weight: 600; }
.contact-del {
  background: none; border: none; cursor: pointer; color: #C0392B;
  font-size: 1.1rem; opacity: 0.6; line-height: 1;
}
.contact-del:hover { opacity: 1; }

/* Log block */
.guide-log {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.log-head { display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.1rem; margin-bottom: 14px; }
.log-table { width: 100%; border-collapse: collapse; }
.log-table th, .log-table td {
  text-align: left; padding: 9px 8px; font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.log-table th { color: var(--ink-muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.log-table td[contenteditable]:focus { outline: 2px dashed var(--coral); border-radius: 4px; }

/* Builder action bar */
.builder-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 28px 0 8px;
}
.add-block-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.add-block {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-soft);
  border: 1.5px dashed var(--coral);
  border-radius: var(--radius);
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
}
.add-block:hover { background: #ffd9c8; transform: translateY(-2px); }
.add-block:active { transform: translateY(0); }

/* Drag-to-reorder */
.drag-handle {
  cursor: grab;
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -2px;
  padding: 2px 2px;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
}
.drag-handle:hover { color: var(--coral); }
.drag-handle:active { cursor: grabbing; }
.guide-section.dragging,
.guide-emergency.dragging,
.guide-log.dragging {
  opacity: 0.9;
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
  outline: 2px dashed var(--coral);
  outline-offset: 3px;
}
/* Drag handle also shown on emergency/log headers */
.em-head .drag-handle, .log-head .drag-handle { margin-right: 2px; }

.guide-footer {
  text-align: center;
  padding: 28px 0 12px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.guide-footer a { color: var(--coral); font-weight: 700; }

/* ---- Step 4: share ---- */
.share-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  margin: 0 auto;
}
.share-emoji { font-size: 3rem; }
.share-title { font-size: 1.5rem; font-weight: 800; margin: 8px 0 6px; }
.share-sub { color: var(--ink-soft); margin-bottom: 24px; }
.qr-box {
  display: inline-flex;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.qr-box canvas, .qr-box img { display: block; }
.share-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 4px 2px 6px;
}
.share-link {
  display: flex; gap: 8px; margin-bottom: 16px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 18px; align-items: center;
}
.share-link input {
  flex: 1; border: none; background: none; font-family: inherit;
  font-size: 0.92rem; color: var(--ink-soft); outline: none; min-width: 0;
}
.share-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), transform 0.15s var(--ease);
}
.chip:hover { border-color: var(--coral); transform: translateY(-2px); }
.chip-ico { width: 18px; height: 18px; flex: none; }
.share-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 12px 22px;
  border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* The hidden attribute must always win, even over component display rules. */
[hidden] { display: none !important; }

/* ── Repositioned homepage helpers ───────────────────────────── */
/* Hero supporting microcopy */
.hero-micro {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--coral-dark);
  margin: -4px 0 22px;
  line-height: 1.5;
  max-width: 520px;
}

/* Centred lead paragraph under a section heading */
.section-lead {
  max-width: 580px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* Emphasised "start here" use-case card (pet care) */
.card-featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.card-featured::after {
  content: "Start here";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Differentiation comparison list */
.compare-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.compare-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--coral);
  margin-top: 1px;
}

/* Example guide preview card */
.example-wrap { max-width: 440px; margin: 30px auto 0; }
.example-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.example-cover {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: var(--white);
  text-align: center;
  padding: 28px 18px;
}
.example-emoji { font-size: 2.6rem; display: block; }
.example-title { font-weight: 800; font-size: 1.3rem; margin-top: 6px; }
.example-sub { font-size: 0.85rem; opacity: 0.92; margin-top: 2px; }
.example-sections { list-style: none; margin: 0; padding: 8px 18px; }
.example-sections li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}
.example-sections li:last-child { border-bottom: none; }
.example-sections li span { font-size: 1.2rem; width: 24px; text-align: center; }
.example-cta { padding: 14px 18px 20px; }

/* Two-up pricing (Personal + Pro) */
.pricing-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.plan-badge--soon { background: var(--ink-muted); }

/* About / founder story */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.about-photo { text-align: center; }
.about-photo img {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--coral-soft), var(--shadow-lg);
}
.about-title { margin: 10px 0 18px; }
.about-text p {
  color: var(--ink-muted);
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.about-kicker {
  color: var(--ink) !important;
  font-weight: 700;
}
@media (max-width: 780px) {
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .compare-list { grid-template-columns: 1fr; }
  .pricing-2 { grid-template-columns: 1fr; max-width: 420px; }
}

/* Feedback — floating button + modal (persistent across builder steps) */
.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s var(--ease), background 0.18s var(--ease);
}
.feedback-fab:hover { transform: translateY(-2px); background: #000; }
.feedback-fab svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  .feedback-fab span { display: none; }
  .feedback-fab { padding: 13px; }
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}
.feedback-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 22px;
  animation: fbpop 0.18s var(--ease);
}
@keyframes fbpop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.feedback-x {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink-muted); cursor: pointer;
}
.feedback-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; }
.feedback-lead { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 16px; line-height: 1.5; }
.feedback-card .q-textarea { width: 100%; margin-bottom: 12px; }
.feedback-card .q-input { width: 100%; margin-bottom: 16px; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }
.feedback-note { margin: 12px 0 0; font-size: 0.88rem; font-weight: 600; }
.feedback-note.error { color: var(--coral-dark); }
.feedback-note.ok { color: #1a9e57; }

/* Header actions + AI button */
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Polish action under question fields */
.field-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.tool-btn:disabled { opacity: 0.6; cursor: default; }
.tool-btn:disabled:hover { border-color: var(--line); color: var(--ink-soft); }

/* AI key modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 26, 26, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  animation: stepIn 0.3s var(--ease);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.modal-text { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.modal-hint { color: var(--ink-muted); font-size: 0.82rem; margin-top: 10px; line-height: 1.5; }
.modal-text a, .modal-hint a { color: var(--coral); font-weight: 600; }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* Build-from-notes/file panel (first question of each category) */
.import-panel {
  border: 1px solid var(--coral-soft);
  background: var(--bg-tint);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.import-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--coral-dark);
  cursor: pointer;
}
.import-toggle:hover { background: var(--coral-soft); }
.import-toggle.open { border-bottom: 1px solid var(--coral-soft); }
.import-body { padding: 4px 18px 18px; }
.import-lead { color: var(--ink-soft); font-size: 0.92rem; margin: 8px 0 12px; line-height: 1.5; }
.import-text { width: 100%; min-height: 110px; margin-bottom: 12px; }
.import-file-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.import-file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.import-file-name { color: var(--ink-muted); font-size: 0.85rem; word-break: break-all; }
.import-go { width: 100%; }

/* Password lock — builder control + viewer unlock screen */
.lock-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  background: var(--white);
}
.lock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.lock-row .q-input { margin-top: 12px; }
.lock-hint { color: var(--ink-muted); font-size: 0.82rem; margin-top: 10px; line-height: 1.5; }

.email-links-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 8px;
  line-height: 1.45;
}
.email-links-note {
  font-size: 0.85rem;
  margin: 10px 0 0;
}
.email-links-note.ok { color: var(--coral-dark); }
.email-links-note.err { color: var(--coral-dark); }

.lock-screen {
  max-width: 360px;
  margin: 24px auto 0;
  text-align: center;
}
.lock-screen .q-input { margin-bottom: 12px; }
.lock-screen .btn { width: 100%; }
.lock-error { color: var(--coral-dark); font-size: 0.88rem; margin-top: 10px; }

/* Builder responsive */
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .q-card { padding: 28px 20px; }
  .builder-main { padding: 24px 0 64px; }
  .contact-label { min-width: 84px; }
}
