/* ============================================================
   BabyAwaits — design system
   Warm, editorial, mobile-first. No frameworks, no build step.
   ============================================================ */

:root {
  --bg: #FBF8F3;
  --bg-soft: #F4EEE5;
  --card: #FFFFFF;
  --ink: #2B2823;
  --ink-soft: #55504A;
  --muted: #8A837A;
  --line: #E9E2D8;
  --sage: #47685B;
  --sage-deep: #33503F;
  --sage-soft: #E5EEE9;
  --terra: #C4715A;
  --terra-deep: #A85943;
  --terra-soft: #F8E9E3;
  --gold: #E0B457;
  --gold-soft: #F9F0DC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 40, 35, 0.07);
  --shadow-lift: 0 18px 44px rgba(43, 40, 35, 0.12);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.28rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .dot { color: var(--terra); }

.site-nav {
  display: flex; gap: 4px; margin-left: auto;
  align-items: center; flex-wrap: wrap; justify-content: flex-end;
}
.site-nav a {
  padding: 7px 13px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sage-soft); color: var(--sage-deep); }

/* hamburger menu (wagecrunch pattern, babyawaits palette) */

.hamburger-btn {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px; min-width: 42px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 0; z-index: 60;
  transition: all 0.2s ease; -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:hover { background: var(--sage-soft); }
.hamburger-line {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center;
}
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(43, 40, 35, 0.45); z-index: 45;
}
.mobile-overlay.visible { display: block; animation: menuFadeIn 0.2s ease; }
body.menu-open { overflow: hidden; }
@keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; flex-shrink: 0; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    margin-left: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 48px rgba(43, 40, 35, 0.22);
    padding: 12px 16px; gap: 4px;
    animation: menuSlideIn 0.25s ease both;
    overflow-y: visible;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 14px; font-size: 1rem; border-radius: 10px;
    white-space: normal;
  }
  .site-nav a[aria-current="page"] { background: var(--sage-soft); }
}

/* contact form — single-column stacked fields, wagecrunch rhythm */

.form-field { margin-bottom: 18px; }
.form-field .field-label { margin-bottom: 6px; }

textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  min-height: 150px; resize: vertical;
}
textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(71, 104, 91, 0.15);
}
.cf-turnstile { margin: 14px 0 4px; min-height: 65px; }
.form-status { margin-top: 12px; font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--sage-deep); }
.form-status.err { color: #b00020; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr !important; }
}

.week-pill {
  display: none; align-items: center; gap: 8px;
  background: var(--terra-soft); color: var(--terra-deep);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.week-pill.on { display: inline-flex; }
@media (max-width: 920px) { .week-pill.on { display: none; } .week-pill-mobile.on { display: inline-flex; } }
.week-pill-mobile {
  display: none; width: fit-content; margin: 12px auto 0;
  background: var(--terra-soft); color: var(--terra-deep);
  border-radius: 999px; padding: 6px 14px; font-size: 0.86rem;
  font-weight: 600; text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(600px 420px at 8% -10%, rgba(71, 104, 91, 0.14), transparent 65%),
    radial-gradient(560px 400px at 95% 0%, rgba(196, 113, 90, 0.16), transparent 60%),
    radial-gradient(420px 300px at 50% 120%, rgba(224, 180, 87, 0.12), transparent 65%);
}
.hero .kicker {
  display: inline-block; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage);
}
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Cards & grids ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 26px 24px;
}

.section { padding: clamp(40px, 6vw, 70px) 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.tool-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.tool-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: #DCD2C3; color: var(--ink);
}
.tool-card .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 6px;
}
.tool-card .icon.sage { background: var(--sage-soft); }
.tool-card .icon.terra { background: var(--terra-soft); }
.tool-card .icon.gold { background: var(--gold-soft); }
.tool-card h3 { margin: 0; font-size: 1.14rem; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.tool-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.92rem; color: var(--sage-deep); }

/* ---------- Forms ---------- */

label.field-label {
  display: block; font-weight: 600; font-size: 0.88rem;
  color: var(--ink-soft); margin: 0 0 6px;
}
.hint { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }

input[type="date"], input[type="number"], input[type="text"],
input[type="email"], input[type="tel"], input[type="url"], input[type="search"], select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
}
input:focus, select:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(71, 104, 91, 0.15);
}

.form-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: var(--sage); }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-deep); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Results & stats ---------- */

