/* Gridset, the room. "Ink and pencil": the app's own palette and type, a warm-black cover and one sheet of dot-grid
   paper. Ink is what you did and what you can press; pencil is the context. Dots count things. Sets line up like
   a ledger. One bold thing: the working session page in the hero. */
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/host-grotesk-latin.woff2') format('woff2'); }

:root {
  --ink: #2a2520;
  --paper: #ede8df;
  --raised: #f5f2ec;
  --pencil: #6f665c;
  --faint: #9d9488;
  --rule: #d6cec1;
  --well: #e0d9cd;
  --text: #3a342e;
  --on: #ede8df;
  --on-2: rgb(237 232 223 / 0.66);
  --on-3: rgb(237 232 223 / 0.44);
  --on-rule: rgb(237 232 223 / 0.14);
  --gut: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --font: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--on); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.gs-btn:focus-visible { outline-color: var(--on); }
.gs-phone :focus-visible, .gs-sheet :focus-visible { outline-color: var(--ink); }
[hidden] { display: none !important; }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The mark: the app icon's barbell in dots, today ringed */
.gs-mark .on { fill: currentColor; }
.gs-mark .off { fill: currentColor; opacity: 0.17; }
.gs-mark .ring { fill: none; stroke: currentColor; stroke-width: 9.2; }

/* ---------- The cover */
.gs-cover { background: var(--ink); background-image: radial-gradient(circle, rgb(237 232 223 / 0.06) 1px, transparent 1.4px); background-size: 24px 24px; background-position: 12px 12px; }
.gs-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1320px; margin: 0 auto; padding: 14px var(--gut); }
.world-exit { justify-self: start; font-size: 15px; font-weight: 500; color: var(--on-2); text-decoration: none; transition: color 160ms; }
.world-exit svg { width: 16px; height: 16px; stroke-width: 1.8; }
.world-lang { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--on-2); transition: color 160ms; }
@media (hover: hover) { .world-exit:hover, .world-lang:hover { color: var(--on); } }
.gs-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--on); }
.gs-brand .gs-mark { width: 26px; height: auto; }

