/* HUMANIST: the DesignKit look on the web.
   Black background, cream text from the logo, Aspekta for text, Oswald for numbers,
   IBM Plex Mono for small uppercase labels. Thin hairlines, rounded cards, no shadows. */

/* Fonts: the original TTF files from DesignKit, served unmodified (SIL OFL 1.1, licenses next to them). */
@font-face { font-family: "Aspekta"; src: url("/assets/fonts/Aspekta-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("/assets/fonts/Aspekta-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("/assets/fonts/Aspekta-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/Oswald-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;

  /* Colors (DesignKit dark palette, text warmed to the logo's cream) */
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-hover: #141414;
  --hairline: rgba(245, 244, 238, 0.08);
  --border: #2E2E2E;
  --text: #F5F4EE;
  --text-secondary: #C9C8C2;
  --text-tertiary: #8F8E89;
  --focus: #F5F4EE;

  /* Spacing: 4pt grid */
  --s-xs: 4px;
  --s-s: 8px;
  --s-m: 16px;
  --s-l: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 96px;
  --edge: 20px;
  --card-pad: 24px;

  /* Radii */
  --r-small: 8px;
  --r-medium: 14px;
  --r-large: 24px;
  --r-pill: 999px;

  --content: 760px;

  --font-text: "Aspekta", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (min-width: 720px) {
  :root { --edge: 40px; --card-pad: 32px; --s-section: 128px; }
}

*, *::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-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(245, 244, 238, 0.35); transition: text-decoration-color 0.15s ease, color 0.15s ease; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--text); color: var(--bg); }

.skip-link {
  position: absolute; left: var(--edge); top: -100px; z-index: 10;
  background: var(--text); color: var(--bg); padding: var(--s-s) var(--s-m);
  border-radius: var(--r-pill); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--s-m); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: calc(var(--content) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }

/* Type */

.overline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }

.display {
  font-size: clamp(36px, 8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.title { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }

h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 500; }

.lead { font-size: 19px; line-height: 1.55; color: var(--text-secondary); max-width: 36em; margin: 0; text-wrap: pretty; }
@media (min-width: 720px) { .lead { font-size: 21px; } }

p { margin: 0; }
.prose > * + * { margin-top: var(--s-m); }
.prose p, .prose li { color: var(--text-secondary); text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-s); }
.prose li::marker { color: var(--text-tertiary); }

.muted { color: var(--text-tertiary); }
.secondary { color: var(--text-secondary); }

.num { font-family: var(--font-num); font-weight: 500; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }

/* Header */

.site-header { padding: var(--s-l) 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 400; font-size: 17px; letter-spacing: 0em; }
.brand svg { width: 28px; height: 28px; flex: none; }

.nav { display: flex; gap: var(--s-l); }
.nav a { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; padding: var(--s-s) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Sections */

main { display: block; }

.hero { padding-top: var(--s-xxl); padding-bottom: var(--s-section); }
.hero .overline { margin-bottom: var(--s-l); }
.hero .display, .hero .title { margin-bottom: var(--s-l); }

.section { padding-bottom: var(--s-section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-m); padding-bottom: var(--s-m); margin-bottom: var(--s-l); border-bottom: 1px solid var(--hairline); }

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-medium);
  padding: var(--card-pad);
}
.card + .card { margin-top: var(--s-s); }
.card-large { border-radius: var(--r-large); }

.grid-2 { display: grid; gap: var(--s-s); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 > .card + .card { margin-top: 0; }

/* Divided list (DSDividedList): rows separated by hairlines */

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > div { padding: var(--s-m) 0; border-top: 1px solid var(--hairline); }
.rows > :first-child { border-top: 0; padding-top: 0; }
.rows > :last-child { padding-bottom: 0; }

.facts { margin: 0; }
.facts > div { display: grid; gap: var(--s-xs); padding: var(--s-m) 0; border-top: 1px solid var(--hairline); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.facts dd { margin: 0; color: var(--text); }
.facts dd.num { font-size: 20px; line-height: 1.2; }
@media (min-width: 720px) {
  .facts > div { grid-template-columns: 200px 1fr; gap: var(--s-l); align-items: baseline; }
}

/* Product card */

.product { display: grid; gap: var(--s-l); }
.product-head { display: flex; align-items: center; gap: 20px; }
.app-icon { width: 88px; height: 88px; border-radius: 22.4%; flex: none; background: #fff; }
.app-icon-large { width: 120px; height: 120px; }
.product-name { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s); margin-top: var(--s-s); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 5px 10px 4px;
  white-space: nowrap;
}
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7292F3; }

.links { display: flex; flex-wrap: wrap; gap: var(--s-s); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-s);
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--surface-hover); border-color: #454545; }
.button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.arrow { font-family: var(--font-text); }

