/* ====================================================
   Public Pages — Design Tokens
   ==================================================== */
:root {
  --pub-bg:           #fdfaf6;
  --pub-bg-surface:   #f4ede3;
  --pub-text:         #1c1208;
  --pub-text-2:       #2e2010;
  --pub-text-med:     #5a4535;
  --pub-text-body:    #7d6b59;
  --pub-text-muted:   #9e8c7a;
  --pub-text-dim:     #b8a898;
  --pub-text-faint:   #c8b8a8;
  --pub-border-lt:    #e8e0d8;
  --pub-border:       #ddd5c8;
  --pub-accent:       #f97316;
  --pub-accent-h:     #ea6a00;
}

/* ====================================================
   Nav
   ==================================================== */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(253,250,246,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.pub-nav-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-nav-logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.pub-nav-logo-icon {
  width: 32px; height: 32px; background: var(--pub-accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.pub-nav-logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--pub-text);
}
.pub-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.pub-nav-signin {
  font-size: 0.875rem; color: var(--pub-text-med);
  text-decoration: none; padding: 0.5rem 1rem; transition: color 0.2s;
}
.pub-nav-signin:hover { color: var(--pub-text); }
.pub-nav-cta {
  font-size: 0.875rem; font-weight: 600;
  background: var(--pub-accent); color: white;
  text-decoration: none; padding: 0.5rem 1.1rem;
  border-radius: 0.6rem; transition: background 0.2s;
}
.pub-nav-cta:hover { background: var(--pub-accent-h); }

/* ====================================================
   Footer
   ==================================================== */
.pub-footer {
  border-top: 1px solid var(--pub-border-lt);
  padding: 2.5rem 0; background: var(--pub-bg);
}
.pub-footer-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.pub-footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.pub-footer-brand-icon {
  width: 24px; height: 24px; background: var(--pub-accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.pub-footer-brand-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; color: var(--pub-text-muted); font-size: 0.95rem;
}
.pub-footer-copy { font-size: 0.75rem; color: var(--pub-text-faint); }
.pub-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.pub-footer-link {
  font-size: 0.8rem; color: var(--pub-text-dim);
  text-decoration: none; transition: color 0.2s;
}
.pub-footer-link:hover { color: var(--pub-text-body); }

/* ====================================================
   Shared layout helpers
   ==================================================== */
.pub-page { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--pub-bg); color: var(--pub-text); overflow-x: hidden; }
.pub-container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.pub-section { padding: 6rem 0; }
.pub-section--surface { background: var(--pub-bg-surface); }
.pub-section--stats {
  border-top: 1px solid var(--pub-border-lt);
  border-bottom: 1px solid var(--pub-border-lt);
  padding: 3rem 0; background: var(--pub-bg-surface);
}
.pub-section-head { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem; }
.pub-eyebrow {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--pub-accent);
}
.pub-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800; color: var(--pub-text);
  margin-top: 0.875rem; line-height: 1.15; letter-spacing: -0.02em;
}
.pub-section-intro { color: var(--pub-text-muted); margin-top: 1rem; line-height: 1.7; }

/* ====================================================
   Hero
   ==================================================== */
