/* Hallmark · shape: Stack of centred and split sections (/), Conversational FAQ (/support), Long Document (/privacy) · genre: atmospheric · theme: brand · redesign: full, refined pass
 * paper: oklch(15% 0.01 285) · accent: oklch(74.5% 0.135 289) · display: Outfit 300 · body: Inter · hero: Stage (/), Banner (/support, /privacy) · nav: edge-aligned on blur · footer: one row · signature: the log screen's row of gym holds, in the hero and again close up
 * axes: dark/geometric-sans/chromatic-violet · posture: restrained · contrast: pass · fold: pass · job: try · draw: b7d44a · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a calm product page; the pictures are the app's own cards cut to their edges, set at one height in a row, the type a step down so the space carries the page */
/* Hallmark · swapped hero Corridor for Stage · the job is try and the strongest material is the app's own screens, the user approved the hero proportion */
/* Hallmark · waive 79 · the stage is 720px tall and its two captures reach y 830 at 1440 x 900 · the measured foot is the copy column; the app screens fill the first screen beside it */
/* Hallmark · waive 44c · the hero captures are absolutely placed in a stage that spans y 110 to 830 · the copy column ends at 645 but the screens carry the first screen to its fold */
/* Hallmark · waive 78 · /privacy is a Long Document whose eight h2 are inline heads of the legal text at 20px · a policy reads as one continuous text and section-size heads would break it into posters */
/* Hallmark · waive 77 · the holds close up and the Pro table on / sit centred at 720 and 760px · the user found the full-width pictures too big and asked for a quieter, more spacious page */
/* Hallmark · dismissed 25 · .shot p and .trio p are one-line captions under a picture, 28ch and up is the caption measure */
/* Hallmark · dismissed 77 · /support and /privacy are documents, a contact block over an FAQ and a policy with its index, not landing strips */
/* Hallmark · dropped hold.png · the user asked to remove the large hold and use the app icon instead */
/* Hallmark · swapped nav slab for edge-aligned · three real destinations and the genre's blur licence */
/* Hallmark · swapped footer mast for one row · the user found the mast wordmark too big */
/* Hallmark · reworded "Logs the way your gym grades" to "Your gym’s colors, one tap each" · 19 and the swap test, the head names the gym colors only this app logs by */
/* Hallmark · reworded "Private by design" to "Private by design, on your iPhone" · the close panel carries the platform facts the try anatomy asks for */
/* Hallmark · dropped hold.png hero art and #features card grid · the six feature lines live on under #features as three captioned cards and three short columns */
@import url("./tokens.css");
@import url("./base.css");

:root { --display-weight: 300; --nav-h: 72px; --tracking-display: -0.025em; }
body { line-height: 1.6; }
.lead { color: var(--color-ink-2); }
small, .small { font-size: var(--text-sm); color: var(--color-muted); }

/* Two fixed blooms, the genre's one licence */
body {
  background:
    radial-gradient(40vmax 30vmax at 8% -6%, color-mix(in oklab, var(--color-accent) 11%, transparent), transparent 70%),
    radial-gradient(34vmax 26vmax at 96% 38%, color-mix(in oklab, var(--color-accent) 6%, transparent), transparent 70%),
    var(--color-paper);
  background-attachment: fixed;
}

/* Skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* Nav: edge-aligned, on blur */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: color-mix(in oklab, var(--color-paper) 72%, transparent); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-rule) 70%, transparent); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; font: 400 var(--text-lg)/1 var(--font-display); letter-spacing: -0.01em; border-radius: var(--space-xs); }
.brand img { width: 32px; height: 32px; border-radius: 22%; flex-shrink: 0; }
.nav-links { display: flex; gap: var(--space-xs); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); text-decoration: none; font-size: var(--text-md); transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.nav-links a:hover { color: var(--color-ink); background: var(--color-paper-2); }
.nav-links a:active { background: var(--color-paper-3); }
.nav-links a[aria-current="page"] { color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand:active { opacity: 0.8; }

/* Screens: the app's own captures, never in a device frame */
.screen { margin: 0; aspect-ratio: 900 / 1955; border-radius: var(--radius-screen); overflow: hidden; background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 9%, transparent); outline-offset: -1px; }
.screen img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: Stage (approved, geometry kept) */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-xl); }
.hero .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 2.4vw + 1.6rem, 4rem); line-height: 1.05; max-width: none; }
.hero .lead { margin-top: var(--space-lg); max-width: 28ch; }
.hero-actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.soon { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); white-space: nowrap; }
.stage { position: relative; height: min(76dvh, 720px); min-height: 520px; display: flex; justify-content: center; align-items: center; }
.stage .screen { position: absolute; height: 100%; }
.stage .back { height: 86%; transform: translateX(-52%) rotate(-4deg); }
.stage .front { transform: translateX(26%); }
@keyframes settle { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.stage .screen, .hero-copy > * { animation: settle 0.7s var(--ease-out) both; }
.stage .front { animation-delay: 80ms; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }

/* Sections: one gap after the hero, everywhere */
.section { padding-block: var(--section-gap) 0; }
.head { display: grid; gap: var(--space-sm); margin-bottom: var(--space-2xl); }
.head .lead { max-width: 46ch; }
.center .head { justify-items: center; text-align: center; }

/* Holds close up, centred */
.closeup { margin: 0 auto; max-width: 720px; border-radius: var(--radius-card); overflow: hidden; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; aspect-ratio: 1100 / 650; background: var(--color-paper-2); }
.closeup img { width: 100%; height: 100%; object-fit: cover; }
.facts { max-width: 720px; margin: var(--space-xl) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); text-align: center; }
.facts li { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.facts b { font-weight: 600; color: var(--color-ink); }
.facts span { color: var(--color-muted); }

/* Features: the app's cards, cut to their edges, one height in a row */
.gallery { display: flex; align-items: flex-start; gap: var(--gap-columns); }
.shot { flex: var(--a) 1 0; min-width: 0; container-type: inline-size; }
.crop { border-radius: 6.2cqi; overflow: hidden; }
.crop img { display: block; width: 100%; height: auto; }
.shot h3 { margin-top: var(--space-lg); }
.shot p, .trio p { margin-top: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 40ch; }
.trio { margin: var(--space-3xl) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.trio li { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }

/* Switcher: dark and light */
.switch .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.switch .head { margin-bottom: 0; }
.seg { justify-self: start; display: inline-flex; padding: var(--space-2xs); gap: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); margin-top: var(--space-lg); }
.seg button { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg button:hover { color: var(--color-ink); }
.seg button:active { background: var(--color-paper-3); }
.seg button[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-ink); }
.seg button:disabled { opacity: 0.55; cursor: not-allowed; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); max-width: 500px; justify-self: center; width: 100%; padding-bottom: var(--space-2xl); }
.pair .screen { position: relative; }
.pair .screen img { position: absolute; inset: 0; transition: opacity var(--dur-long) var(--ease-in-out); }
.pair .screen .light { opacity: 0; }
.switch[data-mode="light"] .pair .screen .light { opacity: 1; }
.pair .screen:nth-child(2) { translate: 0 var(--space-2xl); }

/* Pro: table, centred */
.pro-table { max-width: 760px; margin-inline: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th, td { text-align: left; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
thead th { font: 400 var(--text-sm)/1.2 var(--font-body); color: var(--color-muted); padding-block: 0 var(--space-sm); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--color-ink); width: 40%; }
td { color: var(--color-ink-2); }
td.pro-col { color: var(--color-ink); }
.note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); text-align: center; }

