/* Gymini, the Poster look (Docs/apps/gymini-style-card.md). Dark only, like the app.
   Charcoal ground, one chartreuse signal, Archivo expanded for display, system text for reading.
   Mobile first: the base rules are the 390 point phone; wider screens add columns. */

:root {
  --ground: #0B0C0B;
  --surface: #151715;
  --raised: #1C1F1C;
  --line: rgba(255, 255, 255, 0.12);
  --text: #F2F3EE;
  --text-2: #B7BDB1;
  --text-3: #9AA094;
  --accent: #D5E24A;
  --on-accent: #1E2405;
  --clay: #D08258;
  --ahead: rgba(255, 255, 255, 0.3);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
  font-family: var(--display);
  font-stretch: expanded;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.kicker {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.kicker.dim { color: var(--text-2); }
.numeral {
  font-family: var(--display);
  font-stretch: expanded;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  letter-spacing: -0.03em;
  margin: 0;
}
.lead { color: var(--text-2); font-size: 18px; line-height: 1.5; margin: 0; max-width: 34em; }

/* The strip: thin pills, lit for what is done, dim for what is ahead, clay dots for the gaps */
.strip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.strip li { height: 5px; flex: 1 1 0; border-radius: 3px; background: var(--ahead); }
.strip li.lit { background: var(--accent); }
.strip li.gap { flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--clay); }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.mark span { font-family: var(--display); font-stretch: expanded; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.top .free {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); padding: 6px 12px; border-radius: 999px;
}

/* Hero: the figure full bleed under the veil, the minutes on top, then the face itself */
.hero { position: relative; isolation: isolate; padding-top: 72px; overflow: clip; }
.hero-figure {
  position: absolute; z-index: -1; top: 0; right: -14%;
  width: 104%; max-width: none; height: auto;
  opacity: 0.92;
  /* the render's own backdrop is a shade lighter than the ground, so its edges fade out */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 55%, transparent 97%), linear-gradient(90deg, transparent 2%, #000 30%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 55%, transparent 97%), linear-gradient(90deg, transparent 2%, #000 30%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.hero::before {
  /* the veil: transparent at the top to the ground at about 72 percent */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(90deg, var(--ground) 0%, rgba(11, 12, 11, 0.55) 38%, rgba(11, 12, 11, 0) 70%),
    linear-gradient(180deg, rgba(11, 12, 11, 0) 0%, rgba(11, 12, 11, 0.2) 34%, var(--ground) 62%);
}
.hero-grid { display: grid; gap: 40px; padding-bottom: 72px; }
.hero-copy { display: grid; gap: 18px; padding-top: 28px; }
.hero .numeral { font-size: clamp(190px, 62vw, 330px); color: var(--accent); margin-left: -0.04em; }
.hero h1 { font-size: clamp(34px, 9vw, 60px); max-width: 12em; }
.hero .lead { font-size: 19px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.facts li {
  font-size: 14px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line); background: rgba(21, 23, 21, 0.72);
  padding: 7px 12px; border-radius: 999px;
}

/* The App Store badge, greyed until the free version is on the store */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 52px; width: auto; }
.badge.pending { filter: grayscale(1); opacity: 0.45; cursor: default; }
.get .note { font-size: 14px; color: var(--text-3); margin: 0; }

/* A real capture, at its own proportions, with a hairline and the one soft glow beneath */
.device {
  position: relative; margin: 0;
  border-radius: 44px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.device img { width: 100%; }
.device.ipad { border-radius: 26px; }
.glow { position: relative; }
.glow::after {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 8%; height: 40%;
  background: radial-gradient(closest-side, rgba(213, 226, 74, 0.22), rgba(213, 226, 74, 0));
  filter: blur(30px);
}
.hero-device { width: min(78vw, 360px); justify-self: center; }

figcaption, .cap { font-size: 14px; color: var(--text-3); margin-top: 12px; line-height: 1.4; }

/* Sections */
section.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band .strip { max-width: 220px; margin-bottom: 26px; }
.band h2 { font-size: clamp(32px, 8.4vw, 64px); margin: 12px 0 18px; }
.band p { margin: 0 0 14px; }
.three { font-size: clamp(20px, 5.2vw, 28px); line-height: 1.38; color: var(--text); max-width: 30em; }
.three span { color: var(--text-2); }

/* Two captures side by side: a swipeable row of big phones on a phone, a staggered pair wider up */
.pair, .keeps-shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 40px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px;
  scrollbar-width: thin; scrollbar-color: var(--raised) transparent;
}
.pair figure, .keeps-shots figure { scroll-snap-align: start; }
.pair .device, .keeps-shots .device { border-radius: 34px; }

