/* Crack'd Health site. Same system as the app, on a cream page: white
   information bars instead of plates, Inter for UI, a serif for statements,
   one rose accent, no shadows. Light only, by John's word (2026-11-20). */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F4EFE7; --surface: #FFFFFF; --well: #E7E1D7; --divider: #E2DCD2;
  --text: #111111; --muted: #5B6066; --faint: #7A766F; --ink: #111111;
  --accent: #FF7A93; --accent-ink: #C2185B; --blush: #FDE8EE;
  --st-rose: #FF7A93; --st-yellow: #FFD166; --st-blue: #7FD1F0; --st-green: #8EE3A3; --st-violet: #C4A6F2; --st-orange: #FFB38A;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.wide { max-width: 1040px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 15px var(--sans); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .wordmark { width: auto; height: 22px; border-radius: 0; margin-left: 2px; }
.brand span { font: 500 15px var(--sans); color: var(--muted); }
nav a { font: 500 13px var(--sans); color: var(--muted); margin-left: 18px; }

h1 { font: 500 44px/1.05 var(--serif); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font: 500 30px/1.15 var(--serif); margin: 0 0 10px; letter-spacing: -0.005em; }
h3 { font: 600 15px var(--sans); margin: 0 0 4px; }
p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
p.lead { font-size: 18px; }
small, .caption { font-size: 12px; color: var(--muted); }
/* The source line under a claim: the app's SourceNote. */
p.source { font-size: 12px; color: var(--faint); margin: -6px 0 14px; }
.eyebrow { display: block; font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }

.card { background: var(--surface); border-radius: 24px; padding: 20px; margin: 16px 0; }
.card p { margin: 0; }
.card .row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.card .row:first-of-type { padding-top: 0; }
.tile { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--well); display: grid; place-items: center; font-size: 18px; }
.card .row p { font-size: 13px; }

