/*
 * Gassed: the six pages at gassed*.html (landing, support, terms, privacy,
 * consumer health data, science).
 *
 * The app's own palette and type (ForceFit/DesignSystem): warm stone, champagne
 * gold, near-black pills, Didot over Helvetica Neue. Both faces are system fonts
 * on Apple devices, so nothing is downloaded; other systems get a Bodoni, then
 * Georgia. Like the app, the serif is never used below 22px, where its hairlines
 * break up.
 *
 * Self-contained on purpose: no css/main.css, no third-party requests, and every
 * rule sits under body.gs, so nothing leaks into the other apps' pages. Light
 * only, like the app.
 */

.gs {
  color-scheme: light;
  --stone: #DCD5CB;
  --stone-hi: #E5DFD6;
  --surface: #ECE7E0;
  --paper: #F4F1EB;
  --field: #D1C9BE;
  --line: #C4BAAC;
  --ink: #1B1A18;
  --muted: #57524B;
  --gold: #C2A26A;
  --gold-light: #E3CF9F;
  --gold-deep: #9A7A42;
  --gold-text: #6E5019;
  --night: #181715;
  --on-night: #F1ECE4;
  --on-night-muted: #C6BDAF;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter-l: max(1.25rem, env(safe-area-inset-left));
  --gutter-r: max(1.25rem, env(safe-area-inset-right));

  margin: 0;
  min-height: 100vh;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.gs *, .gs *::before, .gs *::after { box-sizing: border-box; }
.gs img { max-width: 100%; height: auto; }
.gs a { color: var(--ink); text-decoration-color: var(--gold-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.gs a:hover { text-decoration-thickness: 2px; }
.gs :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.gs h1, .gs h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }
.gs [id] { scroll-margin-top: 1.25rem; }

.gs-skip { position: absolute; left: -9999px; }
.gs-skip:focus { left: 1rem; top: .5rem; z-index: 10; background: var(--ink); color: var(--on-night) !important; padding: .6rem 1rem; border-radius: 999px; outline-color: var(--gold-light) !important; }

.gs-wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.ps-back { font-size: .875rem; padding: .25rem 0; background: var(--night); }
.gs .ps-back a { display: inline-block; padding: .4rem 0; color: var(--on-night); text-decoration: none; }
.gs .ps-back a:hover { text-decoration: underline; }
.ps-back a:focus-visible, .gs-foot a:focus-visible, .gs-night a:focus-visible { outline-color: var(--gold-light) !important; }

.gs-top .gs-wrap { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.gs-brand { display: inline-flex; align-items: center; gap: .7rem; font: 400 1.5rem/1 var(--serif); text-decoration: none !important; }
.gs-brand img { width: 36px; height: 36px; border-radius: 22.37%; }
.gs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; font-size: .9375rem; }
.gs-nav a { display: inline-block; padding: .55rem 0; text-decoration: none; }
.gs-nav a:hover, .gs-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold-deep); }

/* ── Buttons ─────────────────────────────────────────────── */
.gs-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .7rem 1.6rem; border-radius: 999px; font: 500 1.0625rem/1.2 var(--sans); text-align: center; text-decoration: none !important; }
.gs-btn--ink { background: var(--ink); color: var(--stone-hi); }
.gs a.gs-btn--ink { color: var(--stone-hi); }
.gs a.gs-btn--ink:hover { background: #35322D; }
/* Not a link yet: the dashed ring the app draws round a session still to come. */
.gs-btn--soon { border: 1.5px dashed var(--gold-text); }
.gs a.gs-btn:focus-visible { border-radius: 999px; }

/* ── Landing: hero ───────────────────────────────────────── */
.gs-hero { background: linear-gradient(180deg, var(--stone) 0%, var(--stone-hi) 60%, var(--stone) 100%); overflow: hidden; }
.gs-hero .gs-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: end; padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.gs-hero-copy { padding-bottom: clamp(1.5rem, 5vw, 4.5rem); align-self: center; }
/* Capped by the width so that enlarged text never pushes a word off a phone. */
.gs-hero h1 { font-size: min(clamp(2.9rem, 10.5vw, 5.6rem), 20vw); line-height: 1.02; letter-spacing: -.005em; margin: 0; }
.gs-hero .lede { margin: 1.4rem 0 0; max-width: 33em; font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.gs-hero-glass { justify-self: center; width: min(64vw, 270px); }
.gs-hero-glass img { display: block; width: 100%; }
/* Soften the ends of the glass's floor shadow. */
.gs-hero-glass img, .gs-sci-top img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.gs-rule { margin: 1.5rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--gold-deep); max-width: 34em; }
.gs-rule p { margin: 0; }
.gs-rule p + p { margin-top: .5rem; }
.gs-rule b { font-weight: 500; }
@media (min-width: 820px) {
  .gs-hero .gs-wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 2.5rem; }
  .gs-hero-glass { width: 100%; max-width: 400px; }
}
@media (max-width: 819px) { .gs-hero-copy { padding-bottom: 0; } }