.result-panel {
  display: none; margin-top: 22px;
  background: var(--sage-soft); border: 1px solid #CFE0D6;
  border-radius: var(--radius); padding: 26px;
}
.result-panel.on { display: block; }
.result-panel .big-date {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600; color: var(--sage-deep); margin: 4px 0 6px;
}
.result-panel .sub { color: var(--ink-soft); }

.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.stat .num { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.stat .lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.progress-wrap { background: #fff; border: 1px solid var(--line); border-radius: 999px; height: 14px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--sage), #6E937F); border-radius: 999px; transition: width 0.4s ease; }

/* ---------- Countdown ---------- */

.countdown-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown-strip .cd {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; text-align: center; min-width: 84px;
}
.countdown-strip .cd b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--sage-deep); }
.countdown-strip .cd span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Weeks ---------- */

.trimester-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 34px 0 16px; font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 600;
}
.trimester-label .bar { width: 34px; height: 4px; border-radius: 2px; }
.trimester-label.t1 .bar { background: var(--sage); }
.trimester-label.t2 .bar { background: var(--gold); }
.trimester-label.t3 .bar { background: var(--terra); }

.week-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.week-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.week-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.week-card .wk { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.week-card .fruit { font-family: var(--font-head); font-size: 1.02rem; margin-top: 2px; }
.week-card.current {
  border: 2px solid var(--terra); background: var(--terra-soft);
}
.week-card.current .wk { color: var(--terra-deep); }

/* week article */

.article { max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-block; border-radius: 999px; padding: 5px 13px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 14px;
}
.badge.t1 { background: var(--sage-soft); color: var(--sage-deep); }
.badge.t2 { background: var(--gold-soft); color: #8A6A1F; }
.badge.t3 { background: var(--terra-soft); color: var(--terra-deep); }

.size-callout {
  display: flex; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 26px 0;
  box-shadow: var(--shadow);
}
.size-callout .emoji { font-size: 52px; line-height: 1; }
.size-callout .sz { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.size-callout .measure { color: var(--ink-soft); font-size: 0.95rem; }

.week-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 40px;
}
.week-nav a {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.week-nav a:hover { border-color: var(--sage); }
.week-nav .dir { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.list-soft { list-style: none; padding: 0; margin: 0 0 1.4em; }
.list-soft li {
  position: relative; padding: 7px 0 7px 30px;
  border-bottom: 1px dashed var(--line);
}
.list-soft li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); opacity: 0.8;
}
h3 .sec-icon { margin-right: 8px; }

/* ---------- FAQ ---------- */

details.faq {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 2px 20px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none;
  position: relative; padding-right: 34px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.3rem; color: var(--sage);
  font-weight: 500;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 0 16px; color: var(--ink-soft); }

/* ---------- Timer ---------- */

.timer-big {
  width: 100%; max-width: 420px; margin: 10px auto 18px; aspect-ratio: 1;
  border-radius: 50%; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 600; color: #fff; background: var(--sage);
  box-shadow: var(--shadow-lift); transition: background 0.2s ease, transform 0.1s ease;
}
.timer-big:hover { background: var(--sage-deep); }
.timer-big.running { background: var(--terra); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 113, 90, 0.45); }
  70% { box-shadow: 0 0 0 26px rgba(196, 113, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 113, 90, 0); }
}
.timer-readout { text-align: center; margin-bottom: 22px; }
.timer-readout .t { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-readout .s { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.log-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.log-table th {
  text-align: left; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); padding: 10px 12px;
  border-bottom: 2px solid var(--line);
}
.log-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Notices ---------- */

.note {
  border-left: 4px solid var(--gold); background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; font-size: 0.92rem; color: var(--ink-soft);
  margin: 22px 0;
}
.note.safety { border-left-color: var(--terra); background: var(--terra-soft); }

/* ---------- Ads ---------- */

.ad-slot { margin: 30px auto; text-align: center; min-height: 0; }
.ad-slot .ph {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.8rem; padding: 26px 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px; background: #26231F; color: #CFC8BD;
  padding: 48px 0 36px; font-size: 0.93rem;
}
.site-footer a { color: #EDE7DC; }
.footer-grid {
  display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #3B372F;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: #98917F; font-size: 0.85rem;
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.breadcrumb { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  color: var(--ink-soft);
}
.tab-btn.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

@media (max-width: 640px) {
  .size-callout { flex-direction: column; text-align: center; }
  .week-nav { flex-direction: column; }
  .card { padding: 20px 18px; }
}
