/* ========================
   QUOTEFLIP — Landing Page
   Bitter serif + Source Sans 3
   Dark slate / amber / cream
   ======================== */

:root {
  --bg: #0f172a;
  --surface: #1a2744;
  --surface-2: #223050;
  --amber: #f59e0b;
  --amber-dim: #d97706;
  --cream: #fefcf8;
  --cream-muted: #c4c0b8;
  --text: #e8e4dc;
  --text-muted: #8c8a85;
  --border: rgba(255,255,255,0.08);
  --font-serif: 'Bitter', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── NAV ─────────────────────────────────── */
.site-nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: 80px 0 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 520px; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--cream-muted);
  font-weight: 500;
}
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #111827;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 28px;
  background: #111827;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 16px 16px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-avatar {
  width: 32px; height: 32px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}
.phone-name { font-size: 0.8rem; font-weight: 600; color: var(--cream); }
.phone-status { font-size: 0.65rem; color: #22c55e; margin-top: 2px; }

.message-thread { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.5;
  animation: slideIn 0.4s ease both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.customer-msg {
  align-self: flex-end;
  background: rgba(245,158,11,0.15);
  color: var(--cream);
  border-bottom-right-radius: 4px;
  animation-delay: 0.3s;
}
.bot-msg {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border-bottom-left-radius: 4px;
  animation-delay: 0.5s;
}
.bot-quote { animation-delay: 0.8s; }
.quote-card {
  background: var(--surface-2);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 10px;
  margin-top: 4px;
}
.qc-title { font-size: 0.65rem; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.qc-line { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--cream-muted); margin-bottom: 4px; }
.qc-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 0; }
.qc-total { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--cream); font-weight: 600; }
.qc-valid { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; text-align: right; }

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.2);
  color: #22c55e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-ticker {
  margin-top: 64px;
  padding: 20px 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid var(--border);
}
.hero-ticker span { white-space: nowrap; padding: 0 24px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); opacity: 0.4; flex-shrink: 0; }

/* ── PROBLEM ─────────────────────────────────── */
.problem {
  padding: 100px 0;
  background: var(--surface);
}
.problem-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.problem-label, .section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.problem-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.problem-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.problem-col {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
}
.problem-stat {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 10px;
}
.problem-stat-label { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.problem-body { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* ── PROCESS ─────────────────────────────────── */
.process { padding: 100px 0; background: var(--bg); }
.process-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: border-color 0.2s;
}
.process-card:hover { border-color: rgba(245,158,11,0.3); }
.step-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-dim);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  opacity: 0.6;
}
.step-icon {
  width: 44px; height: 44px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 16px;
}
.step-title { font-size: 0.95rem; font-weight: 600; color: var(--cream); margin-bottom: 8px; line-height: 1.35; }
.step-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ── OUTCOMES ─────────────────────────────────── */
.outcomes { padding: 100px 0; background: var(--surface); }
.outcomes-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.outcomes-body { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.outcomes-cta-line {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  font-family: var(--font-serif);
  font-style: italic;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.stat-val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-name { font-size: 0.88rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.stat-note { font-size: 0.75rem; color: var(--text-muted); }

/* ── PHILOSOPHY ─────────────────────────────────── */
.philosophy { padding: 80px 0; background: var(--bg); }
.philosophy-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; }
.big-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  position: relative;
  padding: 0 32px;
}
.big-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -20px;
  font-size: 4rem;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  font-style: normal;
}

/* ── CLOSING ─────────────────────────────────── */
.closing { padding: 100px 0; background: var(--surface); }
.closing-inner { max-width: 700px; margin: 0 auto; padding: 0 32px; text-align: center; }
.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.closing-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 40px; }
.closing-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  text-align: left;
}
.manifesto-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--cream-muted);
  font-weight: 500;
}
.m-check {
  width: 22px; height: 22px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer { padding: 60px 0; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; text-align: center; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }
.footer-links span { display: inline; }
.footer-sep { margin: 0 8px; opacity: 0.4; }
.footer-built { font-size: 0.75rem; color: var(--text-muted); opacity: 0.5; }

/* ── QUOTE PAGE ─────────────────────────────────── */
.quote-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 0 100px;
}
.quote-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}
.quote-header { margin-bottom: 48px; }
.quote-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quote-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.quote-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8a85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--amber);
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.submit-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note svg { vertical-align: middle; margin-right: 4px; }

.quote-success {
  text-align: center;
  padding: 64px 32px;
}
.success-icon {
  width: 72px; height: 72px;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #22c55e;
}
.quote-success h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.quote-success p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ── CONFIRMED PAGE ──────────────────────────────── */
.confirmed-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 0 100px;
}
.confirmed-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.confirmed-icon {
  width: 80px; height: 80px;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #22c55e;
}
.confirmed-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.confirmed-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.confirmed-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}
.confirmed-body strong { color: var(--cream); font-weight: 600; }

.confirmed-timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 380px;
  margin: 0 auto 48px;
  position: relative;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 16px; height: 16px;
  background: var(--surface-2);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  transition: border-color 0.2s;
}
.timeline-dot.active {
  background: rgba(245,158,11,0.12);
  border-color: var(--amber);
}
.timeline-content { text-align: left; }
.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}
.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.timeline-line {
  width: 2px;
  height: 32px;
  background: var(--border);
  margin: 4px 0 4px 7px;
  border-radius: 1px;
}

.confirmed-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}
.confirmed-note svg { flex-shrink: 0; margin-top: 1px; color: var(--amber); }
.confirmed-note a { color: var(--amber); text-decoration: underline; }

.confirmed-back {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.confirmed-back:hover { color: var(--cream); }

.form-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-content { max-width: 100%; }
  .phone-mockup { width: 220px; height: 440px; }
  .problem-columns { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .closing-manifesto { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 0; }
  .hero-headline { font-size: 2rem; }
  .stat-grid { grid-template-columns: 1fr; }
}