.pub-hero { position: relative; padding: 9rem 0 6rem; }
.pub-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.pub-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(249,115,22,0.3); background: rgba(249,115,22,0.07);
  border-radius: 9999px; padding: 0.25rem 0.875rem; margin-bottom: 1.5rem;
}
.pub-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--pub-accent);
  display: inline-block; animation: lp-pulse-glow 2s ease-in-out infinite;
}
.pub-badge-text { font-size: 0.75rem; font-weight: 600; color: #c45c0a; letter-spacing: 0.025em; }
.pub-hero-h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
  letter-spacing: -0.02em; color: var(--pub-text);
}
.pub-hero-body {
  font-size: 1.1rem; color: var(--pub-text-body);
  line-height: 1.75; margin-bottom: 2rem; max-width: 30rem;
}
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2rem; }
.pub-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pub-accent); color: white;
  font-weight: 700; font-size: 1rem;
  padding: 0.875rem 1.75rem; border-radius: 0.75rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(249,115,22,0.25);
}
.pub-btn-primary:hover {
  background: var(--pub-accent-h);
  box-shadow: 0 8px 32px rgba(249,115,22,0.38);
}
.pub-btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--pub-text-med); font-weight: 600; font-size: 1rem;
  padding: 0.875rem 1.5rem; border-radius: 0.75rem;
  border: 1px solid var(--pub-border); text-decoration: none; transition: all 0.2s;
}
.pub-btn-secondary:hover { border-color: var(--pub-text-dim); color: var(--pub-text); }
.pub-hero-proof { display: flex; align-items: center; gap: 0.875rem; }
.pub-hero-avatars { display: flex; }
.pub-hero-stars { color: #f59e0b; font-size: 0.8rem; letter-spacing: 0.1em; }
.pub-hero-proof-label { font-size: 0.75rem; color: var(--pub-text-dim); margin-top: 1px; }

/* Floating badges on mockup */
.pub-float-badge {
  position: absolute; background: white; border: 1px solid var(--pub-border-lt);
  border-radius: 12px; padding: 0.5rem 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(100,60,20,0.12);
}
.pub-float-badge-title { font-size: 0.7rem; font-weight: 600; color: var(--pub-text-2); }
.pub-float-badge-sub   { font-size: 0.625rem; color: var(--pub-text-muted); }
.pub-float-badge-dot   { width: 7px; height: 7px; border-radius: 50%; background: var(--pub-accent); margin-left: 2px; animation: lp-pulse-glow 2s ease-in-out infinite; }

/* ====================================================
   Stats
   ==================================================== */
.pub-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.pub-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin-bottom: 0.375rem; letter-spacing: -0.02em; color: var(--pub-text);
}
.pub-stat-value--accent { color: var(--pub-accent); }
.pub-stat-label { font-size: 0.8rem; color: var(--pub-text-muted); line-height: 1.5; max-width: 200px; margin: 0 auto; }

/* ====================================================
   Cards (problem, features, how-it-works)
   ==================================================== */
.pub-card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.pub-card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; position: relative; }
.pub-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.pub-card-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--pub-border); background: var(--pub-bg);
  display: flex; align-items: center; justify-content: center;
}
.pub-card-tag {
  font-size: 0.65rem; font-weight: 600; color: var(--pub-text-dim);
  border: 1px solid var(--pub-border); border-radius: 9999px; padding: 2px 8px;
}
.pub-card-emoji { font-size: 2rem; margin-bottom: 1rem; }
.pub-card-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--pub-text); margin-bottom: 0.5rem; }
.pub-card-subtitle { font-weight: 700; color: var(--pub-text-2); font-size: 1.05rem; margin-bottom: 0.625rem; }
.pub-card-body { font-size: 0.875rem; color: var(--pub-text-muted); line-height: 1.7; }
.pub-card-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 3.5rem; font-weight: 900; color: rgba(0,0,0,0.05); margin-bottom: 1.25rem; line-height: 1; letter-spacing: -0.03em; }
.pub-card-accent-bar { height: 3px; border-radius: 2px; margin-bottom: 1rem; width: 36px; }

/* ====================================================
   CTA section
   ==================================================== */
.pub-cta-section { padding: 6rem 0; position: relative; overflow: hidden; background: var(--pub-bg-surface); }
.pub-cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(249,115,22,0.06) 0%, transparent 65%); pointer-events: none; }
.pub-cta-wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.pub-cta-card {
  background: var(--pub-bg); border: 1px solid var(--pub-border);
  border-radius: 1.5rem; padding: 4rem; text-align: center;
  box-shadow: 0 0 80px rgba(249,115,22,0.05), 0 20px 60px rgba(100,60,20,0.08);
}
.pub-cta-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
}
.pub-cta-h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; color: var(--pub-text);
  margin-bottom: 1rem; line-height: 1.15; letter-spacing: -0.02em;
}
.pub-cta-body { color: var(--pub-text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.65; }
.pub-cta-actions { display: flex; flex-direction: column; gap: 0.875rem; align-items: center; }
.pub-cta-btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  background: var(--pub-accent); color: white; font-weight: 700; font-size: 1.05rem;
  padding: 1rem 2.25rem; border-radius: 0.875rem; text-decoration: none; transition: all 0.2s;
  box-shadow: 0 6px 28px rgba(249,115,22,0.3); width: 100%; max-width: 320px; justify-content: center;
}
.pub-cta-btn:hover { background: var(--pub-accent-h); box-shadow: 0 10px 36px rgba(249,115,22,0.42); }
.pub-cta-signin { font-size: 0.85rem; color: var(--pub-text-dim); text-decoration: none; transition: color 0.2s; }
.pub-cta-signin:hover { color: var(--pub-text-body); }

/* ====================================================
   Legal pages
   ==================================================== */
