/* ============================================================
   Watch That Dough — landing page
   Visual language matched to the app (Nunito, blue, navy, rounded).
   ============================================================ */

:root {
  --bg: #f8f9fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --navy: #1e1b4b;
  --draft: #a5b4fc;
  --soft: #f1f5f9;
  --soft-2: #eef2ff;
  --disabled: #e5e7eb;
  --green: #10b981;
  --amber: #f59e0b;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 20px 48px rgba(30, 27, 75, 0.10);
  --maxw: 1080px;
}

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

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

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: 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: 800; font-size: 16px; cursor: pointer;
  border: none; border-radius: var(--radius-lg); padding: 15px 26px;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid #eef0f4; }
.btn-secondary:hover { background: #fbfcfe; }
.btn-ghost { background: var(--soft); color: var(--text); }
.btn-lg { font-size: 17px; padding: 17px 30px; }
.btn[disabled], .btn.is-soon { opacity: 0.55; cursor: default; }
.btn[disabled]:active, .btn.is-soon:active { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 252, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-cta { font-size: 15px; padding: 10px 20px; }

/* ---------- Section basics ---------- */
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--navy); letter-spacing: -0.8px; line-height: 1.12; }
.section-lead { font-size: 18px; color: #4b5563; margin-top: 14px; max-width: 60ch; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; text-align: center; position: relative; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(59,130,246,0.12), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 7vw, 68px); font-weight: 900; color: var(--navy);
  letter-spacing: -1.6px; line-height: 1.04; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--primary); }
.hero-sub { font-size: clamp(17px, 2.3vw, 21px); color: #4b5563; max-width: 40ch; margin: 0 auto 30px; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-trust { font-size: 14px; color: var(--muted); font-weight: 700; }
.hero-trust b { color: #6b7280; }

.hero-demo { margin: 48px auto 0; max-width: 320px; position: relative; }
.hero-demo .phone-shell {
  border-radius: 42px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff; border: 1px solid #eef0f4;
}
.hero-demo img { width: 100%; }
.hero-demo .demo-badge {
  position: absolute; top: 18px; right: -14px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 20px;
  box-shadow: var(--shadow-md); transform: rotate(4deg);
}

/* ---------- Problem ---------- */
.problem { background: #fff; }
.problem-card {
  background: var(--bg); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 52px);
  max-width: 780px; margin: 0 auto; text-align: center;
}
.problem-card p { font-size: clamp(17px, 2.2vw, 20px); color: #374151; font-weight: 600; }
.problem-card p + p { margin-top: 18px; }
.problem-card .reframe {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; color: var(--navy);
  letter-spacing: -0.5px; margin-top: 24px;
}
.problem-card .reframe .hl { color: var(--primary); }

/* ---------- Solution / 3-step ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step { text-align: center; }
.step .phone {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid #eef0f4; background: #fff; margin-bottom: 18px;
}
.step .phone img { width: 100%; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 900; font-size: 15px; margin-bottom: 8px;
}
.step h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.step p { font-size: 15px; color: #6b7280; font-weight: 600; margin-top: 4px; }

/* ---------- Pillars ---------- */
.pillars { background: #fff; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.pillar {
  background: var(--bg); border-radius: var(--radius-lg); padding: 30px;
  border: 1px solid #eef0f4;
}
.pillar .ico {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 16px; background: var(--soft-2);
}
.pillar h3 { font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.3px; }
.pillar p { font-size: 15.5px; color: #4b5563; font-weight: 600; }

/* ---------- Payoff ---------- */
.payoff { text-align: center; }
.payoff-inner {
  background: linear-gradient(160deg, var(--navy), #312e81);
  border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  color: #fff; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.payoff-inner .eyebrow { color: #a5b4fc; }
.payoff-inner h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: -0.6px; line-height: 1.15; }
.payoff-inner p { font-size: clamp(17px, 2.2vw, 20px); color: #c7d2fe; font-weight: 600; margin-top: 20px; max-width: 54ch; margin-left: auto; margin-right: auto; }

/* ---------- Email / Substack ---------- */
.signup { background: #fff; }
.signup-card {
  background: var(--bg); border-radius: var(--radius-xl); padding: clamp(30px, 5vw, 56px);
  max-width: 720px; margin: 0 auto; text-align: center; border: 1px solid #eef0f4;
}
.substack-embed { margin: 28px auto 12px; max-width: 480px; }
.substack-embed iframe { width: 100% !important; border-radius: var(--radius-md); border: 1px solid #eef0f4 !important; background: #fff; }
.signup-fallback { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.signup-fallback a { color: var(--primary); border-bottom: 1px solid #c7dbfd; }

/* ---------- App links ---------- */
.get { text-align: center; }
.store-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.store-btn {
  display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 14px 24px; min-width: 210px; text-align: left;
  box-shadow: var(--shadow-md); transition: transform 0.12s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn.soon { background: #fff; color: var(--text); border: 1px solid #e5e7eb; box-shadow: var(--shadow-sm); }
.store-btn .s-ico { font-size: 26px; line-height: 1; }
.store-btn .s-top { font-size: 12px; font-weight: 700; opacity: 0.8; }
.store-btn .s-main { font-size: 17px; font-weight: 900; line-height: 1.1; }
.store-note { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 20px; }
.store-note b { color: var(--primary); }

/* ---------- Roadmap ---------- */
.roadmap { background: #fff; }
.road-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.road-col { background: var(--bg); border-radius: var(--radius-lg); padding: 26px; border: 1px solid #eef0f4; }
.road-col .tag {
  display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.road-col.now .tag { background: #d1fae5; color: #047857; }
.road-col.next .tag { background: #dbeafe; color: #1d4ed8; }
.road-col.exploring .tag { background: #fef3c7; color: #92400e; }
.road-col ul { list-style: none; }
.road-col li { font-size: 15.5px; font-weight: 700; color: #374151; padding: 9px 0 9px 26px; position: relative; }
.road-col li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.road-col.now li::before { background: var(--green); }
.road-col.exploring li::before { background: var(--amber); }
.road-caption { font-size: 15px; color: var(--muted); font-weight: 700; margin-top: 28px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c7d2fe; padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: #fff; font-size: 18px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-tag { font-size: 14px; color: #a5b4fc; font-weight: 600; margin-top: 10px; max-width: 34ch; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.2s ease; font-weight: 800; font-size: 14px;
}
.socials a:hover { background: rgba(255,255,255,0.16); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; color: #a5b4fc; font-weight: 600;
}
.footer-bottom a { border-bottom: 1px solid transparent; }
.footer-bottom a:hover { border-bottom-color: #a5b4fc; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.legal a.back { font-size: 14px; font-weight: 800; color: var(--primary); }
.legal h1 { font-size: 34px; font-weight: 900; color: var(--navy); letter-spacing: -0.6px; margin: 18px 0 6px; }
.legal .updated { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; font-weight: 900; color: var(--navy); margin: 30px 0 8px; }
.legal p, .legal li { font-size: 16px; color: #374151; font-weight: 500; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 8px 0 12px 22px; }
.legal a:not(.back) { color: var(--primary); border-bottom: 1px solid #c7dbfd; }
.legal .addr { background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius-md); padding: 18px 22px; margin: 6px 0 16px; font-weight: 600; color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; gap: 34px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .road-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .nav-cta { display: none; }
}
