/* UPTAKE Design System - Clinical Precision */

:root {
  /* Color Palette - Light Mode (Default) */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #A0A0A0;
  --color-border: #E5E5E5;
  --color-accent: #2C2C2C;
  --color-cta-bg: #2C2C2C;
  --color-header-bg: rgba(250, 250, 250, 0.8);
  --color-header-bg-scrolled: rgba(250, 250, 250, 0.95);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Hero studio (light) */
  --hero-bg: radial-gradient(90% 85% at 30% 45%, #F7F6F3 0%, #ECEBE7 50%, #DEDDD8 100%);
  --hero-ink: #1A1A1A;
  --hero-ink-2: #55555A;
  --hero-ink-3: #7A7A80;

  /* Animation */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark Mode */
html.dark-mode {
  --hero-ink: #ECECEC;
  --hero-ink-2: #A0A0A0;
  --hero-ink-3: #6B6B6B;
  --color-bg: #0A0A0A;
  --color-surface: #141414;
  --color-text-primary: #ECECEC;
  --color-text-secondary: #A0A0A0;
  --color-text-tertiary: #6B6B6B;
  --color-border: #2A2A2A;
  --color-accent: #ECECEC;
  --color-cta-bg: #1A1A1A;
  --color-header-bg: rgba(10, 10, 10, 0.8);
  --color-header-bg-scrolled: rgba(10, 10, 10, 0.95);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-xl) 0;
}

/* ==========================================
   Header & Navigation
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-smooth);
}

header.scrolled {
  background-color: var(--color-header-bg-scrolled);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-smooth);
}

nav a:hover {
  color: var(--color-text-primary);
}

/* Nav Toggle (hamburger) - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #000000;
}

/* Light studio backdrop on its own layer so it can crossfade with the 3D lighting (gradients
   can't transition); the black set shows through in dark mode. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
  transition: opacity 0.6s var(--ease-smooth);
}

html.dark-mode .hero::before {
  opacity: 0;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  min-height: 100vh;
  padding-right: clamp(2rem, 10vw, 12rem);
}

.hero-product-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--ease-smooth) 0.3s forwards;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.pour-sequence-canvas {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: contain;
}

.pour-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s var(--ease-smooth);
}

.pour-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.pour-loading-bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
}

.pour-loading-progress {
  height: 100%;
  background: var(--color-text-tertiary);
  border-radius: 1px;
  width: 0%;
  transition: width 0.2s var(--ease-smooth);
}

.hero-content {
  flex: 0 1 auto;
  text-align: left;
  max-width: 480px;
  margin-left: clamp(-12rem, -10vw, -6rem);
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--ease-smooth) 0.5s forwards;
}

/* Hero studio: light = warm off-white cyclorama, brightest behind the sachet (never pure white,
   so the white product stays the brightest thing in frame); dark = black set. */
.hero h1,
.hero .hero-subtitle {
  color: var(--hero-ink);
}

.hero .hero-description {
  color: var(--hero-ink-2);
}

.hero .hero-spec,
.hero .scroll-indicator span {
  color: var(--hero-ink-3);
}

.hero .scroll-indicator .scroll-line {
  background-color: var(--hero-ink-3);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero-description {
  max-width: 600px;
  margin: 0 auto var(--space-md);
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

.hero-spec {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease-smooth) 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-text-tertiary) 0%, transparent 100%);
  animation: scrollPulse 2s var(--ease-smooth) infinite;
}

/* ==========================================
   Specifications Section
   ========================================== */
.specifications {
  background-color: var(--color-surface);
  padding: var(--space-xl) 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.spec-item {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}

.spec-value {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-primary);
}

.spec-description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
  background-color: var(--color-cta-bg);
  color: var(--color-surface);
  text-align: center;
  padding: var(--space-xl) 0;
  transition: background-color 0.3s var(--ease-smooth);
}

.cta h2 {
  color: var(--color-surface);
  margin-bottom: var(--space-md);
  transition: color 0.3s var(--ease-smooth);
}

html.dark-mode .cta h2 {
  color: #FFFFFF;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #F5F5F5;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  font-family: var(--font-primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html.dark-mode .btn {
  background-color: #000000;
  color: #FFFFFF;
}

html.dark-mode .btn:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Launch state
   ========================================== */
/* THE switch for the whole site (every page uses this file). "soon" = coming soon: no prices or ordering; the newsletter
   and socials lead. At launch change the one word "soon" in the first rule to "live". Elements tagged data-when="soon"
   or data-when="live" follow it; untagged ones show in both states. Preview either state before switching with
   ?launch=live or ?launch=soon on any page (script.js sets html[data-preview]). */
html:not([data-preview]) [data-when]:not([data-when="soon"]) { display: none !important; }   /* ← the switch */
html[data-preview="live"] [data-when]:not([data-when="live"]),
html[data-preview="soon"] [data-when]:not([data-when="soon"]) { display: none !important; }   /* previews: leave as is */

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

/* Newsletter + socials (the "Launching soon" section; the footer) */
.notify {
  background-color: var(--color-bg);
  padding: var(--space-xl) 0;
  text-align: center;
}

.notify h2 {
  margin-bottom: var(--space-sm);
}

.notify-lede {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  color: var(--color-text-secondary);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  max-width: 30rem;
  margin: 0 auto;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color 0.3s var(--ease-smooth);
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--color-text-primary);
}