/* ── Landing: sections ───────────────────────────────────── */
.gs-sec { padding: clamp(3.25rem, 8vw, 6.5rem) 0; }
.gs-sec--surface { background: var(--surface); }
.gs-h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; margin: 0; }
.gs-lede { margin: 1rem 0 0; max-width: 38em; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }
.gs-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* The day: three sessions, drawn with the app's own session marks. */
.gs-day { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.gs-day li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1.1rem; }
.gs-mark { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; }
.gs-mark svg { width: 100%; height: 100%; display: block; }
.gs-day h3 { margin: .45rem 0 .25rem; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.gs-day p { margin: 0; color: var(--muted); grid-column: 2; }
@media (min-width: 820px) {
  .gs-day { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
  .gs-day li { display: block; position: relative; }
  .gs-day li:not(:last-child)::before { content: ""; position: absolute; top: 1.375rem; left: 3.5rem; right: -1.25rem; height: 1px; background: var(--gold-deep); opacity: .55; }
  .gs-day h3 { margin: 1.1rem 0 .35rem; }
}

.gs-shots { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 640px) { .gs-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3.5rem); } .gs-shots .gs-phone { width: 100%; max-width: 270px; border-radius: clamp(24px, 4vw, 38px); } }
@media (max-width: 639px) { .gs-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; } .gs-shots .gs-phone { width: 100%; border-radius: 22px; box-shadow: 0 0 0 4px var(--ink), 0 16px 32px rgba(40, 32, 18, .24); } .gs-shots li:last-child { grid-column: 1 / -1; width: calc(50% - .7rem); justify-self: center; } }

.gs-split { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 820px) {
  .gs-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; }
  .gs-split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .gs-split--flip > :first-child { order: 2; }
}
.gs-phone { display: block; width: min(72vw, 290px); margin: 0 auto; border-radius: 40px; overflow: hidden; background: var(--stone); box-shadow: 0 0 0 6px var(--ink), 0 26px 50px rgba(40, 32, 18, .28); }
.gs-phone img { display: block; width: 100%; }
.gs-night .gs-phone { box-shadow: 0 0 0 1px #4A4239, 0 0 0 6px #0C0B0A, 0 0 90px rgba(194, 162, 106, .22); }

.gs-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; max-width: 38em; }
.gs-list li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.gs-list li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.gs-list b { font-weight: 500; color: var(--ink); }

.gs-night { background: radial-gradient(70% 90% at 72% 45%, #38322B 0%, #221F1B 55%, #121110 100%); color: var(--on-night); }
.gs-night .gs-lede, .gs-night .gs-list li, .gs-night .gs-fine { color: var(--on-night-muted); }
.gs-night .gs-list b { color: var(--on-night); }
.gs-night a { color: var(--on-night); text-decoration-color: var(--gold); }
.gs-night .gs-list li::before { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

.gs-fine { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--muted); max-width: 46em; }

/* Free beside the missed-day rule: one card, two halves, so neither is read alone. */
.gs-deal { display: grid; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--paper); }
.gs-deal > div { padding: clamp(1.5rem, 4vw, 2.5rem); }
.gs-deal > div + div { border-top: 1px solid var(--line); background: var(--surface); }
.gs-deal h3 { font: 400 clamp(1.6rem, 3.2vw, 2.1rem)/1.15 var(--serif); margin: 0 0 .75rem; text-wrap: balance; }
.gs-deal p { margin: .75rem 0 0; color: var(--muted); }
.gs-deal h3 + p { margin-top: 0; }
@media (min-width: 820px) {
  .gs-deal { grid-template-columns: 1fr 1fr; }
  .gs-deal > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
.gs-ways { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.gs-ways li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: .15rem 2rem; }
.gs-ways li:last-child { border-bottom: 1px solid var(--line); }
.gs-ways b { font-weight: 500; font-size: 1.125rem; }
.gs-ways span { color: var(--muted); }
@media (min-width: 720px) { .gs-ways li { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); } }

.gs-note { border: 1px solid var(--gold-deep); border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--stone-hi); }
.gs-note h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.12; margin: 0 0 .9rem; }
.gs-note p { margin: .75rem 0 0; max-width: 46em; }

