/* Hydra: the DesignKit look on the web, like the App Store screenshots.
   Pure black, cream text, the DesignKit grey scale, colour only for data (blue = water, green = on pace,
   amber = alcohol). Aspekta for text, Oswald for numbers, IBM Plex Mono for small uppercase labels. */

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

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #0A0A0A;
  --surface-2: #141414;
  --surface-hover: #1F1F1F;
  --hairline: rgba(255, 255, 255, 0.08);
  --track: rgba(255, 255, 255, 0.15);
  --border: #2E2E2E;
  --border-strong: #454545;
  --text: #F5F4EE;
  --text-secondary: #C9C9C9;
  --text-tertiary: #8F8F8F;
  --text-disabled: #6B6B6B;

  /* Data and state colours, the app's (DesignKit Palette) */
  --water: #7292F3;
  --water-soft: rgba(114, 146, 243, 0.18);
  --success: #30D158;
  --success-soft: rgba(48, 209, 88, 0.15);
  --amber: #F2C14E;
  --amber-soft: rgba(242, 193, 78, 0.16);
  --green: #4CAF7D;

  /* Sippy (SippyPalette.hydra(dark: true)) */
  --sippy-glass: #1F1F1F;
  --sippy-rim: rgba(255, 255, 255, 0.15);
  --sippy-face-top: #F5F4EE;
  --sippy-face-water: #0A0A0A;

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

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

  --content: 1120px;
  --measure: 36em;

  --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: 28px; --s-section: 160px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--water); color: #000; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }
.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; }
.skip-link { position: absolute; left: var(--edge); top: -100px; z-index: 20; background: var(--text); color: #000; padding: 8px 14px; border-radius: var(--r-small); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.display { font-size: clamp(46px, 8.4vw, 96px); line-height: 0.92; letter-spacing: -0.04em; }
.title { font-size: clamp(36px, 5.6vw, 64px); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-secondary); max-width: var(--measure); }
.secondary { color: var(--text-secondary); }
.muted { color: var(--text-tertiary); }
.small { font-size: 14px; line-height: 1.5; }
.num { font-family: var(--font-num); font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

.prose { max-width: var(--measure); color: var(--text-secondary); }
.prose p + p, .prose p + ul, .prose ul + p, .prose .table-wrap + p, .prose p + .table-wrap { margin-top: var(--s-m); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a, .link { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-secondary); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta { color: #000; background: var(--text); padding: 7px 14px; border-radius: var(--r-pill); font-weight: 600; }
.nav .nav-cta:hover { color: #000; background: #fff; }
@media (max-width: 560px) { .nav .nav-hide-s { display: none; } }

/* ---------- Buttons and the App Store badge ---------- */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-m) var(--s-l); }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.2s ease, opacity 0.2s ease; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.cta-note { font-size: 14px; color: var(--text-tertiary); line-height: 1.45; }
.cta-note strong { color: var(--text-secondary); font-weight: 500; display: block; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.button:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.button-primary { background: var(--text); color: #000; border-color: var(--text); }
.button-primary:hover { background: #fff; border-color: #fff; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--text); }
.arrow-link::after { content: "→"; transition: transform 0.2s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Cards ---------- */

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

/* ---------- Sippy ---------- */

.sippy .sippy-glass { fill: var(--sippy-glass); }
.sippy .sippy-rim { fill: none; stroke: var(--sippy-rim); stroke-width: 1.5; }
.sippy .sippy-water { fill: var(--water); }
.sippy .sippy-highlight { fill: #fff; opacity: 0.42; }
.sippy .sippy-face { stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sippy .sippy-face-top { fill: var(--sippy-face-top); stroke: var(--sippy-face-top); }
.sippy .sippy-face-water { fill: var(--sippy-face-water); stroke: var(--sippy-face-water); }
.sippy .sippy-sparkle { fill: var(--success); }
.sippy .sippy-sweat { fill: var(--water); }
.sippy .sippy-eyes { transform-box: view-box; transform-origin: 60px 89px; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; gap: var(--s-xxl); align-items: center; }
.hero-copy > * + * { margin-top: var(--s-l); }
.hero-copy .overline { margin-bottom: calc(var(--s-l) * -0.5); }
.hero-copy h1 em { font-style: normal; color: var(--water); }
.hero-art { position: relative; display: grid; justify-items: center; gap: var(--s-l); }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -10% -20% 10%;
  background: radial-gradient(closest-side, rgba(114, 146, 243, 0.32), rgba(114, 146, 243, 0.08) 60%, transparent 100%);
  filter: blur(10px);
  z-index: -1;
}
.sippy-hero { width: min(64vw, 320px); height: auto; filter: drop-shadow(0 30px 60px rgba(114, 146, 243, 0.25)); }

.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-s);
  width: min(100%, 400px);
  padding: var(--s-m) var(--s-s) var(--s-s);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--hairline);
  border-radius: var(--r-large);
}
.mood { display: grid; justify-items: center; gap: var(--s-s); margin: 0; }
.mood .sippy { width: 64px; height: auto; }
.mood figcaption { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.mood-behind figcaption { color: var(--amber); }
.mood-onpace figcaption { color: var(--water); }
.mood-reached figcaption { color: var(--success); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- Proof strip ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.fact { padding: var(--s-l) var(--s-m) var(--s-l) 0; }
.fact + .fact { padding-left: var(--s-m); border-left: 1px solid var(--hairline); }
.fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); }
.fact:nth-child(4) { border-top: 1px solid var(--hairline); }
.fact .num { display: block; font-size: 34px; line-height: 1.1; color: var(--text); }
.fact .num small { font-size: 0.45em; color: var(--text-tertiary); margin-left: 3px; font-family: var(--font-mono); }
.fact p { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; line-height: 1.4; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: var(--s-l) var(--s-l); }
  .fact:first-child { padding-left: 0; }
  .fact:nth-child(3) { border-left: 1px solid var(--hairline); padding-left: var(--s-l); border-top: 0; }
  .fact:nth-child(4) { border-top: 0; }
}

/* ---------- Feature sections (the seven screenshots) ---------- */

.feature { padding: var(--s-section) 0 0; }
.feature-grid { display: grid; gap: var(--s-xl); align-items: center; }
.feature-copy > * + * { margin-top: var(--s-m); }
.feature-copy h2 { margin-top: var(--s-s); }
.feature-copy .lead { margin-top: var(--s-l); }
.feature-index { color: var(--text-disabled); margin-right: 6px; }

.shot {
  --glow: rgba(114, 146, 243, 0.28);
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 4% -12% 30%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(20px);
  z-index: -1;
}
.shot img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.shot-water { --glow: rgba(114, 146, 243, 0.3); }
.shot-amber { --glow: rgba(242, 193, 78, 0.18); }
.shot-green { --glow: rgba(48, 209, 88, 0.18); }
.shot-grey { --glow: rgba(255, 255, 255, 0.07); }

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: var(--s-xxl) 80px; }
  .feature-flip .shot { order: -1; }
}

/* Small lists that sit under a feature's text */
.factor-list {
  list-style: none;
  margin: var(--s-l) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-medium);
  overflow: hidden;
  max-width: 420px;
}
.factor-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-s); background: var(--surface); padding: 12px 14px; font-size: 15px; }
.factor-list .mono { font-size: 13px; color: var(--text-secondary); }
.factor-list .neg { color: var(--amber); }
.factor-list .plus { color: var(--water); }

.checks { list-style: none; padding: 0; margin: var(--s-l) 0 0; display: grid; gap: 10px; color: var(--text-secondary); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-l);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--amber);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- Privacy and pricing ---------- */

.section { padding-top: var(--s-section); }
.section-head { margin-bottom: var(--s-xl); max-width: var(--measure); }
.section-head h2 { margin-top: var(--s-s); }
.section-head p { margin-top: var(--s-m); }

