/* Bocado · web. Same family as the app and the book: sage paper, aubergine ink,
   olive for actions, saffron for protein, red only for the line seal. */

@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/lora-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #eef1e6; --surface: #fafbf6; --surface-2: #e2e7d6; --ink: #2a1f2d; --ink-2: #5b5160; --line: #d3d9c5;
  --olive: #46632a; --olive-ink: #f4f6ee; --olive-soft: #dde6cc; --saffron: #d48a1a; --saffron-soft: #f5e1bb;
  --seal: #c62828; --seal-ink: #fff7f2; --beet: #963a4e; --beet-soft: #f3dde1; --focus: #2c7383;
  --display: 'Bricolage', ui-rounded, system-ui, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-lg: 24px; --r-md: 14px; --max: 1140px; --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1a22; --surface: #29232d; --surface-2: #362f3b; --ink: #f0ebe3; --ink-2: #c3bac5; --line: #433a4b;
    --olive: #a9c67c; --olive-ink: #1f1a22; --olive-soft: #36402a; --saffron: #eeac48; --saffron-soft: #4a3a22;
    --seal: #d64545; --seal-ink: #fff7f2; --beet: #f093a5; --beet-soft: #47272f; --focus: #78bccb; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1a22; --surface: #29232d; --surface-2: #362f3b; --ink: #f0ebe3; --ink-2: #c3bac5; --line: #433a4b;
  --olive: #a9c67c; --olive-ink: #1f1a22; --olive-soft: #36402a; --saffron: #eeac48; --saffron-soft: #4a3a22;
  --seal: #d64545; --seal-ink: #fff7f2; --beet: #f093a5; --beet-soft: #47272f; --focus: #78bccb; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 780; font-stretch: 82%; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-2); font-style: italic; max-width: 46ch; }
