/* Metabolo marketing site. Values are the app's tokens (app/src/theme.ts) as used by the
   landing kit (metabolo-landing-dark.html) and the legal kit (metabolo-legal-light.html);
   paper, paper-muted and paper-border are the marketing-only tokens for the legal pages.
   Only the kit primitives the pages use are kept: Ground, tile, ObjectToken, type helpers. */

@font-face { font-family: "VSSans"; src: url("/assets/fonts/VSSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VSSans"; src: url("/assets/fonts/VSSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "VSSans"; src: url("/assets/fonts/VSSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --m-font: "VSSans", "VS Sans", Manrope, system-ui, sans-serif;
  --ink: #0b0e13; --text: #e8ecf1; --muted: #8b94a3; --border: #242c37;
  --blue: #4a90c2; --green: #2f9e5f; --light: #1e2a3a;
  --paper: #f3f5f8; --paper-muted: #5b6572; --paper-border: #dfe3e8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { background: var(--ink); color: var(--text); font-family: var(--m-font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── Ground (Ground.tsx): ink, a light at the top reaching the ink at 70 % of the kit's 2300 px page ── */
.m-ground { min-height: 100vh; background: var(--ink) linear-gradient(180deg, var(--light) 0, var(--ink) 1610px) no-repeat; }

/* ── Surface (Surface.tsx) ── */
.m-tile { position: relative; border-radius: 16px; background: linear-gradient(180deg, #1a2029 0%, #12171e 100%); box-shadow: 0 12px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }

/* ── ObjectToken (ObjectToken.tsx) ── */
.m-token { position: relative; display: inline-block; vertical-align: middle; width: 56px; height: 56px; }
.m-token__floor { position: absolute; left: 15%; width: 70%; height: 16%; bottom: -10%; border-radius: 9999px; background: #000; opacity: .6; box-shadow: 0 8px 10px rgba(0,0,0,.7); }
.m-token__frame { display: block; position: relative; width: 100%; height: 100%; border-radius: 50%; background: #0a0d12; box-shadow: 0 8px 10px rgba(0,0,0,.7); overflow: hidden; }
.m-token__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── type helpers ── */
.t-label { font-size: 13px; line-height: 18px; } .t-caption { font-size: 11px; line-height: 16px; }
.muted { color: var(--muted); }

/* ── Page layout (the kit's, made fluid) ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.top__brand { display: block; line-height: 0; flex: 0 0 auto; }
.top__brand img { height: 40px; width: auto; display: block; }
.top__right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.lang a { color: var(--muted); text-decoration: none; padding: 12px 6px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--text); }
.lang .sep { color: var(--border); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0 96px; }
h1 { font-size: 56px; line-height: 1.05; font-weight: 700; margin: 0 0 16px; letter-spacing: -.012em; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 520px; margin: 0; }
h2 { font-size: 32px; line-height: 1.1; font-weight: 600; margin: 0 0 24px; }
section { padding: 72px 0; border-top: 1px solid var(--border); }

.badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.store:hover { border-color: var(--muted); }

.device-slot { justify-self: center; }
.device { width: min(300px, 78vw); aspect-ratio: 300 / 652; border-radius: 36px; background: var(--ink); padding: 7px; box-shadow: 0 24px 36px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); border: 1px solid var(--border); }
.device__screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: var(--ink); }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goal { padding: 16px; display: grid; gap: 12px; align-content: start; }
.goal b { font-size: 15px; }
.goal span:last-child { font-size: 13px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step b { font-size: 18px; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; margin: 0; }

.priv { border-left: 3px solid var(--blue); padding-left: 16px; max-width: 640px; font-size: 15px; line-height: 22px; color: var(--muted); margin: 0; }

.plan { padding: 24px; display: grid; gap: 8px; max-width: 640px; }
.plan b { font-size: 18px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.plan li { font-size: 15px; line-height: 22px; color: var(--muted); }
.plan li:first-child { color: var(--text); font-weight: 600; }
.plus-note { margin: 16px 0 0; max-width: 640px; }

footer { padding: 32px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* ── 404 ── */
.lost { padding: 96px 0 160px; }
.lost h1 { font-size: 40px; }
.lost a { color: var(--blue); font-size: 18px; text-decoration: none; }

/* ── Legal pages on paper (metabolo-legal-light.html) ── */
.paper { background: var(--paper); color: var(--ink); min-height: 100vh; }
.paper .muted, .paper .lead, .paper footer, .paper footer a { color: var(--paper-muted); }
.paper footer a:hover, .paper .lang a:hover, .paper .lang a[aria-current] { color: var(--ink); }
.paper section, .paper footer { border-color: var(--paper-border); }
.paper .lang a { color: var(--paper-muted); }
.paper .lang .sep { color: var(--paper-border); }
.paper .top__home { color: var(--paper-muted); text-decoration: none; padding: 12px 0; }
.paper .top__home:hover { color: var(--ink); }
.legal-head { padding: 48px 0 24px; }
.legal-head h1 { font-size: 40px; }
.jump { margin-top: 8px; } .jump .lang { margin-left: -6px; }
.legal .eyebrow .lang, .top__right .lang { margin-right: -6px; }
.legal { max-width: 29em; font-size: 15px; line-height: 24px; } /* about 70 characters a line in VS Sans */
.legal section { padding: 48px 0; }
.legal section:first-child { border-top: 0; padding-top: 0; }
.legal .eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--paper-muted); }
.legal .eyebrow .lang { font-size: 13px; }
.legal h2 { font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.legal h3 { font-size: 18px; line-height: 24px; margin: 32px 0 8px; scroll-margin-top: 16px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 0 0 4px; }
.legal blockquote { margin: 0 0 12px; border-left: 3px solid var(--blue); padding-left: 16px; }
.legal a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 2px; }
.legal .meta { color: var(--paper-muted); }
.paper footer { margin-top: 64px; }

/* ── Phone and tablet ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 72px; }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  section { padding: 56px 0; }
  .top__tiers { display: none; }
  .top__brand img { height: 36px; }
  .legal-head h1, .lost h1 { font-size: 32px; }
  .legal h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .goals { grid-template-columns: 1fr; }
}

/* ── Articles (the landing kit's dark ground, one reading column) ── */
.article { max-width: 40em; padding: 24px 0 48px; font-size: 17px; line-height: 28px; }
.article h1 { font-size: 40px; line-height: 1.1; margin: 12px 0 12px; }
.article .lead { max-width: none; margin: 0 0 8px; }
.article .when { margin: 0 0 32px; }
.article h2 { font-size: 24px; line-height: 1.2; margin: 40px 0 12px; }
.article p, .article ul { margin: 0 0 16px; }
.article ul { padding-left: 20px; }
.article li { margin: 0 0 6px; }
.article a { color: var(--text); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.article .crumbs { margin: 0; }
.article .crumbs a { color: var(--muted); text-decoration: none; }
.article .crumbs a:hover { color: var(--text); }
.tbl { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.tbl th { font-weight: 600; color: var(--muted); font-size: 13px; }
.tbl td:first-child { font-weight: 600; }
.article .get { padding: 24px; margin: 40px 0 24px; }
.article .get h2 { margin-top: 0; font-size: 22px; }
.article .get p { color: var(--muted); font-size: 15px; line-height: 22px; }
.article .get .badges { margin-top: 16px; }
.article .disclaimer { margin: 24px 0 0; }
.index .index-list { display: grid; gap: 16px; margin: 32px 0 0; }
.index .card { padding: 20px; display: grid; gap: 8px; }
.index .card a { text-decoration: none; font-weight: 600; font-size: 18px; line-height: 24px; }
.index .card a:hover { text-decoration: underline; text-decoration-color: var(--blue); }
.index .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
@media (max-width: 640px) {
  .article { font-size: 16px; line-height: 26px; }
  .article h1 { font-size: 30px; }
  .article h2 { font-size: 22px; }
  .tbl th, .tbl td { padding-right: 8px; }
}