.grid-3 { display: grid; gap: var(--s-m); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-3 h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: var(--s-s); }
.grid-3 p { color: var(--text-secondary); font-size: 16px; }

.plans { display: grid; gap: var(--s-m); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan h3 { font-size: 24px; letter-spacing: -0.02em; }
.plan .overline { display: block; margin-bottom: var(--s-s); }
.plan .checks { margin-top: var(--s-m); }
.plan-price { margin-top: var(--s-m); color: var(--text-tertiary); font-size: 14px; }

/* ---------- Final CTA ---------- */

.final {
  margin-top: var(--s-section);
  padding: clamp(48px, 8vw, 96px) var(--card-pad);
  border-radius: var(--r-large);
  border: 1px solid var(--hairline);
  background: radial-gradient(80% 90% at 50% 0%, rgba(48, 209, 88, 0.14), transparent 70%), var(--surface);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-l);
}
.final .sippy-cta { width: 120px; height: auto; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { margin-top: var(--s-section); border-top: 1px solid var(--hairline); padding: var(--s-xl) 0 calc(var(--s-xl) + env(safe-area-inset-bottom)); color: var(--text-tertiary); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-m) var(--s-xl); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-s) var(--s-l); }
.footer-links a { text-decoration: none; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }
.footer-note { max-width: 40em; }

/* ---------- Calculator page ---------- */

.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { margin-top: var(--s-m); font-size: clamp(38px, 6.4vw, 72px); max-width: 15em; }
.page-hero .lead { margin-top: var(--s-l); }

.calc-grid { display: grid; gap: var(--s-m); align-items: start; }
@media (min-width: 900px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-l); }
  .calc-result { position: sticky; top: 84px; }
}

.calc { display: grid; gap: var(--s-l); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.field legend, .field > label.overline { padding: 0; margin-bottom: 10px; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-m); }
.field-row .overline { margin: 0; }
.hint { font-size: 13px; color: var(--text-tertiary); line-height: 1.45; }

.seg { display: flex; padding: 3px; gap: 3px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-pill); }
.seg label { flex: 1; position: relative; }
.seg input, .options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center; padding: 8px 6px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--text-secondary); cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg input:checked + span { background: var(--text); color: #000; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--water); outline-offset: 2px; }
.seg-small span { padding: 5px 12px; font-size: 13px; }
.seg-wrap { flex-wrap: wrap; border-radius: var(--r-medium); }
.seg-wrap label { flex: 1 1 auto; }
.seg-wrap span { border-radius: 10px; }

.options { display: grid; gap: 8px; }
.options label { position: relative; display: block; }
.options span {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--hairline); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.options strong { font-weight: 500; font-size: 16px; }
.options small { color: var(--text-tertiary); font-size: 13px; }
.options input:checked + span { border-color: var(--text); background: var(--surface-hover); }
.options input:focus-visible + span { outline: 2px solid var(--water); outline-offset: 2px; }
@media (min-width: 560px) { .options { grid-template-columns: 1fr 1fr; } }

.stepper { display: flex; align-items: center; gap: var(--s-s); }
.stepper-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.stepper-btn:hover { background: var(--surface-hover); }
.stepper-field { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 4px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); }
.stepper-field:focus-within { border-color: var(--border-strong); }
.stepper input {
  width: 4ch; min-width: 0; border: 0; background: transparent; color: var(--text); text-align: center;
  font-family: var(--font-num); font-weight: 500; font-size: 34px; line-height: 1.3; padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-unit { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }

.result-card { padding: var(--card-pad); }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); }
.result-number { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-s); }
.result-number .num { font-size: clamp(64px, 11vw, 88px); line-height: 1; }
.result-number small { font-family: var(--font-mono); font-size: 15px; color: var(--text-tertiary); }
.result-note { margin-top: var(--s-s); color: var(--text-secondary); }
.sippy-calc { width: 76px; height: auto; flex: none; }