/* on the page's own background the button is the ink colour (the default .btn is made for the dark CTA band) */
.signup .btn,
html.dark-mode .signup .btn {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

@media (max-width: 480px) {
  .signup .btn { flex: 1 1 100%; }   /* stacked under the field on a phone: as wide as it */
}

.signup .btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.signup.done input,
.signup.done .btn {
  display: none;
}

.signup-status {
  flex-basis: 100%;
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.signup-note {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.socials {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.socials a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.socials a:hover {
  color: var(--color-text-primary);
}

.socials a:not([href]) {
  display: none;   /* a network without an account link yet (script.js SITE.social) is left out */
}

.hero-notify {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  text-align: center;
}

.site-footer .socials {
  margin-top: 0;
}

.site-footer .signup-compact {
  margin-bottom: var(--space-md);
}

.footer-legal {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================
   Region Selector
   ========================================== */
.region-selector {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  outline: none;
  letter-spacing: 0.01em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231A1A1A' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px 6px;
  transition: all 0.2s var(--ease-smooth);
}

.region-selector:hover {
  border-color: var(--color-text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
}

.region-selector:focus {
  border-color: var(--color-text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.region-selector option {
  padding: 0.5rem;
  font-size: 0.875rem;
}

html.dark-mode .region-selector {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ECECEC' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
}

/* ==========================================
   Dark Mode Toggle
   ========================================== */
.dark-mode-toggle {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  width: 36px;
  height: 32px;
}

.dark-mode-toggle:hover {
  border-color: var(--color-text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
}

html.dark-mode .dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode-toggle:focus {
  border-color: var(--color-text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

html.dark-mode .dark-mode-toggle:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle svg {
  position: absolute;
  transition: all 0.3s var(--ease-smooth);
  color: var(--color-text-primary);
}

.dark-mode-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.dark-mode-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

html.dark-mode .dark-mode-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

html.dark-mode .dark-mode-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ==========================================
   Responsive — Mobile (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

  /* --- Nav: hamburger toggle --- */
  .nav-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-header-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    padding: var(--space-xs) 0;
  }

  nav ul li a {
    font-size: 1rem;
    display: block;
    padding: var(--space-xs) 0;
  }

  /* --- Hero --- */
  .hero-content-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    padding: 80px var(--space-md) var(--space-md);
    min-height: 100vh;
  }

  .hero-product-wrapper {
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }

  .pour-sequence-canvas {
    width: 100%;
    height: 50vh;
    max-height: 50vh;
    display: block;
    object-fit: contain;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
    margin-left: 0;
    padding: 0 var(--space-sm);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .pour-loading-bar {
    width: 150px;
  }

  /* --- Spec grid --- */
  .spec-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ==========================================
   V2 — 3D stage (full-bleed behind hero copy)
   ========================================== */
.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
}

.stage.ready {
  opacity: 1;
}

.hero .hero-content-wrapper {
  position: relative;
  justify-content: flex-end;
  padding-right: clamp(2rem, 8vw, 10rem);
  pointer-events: none;
}

.hero .hero-content {
  margin-left: 0;
  pointer-events: auto;
}

@media (max-width: 768px) {
  :root {
    --hero-bg: radial-gradient(110% 60% at 50% 28%, #F7F6F3 0%, #ECEBE7 55%, #DEDDD8 100%);
  }

  .hero .hero-content-wrapper {
    justify-content: flex-end;
    padding: 0 var(--space-md) 20vh; /* clears the scroll indicator */
  }
}

/* Pinned hero: the track gives the scroll distance that drives tear and pour; the stage sets --fade
   (0..1) as the copy clears. Only pinned once the 3D stage is running. */
.hero-scroll.pinned {
  height: 720vh;   /* 4.2 screens of pour + 2 of the dive (js/stage.js POUR_SCREENS, DEEP_SCREENS) */
}

.hero-scroll.pinned .hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;   /* iOS: the small viewport, so nothing framed at the bottom sits under Safari's toolbar */
}

.hero-scroll .hero-content-wrapper {
  opacity: calc(1 - var(--fade, 0));
  transform: translateY(calc(var(--fade, 0) * -40px));
}

/* filter, not opacity: the indicator's fade-in animation owns its opacity */
.hero-scroll .scroll-indicator {
  filter: opacity(calc(1 - var(--fade, 0)));
}

/* Photographic finish: a whisper of film grain over the hero (static; tiny inline SVG noise). */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Science copy beside the pile (desktop: left of the heap; portrait: below it). The stage sets --pile. */
.pile-copy {
  position: absolute;
  left: clamp(2rem, 8vw, 10rem);
  top: 50%;
  max-width: 420px;
  z-index: 10;
  pointer-events: none;
  opacity: var(--pile, 0);
  transform: translateY(calc(-50% + (1 - var(--pile, 0)) * 30px));
}

.hero .pile-copy h2 {
  color: var(--hero-ink);
  margin-bottom: var(--space-sm);
}

.pile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* equal columns: symmetrical with the note under GLUCOSE */
  gap: 2rem;
  margin: 0 0 var(--space-sm);
  color: var(--hero-ink);
}

.pile-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-ink-3);
}

.pile-facts > div {
  display: flex;
  flex-direction: column;
}

.pile-facts .pile-src {
  display: block;
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.pile-facts dd {
  margin: auto 0 0;   /* the figures share one baseline under labels of any height */
  padding-top: 0.25rem;
  white-space: nowrap;
  font-size: 1.5rem;
}

.pile-body {
  color: var(--hero-ink-2);
  line-height: 1.6;
}


.pile-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.pile-on .pile-link {
  pointer-events: auto;
}

.signup-note a,
.footer-legal a {
  color: inherit;
}

@media (max-width: 768px) {
  .pile-copy {
    /* portrait: the copy reads first, under the header; the heap stands below it (framed from this layout) */
    left: var(--space-md);
    right: var(--space-md);
    top: calc(64px + 3svh);
    transform: translateY(calc((1 - var(--pile, 0)) * 20px));
  }
}

/* Privacy notice (privacy.html) */
.legal h2 { margin-top: var(--space-lg); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: var(--space-sm); }
.legal a { color: inherit; }