.legal-page { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--pub-bg); color: var(--pub-text); min-height: 100vh; }
.legal-header { border-bottom: 1px solid var(--pub-border-lt); padding: 3.5rem 1.5rem 2.5rem; }
.legal-header-inner { max-width: 48rem; margin: 0 auto; }
.legal-eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pub-accent); margin-bottom: 0.75rem; }
.legal-h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--pub-text); margin: 0; }
.legal-updated { margin-top: 0.875rem; font-size: 0.8rem; color: var(--pub-text-dim); }
.legal-content { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 6rem; }
.legal-lead { font-size: 1rem; color: var(--pub-text-med); border-left: 3px solid var(--pub-accent); padding-left: 1rem; margin-bottom: 2rem; line-height: 1.8; }
.legal-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--pub-text-2); margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
.legal-p { font-size: 0.9375rem; color: var(--pub-text-body); line-height: 1.8; margin-bottom: 1rem; }
.legal-ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.legal-ul li { font-size: 0.9375rem; color: var(--pub-text-body); line-height: 1.8; padding-left: 1.25rem; position: relative; }
.legal-ul li::before { content: "–"; position: absolute; left: 0; color: var(--pub-accent); }
.legal-divider { border: none; border-top: 1px solid var(--pub-border-lt); margin: 2.5rem 0; }
.legal-strong { color: var(--pub-text-2); }
.legal-link { color: var(--pub-accent); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }
.legal-code { background: #f0e8dc; border: 1px solid var(--pub-border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-family: monospace; font-size: 0.85rem; color: var(--pub-text-body); word-break: break-all; }
/* ====================================================
   Auth pages (sign in / sign up / passwords)
   ==================================================== */
.auth-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--pub-bg); color: var(--pub-text);
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem 1rem;
}
.auth-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; margin-bottom: 2rem;
}
.auth-logo-icon {
  width: 36px; height: 36px; background: var(--pub-accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.auth-logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--pub-text);
}
.auth-card {
  background: white; border: 1px solid var(--pub-border);
  border-radius: 1.25rem; padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(100,60,20,0.08);
}
.auth-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.75rem; font-weight: 800; color: var(--pub-text);
  text-align: center; margin: 0 0 0.25rem; letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 0.875rem; color: var(--pub-text-muted);
  text-align: center; margin: 0 0 1.75rem;
}
.auth-field { margin-bottom: 1.25rem; }
.auth-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--pub-text-2); margin-bottom: 0.375rem;
}
.auth-input {
  width: 100%; border: 1.5px solid var(--pub-border); border-radius: 0.625rem;
  padding: 0.625rem 0.875rem; font-size: 0.9375rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--pub-text); background: var(--pub-bg);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: var(--pub-accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.auth-input::placeholder { color: var(--pub-text-dim); }
.auth-hint { font-size: 0.75rem; color: var(--pub-text-muted); margin-top: 0.3rem; }
.auth-check-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-checkbox { width: 16px; height: 16px; accent-color: var(--pub-accent); cursor: pointer; }
.auth-check-label { font-size: 0.85rem; color: var(--pub-text-body); cursor: pointer; }
.auth-submit {
  width: 100%; background: var(--pub-accent); color: white;
  font-weight: 700; font-size: 0.9375rem; padding: 0.75rem;
  border-radius: 0.625rem; border: none; cursor: pointer;
  transition: background 0.2s; font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 0.5rem;
}
.auth-submit:hover { background: var(--pub-accent-h); }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--pub-border-lt);
}
.auth-divider-text { font-size: 0.75rem; color: var(--pub-text-dim); white-space: nowrap; }
.auth-links { text-align: center; font-size: 0.85rem; color: var(--pub-text-muted); }
.auth-links p + p { margin-top: 0.375rem; }
.auth-link { color: var(--pub-accent); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-link--muted { color: var(--pub-text-muted); text-decoration: none; }
.auth-link--muted:hover { color: var(--pub-text-body); }
.auth-alert-error {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 0.625rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
}
.auth-alert-error ul { list-style: disc; padding-left: 1.25rem; font-size: 0.85rem; color: #b91c1c; margin: 0; }
.auth-flash-notice {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 0.625rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.875rem; color: #166534; text-align: center;
}
.auth-flash-alert {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 0.625rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.875rem; color: #b91c1c; text-align: center;
}
.auth-back {
  margin-top: 1.5rem; text-align: center; font-size: 0.8rem;
}
.auth-back a {
  color: var(--pub-text-dim); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.2s;
}
.auth-back a:hover { color: var(--pub-text-body); }

.legal-steps { margin: 1.5rem 0; }
.legal-step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.legal-step-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--pub-accent); margin-top: 0.2rem; }