.gs-facts { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
@media (min-width: 35rem) { .gs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .gs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.gs-facts dt { font-weight: 500; font-size: 1.125rem; padding-top: .9rem; border-top: 2px solid var(--gold-deep); }
.gs-facts dd { margin: .3rem 0 0; color: var(--muted); }

/* ── Legal, support ──────────────────────────────────────── */
.gs-legal, .gs-sci { padding: 1.25rem 0 3.5rem; }
.gs-cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.gs-card { background: var(--paper); border-radius: 26px; box-shadow: 0 10px 30px rgba(40, 32, 18, .09); }
.gs-doc { overflow-wrap: break-word; min-width: 0; }
article.gs-doc { padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.15rem, 5vw, 3.5rem); }
.gs-doc h1, .gs-sci h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.05; margin: 0 0 .75rem; }
.gs-doc h2 { font-size: clamp(1.6rem, 4.4vw, 2rem); line-height: 1.2; margin: 2.75rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gs-doc h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; margin: 1.75rem 0 .4rem; }
.gs-doc p { margin: .85rem 0; max-width: 44em; }
.gs-doc ul, .gs-doc ol { margin: .85rem 0; padding-left: 1.3rem; max-width: 44em; }
.gs-doc li { margin: .45rem 0; padding-left: .2rem; }
.gs-doc li::marker { color: var(--gold-text); }
.gs-doc strong { font-weight: 600; }
.gs-meta { color: var(--muted); font-size: .9375rem; }
.gs-doc .gs-meta { margin: 0 0 1.75rem; }
.gs-notice { margin: 2rem 0; padding: 1.5rem clamp(1.1rem, 3.5vw, 2rem); background: var(--stone-hi); border: 1px solid var(--gold-deep); border-radius: 20px; }
.gs-doc .gs-notice h2 { border: 0; padding: 0; margin: 0 0 .5rem; }
.gs-doc .gs-notice > :last-child { margin-bottom: 0; }
.gs-doc .gs-notice > p:first-child { margin-top: 0; }