.breakdown-card { margin-top: var(--s-l); border-top: 1px solid var(--hairline); padding-top: var(--s-m); }
.breakdown { list-style: none; margin: var(--s-s) 0 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-m); padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.breakdown li:last-child { border-bottom: 0; }
.breakdown strong { display: block; font-weight: 400; font-size: 16px; }
.breakdown small { display: block; color: var(--text-tertiary); font-size: 13px; }
.breakdown .value { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.breakdown li.is-today { margin: 4px -10px; padding: 10px; border: 1.5px solid var(--success); border-radius: 12px; }
.footnote { margin-top: var(--s-m); font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }

.app-cta { margin-top: var(--s-m); display: grid; grid-template-columns: auto 1fr; gap: var(--s-m); align-items: center; }
.app-cta img.app-icon { width: 56px; height: 56px; border-radius: 13px; }
.app-cta h2 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.app-cta p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.app-cta .store-badge { grid-column: 1 / -1; justify-self: start; }
.app-cta .store-badge img { height: 46px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-medium); }
.num-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.num-table th, .num-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hairline); }
.num-table tr:last-child th, .num-table tr:last-child td { border-bottom: 0; }
.num-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); background: var(--surface); }
.num-table tbody th { font-weight: 500; color: var(--text); }
.num-table td { color: var(--text-secondary); }
.num-table .right, .num-table td.n { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

.two-col { display: grid; gap: var(--s-xl); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }

.faq { border-top: 1px solid var(--hairline); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 28px; width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq .answer { padding: 0 0 22px; }

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-medium); overflow: hidden; }
.sources li { background: var(--surface); }
.sources a { display: grid; gap: 3px; padding: 14px 16px; text-decoration: none; }
.sources a:hover { background: var(--surface-2); }
.sources .overline { font-size: 11px; }
.sources .src-title { color: var(--text); font-size: 15px; line-height: 1.4; }
.sources .src-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

.disclaimer { margin-top: var(--s-m); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; color: var(--text-secondary); }
.disclaimer strong { color: var(--text); font-weight: 600; }

.not-found { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-l); }
.not-found .sippy { width: 120px; height: auto; }

/* ---------- Motion (off for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* The water's wave drifts; the hero Sippy fills up glass by glass, then blinks every few seconds. */
  .sippy-hero .sippy-water, .sippy-calc .sippy-water { animation: sippy-wave 4s linear infinite; }
  .sippy-hero .sippy-water { animation: sippy-wave 4s linear infinite, sippy-fill 2.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.3s both; }
  .sippy-hero .sippy-eyes, .sippy-calc .sippy-eyes { animation: sippy-blink 7s ease-in-out 1.5s infinite; }

  .reveal { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal-2 { animation-delay: 0.08s; }
  .reveal-3 { animation-delay: 0.16s; }
  .reveal-4 { animation-delay: 0.24s; }
}