/* Close: one panel */
.panel { border-radius: 40px; background: var(--color-paper-2); padding: var(--space-3xl) var(--space-xl); color: var(--color-ink); display: grid; justify-items: center; text-align: center; }
.panel > img { width: 64px; height: 64px; border-radius: 22%; }
.panel h2 { margin-top: var(--space-lg); }
.needs { width: 100%; max-width: 720px; margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.needs dt { font-size: var(--text-sm); color: var(--color-muted); }
.needs dd { margin: var(--space-2xs) 0 0; color: var(--color-ink); font-size: var(--text-sm); }
.panel .soon { background: var(--color-paper-3); color: var(--color-ink); margin-top: var(--space-xl); }

/* Footer: one row */
.foot { padding-block: var(--section-gap) var(--space-xl); }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.foot .brand { font-size: var(--text-md); }
.foot .brand img { width: 28px; height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-sm); }
.foot nav a { color: var(--color-ink-2); text-decoration: none; border-radius: var(--space-2xs); }
.foot nav a:hover { color: var(--color-ink); text-decoration: underline; }
.foot nav a:active { color: var(--color-accent); }
.copy { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* Documents: support and privacy */
.doc-hero { padding-block: var(--space-3xl) var(--section-gap-s); }
.doc-hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.doc-hero h1 { font-size: var(--text-display); }
.doc-hero .lead { margin-top: var(--space-lg); }
.contact { border-radius: var(--radius-card); background: var(--color-paper-2); padding: var(--space-xl); display: grid; gap: var(--space-md); justify-items: start; }
.contact h2 { font-size: var(--text-title); }
.contact p { color: var(--color-ink-2); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: filter var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.mail { color: var(--color-ink-2); font-size: var(--text-sm); }

.faq .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.faq .head { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); margin: 0; }
.qa { border-top: var(--rule-hair) solid var(--color-rule); }
.qa details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 64px; padding-block: var(--space-md); font: 400 var(--text-title)/1.35 var(--font-display); color: var(--color-ink); border-radius: var(--space-xs); transition: color var(--dur-short) var(--ease-out); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 1.5px solid var(--color-muted); border-bottom: 1.5px solid var(--color-muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur-short) var(--ease-in-out); }
.qa details[open] summary::after { transform: rotate(225deg); }
.qa summary:hover { color: var(--color-accent); }
.qa summary:active { opacity: 0.8; }
.qa details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

.faq, .policy { padding-bottom: var(--space-lg); }
.policy .container { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-3xl); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.toc a { color: var(--color-muted); text-decoration: none; padding: var(--space-2xs) 0; border-radius: var(--space-2xs); }
.toc a:hover { color: var(--color-ink); }
.toc a:active { color: var(--color-accent); }
.prose { max-width: 68ch; }
.prose section { padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: var(--text-lg); font-weight: 400; margin-bottom: var(--space-md); }
.prose p { color: var(--color-ink-2); line-height: 1.7; }
.prose a { color: var(--color-accent); }
.prose a:hover { color: var(--color-ink); }
.prose a:active { opacity: 0.8; }
.summary { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-md); }
.summary li { font: 300 var(--text-lg)/1.4 var(--font-display); color: var(--color-ink); padding-left: var(--space-lg); border-left: 2px solid var(--color-accent); }
.date { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-md); }

/* One reveal for the page, visible without script */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-long) var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stage .screen, .hero-copy > * { animation: none; }
  .pair .screen img { transition: none; }
}

@media (max-width: 60rem) {
  :root { --nav-h: 64px; }
  .hero { min-height: 0; padding-block: var(--space-2xl) 0; }
  .hero .container, .switch .container, .doc-hero .container, .faq .container, .policy .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stage { height: 560px; min-height: 0; }
  .gallery { flex-direction: column; gap: var(--space-2xl); }
  .shot { flex: none; width: 100%; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-2xl); }
  .faq .head, .toc { position: static; }
  .toc { display: none; }
  .needs { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .pair { max-width: 420px; }
  .pair .screen:nth-child(2) { translate: 0 var(--space-xl); }
  .nav-links a { padding: 0 var(--space-sm); }
}
@media (max-width: 40rem) {
  .nav-links .wide { display: none; }
  .stage { height: 460px; }
  .stage .back { transform: translateX(-40%) rotate(-4deg); }
  .stage .front { transform: translateX(18%); }
  table { font-size: var(--text-md); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .panel { padding: var(--space-2xl) var(--space-lg); border-radius: var(--radius-card); }
}
