/* ENYO Workout Timer — the website's one stylesheet.
 *
 * Two themes, chosen by the visitor's system setting and nothing else: the light
 * palette is the app's white ground with its green, the dark one is the app's black
 * with the neon it wears on the Stage. Every colour below is a token, and the dark
 * block only redefines tokens, so nothing can end up with one theme's text on the
 * other theme's ground.
 *
 * No web fonts. On Apple devices `ui-rounded` is SF Pro Rounded, the face the app
 * itself is set in; elsewhere the system face stands in. It also keeps the site free
 * of third-party requests, which the privacy policy promises.
 */

:root {
  color-scheme: light dark;

  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-2: #e8f0ec;
  --ink: #07211c;
  --muted: #4a6660;
  --line: #d4e1dc;
  --accent: #00a184;
  --accent-strong: #007f68;
  --on-accent: #ffffff;
  --glow: rgba(0, 161, 132, 0.28);
  --glow-2: rgba(41, 235, 97, 0.14);
  --bezel: #0b1311;
  --bezel-edge: rgba(255, 255, 255, 0.08);
  --shadow: 0 40px 80px -30px rgba(7, 33, 28, 0.35);
  --header: rgba(243, 247, 245, 0.78);

  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wide: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #030807;
    --surface: #0b1613;
    --surface-2: #0e1f1a;
    --ink: #e8f3ef;
    --muted: #8db3a8;
    --line: #1a2e28;
    --accent: #2bd99b;
    --accent-strong: #29eb61;
    --on-accent: #03140f;
    --glow: rgba(31, 211, 154, 0.22);
    --glow-2: rgba(41, 235, 97, 0.10);
    --bezel: #000000;
    --bezel-edge: rgba(255, 255, 255, 0.10);
    --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    --header: rgba(3, 8, 7, 0.72);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 22px 0 0; }
.muted { color: var(--muted); }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-family: var(--display); font-weight: 900; letter-spacing: 0.24em; font-size: 0.95rem; }
.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks a { color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
/* The App Store button sits among the links and must keep its own colours. */
.navlinks a.btn, .navlinks a.btn:hover { color: var(--on-accent); }
@media (max-width: 820px) { .navlinks a.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; letter-spacing: 0.04em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.06); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { padding: 9px 16px; font-size: 0.85rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ── devices ────────────────────────────────────────────────────────────── */
/* Apple's own product bezels (Apple Design Resources, license accepted by the owner),
 * with the capture composited into the screen opening by Tools/website_bezels.py. The
 * guidelines forbid adding shadows, reflections or tilt to them, so nothing here does:
 * the image is shown as it is, at its own proportions. */
.phone, .tablet, .watch { position: relative; width: 100%; }
.phone img, .tablet img, .watch img { width: 100%; height: auto; }

/* ── the App Store badge ────────────────────────────────────────────────── */
/* Apple's artwork, untouched. 54 px tall (the minimum on screen is 40), and the
 * padding keeps a quarter of that height clear of everything around it. */
.store-badge { display: inline-block; padding: 14px; margin: -14px; line-height: 0; border-radius: 12px; }
.store-badge img { height: 54px; width: auto; }
/* In the header: the on-screen minimum of 40 px, with its quarter kept clear inside a
   64 px bar. */
.store-badge.small { padding: 10px; margin: -10px; }
.store-badge.small img { height: 40px; }
.legal { flex-basis: 100%; margin: 6px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted); opacity: 0.85; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(40px);
}
.hero::before {
  width: 820px; height: 620px; right: -160px; bottom: -260px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  animation: breathe 7s ease-in-out infinite;
}
.hero::after {
  width: 640px; height: 460px; right: 80px; top: -240px;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  animation: breathe 9s ease-in-out infinite reverse;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding-block: 88px 96px;
}
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.platforms {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 30px 0 0; padding: 0; list-style: none;
  font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero-device { justify-self: center; width: min(330px, 76vw); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px 72px; gap: 48px; }
}

/* ── sections ───────────────────────────────────────────────────────────── */
section { padding: 104px 0; }
section.band { background: var(--surface-2); }
.section-head { max-width: 42em; margin-bottom: 52px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
}

/* the eight timers */
.timers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .timers { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.timer img { width: 100%; aspect-ratio: 1; border-radius: 20px; box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5); }
.timer p { margin: 12px 2px 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }

/* workouts */
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.covers img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.names { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.names li {
  font-family: var(--display); font-weight: 800; font-size: 0.88rem;
  padding: 6px 13px; border-radius: 999px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.pair .stack { display: grid; gap: 18px; }
.pair .phone { max-width: 290px; justify-self: center; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }

.photo-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
}
.photo-card figcaption b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.photo-card figcaption span { font-size: 0.9rem; opacity: 0.85; }
.thematic { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 20px; align-items: center; }
.thematic .phone { max-width: 280px; justify-self: center; }
@media (max-width: 900px) { .thematic { grid-template-columns: 1fr 1fr; } .thematic .phone { grid-column: 1 / -1; } }
@media (max-width: 560px) { .thematic { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.features .icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent);
}
.features .icon svg { width: 22px; height: 22px; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); }

.tablet-wrap { max-width: 520px; justify-self: center; width: 100%; }
.phone-wrap { max-width: 320px; justify-self: center; width: 100%; }

/* watch */
/* The watch section stacks: three watches need the full width. */
.watch-layout { display: grid; gap: 56px; }

/* Each watch at least 200 px wide, the guidelines' minimum for a product image: three
   across where there is room, and only the one running the Stage on a phone. */
.watches { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 18px; max-width: 720px; justify-self: center; width: 100%; }
.watches .watch:nth-child(2) { transform: translateY(-26px); }
@media (max-width: 720px) {
  .watches { grid-template-columns: minmax(200px, 260px); justify-content: center; }
  .watches .watch:not(:nth-child(2)) { display: none; }
  .watches .watch:nth-child(2) { transform: none; }
}

/* everywhere */
.everywhere {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.everywhere div {
  background: var(--surface); border-radius: 20px; padding: 24px 22px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.everywhere b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.15rem; }
.everywhere span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .everywhere { grid-template-columns: repeat(2, 1fr); } }

/* privacy strip */
.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-radius: 24px; overflow: hidden; margin-top: 44px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.promise div { background: var(--surface); padding: 30px 28px; }
.promise b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 42em; }

.cta-band { text-align: center; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-band img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: var(--shadow); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* the privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 14px 0 34px; }
.doc .lede {
  font-size: 1.1rem; color: var(--ink); max-width: none; margin: 0 0 12px;
  background: var(--surface); border-radius: 18px; padding: 22px 24px;
  box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--accent);
}
.doc h2 { font-size: 1.45rem; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc p { margin: 0 0 14px; color: var(--muted); }