@keyframes sippy-wave { from { translate: 0 0; } to { translate: -35px 0; } }
/* From 12% full to 72% (translate(0 43.3) in the markup), in three "glasses". */
@keyframes sippy-fill {
  0% { transform: translate(0, 118.9px); }
  22% { transform: translate(0, 96px); }
  34% { transform: translate(0, 96px); }
  58% { transform: translate(0, 70px); }
  70% { transform: translate(0, 70px); }
  100% { transform: translate(0, 43.3px); }
}
@keyframes sippy-blink {
  0%, 10%, 14%, 48%, 52%, 80%, 84%, 85.5%, 88%, 100% { transform: scaleY(1); }
  12%, 50%, 82%, 86.5% { transform: scaleY(0.1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Spacing helpers ---------- */
.mt-s { margin-top: var(--s-s); }
.mt-m { margin-top: var(--s-m); }
.mt-l { margin-top: var(--s-l); }

/* ---------- Blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-m); }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { position: relative; display: grid; gap: var(--s-s); align-content: start; height: 100%; transition: border-color 0.2s ease, background 0.2s ease; }
.post-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.post-card h2, .post-card h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.post-card a { text-decoration: none; }
.post-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--text-secondary); font-size: 16px; }
.post-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.post-meta span + span::before { content: "·"; margin: 0 8px; color: var(--text-disabled); }

.article { max-width: 44em; margin: 0 auto; }
.article-head { padding: clamp(40px, 7vw, 88px) 0 var(--s-xl); }
.article-head h1 { margin-top: var(--s-m); font-size: clamp(38px, 6vw, 64px); }
.article-head .lead { margin-top: var(--s-l); }
.article-head .post-meta { margin-top: var(--s-l); }
.article-body { color: var(--text-secondary); font-size: 18px; line-height: 1.7; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { color: var(--text); font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2em; }
.article-body h3 { color: var(--text); font-size: 20px; letter-spacing: -0.01em; margin-top: 1.6em; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li + li { margin-top: 0.4em; }
.article-body .table-wrap { margin-top: 1.4em; font-size: 16px; line-height: 1.5; }
.article-body figure { margin: 1.6em 0 0; }
.article-body figcaption { margin-top: var(--s-s); font-size: 14px; color: var(--text-tertiary); }
.answer-box { padding: var(--card-pad); border-radius: var(--r-medium); border: 1px solid rgba(114, 146, 243, 0.45); background: linear-gradient(180deg, rgba(114, 146, 243, 0.1), var(--surface) 70%); }
.answer-box .overline { display: block; margin-bottom: var(--s-s); color: var(--water); }
.answer-box p { color: var(--text); font-size: 19px; line-height: 1.55; }
.article-cta { margin-top: 2.4em; }
.article-cta .app-cta { margin-top: 0; }
.article .faq { margin-top: var(--s-m); }
.article .faq summary { font-size: 17px; }
.article .faq .answer p { font-size: 16px; }
.article-sources { margin-top: var(--s-xxl); }
.article-sources .sources { margin-top: var(--s-m); }
.author-note { margin-top: var(--s-xl); font-size: 15px; color: var(--text-tertiary); border-top: 1px solid var(--hairline); padding-top: var(--s-l); }
.author-note strong { color: var(--text-secondary); font-weight: 600; }
.back-link { display: inline-block; margin-top: var(--s-xl); color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.back-link:hover { color: var(--text); }
.article-body figure img { width: 100%; height: auto; border-radius: var(--r-medium); }
.article-body figure.figure-phone img { width: min(100%, 340px); margin: 0 auto; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent); mask-image: linear-gradient(to bottom, #000 75%, transparent); }
.article-body figure.figure-watch img { width: min(100%, 240px); margin: 0 auto; border-radius: 0; }
.article-body figure.figure-phone figcaption, .article-body figure.figure-watch figcaption { text-align: center; }
.related { margin-top: var(--s-xxl); }
.related .post-list { margin-top: var(--s-m); }
@media (min-width: 760px) { .related .post-list { grid-template-columns: repeat(3, 1fr); } }
.related .post-card h3 { font-size: 19px; }
.related .post-card p { font-size: 14px; }

/* ---------- Drinks band (home) ---------- */

.drinks-band-inner { padding: clamp(24px, 4vw, 40px) 0 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.drinks-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-s) var(--s-l); }
.arrow-link.small { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.marquee {
  display: flex;
  overflow: hidden;
  padding: var(--s-l) 0 clamp(24px, 4vw, 40px);
  /* Same width as the rest of the page; the chips fade out at both edges. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 12px; flex: none; }
.drink-chip {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 16px 10px 14px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--hairline);
  font-size: 16px; white-space: nowrap;
}
.drink-chip svg { width: 20px; height: 20px; color: var(--text-secondary); }
.drink-chip .factor { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.drink-chip .factor.up { color: var(--water); }
.drink-chip .factor.down { color: var(--amber); }
.marquee-track[aria-hidden="true"] { display: none; }

/* ---------- Card glow (assets/card-glow.js sets --mx and --my), as on humanist.ro ---------- */

@media (hover: hover) and (pointer: fine) {
  [data-card-glow] :is(.card, .table-wrap) { position: relative; }
  [data-card-glow] :is(.card, .table-wrap)::before,
  [data-card-glow] :is(.card:not(.card-pro), .table-wrap)::after {
    content: ""; position: absolute; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease;
  }
  /* The border: a ring 1px wide over the hairline, cut out of the gradient with a mask. */
  [data-card-glow] :is(.card, .table-wrap)::before {
    inset: -1px; padding: 1px;
    background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), rgba(245, 244, 238, 0.4), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  [data-card-glow] .table-wrap::before { inset: 0; }
  [data-card-glow] :is(.card:not(.card-pro), .table-wrap)::after {
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), rgba(245, 244, 238, 0.05), transparent 40%);
  }
  [data-card-glow]:hover :is(.card, .table-wrap)::before,
  [data-card-glow] :is(.card:not(.card-pro), .table-wrap):hover::after { opacity: 1; }
}

/* Hydra Pro card: the same as the Pro cards on humanist.ro. A slow ring of Hydra blue with a cream highlight runs
   along the border, with a soft glow around it; the ring is a border-box background (under the hairline), so
   ::before stays free for the cursor glow, and the soft spot under the cursor comes from --pro-spot. */
@property --pro-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --pro-spot { syntax: "<number>"; inherits: false; initial-value: 0; }
.card-pro {
  --pro-ring: conic-gradient(from var(--pro-angle), transparent 0%, rgba(114, 146, 243, 0.9) 14%, rgba(245, 244, 238, 0.9) 22%, rgba(114, 146, 243, 0.9) 30%, transparent 44%);
  position: relative;
  border-color: transparent;
  background:
    radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), rgba(245, 244, 238, calc(0.05 * var(--pro-spot))), transparent 40%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--pro-ring) border-box,
    linear-gradient(var(--hairline), var(--hairline)) border-box;
  transition: --pro-spot 0.5s ease;
  animation: pro-spin 6s linear infinite;
}
@media (hover: hover) and (pointer: fine) { [data-card-glow] .card-pro:hover { --pro-spot: 1; } }
.card-pro::after {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--pro-angle), transparent 0%, rgba(114, 146, 243, 0.9) 14%, rgba(245, 244, 238, 0.9) 22%, rgba(114, 146, 243, 0.9) 30%, transparent 44%);
  filter: blur(20px); opacity: 0.35;
  animation: pro-spin 6s linear infinite;
}
@keyframes pro-spin { to { --pro-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .card-pro, .card-pro::after { animation: none; } }

/* ---------- Motion (only with html.motion, set by assets/motion.js) ---------- */

.motion [data-reveal] {
  opacity: 0; transform: translateY(56px); filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.motion [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.motion [data-reveal="shot"] { transform: translateY(80px) scale(0.92); transition-duration: 1.2s; transition-delay: calc(var(--reveal-delay, 0s) + 0.15s); }
.motion [data-reveal="shot"].is-visible { transform: none; }
.motion [data-reveal-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
.motion [data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: 0.12s; }
.motion [data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: 0.24s; }
.motion [data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: 0.36s; }
.motion .marquee-track { animation: marquee 48s linear infinite; }
.motion .marquee-track[aria-hidden="true"] { display: flex; }
.motion .marquee:hover .marquee-track { animation-play-state: paused; }
/* The screenshots drift a little as you scroll past them (CSS scroll-driven animations, where supported). */
@supports (animation-timeline: view()) {
  .motion .shot.is-visible img { animation: shot-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes shot-drift { from { transform: translateY(24px); } to { transform: translateY(-24px); } }
html:not(.motion) .marquee { overflow-x: auto; }
@media (min-width: 760px) { .post-list-3 { grid-template-columns: repeat(3, 1fr); } }
.post-list-3 .post-card h3 { font-size: 21px; }
.article-body .app-cta h2 { font-size: 19px; line-height: 1.2; margin-top: 0; }
.article-body .app-cta p { font-size: 14px; line-height: 1.5; margin-top: 4px; }
.article-body .related h3, .article .related h3 { margin-top: 0; }