.kicker { font-family: var(--display); font-weight: 650; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin: 0 0 .7em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.sans { font-family: var(--sans); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--olive); font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.7rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; font-family: var(--display); font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--olive-soft); }
.nav .cta { background: var(--olive); color: var(--olive-ink); }
.nav .cta:hover { background: var(--olive); filter: brightness(1.08); }
@media (max-width: 720px) { .nav .hide-s { display: none; } .nav a { padding: 8px 10px; font-size: .95rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--olive); color: var(--olive-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--olive); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.sprig { color: var(--olive); }

/* situation cards */
.sit-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .sit-grid { grid-template-columns: 1fr; } }
.sit { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.sit.active { background: var(--olive); color: var(--olive-ink); border-color: var(--olive); }
.sit.active .muted { color: color-mix(in srgb, var(--olive-ink) 82%, transparent); }
.sit h3 { font-size: 1.7rem; margin: 0; }
.sit .tag { align-self: flex-start; font-family: var(--display); font-weight: 650; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.sit.active .tag { background: var(--seal); color: var(--seal-ink); }
.sit .go { margin-top: auto; font-family: var(--display); font-weight: 700; }
.sit.active:hover { filter: brightness(1.06); }
.notify { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* forms */
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input[type=email] { flex: 1 1 200px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 18px; font: inherit; font-family: var(--sans); font-size: 1rem; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-family: var(--sans); font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--olive); }
.hp { position: absolute; left: -9999px; }

/* how / evidence */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.band .tile { background: var(--bg); }
.tile h3 { font-size: 1.25rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.stat { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2.6rem; line-height: 1; color: var(--saffron); }
.stat-label { font-family: var(--display); font-weight: 650; margin: 4px 0 8px; }

/* catalogue */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip { font-family: var(--display); font-weight: 650; font-size: .95rem; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--olive); color: var(--olive-ink); border-color: var(--olive); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--olive); }
.card .shot { aspect-ratio: 4 / 3.4; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .shot.contain img { object-fit: contain; padding: 14px; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .fmt { font-family: var(--display); font-weight: 650; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.card h3 { font-size: 1.25rem; margin: 0; }
.card p { font-size: .98rem; color: var(--ink-2); margin: 0; }
.card .price { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 750; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .soon { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.card[hidden] { display: none; }

/* seal */
.seal { width: min(300px, 74vw); aspect-ratio: 1; border-radius: 50%; background: var(--seal); color: var(--seal-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform: rotate(-7deg); box-shadow: 0 0 0 6px var(--seal), inset 0 0 0 2px var(--seal-ink); margin: 0 auto; padding: 18px; }
.seal .s-top { font-family: var(--display); font-weight: 650; font-size: .78rem; letter-spacing: .12em; line-height: 1.3; }
.seal .s-brands { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: clamp(1.05rem, 3.3vw, 1.4rem); line-height: 1.25; margin: 10px 0 8px; }
.seal .s-bottom { font-style: italic; font-size: 1.05rem; }

/* line page */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .problem-grid { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 1rem; background: var(--olive-soft); }
.compare td.y { color: var(--olive); font-weight: 700; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); max-width: 760px; }
.letter .sig { font-style: italic; text-align: right; color: var(--ink-2); margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--olive); }
.faq details[open] summary::after { content: '–'; }
.freebie { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--saffron-soft); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
@media (max-width: 800px) { .freebie { grid-template-columns: 1fr; } }
.freebie ul { padding-left: 1.2em; margin: 0 0 1em; }
.art-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .art-list { grid-template-columns: 1fr; } }
.art-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; text-decoration: none; color: inherit; }
.art-list a:hover { border-color: var(--olive); }
.art-list h3 { font-size: 1.3rem; }
.art-list p { color: var(--ink-2); font-size: 1rem; margin: 0; }

/* product page */
.prod-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-media { background: var(--surface-2); border-radius: var(--r-lg); padding: 24px; display: flex; justify-content: center; }
.prod-media img { max-height: 620px; width: auto; border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin: 22px 0; }
.price-box .p { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--olive); border-bottom: 3px solid var(--olive); transform: rotate(-45deg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); }
.gallery figcaption { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); margin-top: 6px; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-family: var(--sans); font-size: .95rem; margin: 0; }
dl.details dt { font-weight: 700; }
dl.details dd { margin: 0; color: var(--ink-2); }

/* article */
.article h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 1.6em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .4em; }
.box { background: var(--olive-soft); border-radius: var(--r-md); padding: 18px 22px; margin: 1.4em 0; }
.box h3 { font-size: 1.15rem; }
.box ul { margin: 0; }
.sources { font-size: .9rem; color: var(--ink-2); }
.sources ol { padding-left: 1.3em; }
.byline { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 36px; font-family: var(--sans); font-size: .9rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot a { color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; }
.foot-title { font-family: var(--display); font-weight: 700; color: var(--ink); margin-bottom: 8px; }

.hero-visual { position: relative; height: 420px; }
.hero-visual img { position: absolute; border-radius: 12px; box-shadow: 0 18px 40px rgb(42 31 45 / .18); }
.hv-book { width: 240px; left: 0; top: 0; transform: rotate(-4deg); }
.hv-phone { width: 165px; right: 0; top: 110px; border-radius: 26px; border: 6px solid var(--ink); transform: rotate(5deg); background: var(--surface); }
@media (max-width: 860px) { .hero-visual { height: 300px; max-width: 420px; margin: 8px auto 0; width: 100%; }
  .hv-book { width: 190px; left: 4%; } .hv-phone { width: 140px; right: 4%; top: 30px; } }

html { scroll-padding-top: 80px; }
.stat { color: #9c6210; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --seal: #c43c3c; } :root:not([data-theme="light"]) .stat { color: var(--saffron); } }
:root[data-theme="dark"] { --seal: #c43c3c; }
:root[data-theme="dark"] .stat { color: var(--saffron); }
.field input[type=email] { border-color: #7d8870; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field input[type=email] { border-color: #7a7082; } }
.compare { min-width: 620px; }
.compare th[scope=row] { min-width: 10rem; }
.card .shot.contain img { object-position: center; }
.card[data-format=app] .shot img { object-position: center 30%; }
.gallery img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.status-soon { display: inline-block; font-family: var(--display); font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--saffron-soft); color: var(--ink); margin: 16px 0 0; }
@media (max-width: 860px) { .freebie-side { order: -1; } }
