/* Sourdoughy — sourdoughy.app
   Warm Hearth brand: cream / ink / crust / wheat / sage.
   Fredoka (display) + Nunito Sans (body). Mobile-first, no JS required. */

:root {
  --cream: #FAF4EA;
  --cream-deep: #F3E9D8;
  --surface: #FFFDF8;
  --ink: #3A2E25;
  --ink-soft: #5E5044;
  --ink-muted: #8A7A6B;
  --accent: #B5673C;
  --accent-deep: #96522E;
  --accent-soft: #F3E0D1;
  --wheat: #C99A5B;
  --wheat-soft: #F5E7CE;
  --sage: #7C8C6B;
  --sage-soft: #E3E8DA;
  --buy: #F5731F;
  --buy-deep: #DD5A10;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 14px 40px rgba(58, 46, 37, 0.12);
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 46, 37, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: #fff; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(100deg, var(--buy), var(--buy-deep));
  color: #fff;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(221, 90, 16, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(221, 90, 16, 0.42); }
.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid rgba(58, 46, 37, 0.15);
  box-shadow: none;
}
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges img { height: 52px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 30px; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -120px; background: rgba(201, 154, 91, 0.18); }
.hero::after { width: 360px; height: 360px; bottom: -180px; left: -140px; background: rgba(124, 140, 107, 0.14); }
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); margin: 18px 0 26px; max-width: 34rem; }
@media (max-width: 820px) { .hero p.lead { margin-inline: auto; } .hero .store-badges { justify-content: center; } }
.hero .accent { color: var(--accent); }
.hero-phone { justify-self: center; position: relative; }
.hero-phone .device { width: min(300px, 74vw); }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-muted); font-size: 0.92rem; font-weight: 700; }
@media (max-width: 820px) { .hero-trust { justify-content: center; } }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid rgba(58, 46, 37, 0.09);
  border-radius: var(--radius-lg);
  padding: 26px;
}
section.alt .card { background: var(--cream); }
.card .emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--wheat-soft);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Device frame: a dark bezel around a fixed 9:19.5 screen, object-cover fills
   it so any app capture reads as a real phone (the app-landing standard). */
.device {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  background: #241812;
  border-radius: 42px;
  padding: 9px;
  box-shadow: 0 24px 54px rgba(48, 32, 20, 0.30), 0 4px 12px rgba(48, 32, 20, 0.18);
}
.device-screen {
  position: relative;
  aspect-ratio: 18 / 33;
  border-radius: 34px;
  overflow: hidden;
  background: var(--cream);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Subtle inner edge highlight on the glass */
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; } }
.shot figcaption { text-align: center; margin-top: 16px; font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--cream); border-radius: var(--radius-lg); padding: 26px 26px 26px 26px; border: 1px solid rgba(58, 46, 37, 0.09); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* Guides grid */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-link {
  display: block;
  background: var(--surface);
  border: 1px solid rgba(58, 46, 37, 0.09);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-link h3 { font-size: 1.05rem; margin-bottom: 5px; }
.guide-link p { color: var(--ink-muted); font-size: 0.9rem; }
.guide-link .more { color: var(--accent); font-weight: 800; font-size: 0.88rem; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid rgba(58, 46, 37, 0.09);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--wheat), var(--accent));
  border-radius: var(--radius-lg);
  padding: 52px 34px;
  text-align: center;
  color: #FFF8EF;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #FFF8EF; }
.cta-band p { opacity: 0.95; margin: 12px auto 26px; max-width: 34rem; }
.cta-band .store-badges { justify-content: center; }

/* Footer */
.site-footer { padding: 44px 0 56px; color: var(--ink-muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Guide article pages ---------- */
.article { max-width: 720px; margin-inline: auto; padding: 48px 0 20px; }
.article .crumbs { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 18px; }
.article .crumbs a { text-decoration: none; }
.article h1 { margin-bottom: 14px; }
.article .intro { font-size: 1.12rem; color: var(--ink-soft); }
.article h2 { margin: 40px 0 12px; }
.article h3 { margin: 26px 0 8px; }
.article p { margin: 12px 0; color: var(--ink-soft); }
.article ul, .article ol { margin: 12px 0 12px 24px; color: var(--ink-soft); }
.article li { margin: 6px 0; }
.article strong { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(58, 46, 37, 0.1); }
.article th { font-family: var(--display); font-weight: 600; color: var(--ink); }
.tip {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tip strong { color: var(--ink); }
.app-callout {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(181, 103, 60, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 32px 0;
}
.app-callout img { width: 62px; height: 62px; border-radius: 15px; flex-shrink: 0; }
.app-callout h3 { margin: 0 0 4px; }
.app-callout p { margin: 0 0 10px; font-size: 0.95rem; }
.related { margin: 40px 0 10px; }
.related h2 { font-size: 1.3rem; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin: 8px 0; }