.gs-toc ol { list-style: none; margin: 0; padding: 0; max-width: none; }
.gs-toc li { margin: 0; padding: 0; }
.gs-toc a { display: block; padding: .35rem 0; font-size: .9375rem; line-height: 1.35; text-decoration: none; }
.gs-toc a:hover { text-decoration: underline; }
.gs-toc--fold { background: var(--surface); border-radius: 18px; padding: 0 1.15rem; }
.gs-toc--fold summary { padding: .85rem 0; font-weight: 500; cursor: pointer; }
.gs-toc--fold[open] { padding-bottom: 1rem; }
.gs-toc--side { display: none; }
@media (min-width: 1000px) {
  .gs-cols { grid-template-columns: min(14.5rem, 26vw) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .gs-toc--fold { display: none; }
  .gs-toc--side { display: block; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1rem .35rem 1rem .35rem; }
  .gs-toc--side p { margin: 0 0 .4rem; font-weight: 500; }
}

.gs-doc details.gs-q { border-top: 1px solid var(--line); }
.gs-doc details.gs-q:last-of-type { border-bottom: 1px solid var(--line); }
.gs-doc .gs-q summary { padding: .95rem 0; font-weight: 500; cursor: pointer; }
.gs-doc .gs-q[open] { padding-bottom: .75rem; }
.gs-doc .gs-q > p:first-of-type { margin-top: 0; }
.gs-contact { margin: 1.75rem 0; padding: 1.5rem clamp(1.1rem, 3.5vw, 2rem); background: var(--stone-hi); border-radius: 20px; }
.gs-doc .gs-contact h2 { border: 0; padding: 0; margin: 0 0 .5rem; }
.gs-doc .gs-contact p:last-child { margin-bottom: 0; }

/* ── The science ─────────────────────────────────────────── */
.gs-sci { padding-top: 0; }
.gs-sci-top { margin-bottom: 1.25rem; background: linear-gradient(180deg, var(--stone), var(--stone-hi)); overflow: hidden; }
.gs-sci-top .gs-wrap { display: grid; gap: 2rem; align-items: center; padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 4vw, 3rem); }
.gs-sci-top img { display: none; }
.gs-sci h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
.gs-sci-lede { font-size: 1.125rem; color: var(--muted); max-width: 40em; }
.gs-sci-lede p { margin: .75rem 0 0; }
@media (min-width: 820px) {
  .gs-sci-top .gs-wrap { grid-template-columns: minmax(0, 1fr) 190px; gap: 3rem; }
  .gs-sci-top img { display: block; width: 190px; }
}
.gs-sci-sec + .gs-sci-sec { margin-top: 3rem; }
.gs-sci-doc h2 { margin: 0 0 .9rem; font-size: clamp(1.8rem, 5vw, 2.5rem); border: 0; padding: 0; }
.gs-panel { background: var(--paper); border: 1px solid var(--gold-deep); border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.5rem); }
.gs-panel ul { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; }
.gs-panel li { margin: 0; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.gs-panel li > strong:first-child { display: block; }
.gs-panel > :last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .gs-panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
  .gs-panel li { font-size: 1rem; line-height: 1.5; }
}
.gs-studies { display: grid; gap: 1rem; margin: 1.25rem 0; grid-template-columns: minmax(0, 1fr); }
.gs-study { background: var(--paper); border-radius: 22px; padding: 1.5rem clamp(1.15rem, 3vw, 1.75rem); }
.gs-study h3 { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
.gs-study ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.gs-study li { margin: 0; padding: .7rem 0; border-top: 1px solid #DDD5C8; }
.gs-study li:last-child { padding-bottom: 0; }
.gs-study li > strong:first-child { color: var(--gold-text); font-size: .9375rem; }
@media (min-width: 720px) {
  .gs-study li { display: block; padding-left: 10.5rem; position: relative; }
  .gs-study li > strong:first-child { position: absolute; left: 0; width: 9.5rem; }
}
.gs-risks { background: var(--night); color: var(--on-night); border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.5rem); }
.gs-risks a { color: var(--on-night); text-decoration-color: var(--gold); }
.gs-risks a:focus-visible { outline-color: var(--gold-light) !important; }
.gs-doc .gs-risks li::marker { color: var(--gold); }
.gs-risks > :last-child { margin-bottom: 0; }
.gs-refs ul { list-style: none; padding: 0; max-width: none; font-size: .9375rem; line-height: 1.5; }
.gs-refs li { margin: 0; padding: .7rem 0; border-top: 1px solid var(--line); }
.gs-sci-doc > .gs-meta { margin: 2rem 0 0; }

/* ── Footer ──────────────────────────────────────────────── */
.gs-foot { background: var(--night); color: var(--on-night); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .9375rem; }
.gs-foot a { display: inline-block; padding: .35rem 0; color: var(--on-night); text-decoration-color: var(--gold); }
.gs-foot-links li { min-width: 0; overflow-wrap: anywhere; }
.gs-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; }
.gs-foot p { margin: .75rem 0 0; color: var(--on-night-muted); font-size: .875rem; }
.gs-foot .gs-foot-health { font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) { .gs, .gs * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .ps-back, .gs-top, .gs-foot, .gs-toc, .gs-skip, .gs-sci-top img { display: none !important; }
  .gs, .gs-card, .gs-risks, .gs-notice, .gs-panel, .gs-study { background: #fff; color: #000; box-shadow: none; }
  .gs-risks a { color: #000; }
}
