/* Maruva public site — one stylesheet for both languages and both pages.
   Palette is docs/brand/identity.md. The dark values are the required lift,
   not a cosmetic variant (#8A5A34 falls under 3:1 on a dark ground), and the
   three drink colours are the product's own legend, so they carry the accents
   here instead of a generic brand gradient. */

:root {
  --coffee: #8A5A34;
  --tea:    #C08A2E;
  --matcha: #5FA83F;
  --brand:  #2F6F4E;
  --ink:    #1E231E;
  --muted:  #5C635C;
  --bowl:   #B9BDB2;
  --paper:  #F4F2EC;
  --card:   #FFFFFF;
  --line:   #E4E0D6;
  --shadow: 0 1px 2px rgba(30,35,30,.04), 0 8px 24px -12px rgba(30,35,30,.14);
  --shadow-lift: 0 2px 4px rgba(30,35,30,.05), 0 18px 40px -18px rgba(30,35,30,.22);
  --glass: rgba(244,242,236,.82);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --coffee: #C08A5E;
    --tea:    #E0AC4E;
    --matcha: #7FC95F;
    --brand:  #6FBF95;
    --ink:    #E8EAE6;
    --muted:  #A0A79F;
    --bowl:   #4A4F49;
    --paper:  #14170F;
    --card:   #1C201A;
    --line:   #2E332C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px -18px rgba(0,0,0,.7);
    --glass: rgba(20,23,15,.78);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Three washes of the drink colours behind the first screen. Fixed, so the
   page scrolls out of them instead of dragging them along. */
body::before {
  content: ""; position: fixed; inset: -20vh 0 auto 0; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 12% 8%,  color-mix(in srgb, var(--coffee) 22%, transparent), transparent 62%),
    radial-gradient(38vw 38vw at 78% 2%,  color-mix(in srgb, var(--tea)    20%, transparent), transparent 60%),
    radial-gradient(46vw 46vw at 52% 34%, color-mix(in srgb, var(--matcha) 16%, transparent), transparent 64%);
  filter: blur(18px);
  opacity: .75;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
header.site .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.mark svg { width: 34px; height: 34px; flex: none; }
.mark b { font-size: 21px; font-weight: 640; letter-spacing: -0.015em; }
nav.site { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang a { padding: 4px 11px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--brand); color: var(--paper); }
@media (max-width: 620px) { nav.site .hide-sm { display: none; } }

/* ── Type ───────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(36px, 7.2vw, 62px); line-height: 1.04; letter-spacing: -0.035em; margin: 26px 0 16px; font-weight: 680; }
h2 { font-size: clamp(24px, 3.4vw, 31px); line-height: 1.2; letter-spacing: -0.025em; margin: 58px 0 12px; font-weight: 660; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.grad {
  background: linear-gradient(104deg, var(--coffee) 4%, var(--tea) 48%, var(--matcha) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--matcha); }
.note { color: var(--muted); font-size: 14.5px; }
main > section, h2[id] { scroll-margin-top: 80px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn.primary { background: var(--brand); border-color: transparent; color: var(--paper); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stats b { display: block; font-size: clamp(26px, 3.6vw, 34px); line-height: 1; letter-spacing: -0.035em; font-weight: 680; }
.stats li:nth-child(1) b { color: var(--coffee); }
.stats li:nth-child(2) b { color: var(--tea); }
.stats li:nth-child(3) b { color: var(--matcha); }
.stats li:nth-child(4) b { color: var(--brand); }
.stats span { display: block; margin-top: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 660px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.domains { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; padding: 0; list-style: none; }
.domains li {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transition: transform .16s, box-shadow .16s;
}
.domains li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.domains li:nth-child(1)::before { background: var(--coffee); }
.domains li:nth-child(2)::before { background: var(--tea); }
.domains li:nth-child(3)::before { background: var(--matcha); }
.domains li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.domains b { display: block; font-size: 16px; margin-bottom: 2px; }
.domains li:nth-child(1) b { color: var(--coffee); }
.domains li:nth-child(2) b { color: var(--tea); }
.domains li:nth-child(3) b { color: var(--matcha); }
.domains .n { font-size: 14px; color: var(--muted); }
@media (max-width: 660px) { .domains { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--paper); }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; transition: transform .16s, box-shadow .16s; }
.feat li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feat b { display: block; margin-bottom: 5px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 660px) { .feat { grid-template-columns: 1fr; } }

/* Sensory axes — the shape of a profile, drawn with the domain colours. */
.axes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.axes li { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); }
.axes i { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--bowl) 45%, transparent); position: relative; }
.axes i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 999px; background: linear-gradient(90deg, var(--coffee), var(--tea), var(--matcha)); }
@media (max-width: 480px) { .axes li { grid-template-columns: 92px 1fr; font-size: 13.5px; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { position: relative; padding-left: 50px; margin-bottom: 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 680;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand);
}

dl.company { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 8px 18px; font-size: 15.5px; }
dl.company dt { color: var(--muted); }
dl.company dd { margin: 0; }
@media (max-width: 560px) { dl.company { grid-template-columns: 1fr; gap: 2px 0; } dl.company dd { margin-bottom: 10px; } }

footer.site { margin: 70px 0 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal { counter-reset: sec; max-width: 44em; }
.legal h2 { font-size: clamp(19px, 2.4vw, 22px); margin: 40px 0 10px; }
.legal h2::before { counter-increment: sec; content: counter(sec) "."; color: var(--brand); margin-right: 10px; font-variant-numeric: tabular-nums; }
.legal li { margin-bottom: 7px; }
.legal .card { margin: 18px 0 22px; }
