/* RubyMom site styles. Hand-rolled, no framework.
   Palette matches the app: cream paper, cocoa ink, terra accent. */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #FDF4E8;
  --card: #FFFFFF;
  --wash: #F8E9D8;
  --ink: #3B2A20;
  --soft: #82695A;
  --terra: #E0764A;
  --terra-deep: #B95C36;
  --line: #EBD9C2;
  --safe: #3E7D4F;
  --heading: "Baloo 2", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

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

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 244, 232, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.site-head .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.brand {
  display: flex; align-items: center;
  text-decoration: none; color: var(--ink);
  font-family: var(--heading); font-weight: 700; font-size: 1.76rem;
}
.brand span { color: var(--terra); }
.brand:hover { color: var(--ink); }
.brand:hover span { color: var(--terra); }

.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.btn-nav {
  background: var(--terra); color: #fff !important;
  font-family: var(--heading); font-weight: 600;
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
}
.btn-nav:hover { background: var(--terra-deep); text-decoration: none; }
.site-nav a {
  color: var(--soft); text-decoration: none; font-size: .98rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--terra-deep); text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding: 30px 0 8px; }
.hero-panel {
  background: var(--wash); border-radius: 26px;
  padding: 48px 28px 48px 52px;
  display: grid; grid-template-columns: 1fr 232px;
  gap: 48px; align-items: center;
}
.hero-copy { padding: 0; }

.hero h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12; margin: 0 0 16px;
}
.hero h1 em { font-style: normal; color: var(--terra); }

.hero .lede { font-size: 1.13rem; color: var(--soft); max-width: 34em; margin: 0 0 26px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block; border-radius: 999px; padding: 13px 26px;
  font-family: var(--heading); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-deep); }

.soon-note { font-size: .92rem; color: var(--soft); margin-top: 12px; }
.soon-note strong { color: var(--ink); font-weight: 600; }

/* hero: the phone floats centered in the panel, presented exactly like
   the stage and evidence phones in their boxes further down */
.hero-art { align-self: center; display: grid; place-items: center; }
.hero-art img {
  width: 100%; display: block;
  filter: drop-shadow(0 14px 26px rgba(59, 42, 32, .15));
}

/* store badges: equal width pills */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.store-badges img { width: 165px; height: auto; }
.store-badges a img { transition: transform .15s ease; }
.store-badges a:hover img { transform: translateY(-2px); }

/* ---------- sections ---------- */

section { padding: 34px 0; }

.kicker {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 600; margin: 0 0 6px;
}

h2 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 10px;
}

.section-intro { color: var(--soft); max-width: 44em; margin: 0 0 26px; }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 20px 18px;
}
.steps .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--wash); color: var(--terra-deep);
  font-family: var(--heading); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-family: var(--heading); font-weight: 600; font-size: 1.12rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--soft); font-size: .98rem; }

/* verdict trio */

.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verdict {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 18px; text-align: center;
}
/* mascot in a ringed circle, the way the app's result screen shows it:
   head near the top, body filling the circle, edges cropping her */
.verdict .ring {
  width: 122px; height: 122px; margin: 0 auto; border-radius: 50%;
  background: var(--paper); border: 2.5px solid #ECA987;
  display: flex; justify-content: center; align-items: flex-start;
  overflow: hidden;
}
.verdict .ring img {
  height: 114px; width: auto; max-width: none;
  margin-top: 10px; flex: none;
}

/* text next to a phone screen */
.split {
  display: grid; grid-template-columns: 1fr 232px;
  gap: 48px; align-items: center;
}
.split.flip { grid-template-columns: 232px 1fr; }

/* larger art variant: steps column and phone finish at the same height */
.split-lg { grid-template-columns: 1fr 300px; align-items: stretch; }
.split-lg .steps { grid-template-columns: 1fr; grid-auto-rows: 1fr; align-self: stretch; }
.split-lg .split-art { align-self: stretch; align-content: center; }
.split-art { display: grid; place-items: center; }
.split-art img {
  width: 100%;
  filter: drop-shadow(0 14px 26px rgba(59, 42, 32, .15));
}

/* vertical stage timeline, mirroring the app's stage picker */
.vtrack { position: relative; display: flex; flex-direction: column; gap: 20px; }
.vtrack::before {
  content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px;
  width: 2px; background: var(--line);
}
.vtrack .stage {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  position: relative;
}
.vtrack .stage .dot {
  width: 20px; height: 20px; margin: 2px 0 0; flex: none; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--terra);
  position: relative; z-index: 1;
}
.vtrack .stage > div { text-align: left; }
.vtrack .stage b { display: block; font-family: var(--heading); font-weight: 600; font-size: 1.05rem; margin-top: 0; }
.vtrack .stage .when {
  font-style: normal; font-family: var(--body); font-weight: 400;
  color: var(--soft); font-size: .88rem; margin-left: 6px;
}
.vtrack .stage .desc { margin: 3px 0 0; color: var(--soft); font-size: .96rem; max-width: 48ch; }
.verdict h3 { font-family: var(--heading); font-weight: 600; font-size: 1.08rem; margin: 10px 0 4px; }
.verdict p { margin: 0; color: var(--soft); font-size: .95rem; }

