/* ============================================================
   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%; scroll-padding-top: 84px; }

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;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 10px; }

/* Header nav (jump to sections): a liquid-glass hamburger bubble on the left
   that opens a dropdown of section links. */
.nav-menu { position: relative; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s var(--ease), transform 0.12s var(--ease);
}
.nav-toggle:hover { color: var(--coral); transform: translateY(-1px); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  z-index: 60;
  animation: navpop 0.16s var(--ease);
}
@keyframes navpop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-dropdown a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav-dropdown a:hover { background: var(--coral-soft); color: var(--coral-dark); }
.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 {
  display: block;
  text-decoration: none;
  color: inherit;
  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; }
  /* Keep the header on one line: smaller logo + menu bubble so the hamburger,
     wordmark and "Create a guide" button all fit without wrapping. */
  .header-inner { height: 60px; }
  .header-left { gap: 9px; }
  .logo-mark { font-size: 1.12rem; white-space: nowrap; }
  .nav-toggle { width: 38px; height: 38px; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .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); }

/* Scoped to the builder wizard so it doesn't hide the homepage `.step` cards
   (the landing page reuses the `.step` class for its "how it works" tiles). */
.builder-main .step { display: none; animation: stepIn 0.45s var(--ease); }
.builder-main .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;
  overflow-wrap: anywhere;
}
.log-table td { overflow-wrap: anywhere; word-break: break-word; }
.acc-content[contenteditable]:focus {
  outline: 2px dashed var(--coral);
  border-radius: 8px;
  background: var(--bg-tint);
}
/* Rich-text lists (the global ul reset hides bullets, so restore them here) */
.acc-content ul, .acc-content ol { margin: 6px 0; padding-left: 1.5em; }
.acc-content ul { list-style: disc; }
.acc-content ol { list-style: decimal; }
.acc-content li { margin: 3px 0; }
.acc-content p { margin: 0 0 6px; }

/* ── Floating glass editor dock (step 3) ───────────────────────────────── */
.edit-dock {
  position: fixed;
  /* Sit just right of the centred content column rather than against the far
     edge of wide screens; clamp to 16px on narrower viewports. */
  right: max(16px, calc(50vw - 440px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
}
.glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.16);
}
/* The dock floats over content (especially on mobile, where it sits atop the
   cover/cards). A lightly-tinted glass fill would disappear over saturated
   colours and leave the lower buttons looking like loose circles, so give the
   dock a more opaque frosted fill so it always reads as one cohesive bar. */
