/* Try — marketing site, Direction A (native black).
 *
 * Every colour, radius and font here comes from tokens.css. The one exception
 * is layout geometry (widths, gaps), which the brand package deliberately does
 * not tokenise — the reference width is ~940px content.
 *
 * Rules inherited from brand-brief.md and voice.md that are easy to break later:
 *   - Swim cyan is the ONLY brand colour. The other discipline colours appear
 *     exclusively inside product surfaces (the watch mock, the week view).
 *   - --try-work (#FF6B36) is never a CTA. Inside the app it means "work
 *     interval", and reusing it for marketing would teach the wrong thing.
 *   - Colour is never the only signal: every day chip carries a label and a
 *     status word as well as its dot.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--try-black);
  color: var(--try-text);
  font-family: var(--try-font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--try-cyan); }

/* ---- Layout ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  /* `padding-inline`, deliberately, not the `padding` shorthand. Most sections
   * carry both `.wrap` and `section`, and a shorthand here would set
   * block padding to zero — a class selector outranks the `section` element
   * selector, so it silently wins and every section collapses. */
  padding-inline: 24px;
}

section { padding: 96px 0; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

/* A hairline between sections, not a box. Keeps the page one surface. */
section + section { border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---- Type ------------------------------------------------------------ */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--try-text-3);
  margin: 0 0 20px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.35; }

/* Newsreader carries the coach's full sentences — the voice the app uses when
 * it explains itself, as opposed to the UI voice. */
.serif {
  font-family: var(--try-font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--try-text-2);
  max-width: 34em;
  margin: 24px 0 0;
}

.note {
  font-size: 15px;
  color: var(--try-text-3);
  margin: 16px 0 0;
}

.accent { color: var(--try-cyan); }

/* ---- Nav ------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.lockup { display: flex; align-items: center; gap: 12px; }
.lockup img { width: 30px; height: 30px; display: block; }

.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qualifier { font-size: 14px; color: var(--try-text-3); }

/* The lockup's qualifier is redundant once the page itself is on screen, and
 * on a narrow viewport it clips against the edge. The mark and wordmark carry
 * the identity on their own. */
@media (max-width: 480px) {
  .qualifier { display: none; }
}

/* ---- Hero ------------------------------------------------------------ */

.hero { padding-top: 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.action {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 24px;
  border: 1px solid rgba(61, 199, 235, .45);
  border-radius: var(--try-r-pill);
  color: var(--try-cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background-color .2s ease, border-color .2s ease;
}

.action:hover, .action:focus-visible {
  background: rgba(61, 199, 235, .1);
  border-color: var(--try-cyan);
}

/* ---- The watch mock -------------------------------------------------- */
/* Rendered rather than screenshotted so it stays true if the app's three
 * items ever change. It shows exactly what the app shows mid-workout: block
 * name, time remaining, heart rate. Nothing else — that restraint is the
 * product claim, so the mock must not quietly add a fourth thing. */

.watch-stage { display: flex; justify-content: center; position: relative; }

/* The ambient cyan glow. Decorative only. */
.watch-stage::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 199, 235, .22), transparent 68%);
  filter: blur(14px);
  z-index: 0;
}

.watch {
  position: relative;
  z-index: 1;
  width: 224px;
  background: var(--try-black);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 44px;
  padding: 30px 22px 26px;
  text-align: center;
}

.watch-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--try-swim);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.watch-metric {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 14px 0 4px;
}

.watch-hr {
  font-size: 16px;
  color: var(--try-text-2);
  font-variant-numeric: tabular-nums;
}

.watch-bar {
  margin-top: 22px;
  height: 5px;
  border-radius: var(--try-r-pill);
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.watch-bar span { display: block; height: 100%; width: 64%; background: var(--try-cyan); border-radius: inherit; }

.caption {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--try-text-3);
  text-align: center;
}

/* ---- The loop -------------------------------------------------------- */

.loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop li { display: flex; align-items: center; gap: 14px; }

.loop b {
  font-weight: 500;
  font-size: clamp(16px, 2vw, 19px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--try-r-md);
  white-space: nowrap;
}

.loop .arrow { color: var(--try-cyan); font-size: 16px; }

/* ---- The week -------------------------------------------------------- */

.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--try-cyan);
  border: 1px solid rgba(61, 199, 235, .4);
  border-radius: var(--try-r-pill);
  padding: 6px 14px;
}

.week { margin: 32px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }

.day {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 560px) {
  .day { grid-template-columns: 44px 1fr; }
  .day .status { grid-column: 2; justify-self: start; }
}

.day-name { font-size: 14px; color: var(--try-text-3); font-weight: 500; }

.day-what { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.day-discipline { font-weight: 500; }
.day-detail { font-size: 15px; color: var(--try-text-3); }

/* Status is a word, never a colour alone. */
.status { font-size: 14px; color: var(--try-text-3); }
.status.done { color: var(--try-complete); }
.status.today { color: var(--try-cyan); font-weight: 500; }

.purpose {
  margin: 32px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--try-r-md);
  font-size: 17px;
  line-height: 1.6;
  color: var(--try-text-2);
}

.purpose b { color: var(--try-text); font-family: var(--try-font-ui); font-weight: 600; }

/* ---- Why less -------------------------------------------------------- */

.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }

@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }

.reason p { margin: 10px 0 0; color: var(--try-text-2); font-size: 16px; }

/* The example strings are the app's own words. Shown in the app's register —
 * mono-ish spacing, quiet border — so they read as quotations, not claims. */
.example {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--try-r-sm);
  background: rgba(255, 255, 255, .04);
  font-size: 15px;
  color: var(--try-text);
}

/* ---- Footer ---------------------------------------------------------- */

.footer { padding: 80px 0 96px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-line { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.25; margin: 28px 0 0; }
.footer-sub { max-width: 40em; margin: 20px 0 0; color: var(--try-text-2); font-size: 16px; }
.footer-lockup { margin: 40px 0 0; font-size: 14px; color: var(--try-text-3); }
.footer-lockup a { color: var(--try-text-3); }

/* ---- Motion ---------------------------------------------------------- */
/* One orchestrated load on the hero, then nothing that demands attention. */

.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .3, 1) forwards; }
.rise:nth-child(1) { animation-delay: .05s; }
.rise:nth-child(2) { animation-delay: .14s; }
.rise:nth-child(3) { animation-delay: .23s; }
.rise:nth-child(4) { animation-delay: .32s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Focus ----------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--try-cyan); outline-offset: 3px; border-radius: var(--try-r-sm); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--try-cyan);
  color: var(--try-black);
  border-radius: var(--try-r-sm);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Prose (privacy page) -------------------------------------------- */

.prose { max-width: 40em; padding: 24px 0 96px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { color: var(--try-text-2); }
.prose li { margin: 6px 0; }
/* The table scrolls inside its own container rather than squeezing three
 * columns into a phone width, where every heading wraps to three lines. The
 * page body itself must never scroll sideways. */
.table-scroll { overflow-x: auto; margin: 20px 0; }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.prose th { color: var(--try-text); font-weight: 600; }
.prose strong { color: var(--try-text); }
.back { display: inline-block; margin-top: 8px; font-size: 15px; text-decoration: none; }