.gs-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: clamp(40px, 7vw, 112px); align-items: center; max-width: 1320px; margin: 0 auto; padding: clamp(32px, 6vh, 72px) var(--gut) clamp(72px, 10vh, 120px); min-height: min(calc(100svh - 72px), 860px); }
.gs-hero__copy { max-width: 600px; }
.gs-pill-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border: 1px solid var(--on-rule); border-radius: 999px; font-size: 13px; color: var(--on-2); }
.gs-pill-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--on-2); }
.gs-hero h1 { margin-top: 28px; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -0.035em; color: var(--on); }
.gs-lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--on-2); }
.gs-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--on); color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; transition: transform 160ms var(--ease), background-color 160ms; }
@media (hover: hover) { .gs-btn:hover { background: #fff; } }
.gs-btn:active { transform: scale(0.97); }
.gs-small { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--on-3); }
.gs-hero__slip { justify-self: end; width: 100%; max-width: 420px; }
.gs-slip__how { margin-top: 10px; }

/* ---------- The session page, rebuilt (sizes are the app's points) */
.gs-slip { position: relative; }
.gs-phone { position: relative; overflow: hidden; padding: 10px 20px 34px; border-radius: 40px; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.3; box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(237 232 223 / 0.08); }
.gs-nav { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.gs-nav .i-back { width: 12px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-left: 4px; }
.gs-nav__r { display: flex; gap: 8px; }
.gs-nav__b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--raised); box-shadow: 0 4px 12px -4px rgb(42 37 32 / 0.18); }
.gs-nav__b .i-more { width: 18px; fill: var(--ink); }
.gs-nav__b--ink { background: var(--ink); }
.gs-nav__b--ink .i-check { width: 15px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gs-title { margin-top: 8px; font-size: 32px; font-weight: 500; line-height: 36px; letter-spacing: -1.2px; }
.gs-meta { font-size: 15px; color: var(--pencil); }
.gs-faint { margin-top: 3px; font-size: 15px; color: var(--faint); }
.gs-ex { margin-top: 26px; margin-bottom: 8px; }
.gs-ex__name { font-size: 21px; font-weight: 500; letter-spacing: -0.35px; }
.gs-ex__muscles { margin-top: 3px; font-size: 15px; color: var(--pencil); }
.gs-ex__last { margin-top: 3px; font-size: 15px; color: var(--pencil); }
.gs-ex__last b { font-weight: 500; margin-right: 0.4em; }
.gs-ex__last span { margin-left: 0.75em; white-space: nowrap; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: text-decoration-color 300ms var(--ease), color 300ms; }
.gs-ex__last span.is-source { color: var(--ink); text-decoration-color: var(--pencil); }

.gs-row { display: flex; align-items: baseline; min-height: 30px; font-size: 19px; font-weight: 500; white-space: nowrap; }
.gs-dash { flex: 0 0 20px; font-size: 17px; font-weight: 400; color: var(--faint); }
.gs-dash--ink { color: var(--ink); }
.gs-w { flex: 0 0 60px; text-align: right; }
.gs-x { flex: 0 0 28px; text-align: center; font-size: 15px; font-weight: 400; color: var(--faint); }
.gs-r { flex: 0 0 68px; }
.gs-rir { flex: 0 0 46px; font-size: 13px; font-weight: 400; color: var(--pencil); }
.gs-rir b { display: inline-block; width: 18px; margin-right: 5px; text-align: center; font-size: 19px; font-weight: 500; color: var(--pencil); }
.gs-sp { flex: 1 1 0; min-width: 6px; }

/* the rest, written in the gap between two lines, just past RIR */
.gs-gap { position: relative; height: 15px; }
.gs-gap__v { position: absolute; left: 234px; top: 0; font-size: 13px; line-height: 15px; color: var(--pencil); }

/* the pencilled line: values in wells, the ✓ in ink */
.gs-row--draft { align-items: center; min-height: 40px; margin-top: 6px; }
.gs-well { position: relative; display: inline-flex; align-items: baseline; }
.gs-well::before { content: ''; position: absolute; inset: -4px -6px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow 150ms var(--ease); }
.gs-well:focus-within::before { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gs-well > * { position: relative; }
.gs-well input, .gs-well select { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; outline: none; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 26px; height: 26px; font-variant-numeric: tabular-nums; }
.gs-well--w { flex: 0 0 60px; }
.gs-well--w input { width: 60px; text-align: right; caret-color: var(--ink); }
.gs-well--w input::placeholder { color: var(--pencil); }
.gs-cell-r { flex: 0 0 68px; }
.gs-well--r select { width: 46px; cursor: pointer; }
.gs-well--rir { flex: 0 0 46px; }
.gs-well--rir select { width: 18px; text-align: center; text-align-last: center; cursor: pointer; }
.gs-well--rir small { margin-left: 5px; font-size: 13px; color: var(--pencil); }
.gs-log { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); transition: transform 180ms var(--ease), background-color 150ms; }
.gs-log .i-check { width: 15px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gs-log:active { transform: scale(0.94); }
.gs-log:disabled { background: var(--well); cursor: default; }
.gs-log:disabled .i-check { stroke: var(--faint); }
.gs-next { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 21px; font-weight: 500; letter-spacing: -0.35px; color: var(--pencil); }
.gs-next .i-plus { width: 14px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }

/* pencilling in: each value appears as if written, left to right */
@keyframes gs-write { from { opacity: 0; transform: translateY(4px); } }
@keyframes gs-ink { from { opacity: 0.35; } }
@media (prefers-reduced-motion: no-preference) {
  .gs-row--draft.is-new .gs-well, .gs-row--draft.is-new .gs-log { animation: gs-write 420ms var(--ease) both; }
  .gs-row--draft.is-new .gs-well--w { animation-delay: 40ms; }
  .gs-row--draft.is-new .gs-cell-r .gs-well { animation-delay: 150ms; }
  .gs-row--draft.is-new .gs-well--rir { animation-delay: 260ms; }
  .gs-row--draft.is-new .gs-log { animation-delay: 360ms; }
  .gs-set.is-new .gs-row { animation: gs-ink 520ms var(--ease) both; }
}

/* the first visit: the held rest, then the pencilled values, then why, one after another */
@media (prefers-reduced-motion: no-preference) {
  .gs-slip.is-intro { --intro: 380ms; }
  html.is-arriving .gs-slip.is-intro { --intro: 980ms; }
  .gs-slip.is-intro .gs-well, .gs-slip.is-intro .gs-log { animation: gs-write 560ms var(--ease) both; animation-delay: var(--intro); }
  .gs-slip.is-intro .gs-well--w { animation-delay: calc(var(--intro) + 260ms); }
  .gs-slip.is-intro .gs-cell-r .gs-well { animation-delay: calc(var(--intro) + 400ms); }
  .gs-slip.is-intro .gs-well--rir { animation-delay: calc(var(--intro) + 540ms); }
  .gs-slip.is-intro .gs-log { animation-delay: calc(var(--intro) + 680ms); }
}

/* ---------- The sheet: one page of dot-grid paper */
.gs-sheet { position: relative; margin: 0 clamp(8px, 1.2vw, 18px); border-radius: clamp(28px, 3vw, 48px); background-color: var(--paper); background-image: radial-gradient(circle, rgb(42 37 32 / 0.12) 1px, transparent 1.45px); background-size: 24px 24px; background-position: 12px 12px; color: var(--ink); padding-bottom: clamp(88px, 11vw, 150px); }
.gs-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 112px); align-items: center; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(88px, 12vw, 168px) var(--gut) 0; }
.gs-sec--flip > .gs-sec__text { order: 2; }
.gs-sec--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.gs-sec h2 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.gs-sec__text { max-width: 30em; }
.gs-sec__text h2 { margin-bottom: 20px; }
.gs-num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 22px; border-radius: 50%; background: var(--ink); color: var(--paper) !important; font-size: 14px; font-weight: 500; }
.gs-quiet { font-size: 15px; color: var(--pencil) !important; }
:where(.gs-sec) p { color: var(--text); }
:where(.gs-sec) p + p { margin-top: 1em; }
.gs-label { font-size: 13px; color: var(--pencil); }

