/* Lactico site — same tokens as the app (design/DESIGN.md), so the site and the
   product read as one thing. Single light theme, matching the app. */
:root {
  --primary: #e08552;
  --primary-dark: #c76a3a;
  --primary-soft: #fbede3;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-alt: #f4efe8;
  --text: #2c2620;
  --text-2: #7a726a;
  --text-3: #a89f95;
  --border: #ece5dc;
  --success: #5b9a6f;
  --success-soft: #e6f0e8;
  --danger: #c75450;
  --danger-soft: #f8e5e3;
  --radius: 18px;
  --radius-lg: 24px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
}
h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin-top: 2.4em;
}
h3 {
  font-size: 1.15rem;
  margin-top: 1.8em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- header --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--primary-dark);
}

/* --- hero --- */
.hero {
  padding: 40px 0 8px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.16rem;
  color: var(--text-2);
  max-width: 34em;
}

/* --- steps --- */
.steps {
  display: grid;
  gap: 14px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.step strong {
  display: block;
  margin-bottom: 2px;
}

.step span {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* --- callouts --- */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 30px 0;
  font-size: 0.97rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.safety {
  background: var(--danger-soft);
  border: 1px solid rgba(199, 84, 80, 0.28);
}

.callout.note {
  background: var(--primary-soft);
  border: 1px solid rgba(224, 133, 82, 0.25);
}

.callout.good {
  background: var(--success-soft);
  border: 1px solid rgba(91, 154, 111, 0.28);
}

.callout h3 {
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

/* --- legal docs --- */
.doc {
  padding-bottom: 40px;
}

.doc .updated {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 2.2em;
}

.doc h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.2em;
}

.doc ul {
  padding-left: 1.2em;
  margin: 0 0 1.1em;
}

.doc li {
  margin-bottom: 0.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 0 0 1.4em;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--surface-alt);
}

/* --- footer --- */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 26px 0 50px;
  color: var(--text-3);
  font-size: 0.88rem;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

footer a {
  color: var(--text-2);
  text-decoration: none;
}
footer a:hover {
  color: var(--primary-dark);
}

/* Source citations at the foot of a guide — quieter than body copy, but present,
   because a health article without them is just an opinion. */
.sources {
  margin-top: 2.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* Guide cards on /guides reuse .step, so give them a hover affordance. */
a.step:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* --- store CTA on the home page --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
}

.cta:hover {
  background: var(--primary-dark);
}

.cta-note {
  color: var(--text-3);
  font-size: 0.9rem;
}

/* Markdown articles get their lists from the .doc rules, but a plain <ul> in an
   article body needs the same treatment as the legal docs. */
.doc ol:not(.steps) {
  padding-left: 1.2em;
  margin: 0 0 1.1em;
}

/* Articles share the .doc rules (tables, lists, the citation block) but want the
   editorial serif headings from the home page rather than the flatter sans ones
   the legal pages use. */
.article h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600;
  margin-top: 2.4em;
}

.article h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
}

/* …except inside a callout, where the heading is a label, not a section title. */
.article .callout h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.article li {
  margin-bottom: 0.5em;
}

/* Guide cards are whole-card links; the text inside them shouldn't look like link
   text (the old hand-written pages did this with inline styles). */
a.step {
  text-decoration: none;
  color: inherit;
}

/* --- the app call-to-action block at the foot of a guide --- */
.app-cta {
  margin: 3em 0 0;
  padding: 24px;
  background: var(--primary-soft);
  border: 1px solid rgba(224, 133, 82, 0.25);
  border-radius: var(--radius-lg);
}

.app-cta h3 {
  margin-top: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
}

.app-cta p {
  font-size: 0.97rem;
}

.app-cta .cta-row {
  margin-bottom: 0;
}

.cta-secondary {
  background: var(--text);
}

.cta-secondary:hover {
  background: #000;
}

/* "Get the app" sits in the nav links but should read as the action, not a page. */
.nav-get {
  color: var(--primary-dark) !important;
  font-weight: 600;
}