/* categories */

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px;
}
.cat h3 { font-family: var(--heading); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.cat p { margin: 0; color: var(--soft); font-size: .98rem; }

/* stages: a track, no mascots */

.stages {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px 26px;
}
.track {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; position: relative;
}
.track::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 9px;
  height: 2px; background: var(--line);
}
.stage { text-align: center; position: relative; }
.stage .dot {
  width: 20px; height: 20px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--terra);
  position: relative; z-index: 1;
}
.stage.now .dot { background: var(--terra); box-shadow: 0 0 0 5px rgba(224, 118, 74, .16); }
.stage b { display: block; font-family: var(--heading); font-weight: 600; font-size: 1rem; }
.stage span { display: block; color: var(--soft); font-size: .86rem; margin-top: 2px; }
.stage-note { color: var(--soft); font-size: .95rem; margin: 22px 0 0; text-align: center; }

/* evidence */

.evidence { background: var(--wash); border-radius: 26px; }
.evidence .inner { padding: 34px 30px; }
.evidence ul { margin: 14px 0 0; padding-left: 20px; }
.evidence li { margin-bottom: 8px; }

/* FAQ */

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-family: var(--heading); font-weight: 600;
  font-size: 1.05rem; line-height: 1.35;
  padding: 16px 56px 16px 20px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--wash); color: var(--terra-deep);
  display: grid; place-items: center;
  font-family: var(--body); font-size: 1.15rem; line-height: 1;
  transition: transform .15s ease;
}
.faq summary:hover::after { background: #F3DCC6; }
.faq details[open] summary { padding-bottom: 6px; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 56px 18px 20px; color: var(--soft); }
.faq details p a { color: var(--terra-deep); }

/* blog cards */

.post-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 26px; text-decoration: none; color: var(--ink);
  margin-bottom: 16px;
}
.post-card:hover { border-color: var(--terra); color: var(--ink); }
.post-card .date { color: var(--soft); font-size: .88rem; }
.post-card h3 { font-family: var(--heading); font-weight: 700; font-size: 1.3rem; margin: 4px 0 8px; }
.post-card p { margin: 0; color: var(--soft); }
.post-card .more { color: var(--terra-deep); font-weight: 600; font-size: .95rem; }

/* ---------- article ---------- */

.article-head { padding: 40px 0 6px; }
.article-head h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 6px 0 10px;
  max-width: 21em;
}
.article-head .meta { color: var(--soft); font-size: .95rem; }

.prose {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.78;
  max-width: 42em; padding-bottom: 30px;
}
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: var(--heading); font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .short-answer {
  font-family: var(--body); background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; margin: 0 0 1.4em;
}
.prose .short-answer p { margin: 0 0 8px; font-weight: 600; }
.prose .short-answer ul { margin: 0; }
.prose table {
  font-family: var(--body); border-collapse: collapse; width: 100%;
  font-size: .97rem; margin: 0 0 1.4em;
}
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--card); font-family: var(--heading); font-weight: 600; }
.prose .note {
  font-family: var(--body); font-size: .95rem; color: var(--soft);
  background: var(--wash); border-radius: 14px; padding: 14px 18px; margin: 0 0 1.4em;
}
.prose .sources { font-family: var(--body); font-size: .92rem; color: var(--soft); }
.prose .sources li { margin-bottom: .3em; }

.app-plug {
  font-family: var(--body); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 24px; margin: 2em 0 1em;
  display: flex; gap: 18px; align-items: center;
}
.app-plug img { width: 72px; flex: 0 0 auto; }
.app-plug p { margin: 0; font-size: .98rem; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--wash); border-top: 1px solid var(--line);
  margin-top: 44px; padding: 42px 0 30px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px; padding-bottom: 30px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.foot-brand .brand { font-size: 1.5rem; }
.foot-brand p { color: var(--soft); font-size: .96rem; max-width: 30ch; margin: 10px 0 0; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col b { font-family: var(--heading); font-weight: 600; font-size: 1.02rem; margin-bottom: 3px; }
.foot-col a { color: var(--soft); text-decoration: none; font-size: .95rem; }
.foot-col a:hover { color: var(--terra-deep); text-decoration: underline; }
.disclaimer { color: var(--soft); font-size: .87rem; max-width: 66em; margin: 0 0 8px; }
.copyright { color: var(--soft); font-size: .87rem; margin: 0; }

@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; padding: 30px 26px 32px; gap: 24px; }
  .hero-copy { padding-bottom: 0; }
  /* size every phone shot off the viewport, not its container, so all four match */
  .hero-art img, .split-art img { width: min(49vw, 210px); }
  .steps, .verdicts { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .track { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .track::before { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .split-art { order: 1; }
}
@media (max-width: 640px) {
  .site-head { position: static; padding: 20px 0 12px; }
  .site-head .wrap { justify-content: center; padding: 0 12px; row-gap: 0; }
  /* the wordmark's font box carries deep leading; trim it so the pills sit close */
  .brand { line-height: 1; }
  .site-nav {
    margin-left: 0; width: 100%; justify-content: center;
    gap: 6px; padding-top: 18px;
  }
  /* three equal pills on one row; the store badges in the hero cover "get the app" */
  .site-nav a {
    flex: 1 1 0; text-align: center;
    font-size: .85rem; padding: 6px 4px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--card);
  }
  .site-nav a:hover { text-decoration: none; border-color: var(--terra); }
  .site-nav .btn-nav { display: none; }
  .store-badges { justify-content: center; }
}

@media (max-width: 420px) {
  .track { grid-template-columns: 1fr; }
}