.split { display: grid; gap: 44px; }

/* Free */
.free-grid { display: grid; gap: 34px; }
.free-numeral { display: grid; gap: 10px; align-content: start; }
.free-numeral .numeral { font-size: clamp(170px, 50vw, 300px); color: var(--accent); }
.ledger { border-top: 1px solid var(--line); margin: 6px 0 22px; }
.ledger div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px;
}
.ledger div span:first-child { color: var(--text-2); }
.ledger div span:last-child { font-weight: 600; }
.ledger div.hot span:last-child { color: var(--accent); }
.story { color: var(--text-2); max-width: 34em; }

/* The figure strip */
.figures {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 36px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px;
  scrollbar-width: thin; scrollbar-color: var(--raised) transparent;
}
.figures figure { margin: 0; scroll-snap-align: start; }
.figures img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: var(--surface);
}
.figures figcaption { display: grid; gap: 2px; margin-top: 10px; }
.figures figcaption b { font-family: var(--display); font-stretch: expanded; font-weight: 600; font-size: 17px; color: var(--text); }

/* What it keeps */
.keeps { display: grid; gap: 40px; margin-top: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.rows b { font-weight: 600; font-size: 18px; }
.rows span { color: var(--text-2); }
.rows .on { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* Closing poster */
.closer { text-align: left; }
.closer .numeral { font-size: clamp(120px, 34vw, 220px); color: var(--accent); }
.closer h2 { max-width: 13em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--text-3); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; }
footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--accent); }
footer p { margin: 0 0 10px; max-width: 46em; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 96px var(--gutter) 72px; }
.legal h1 { font-size: clamp(36px, 9vw, 56px); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); margin: 0 0 30px; font-size: 15px; }
.legal h2 { font-family: var(--display); font-stretch: expanded; font-weight: 600; font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .short {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px; color: var(--text); margin: 0 0 8px;
}
.legal .back { display: inline-block; margin-top: 36px; color: var(--accent); text-decoration: none; font-weight: 600; }
.legal-top { position: absolute; inset: 0 0 auto 0; padding: 18px var(--gutter); max-width: 720px; margin: 0 auto; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .figures { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 40px 0 0; padding: 0; }
  .pair, .keeps-shots {
    grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto;
    overflow: visible; margin: 40px 0 0; padding: 0; gap: 22px; max-width: 760px;
  }
  .pair .device, .keeps-shots .device { border-radius: 30px; }
  .pair figure:nth-child(2), .keeps-shots figure:nth-child(2) { margin-top: 48px; }
}

@media (min-width: 980px) {
  .hero { padding-top: 96px; min-height: 860px; }
  .hero-figure { left: 34%; right: auto; top: -2%; width: 46%; max-width: 640px; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--ground) 0%, var(--ground) 28%, rgba(11, 12, 11, 0.35) 46%, rgba(11, 12, 11, 0) 60%),
      linear-gradient(180deg, rgba(11, 12, 11, 0) 0%, rgba(11, 12, 11, 0) 60%, var(--ground) 96%);
  }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; padding-bottom: 96px; }
  .hero .numeral { font-size: 300px; }
  .hero-device { width: 330px; justify-self: end; margin-top: 120px; }
  section.band { padding: 112px 0; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .pair { margin-top: 0; }
  .free-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .figures { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .keeps { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  .badge, footer nav a { transition: color 0.2s ease, opacity 0.2s ease; }
}