.btn { display: inline-block; background: var(--accent); color: #111; font: 600 17px var(--sans); padding: 15px 22px; border-radius: 26px; }
.btn:hover { text-decoration: none; background: #F0627D; }
.btn.ghost { background: var(--well); color: var(--text); font-size: 15px; padding: 13px 22px; border-radius: 24px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 24px 0 8px; }

.tag { display: inline-block; font: 600 12px var(--sans); color: var(--accent-ink); background: var(--blush); padding: 4px 8px; border-radius: 6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 32px 0; }
footer { color: var(--faint); font-size: 12px; margin-top: 40px; }
footer a { color: var(--faint); margin-right: 14px; }
ul { padding-left: 20px; color: var(--muted); font-size: 16px; }
li { margin: 6px 0; }
.privacy h2 { margin-top: 28px; }

/* ── Landing ──────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding: 16px 0 36px; }
.hero h1 { font-size: 58px; }

.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone { width: 280px; max-width: 100%; aspect-ratio: 660 / 1434; border-radius: 42px; overflow: hidden; border: 5px solid var(--ink); background: var(--ink); }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Information bars: one white strip, cells divided by hairlines. */
.bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 20px; overflow: hidden; }
.bar.three { grid-template-columns: repeat(3, 1fr); }
.bar.four { grid-template-columns: repeat(4, 1fr); }
.cell { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-left: 1px solid var(--divider); }
.cell:first-child { border-left: 0; }
.cell-label { font: 600 12px var(--sans); color: var(--muted); letter-spacing: 0.02em; }
.cell-value { font: 500 34px/1.05 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; }
.cell-value small { font: 500 14px var(--serif); margin-left: 4px; }
.cell-note { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bar-note { font-size: 12px; color: var(--faint); margin: 10px 4px 0; }

.row { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--divider); }
.row.flip { grid-template-columns: 320px 1fr; }
.row.flip .row-text { order: 2; }
.row.flip .phone-fig { order: 1; }
.row p { font-size: 16px; }
.row .phone { width: 260px; }
.facts { padding-left: 18px; margin: 10px 0 0; font-size: 14px; }
.facts li { margin: 6px 0; }
.section { padding: 48px 0 8px; border-top: 1px solid var(--divider); }
.section > h2 { margin-bottom: 20px; }
.bar-note + .row { margin-top: 28px; }

.stickers { display: flex; gap: 12px; margin-top: 18px; }
.sticker { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; border: 3px solid var(--ink); outline: 3px solid var(--bg); box-shadow: 0 0 0 5px var(--ink); margin: 5px; }
.sticker.rose { background: var(--st-rose); } .sticker.green { background: var(--st-green); } .sticker.yellow { background: var(--st-yellow); }
.sticker.blue { background: var(--st-blue); } .sticker.violet { background: var(--st-violet); } .sticker.orange { background: var(--st-orange); }

.watch-shot { width: 208px; border-radius: 48px; border: 5px solid var(--ink); display: block; }

.plus { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 16px; }
.price { background: var(--surface); border-radius: 18px; padding: 16px; border: 1px solid var(--divider); }
.price.featured { border: 2px solid var(--accent); background: var(--blush); }
.price-name { font: 600 14px var(--sans); }
.price-figure { font: 500 28px/1.1 var(--serif); margin: 8px 0 4px; }
.price-figure span { font: 500 13px var(--sans); color: var(--muted); }
.price-note { font-size: 12px; color: var(--muted); }
.plus-facts { margin: 0 0 10px; font-size: 14px; }
.plus-phone .phone { width: 260px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .bar, .bar.three, .bar.four { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(odd) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .row, .row.flip { grid-template-columns: 1fr; padding: 32px 0; }
  .row.flip .row-text { order: 1; } .row.flip .phone-fig { order: 2; }
  .plus { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  h2 { font-size: 24px; }
  .bar, .bar.three, .bar.four { grid-template-columns: 1fr; }
  .cell { border-left: 0; }
  .cell:nth-child(n+2) { border-top: 1px solid var(--divider); }
  .wrap { padding: 16px 16px 48px; }
}

/* ── Search pages (/scheduling-sex, /sex-tracker, /asking-and-saying-no) ─
   One column, a question as the H1, the answer in a white card, one chart
   of horizontal bars, two example screens, sources at the foot. */
.article h1 { font-size: 40px; }
.article h2 { font-size: 26px; margin: 40px 0 10px; }
.article p a, .article li a, .answer a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.dateline { font-size: 12px; color: var(--faint); margin: 0 0 18px; }
.answer { background: var(--surface); border-radius: 20px; padding: 18px 20px; margin: 4px 0 8px; }
.answer p { color: var(--text); font-size: 17px; margin: 0 0 8px; }
.answer p:last-child { margin-bottom: 0; }
.chart { background: var(--surface); border-radius: 20px; padding: 18px 20px; margin: 20px 0; }
.chart h3 { margin-bottom: 2px; }
.chart .chart-sub { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 12px; align-items: center; margin: 12px 0 0; }
.hbar-label { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.35; }
.hbar-track { height: 12px; background: var(--well); border-radius: 6px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.hbar-fill.ref { background: var(--faint); }
.hbar-value { font: 600 15px var(--sans); color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.chart figcaption, .chart .chart-note { font-size: 12px; color: var(--faint); margin: 14px 0 0; line-height: 1.45; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 8px; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shots .phone { width: 240px; }
.shots .phone.crop { aspect-ratio: 660 / 720; }
.shots .phone.crop img { object-position: top; }
.shots figcaption { font-size: 12px; color: var(--muted); text-align: center; max-width: 240px; line-height: 1.45; }
.shots figcaption strong { color: var(--accent-ink); font-weight: 600; }
.sources { font-size: 13px; padding-left: 18px; }
.sources li { margin: 8px 0; font-size: 13px; }
.related { font-size: 14px; }
@media (max-width: 560px) {
  .article h1 { font-size: 34px; }
  .shots { grid-template-columns: 1fr; }
}

/* Landing: one headline, one line, one picture per section. */
.l-hero { text-align: center; padding: 40px 0 8px; }
.l-hero h1 { font: 600 64px/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 auto 16px; max-width: 760px;  text-wrap: balance; }
.l-sub { font-size: 20px; color: var(--muted); margin: 0 auto 26px; max-width: 560px;  text-wrap: balance; }
.l-meta { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.l-phones { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-top: 48px; }
.l-phones .phone { width: 280px; }
.l-phones .side { width: 230px; opacity: 0.95; }
.l-row { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; padding: 72px 0; border-top: 1px solid var(--divider); }
.l-row.flip .l-text { order: 2; }
.l-row h2, .l-center h2 { font: 600 44px/1.05 var(--serif); letter-spacing: -0.015em; margin: 0 0 12px;  text-wrap: balance; }
.l-row p { font-size: 20px; color: var(--muted); margin: 0; }
.l-row .phone { width: 280px; justify-self: center; }
.l-works { text-align: center; padding: 56px 0; border-top: 1px solid var(--divider); }
.l-eyebrow { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; }
.l-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 36px; font: 600 18px var(--sans); color: var(--muted); }
.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0 56px; }
.l-grid > div { background: var(--surface); border-radius: 20px; padding: 22px; }
.l-grid h3 { font: 600 17px var(--sans); margin: 0 0 4px; }
.l-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.l-center { text-align: center; padding: 64px 0; border-top: 1px solid var(--divider); }
.l-center .l-sub { margin-bottom: 0; }
.l-fine { font-size: 12px; color: var(--faint); text-align: center; max-width: 640px; margin: 24px auto 0; }
@media (max-width: 820px) {
  .l-hero h1 { font-size: 42px; }
  .l-sub { font-size: 18px; }
  .l-phones .side { display: none; }
  .l-phones .phone { width: 250px; }
  .l-row { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; text-align: center; }
  .l-row.flip .l-text { order: 0; }
  .l-row h2, .l-center h2 { font-size: 34px; }
  .l-row p { font-size: 18px; }
  .l-grid { grid-template-columns: repeat(2, 1fr); }
}