/* Big contact link */

.contact-email { font-size: clamp(26px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.grid-2 .contact-email { font-size: clamp(24px, 5vw, 28px); }
.contact-email:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* Segment bar (DSSegmentBar) for the Hydra sub-pages */

.segments { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline); }
.segments a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-secondary); }
.segments a:hover { color: var(--text); }
.segments a[aria-current="page"] { background: #1F1F1F; color: var(--text); }

.app-hero { display: grid; gap: var(--s-l); }
.app-hero > .segments { justify-self: start; }
.app-hero-head { display: flex; align-items: center; gap: 20px; }

/* Summary list with checks */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); color: var(--text); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li:last-child { padding-bottom: 0; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--text-tertiary); }
.checks span small { display: block; color: var(--text-tertiary); font-size: 15px; margin-top: 2px; }

/* Policy sections */

.doc-section { padding: var(--s-xl) 0; border-top: 1px solid var(--hairline); }
.doc-section:first-of-type { border-top: 0; padding-top: 0; }
.doc-section > h2 { margin-bottom: var(--s-m); }
.doc-section h3 { margin-top: var(--s-l); margin-bottom: var(--s-s); }

.data-list { margin: 0; }
.data-list > div { padding: var(--s-m) 0; border-top: 1px solid var(--hairline); }
.data-list > div:first-child { border-top: 0; padding-top: 0; }
.data-list > div:last-child { padding-bottom: 0; }
.data-list dt { font-weight: 500; color: var(--text); margin-bottom: var(--s-xs); }
.data-list dd { margin: 0; color: var(--text-secondary); }

/* FAQ: native details/summary */

.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-m);
  padding: 20px 0;
  font-size: 18px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover::after { border-color: var(--text); }
.faq .answer { padding-bottom: var(--s-l); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Tables of numbers (drink factors, goal parts) */

.num-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-medium); overflow: hidden; border-spacing: 0; }
.num-table caption { text-align: left; padding-bottom: var(--s-s); }
.num-table th, .num-table td { text-align: left; padding: 12px var(--s-m); border-top: 1px solid var(--hairline); font-weight: 400; vertical-align: baseline; }
.num-table thead th { border-top: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); padding-top: 14px; padding-bottom: 10px; }
.num-table tbody th { color: var(--text); }
.num-table td { color: var(--text-secondary); }
.num-table td.num { color: var(--text); font-size: 18px; text-align: right; white-space: nowrap; }
.num-table thead th.right { text-align: right; }
.table-wrap { margin-top: var(--s-m); }
.table-wrap + p { margin-top: var(--s-m); }

/* Footer */

.site-footer { border-top: 1px solid var(--hairline); padding: var(--s-xl) 0 var(--s-xxl); font-size: 14px; color: var(--text-tertiary); }
.site-footer .wrap { display: grid; gap: var(--s-l); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer-legal p + p { margin-top: var(--s-xs); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-s) var(--s-l); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-mark { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: 0.14em; margin-bottom: var(--s-s); }
.footer-mark svg { width: 18px; height: 18px; }

/* Small utilities */

.mt-s { margin-top: var(--s-s); }
.mt-m { margin-top: var(--s-m); }
.mt-l { margin-top: var(--s-l); }
.mb-l { margin-bottom: var(--s-l); }
.doc { padding-top: var(--s-section); }
address { font-style: normal; }
code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text); background: var(--surface-hover); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; }

@media (max-width: 519px) {
  .product-head { flex-direction: column; align-items: flex-start; gap: var(--s-m); }
  .app-icon { width: 72px; height: 72px; }
}

.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s); }
