/* MamaLoop website — "Lavender & Sage" (content/palettes/b.json). System fonts, no external assets. */
:root {
  color-scheme: light dark;
  --bg: #FCF8F3;
  --card: #FFFFFF;
  --card-2: #F6F0E9;
  --text: #272118;
  --muted: #6B6254;
  --line: #E7E0D7;
  --outline: #A69D91;
  --link: #534177;
  --primary: #6A5698;
  --on-primary: #FFFFFF;
  --primary-c: #E8E2F9;
  --on-primary-c: #534177;
  --sage-c: #DFEADF;
  --on-sage-c: #3A553B;
  --honey-c: #FBEACB;
  --on-honey-c: #7A4F0E;
  --tert-c: #F0DFFB;
  --on-tert-c: #62377A;
  --warn-c: #FEDEDA;
  --on-warn-c: #8E171D;
  --todo: #FFF1A8;
  --on-todo: #4A3A00;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131217;
    --card: #1F1D23;
    --card-2: #1A181E;
    --text: #E9E6ED;
    --muted: #BFBBC8;
    --line: #36343C;
    --outline: #827E8A;
    --link: #C3B4E8;
    --primary: #C3B4E8;
    --on-primary: #322748;
    --primary-c: #392F4E;
    --on-primary-c: #E0DAF3;
    --sage-c: #2B3A2B;
    --on-sage-c: #D6E2D6;
    --honey-c: #3F2F12;
    --on-honey-c: #E9C27F;
    --tert-c: #422A50;
    --on-tert-c: #E8D6F4;
    --warn-c: #5C1D1B;
    --on-warn-c: #FFD2CD;
    --todo: #4A3A00;
    --on-todo: #FFE58A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-top: 0.4em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.3em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1040px; }
main.wrap { padding-bottom: 48px; min-height: 60vh; }

.fixture-banner { background: var(--todo); color: var(--on-todo); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 6px 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; max-width: 1040px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; min-height: 44px; }
.brand img { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav li + li { margin: 0; }
.site-nav a { display: inline-block; padding: 10px 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 10px; }
.site-nav a:hover { background: var(--card-2); }
.site-nav a[aria-current="page"] { color: var(--on-primary-c); background: var(--primary-c); }

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 16px 0 12px; display: flex; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.5em; color: var(--outline); }
.crumbs a { color: var(--muted); }

.lede { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: -0.4em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 650; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--link); border-color: var(--outline); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
.badge.role { background: var(--honey-c); color: var(--on-honey-c); border-color: transparent; }
a.badge:hover { color: var(--text); }

/* home */
.hero { text-align: center; padding: 36px 0 12px; }
.hero-mark img { width: 88px; height: 88px; }
.hero h1 { margin-top: 0.3em; }
.hero .lede { max-width: 34em; margin-left: auto; margin-right: auto; }
.hero .cta-row { justify-content: center; }
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature h3 { margin-top: 0; }
.feature p { margin: 0; color: var(--muted); }
.privacy-band { background: var(--sage-c); color: var(--on-sage-c); border-radius: var(--radius); padding: 20px 20px 6px; margin-top: 32px; }
.privacy-band h2 { margin-top: 0; }
.privacy-band a { color: inherit; font-weight: 650; }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li { position: relative; padding-left: 1.6em; }
ul.ticks li::before { content: "\2713"; position: absolute; left: 0.1em; font-weight: 700; color: currentColor; opacity: 0.8; }

/* categories */
.cat-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-grid li + li { margin: 0; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.cat-tile:hover { border-color: var(--outline); }
.cat-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--honey-c); color: var(--on-honey-c); font-weight: 750; }
.cat-name { font-weight: 650; line-height: 1.3; }
.cat-count { font-size: 0.85rem; color: var(--muted); }