.edit-dock.glass {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.85);
}
.dock-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dock-widget { transition: opacity 0.2s var(--ease); }
.dock-widget.dim { opacity: 0.5; }
.dock-sep { width: 22px; height: 1px; background: rgba(26, 26, 26, 0.12); margin: 1px 0; }
.dock-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.12s var(--ease), opacity 0.15s var(--ease);
}
.dock-btn:hover:not(:disabled) { background: var(--white); transform: translateY(-1px); }
.dock-btn:disabled { opacity: 0.3; cursor: default; }
.dock-btn.on { background: var(--coral); box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3); }
.dock-btn.dock-danger:hover:not(:disabled) { background: #ffe2e2; }

/* Dock popover (left of the dock on desktop; aligned to its button via JS) */
.dock-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 0;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.dock-pop-swatches { flex-wrap: wrap; width: 170px; }
.dock-pop-row { flex-direction: row; }
.dock-pop-list { flex-direction: column; min-width: 152px; }
.dock-pop-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.dock-pop-btn:hover { background: var(--coral-soft); color: var(--coral-dark); }
.dock-pop-wide { width: auto; justify-content: flex-start; padding: 10px 14px; font-weight: 600; }

/* Selected-block highlight */
.guide-section.selected,
.guide-log.selected,
.guide-emergency.selected,
.guide-cover.selected {
  outline: 2.5px solid var(--coral);
  outline-offset: 3px;
}

/* Stays a vertical dock on the right on mobile too, just a touch smaller. */
@media (max-width: 720px) {
  .edit-dock { right: 10px; gap: 5px; padding: 7px; }
  .dock-btn { width: 42px; height: 42px; font-size: 1.1rem; }
  .dock-pop-swatches { width: 150px; }
}

/* Per-media remove (×) overlay */
.sec-media-item { position: relative; margin-bottom: 12px; }
.sec-media-item:last-child { margin-bottom: 0; }
.sec-media-item .sec-photo { margin-bottom: 0; display: block; }
.sec-media-x {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(26, 26, 26, 0.66); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.sec-media-x:hover { background: #d64545; }


/* 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; overflow-wrap: anywhere; }
.contact-label[contenteditable]:focus, .contact-value[contenteditable]:focus {
  outline: 2px dashed #C0392B; border-radius: 6px;
}
/* min-width:0 lets the flex item shrink so long values (e.g. URLs) wrap
   instead of overflowing the card. */
.contact-value { flex: 1; min-width: 0; color: var(--ink-soft); overflow-wrap: anywhere; word-break: break-word; }
.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; }
.log-empty td { color: var(--ink-muted); font-style: italic; }

/* Viewer "add a log entry" row on the published guide */
.log-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: stretch; }
.log-add .q-input { font-size: 0.95rem; padding: 11px 14px; }
.log-add .log-when { flex: 0 1 150px; min-width: 120px; }
.log-add .log-note { flex: 1 1 180px; min-width: 0; }
.log-add .log-add-btn { flex: 0 0 auto; }
.log-add-msg { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; }
.log-add-msg.ok { color: #1a9e57; }
.log-add-msg.err { color: var(--coral-dark); }
@media (max-width: 460px) {
  .log-add .log-when, .log-add .log-note { flex: 1 1 100%; }
  .log-add .log-add-btn { width: 100%; }
}

/* ── Per-block accent colours (sections / logs / emergency) ──────────────
   Driven by --accent / --soft custom properties set in JS (GotItStore.applyAccent). */
.guide-section.has-accent { border-left: 6px solid var(--accent); }
.guide-section.has-accent .acc-header { background: var(--soft); }

.guide-log.has-accent { border-left: 6px solid var(--accent); }
.guide-emergency.has-accent {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--accent);
}
.guide-log.has-accent .log-head,
.guide-emergency.has-accent .em-head {
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin: -2px -2px 14px;
}
.guide-emergency.has-accent .em-head { color: var(--ink); }

/* 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;
}

/* A section-head used on its own (no grid/cards below it) */
.section-head--solo { margin-bottom: 0; }
.section-cta { margin-top: 28px; }

/* Hero reassurance ticks under the CTAs */
.hero-reassure {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.hero-reassure li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-reassure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
}
@media (max-width: 940px) {
  .hero-reassure { justify-content: center; }
}

/* Bulleted highlights inside the use-case cards */
.card-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.card-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink-soft);
}
.card-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* Three-up card grid (e.g. the six real-world examples) */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }

/* 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; }

/* Feedback screenshot attach */
.feedback-attach { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; }
.feedback-attach-btn { cursor: pointer; }
.feedback-attach-preview { position: relative; display: inline-block; }
.feedback-attach-preview img {
  display: block; width: 54px; height: 54px;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
.feedback-attach-x {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 0.9rem; line-height: 1; cursor: pointer;
}

/* 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; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* "Help shape GotIt" prompt on the share page */
.share-feedback {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 16px 18px;
  background: var(--coral-soft);
  border: 1px solid var(--coral);
  border-radius: var(--radius);
}
.share-feedback-emoji { font-size: 1.6rem; flex: none; }
.share-feedback-body { flex: 1; }
.share-feedback-title { font-weight: 700; }
.share-feedback-text { color: var(--ink-muted); font-size: 0.88rem; margin-top: 2px; line-height: 1.45; }
.share-feedback .btn { flex: none; }
@media (max-width: 520px) {
  .share-feedback { flex-direction: column; text-align: center; }
}

/* Compact "Add" dropdown (file / photo / video) */
.add-menu { position: relative; display: inline-block; }
.add-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.add-menu-item {
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.add-menu-item:hover { background: var(--bg-tint); }
/* While a dropdown (Add / Colour) is open, let it escape the card. The section
   is overflow:hidden for its corners AND the tools live inside .acc-body-inner
   which is overflow:hidden for the accordion animation — lift both. */
.guide-section.add-open { overflow: visible; position: relative; z-index: 5; }
.guide-section.add-open .acc-body-inner { overflow: visible; }

/* Colour picker (per-block accent) */
.color-menu-btn { display: inline-flex; align-items: center; gap: 0; }
.color-dot {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 0 0 1px var(--line);
  vertical-align: middle;
}
.color-dot--none { background: var(--white); }
.color-menu-list {
  flex-direction: row;
  flex-wrap: wrap;
  width: 180px;
  gap: 8px;
  padding: 12px;
}
.swatch {
  width: 26px; height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.12s var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.swatch-default { background: var(--white); position: relative; overflow: hidden; }
.swatch-default::after {
  content: "";
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 2px; margin-left: -1px;
  background: #d64545;
  transform: rotate(45deg);
}

/* Per-step media preview (photo / video) in the question flow */
.q-media { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.q-media-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.q-media-item img { display: block; width: 96px; height: 96px; object-fit: cover; }
.q-media-vid {
  display: flex;
  align-items: center;
  padding: 0 30px 0 12px;
  height: 44px;
  font-weight: 600;
  font-size: 0.9rem;
}
.q-media-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.6);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.q-media-vid .q-media-x { background: var(--ink-muted); }

/* Add-a-video modal: upload control */
.video-upload-hint { margin: 8px 0 4px; color: var(--ink-muted); font-size: 0.82rem; line-height: 1.45; }
.video-progress { margin: 12px 0 4px; }
.video-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.video-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: 999px;
  transition: width 0.2s var(--ease);
}
.video-progress-label { margin: 8px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.video-or {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.video-or::before, .video-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Add-a-video modal instructions */
.video-help { margin: 0 0 16px; padding-left: 18px; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.55; }
.video-help li { margin-bottom: 8px; }
.video-help strong { color: var(--ink); }
.feedback-card .q-input { width: 100%; }
.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%; }

/* Start chooser — paste existing notes vs start from scratch */
.start-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.start-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.start-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: var(--shadow);
}
.start-card:focus-visible { outline: 3px solid var(--coral-soft); }
.start-card.active {
  border-color: var(--coral);
  box-shadow: var(--shadow);
  background: var(--bg-tint);
}
.start-emoji { font-size: 2.2rem; line-height: 1; }
.start-name { font-weight: 700; font-size: 1.12rem; }
.start-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }

/* Paste panel revealed under the chooser */
.paste-panel {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: stepIn 0.3s var(--ease);
}
.paste-help { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.55; margin-bottom: 14px; }
.paste-text { width: 100%; min-height: 150px; margin-bottom: 12px; }
.paste-panel .import-file-row { margin-bottom: 8px; }
.paste-photo-hint { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.45; margin: 0 0 12px; }

/* Chosen import attachments (photos / files) */
.paste-attach { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.paste-attach:empty { margin: 0; }
.paste-attach-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.paste-attach-item img { display: block; width: 64px; height: 64px; object-fit: cover; }
.paste-attach-doc {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 30px 0 12px;
  max-width: 220px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.paste-attach-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paste-attach-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.6);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.paste-attach-doc .paste-attach-x { top: 50%; transform: translateY(-50%); background: var(--ink-muted); }

@media (max-width: 560px) {
  .start-grid { grid-template-columns: 1fr; }
}

/* Stats page */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 14px;
  text-align: center;
}
.stat-emoji { font-size: 1.6rem; }
.stat-num { font-size: 2rem; font-weight: 800; margin-top: 4px; }
.stat-label { color: var(--ink-muted); font-size: 0.82rem; margin-top: 2px; }
.stat-h2 { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 2px; border-bottom: 1px solid var(--line); gap: 12px;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list li span { color: var(--ink-muted); font-size: 0.9rem; white-space: nowrap; }
.stat-empty { color: var(--ink-muted); }
.stat-foot { color: var(--ink-muted); font-size: 0.8rem; margin-top: 22px; }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* Custom link name (builder) */
.slug-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  background: var(--white);
}
.slug-label { font-weight: 600; display: block; margin-bottom: 8px; }
.slug-optional { color: var(--ink-muted); font-weight: 400; font-size: 0.85rem; }
.slug-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.slug-input-wrap:focus-within { border-color: var(--coral); }
.slug-prefix { padding-left: 12px; color: var(--ink-muted); font-size: 0.92rem; white-space: nowrap; }
.slug-input-wrap .q-input {
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  padding-left: 2px;
  min-width: 0;
}
.slug-hint { color: var(--ink-muted); font-size: 0.82rem; margin-top: 10px; line-height: 1.5; }
.slug-row.locked .slug-input-wrap { opacity: 0.65; }

/* 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; }
}

/* ============================================================
   My Guides dashboard (dashboard.html) + Google sign-in button
   ============================================================ */
.dash-main { padding: 48px 0 96px; min-height: 60vh; }

.dash-loading { text-align: center; color: var(--ink-muted); padding: 80px 0; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 16px;
  border: 3px solid var(--line); border-top-color: var(--coral);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sign-in invite */
.dash-signin { max-width: 460px; margin: 40px auto; text-align: center; }
.dash-emoji { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.dash-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.dash-lead { color: var(--ink-soft); line-height: 1.55; margin: 0 0 24px; }
.dash-signin-actions { display: flex; justify-content: center; }
.dash-signin-note { margin-top: 16px; color: var(--coral-dark); font-size: 0.92rem; }
.dash-back { display: inline-block; margin-top: 22px; color: var(--ink-muted); font-weight: 600; font-size: 0.92rem; }
.dash-back:hover { color: var(--coral); }

.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 0.98rem;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 13px 22px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-google:hover:not(:disabled) { border-color: var(--ink-muted); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-google:disabled { opacity: 0.6; cursor: default; }
.g-ico { width: 18px; height: 18px; flex: none; }

/* Guides grid */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head .dash-title { margin-bottom: 4px; }
.dash-head .dash-lead { margin: 0; }

.dash-empty {
  text-align: center; color: var(--ink-soft); max-width: 440px; margin: 40px auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; box-shadow: var(--shadow-sm);
}
.dash-empty p { line-height: 1.55; margin: 8px 0 20px; }

.dash-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.dash-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 16px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-card-main { display: block; }
.dash-card-emoji { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.dash-card-title {
  font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.35;
  overflow-wrap: anywhere; margin-bottom: 16px;
}
.dash-card-actions { display: flex; gap: 8px; }
.dash-card-actions .btn { flex: 1; text-align: center; }
.dash-card-remove {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--ink-muted); font-size: 1.2rem; line-height: 1;
  cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.dash-card-remove:hover { background: #FBE3E4; color: #C0392B; }
.dash-card-remove:disabled { opacity: 0.4; cursor: default; }

/* "Save to my guides" on the share screen */
.save-dash { margin: 18px 0 4px; }
.save-dash #myGuidesLink { margin-left: 8px; }

@media (max-width: 600px) {
  .dash-main { padding: 32px 0 72px; }
  .dash-head { flex-direction: column; align-items: stretch; }
  .dash-grid { grid-template-columns: 1fr; }
}
