/* Fer — fer.care. Same palette and type as the app: buttercream paper, cocoa text,
   clay actions, olive details, and one fixed vocabulary for cycle meaning. */
:root {
  --cream: #fff4e0;
  --surface: #fffbf0;
  --sunken: #f5ebd6;
  --ink: #402b24;
  --muted: #785c4a;
  --border: #dbc4a3;
  --hero: #8f402e;
  --forest: #59613b;
  --apricot: #fac48f;
  --honey: #fadea3;
  --period: #bf4d40;
  --fertile: #db8c21;
  --lower: #6b8754;
  --intimacy: #cc5473;
  --shadow: rgba(64, 43, 36, 0.08);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1c1410;
    --surface: #2e231c;
    --sunken: #3d3026;
    --ink: #fcecd4;
    --muted: #c9ad94;
    --border: #54402f;
    --hero: #e08a6f;
    --forest: #c4cc91;
    --apricot: #633d26;
    --honey: #574226;
    --period: #f2857a;
    --fertile: #fab854;
    --lower: #a8c485;
    --intimacy: #fa94ad;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--apricot) 60%, transparent), transparent 55%);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px var(--shadow); }
.lang { font-size: 0.95rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--forest); }

/* Hero */
.hero { display: grid; gap: 28px; align-items: center; padding: 24px 0 56px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 40px; } }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; background: var(--hero); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--hero) 30%, transparent); }
.badge small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.78rem; }
.ghost { padding: 14px 18px; border-radius: 16px; font-weight: 600; text-decoration: none; color: var(--forest); background: color-mix(in srgb, var(--forest) 12%, transparent); }
.hero-art { position: relative; justify-self: center; width: min(360px, 80vw); }
.hero-art .glow { position: absolute; inset: 6% 0 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--honey) 90%, transparent), transparent 70%); }
.hero-art img { position: relative; }
.bubble { position: absolute; top: 2%; left: -6%; max-width: 15em; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-family: var(--serif); font-size: 0.95rem; box-shadow: 0 6px 16px var(--shadow); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; list-style: none; padding: 0; }
.trust li::before { content: "✓ "; color: var(--lower); font-weight: 700; }

/* Screens */
.screens { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; flex: 0 0 min(250px, 70vw); scroll-snap-align: center; }
.screens img { border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 14px 34px var(--shadow); background: var(--surface); }
.screens figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); text-align: center; }
@media (min-width: 1100px) { .screens { justify-content: center; overflow: visible; } }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 24px; padding: 24px; box-shadow: 0 6px 18px var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 700; margin-bottom: 14px; color: #fff; background: var(--dot, var(--forest)); }
.step p, .feature p { color: var(--muted); margin-top: 8px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; background: var(--c); }

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.feature img { width: 88px; }

.honest { border-left: 4px solid var(--fertile); }
.honest h3 { margin-bottom: 6px; }
.honest p { color: var(--muted); }

/* Prose pages */
.prose { max-width: 42em; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose .updated { color: var(--muted); margin-bottom: 28px; }

/* Footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 95%; }
  @keyframes breathe { 50% { transform: scale(1.012, 0.994); } }
}

/* Meaning colors as classes (the CSP allows no inline styles). */
.step.forest { --dot: var(--forest); }
.step.period { --dot: var(--period); }
.step.fertile { --dot: var(--fertile); }
.legend .period { --c: var(--period); }
.legend .fertile { --c: var(--fertile); }
.legend .lower { --c: var(--lower); }
.legend .unknown { --c: var(--border); }
.center { text-align: center; }
.center img { margin: 40px auto 0; }

/* Who Fer is for */
.audiences { display: grid; gap: 16px; }
@media (min-width: 760px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audience .glyph { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1.3rem; margin-bottom: 14px; background: color-mix(in srgb, var(--honey) 70%, transparent); color: var(--hero); }
.audience p { color: var(--muted); margin-top: 8px; }