/* pick cards */
.pick-list { display: grid; gap: 12px; margin: 20px 0; }
.pick-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.pick-card .card-title { margin: 0 0 4px; font-size: 1.12rem; }
.pick-card .card-title a { color: var(--text); text-decoration: none; }
.pick-card .card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pick-card:hover { border-color: var(--outline); }
.pick-card .verdict { margin: 0 0 8px; color: var(--muted); }
.pick-card.featured { border: 2px solid var(--on-honey-c); background: linear-gradient(var(--honey-c), var(--card) 70%); padding: 20px; }
.pick-card.featured .card-title { font-size: 1.35rem; }
.pick-card.retired { opacity: 0.8; }
.brand-name { color: var(--muted); font-weight: 600; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 0.88rem; }
.basis-chip { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.basis-chip.used { background: var(--sage-c); color: var(--on-sage-c); }
.basis-chip.researched { background: var(--tert-c); color: var(--on-tert-c); }
.band { font-weight: 750; letter-spacing: 0.06em; color: var(--text); }
.band .dim { color: var(--outline); opacity: 0.6; }
.pick-list.compact .pick-card { padding: 12px 14px; }

details.dont { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; margin: 24px 0; }
details.dont summary { cursor: pointer; padding: 10px 0; list-style-position: outside; }
details.dont summary h2 { display: inline; font-size: 1.08rem; margin: 0; }
details.dont .src { display: block; font-size: 0.85rem; color: var(--muted); }

/* pick detail */
.pick-head h1 { margin-bottom: 0.25em; }
.pick-head .brand-name { display: block; font-size: 0.6em; letter-spacing: 0; }
.basis { font-size: 0.9rem; color: var(--on-sage-c); background: var(--sage-c); padding: 8px 12px; border-radius: 12px; }
.basis .sep { white-space: pre; }
.voice { margin: 24px 0; background: var(--honey-c); color: var(--on-honey-c); border-radius: var(--radius); padding: 18px 20px; }
.voice figcaption { font-weight: 750; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.voice blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid currentColor; color: var(--text); }
.voice blockquote p { margin: 0; }
.voice-label { font-size: 0.85rem; margin: 0; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 2px; }
.pc h2 { font-size: 1.05rem; margin-top: 12px; }
.pc.pros h2::before { content: "+ "; color: var(--on-sage-c); }
.pc.cons h2::before { content: "\2212 "; color: var(--on-warn-c); }
.price-row { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.specs th { width: 42%; font-weight: 600; color: var(--muted); }
.buy { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 8px; }
.retailers { list-style: none; padding: 0; display: grid; gap: 10px; }
.retailers li + li { margin: 0; }
.btn.retailer { width: 100%; height: 100%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; border-radius: 14px; text-align: left; padding: 10px 18px; }
.btn.retailer .domain { font-weight: 500; font-size: 0.85rem; opacity: 0.9; }
.btn.retailer .domain::after { content: " \2197"; }
.disclosure { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.6em; }
.checked { margin-top: 28px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.sources h2 { font-size: 1.05rem; }
.sources ul { font-size: 0.95rem; }

/* documents */
.doc h2 { font-size: 1.2rem; }
.note { border-radius: 12px; padding: 12px 16px; margin: 0 0 1em; }
.note p { margin: 0; }
.note-tip { background: var(--primary-c); color: var(--on-primary-c); }
.note-warn { background: var(--warn-c); color: var(--on-warn-c); }
.note-warn a, .note-tip a { color: inherit; }
.note-draft { background: var(--todo); color: var(--on-todo); font-weight: 600; font-size: 0.9rem; }
mark.todo { background: var(--todo); color: var(--on-todo); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.disclosure-footer { margin-top: 32px; padding: 12px 16px; border-radius: 12px; background: var(--card-2); font-size: 0.92rem; color: var(--muted); }
.disclosure-footer p { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card-2); padding: 24px 0 32px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { max-width: 1040px; }
.footer-disclosure p { margin: 0 0 0.4em; }
.footer-links { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links li + li { margin: 0; }
.footer-links a { display: inline-block; padding: 6px 4px; color: var(--muted); }
.fine { font-size: 0.82rem; margin: 0; }

@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .retailers { grid-template-columns: 1fr 1fr; }
  .pick-list { grid-template-columns: 1fr 1fr; }
  .pick-list .pick-card.featured { grid-column: 1 / -1; }
  .hero { padding-top: 56px; }
}
@media (min-width: 960px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* pick photos, reviews, seasons (contract §3.3a) */
.pick-card.has-thumb { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-content: start; }
.pick-card.has-thumb > :not(.card-thumb) { grid-column: 2; }
.pick-card .card-thumb { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--card-2, var(--line)); }
@media (min-width: 640px) { .pick-card.has-thumb { grid-template-columns: 88px 1fr; column-gap: 14px; } .pick-card .card-thumb { width: 88px; height: 88px; } }
.pick-list.compact .pick-card.has-thumb { grid-template-columns: 56px 1fr; }
.pick-list.compact .pick-card .card-thumb { width: 56px; height: 56px; }
.pick-hero { margin: 16px 0 8px; }
.pick-hero img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pick-hero figcaption, .gallery figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.gallery { list-style: none; padding: 0 0 6px; margin: 0 0 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery li { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.gallery figure { margin: 0; }
.gallery img { display: block; height: 160px; width: auto; max-width: 260px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.reviews { margin: 24px 0; }
.reviews h2 { margin-bottom: 4px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
.review header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.review header p { margin: 0; }
.review p { margin: 0.5em 0; }
.review .stars { color: var(--on-honey-c); letter-spacing: 0.08em; }
.review .review-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }
.season { margin: 24px 0 8px; }
.season-row { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.season-row .pick-card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
@media (min-width: 640px) { .pick-list.season-row { display: flex; } }

/* /support/ — bank transfer details */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.25rem; }
.bank { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--card-2); }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; user-select: all; }

/* home: the app in a phone frame (site/assets/phone-frame.svg → .png, 424 × 868 CSS px).
   The frame's screen hole is x 17, y 12, 390 × 844, radius 50. Under it: the "glass" (the app's
   own surface colour, with a 1px bleed so no seam shows), and the app's iframe starting below the
   camera pill, the way a real phone keeps the status bar clear (the app gets 392 × 807).
   The phone keeps its true size and is scaled with --s, so the app always lays out at phone width. */
.hero-app { text-align: left; display: grid; gap: 8px 48px; align-items: center; padding-bottom: 8px; }
.hero-app .lede { margin-left: 0; margin-right: 0; }
.hero-app .cta-row { justify-content: flex-start; }
.hero-app .eyebrow { margin-bottom: 0; }
.btn-big { min-height: 54px; padding: 12px 28px; font-size: 1.08rem; }
.hero-note { color: var(--muted); font-size: 0.95rem; max-width: 34em; margin: 0; }
.phone-stage { --s: 0.64; margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; min-width: 0;
  background: radial-gradient(closest-side, var(--primary-c), transparent); }
.phone-box { position: relative; width: calc(424px * var(--s)); height: calc(868px * var(--s)); flex: none; }
.phone { position: absolute; top: 0; left: 0; width: 424px; height: 868px; transform: scale(var(--s)); transform-origin: 0 0; }
.phone::before { content: ""; position: absolute; inset: 0 5px; border-radius: 62px; background: #0C0C0F;
  box-shadow: 0 40px 70px -24px rgba(39, 33, 24, 0.45), 0 14px 28px -14px rgba(39, 33, 24, 0.35); }
.phone::after { content: ""; position: absolute; left: 16px; top: 11px; width: 392px; height: 846px; border-radius: 51px; background: var(--bg); }
.phone-screen { position: absolute; z-index: 1; left: 16px; top: 50px; width: 392px; height: 807px; border: 0; border-radius: 0 0 51px 51px; background: var(--bg); display: block; }
.phone-frame { position: absolute; z-index: 2; top: 0; left: 0; width: 424px; height: 868px; max-width: none; pointer-events: none; user-select: none; }
.phone-tap { display: none; position: absolute; z-index: 3; inset: 0; border-radius: 62px; }
.phone-caption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.only-narrow { display: none; }
@media (prefers-color-scheme: dark) {
  .phone::before { box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
}
/* Small screens and touch screens: the phone is a picture of the live app, and a tap opens the app
   itself, so a finger scrolling the page never gets caught scrolling inside the phone. */
@media (max-width: 899px), (pointer: coarse) {
  .phone-tap { display: block; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}
@media (min-width: 360px) { .phone-stage { --s: 0.72; } }
@media (min-width: 640px) { .phone-stage { --s: 0.78; } }
@media (min-width: 900px) {
  .hero-app { grid-template-columns: minmax(0, 1fr) auto; padding-top: 40px; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-note { grid-column: 1; grid-row: 2; align-self: start; }
  .phone-stage { grid-column: 2; grid-row: 1 / span 2; }
  .hero-app h1 { font-size: 2.6rem; }
  .phone-stage { --s: 0.8; margin: 0; }
}
@media (min-width: 900px) and (max-height: 820px) { .phone-stage { --s: 0.72; } }
.features .grid.three { margin-top: 4px; }
.free-band { background: var(--primary-c); color: var(--on-primary-c); border-radius: var(--radius); padding: 20px 20px 10px; margin-top: 20px; }
.free-band h2 { margin-top: 0; }
.free-band .cta-row { margin-top: 8px; }
.free-band .btn-quiet { color: var(--on-primary-c); border-color: currentColor; }