.gs-origin__art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; border-radius: 30px; background: var(--paper); box-shadow: 0 30px 70px -36px rgb(42 37 32 / 0.35), 0 0 0 1px rgb(42 37 32 / 0.06); overflow: hidden; }
.gs-notes, .gs-ledger { padding: 26px 24px 30px; }
.gs-notes { background: #fbf9f5; border-right: 1px solid var(--rule); }
.gs-notes pre { margin-top: 14px; font: 400 15px/1.75 var(--font); font-feature-settings: 'calt' 0; color: var(--ink); white-space: pre-wrap; }
.gs-ledger .gs-label { display: block; margin-bottom: 14px; }
.gs-ledger .gs-row { font-size: 18px; }
.gs-ledger .gs-ex__name { font-size: 19px; }
.gs-ledger .gs-ex__muscles { margin-bottom: 10px; }

/* 2: one exercise, its two charts */
.gs-chart { padding: 28px 26px 26px; border-radius: 30px; background: var(--paper); box-shadow: 0 30px 70px -36px rgb(42 37 32 / 0.35), 0 0 0 1px rgb(42 37 32 / 0.06); }
.gs-chart__ex { font-size: 21px; font-weight: 500; letter-spacing: -0.35px; color: var(--ink); }
.gs-chart__block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.gs-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px !important; }
.gs-chart__head span { font-size: 15px; color: var(--pencil); }
.gs-chart__head b { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.gs-chart__svg { width: 100%; height: auto; overflow: visible; }
.gs-chart__grid { fill: none; stroke: var(--rule); stroke-width: 1; }
.gs-chart__band { fill: var(--rule); opacity: 0.6; }
.gs-chart__trend { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.gs-chart__dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.gs-chart__bar { fill: var(--faint); }
.gs-chart__bar.is-last { fill: var(--ink); }

/* 3: the export, as its screen shows it */
.gs-export { padding: 22px 22px 22px; border-radius: 30px; background: var(--paper); box-shadow: 0 30px 70px -36px rgb(42 37 32 / 0.35), 0 0 0 1px rgb(42 37 32 / 0.06); }
.gs-seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--pencil); }
.gs-seg span { padding: 6px 14px; border-radius: 999px; }
.gs-seg .is-on { background: var(--ink); color: var(--paper); }
.gs-file { position: relative; margin-top: 18px; font-size: 14px; line-height: 1.55; }
.gs-file p { margin: 0 !important; color: var(--text); overflow-wrap: anywhere; }
.gs-file p.h { margin-top: 10px !important; font-weight: 600; color: var(--ink); }
.gs-file p.h:first-child { margin-top: 0 !important; }
.gs-export__acts { display: flex; gap: 10px; margin-top: 22px; }
.gs-copy { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; border-radius: 26px; background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 500; }
.gs-share { flex: 0 0 52px; display: grid; place-items: center; height: 52px; border-radius: 50%; background: var(--raised); box-shadow: 0 4px 12px -4px rgb(42 37 32 / 0.18); }
.i-copy { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.i-share { width: 15px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ: a closed question is an empty dot, an open one is inked */
.gs-faq { display: block; }
.gs-faq h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.gs-faq__list { max-width: 880px; }
.gs-faq details { border-top: 1px solid var(--rule); }
.gs-faq details:last-child { border-bottom: 1px solid var(--rule); }
.gs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.gs-faq summary::-webkit-details-marker { display: none; }
.gs-faq summary h3 { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; letter-spacing: -0.01em; }
.gs-faq__dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--rule); transition: background-color 200ms var(--ease), transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.gs-faq details[open] .gs-faq__dot { background: var(--ink); transform: scale(1.15); }
@media (hover: hover) { .gs-faq summary:hover .gs-faq__dot { box-shadow: 0 0 0 5px rgb(42 37 32 / 0.06); } }
.gs-faq details p { max-width: 44em; padding: 0 0 24px; font-size: 17px; }

/* ---------- The end, back on the cover */
.gs-end { max-width: 880px; margin: 0 auto; padding: clamp(96px, 13vw, 170px) var(--gut) clamp(72px, 9vw, 110px); text-align: center; }
.gs-mark--big { width: 96px; height: auto; margin: 0 auto 36px; color: var(--on); }
.gs-end h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; color: var(--on); }
.gs-end .gs-lead { margin: 24px auto 0; }
.gs-end .gs-cta { justify-content: center; }
.world-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; max-width: 1320px; margin: 0 auto; padding: 24px var(--gut) 56px; border-top: 1px solid var(--on-rule); font-size: 14px; color: var(--on-3); }
.world-colophon a { color: var(--on-2); text-underline-offset: 3px; text-decoration-color: var(--on-3); }
.world-colophon nav a { display: inline-block; padding: 4px 0; }

/* ---------- Narrower screens */
@media (max-width: 1060px) {
  .gs-sec, .gs-sec--flip { grid-template-columns: minmax(0, 1fr); }
  .gs-sec--flip > .gs-sec__text { order: 0; }
  .gs-chart, .gs-export, .gs-origin__art { max-width: 560px; }
  .gs-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 28px; }
  .gs-hero__slip { justify-self: start; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .gs-top { padding-top: 8px; padding-bottom: 8px; }
  .world-exit span { font-size: 15px; }
  .gs-brand { font-size: 16px; }
  .gs-hero h1 { margin-top: 22px; }
  .gs-lead { margin-top: 22px; }
  .gs-cta { margin-top: 28px; }
  .gs-btn { width: 100%; }
  .gs-phone { padding-left: 16px; padding-right: 16px; border-radius: 34px; }
  .gs-origin__art { grid-template-columns: minmax(0, 1fr); }
  .gs-notes { border-right: 0; border-bottom: 1px solid var(--rule); }
  .world-colophon { padding-bottom: 40px; }
}
@media (max-width: 380px) {
  .gs-gap__v { left: 222px; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-faq__dot, .gs-well::before { transition: none !important; }
}
