/* ============================================================
   Suta — marketing site
   The app has no custom palette: every color below is the web
   equivalent of a semantic SwiftUI color, with an explicit
   light AND dark value (outside SwiftUI nothing adapts for free).
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Backgrounds — systemBackground / secondarySystemGroupedBackground */
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --card: #f2f2f7;
  --card-elevated: #ffffff;

  /* Labels */
  --label: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.3);

  /* Separators */
  --separator: rgba(60, 60, 67, 0.18);
  --separator-opaque: #c6c6c8;

  /* Fills */
  --fill-tertiary: rgba(118, 118, 128, 0.12);
  --fill-quaternary: rgba(118, 118, 128, 0.08);

  /* Tint — empty AccentColor means system blue */
  --tint: #007aff;
  --tint-pressed: #0062cc;

  /* Status colors only — never brand */
  --orange: #ff9500;
  --green: #34c759;

  /* Chrome */
  --bar: rgba(255, 255, 255, 0.72);

  --radius-card: 20px;
  --radius-large: 28px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-grouped: #000000;
    --card: #1c1c1e;
    --card-elevated: #1c1c1e;

    --label: #ffffff;
    --label-secondary: rgba(235, 235, 245, 0.6);
    --label-tertiary: rgba(235, 235, 245, 0.3);

    --separator: rgba(84, 84, 88, 0.65);
    --separator-opaque: #38383a;

    --fill-tertiary: rgba(118, 118, 128, 0.24);
    --fill-quaternary: rgba(118, 118, 128, 0.18);

    --tint: #0a84ff;
    --tint-pressed: #409cff;

    --orange: #ff9f0a;
    --green: #30d158;

    --bar: rgba(20, 20, 22, 0.72);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: color-mix(in srgb, var(--tint) 22%, transparent); }

:focus-visible {
  outline: 3px solid var(--tint);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.wrap--narrow { max-width: 720px; }

section { padding: clamp(64px, 10vw, 128px) 0; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.nav__brand:hover { text-decoration: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav__links a {
  color: var(--label-secondary);
}

.nav__links a:hover {
  color: var(--label);
  text-decoration: none;
}

@media (max-width: 700px) {
  .nav__links { display: none; }
}

/* ---------- Wordmark ---------- */
/* The app icon itself. Its rounded corners and edge glow are baked into the
   PNG, so no border-radius here — clipping it would cut the glow off. */

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.mark--large {
  width: 96px;
  height: 96px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  background: var(--tint);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: var(--tint-pressed); text-decoration: none; }
.btn:active { transform: scale(0.975); }

.btn--small { padding: 8px 18px; font-size: 15px; }

/* Set appStoreURL in assets/config.js and this state disappears. */
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[aria-disabled="true"]:hover { background: var(--tint); }
.btn[aria-disabled="true"]:active { transform: none; }

.btn--secondary {
  background: var(--fill-tertiary);
  color: var(--tint);
}

.btn--secondary:hover { background: var(--fill-quaternary); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(44px, 8vw, 80px); }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -0.02em; line-height: 1.2; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--tint);
  margin: 0 0 14px;
  text-transform: none;
}

.lede {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.42;
  color: var(--label-secondary);
  letter-spacing: -0.015em;
}

.muted { color: var(--label-secondary); }

.footnote {
  font-size: 13px;
  line-height: 1.4;
  color: var(--label-tertiary);
}

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

.hero {
  text-align: center;
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: 0;
}

.hero .mark--large { margin: 0 auto 26px; }

.hero h1 { max-width: 14ch; margin: 0 auto; }

.hero .lede {
  max-width: 46ch;
  margin: 22px auto 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
}

.hero__note { margin-top: 16px; }

.hero__shot {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 296px;
}

/* ---------- Device frame ---------- */

.device {
  position: relative;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #d9d9de, #a8a8b0 45%, #e6e6ea);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.16),
    0 24px 60px -18px rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
  .device {
    background: linear-gradient(160deg, #4a4a50, #2a2a2e 45%, #55555c);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.6),
      0 24px 60px -18px rgba(0, 0, 0, 0.8);
  }
}

.device img {
  border-radius: 32px;
  width: 100%;
  height: auto;
  background: var(--bg);
}

/* ---------- Exercise strip ---------- */

.strip {
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 40px 0;
  margin-top: clamp(56px, 8vw, 96px);
}

.strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 14px;
  border-radius: 980px;
  background: var(--fill-tertiary);
  color: var(--label);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.chip svg { width: 22px; height: 22px; color: var(--label); flex: none; }

.strip__caption {
  text-align: center;
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--label-secondary);
}

/* ---------- Alternating feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.feature + .feature { margin-top: clamp(72px, 10vw, 136px); }

.feature--flip .feature__media { order: -1; }

.feature__media { max-width: 278px; justify-self: center; width: 100%; }

.feature__body h2 { margin-bottom: 20px; }

.feature__body p { color: var(--label-secondary); font-size: 19px; margin: 0 0 18px; }

.feature__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  color: var(--label-secondary);
}

.feature__list b { color: var(--label); font-weight: 600; }

.tick {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--tint);
  flex: none;
}

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { max-width: 250px; }
}

/* ---------- Rule-topped points (the no-gym row) ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
}

.points > div {
  border-top: 2px solid var(--tint);
  padding-top: 20px;
}

.points h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.points p {
  margin: 0;
  color: var(--label-secondary);
  font-size: 16px;
}

@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Section head ---------- */

.section-head {
  max-width: 620px;
  margin: 0 0 clamp(36px, 5vw, 60px);
}

.section-head--center {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p { color: var(--label-secondary); font-size: 19px; margin: 18px 0 0; }

/* ---------- Bento grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
}

.card h3 { margin-bottom: 10px; }

.card p { margin: 0; color: var(--label-secondary); font-size: 16px; }

.card__icon {
  width: 26px;
  height: 26px;
  color: var(--tint);
  margin-bottom: 16px;
}

.card--wide { grid-column: span 2; }

@media (max-width: 560px) { .card--wide { grid-column: span 1; } }

/* ---------- Streak row (rebuilt in HTML, not a screenshot) ---------- */

.streak {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 420px;
}

.streak__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.streak__title svg { width: 22px; height: 26px; color: var(--orange); flex: none; }

.streak__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tint);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.streak__badge svg { width: 17px; height: 17px; flex: none; }

/* ---------- Pricing ---------- */

.pricing {
  background: var(--card);
  border-radius: var(--radius-large);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

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

.pricing h2 { font-size: clamp(28px, 3.6vw, 40px); }

.plan__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--label-secondary);
  margin: 0 0 8px;
}

.plan__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.plan__rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 16px;
}

.plan__rows li:last-child { border-bottom: none; }

.plan__rows .lock, .plan__rows .free {
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.plan__rows .free { color: var(--green); }
.plan__rows .lock { color: var(--tint); }

.promise {
  border-left: 3px solid var(--tint);
  padding: 4px 0 4px 18px;
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--label);
}

/* ---------- Closing CTA ---------- */

.cta { text-align: center; }

.cta h2 { max-width: 16ch; margin: 0 auto 20px; }

.cta .lede { max-width: 44ch; margin: 0 auto 32px; }

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

.footer {
  border-top: 1px solid var(--separator);
  background: var(--bg-grouped);
  padding: 44px 0 56px;
  font-size: 14px;
  color: var(--label-secondary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  margin-bottom: 22px;
}

.footer__links a { color: var(--label-secondary); }
.footer__links a:hover { color: var(--label); }

.footer p { margin: 0 0 8px; }

/* ============================================================
   Legal documents (privacy.html / terms.html)
   ============================================================ */

.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }

.doc h1 { font-size: clamp(34px, 5.5vw, 52px); }

.doc__meta {
  margin: 18px 0 0;
  color: var(--label-secondary);
  font-size: 15px;
}

.doc__intro {
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--label-secondary);
}

.doc h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 52px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--separator);
}

.doc h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.doc p, .doc li { font-size: 17px; line-height: 1.6; }

.doc p { margin: 0 0 16px; }

.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }

.doc li { margin-bottom: 10px; }

.doc__callout {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 26px 0;
}

.doc__callout p:last-child { margin-bottom: 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

.doc th, .doc td {
  text-align: left;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--separator);
  vertical-align: top;
}

.doc th {
  font-weight: 600;
  font-size: 14px;
  color: var(--label-secondary);
}

.doc__toc {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  margin: 40px 0 0;
}

.doc__toc h2 {
  border: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--label-secondary);
  letter-spacing: 0;
}

.doc__toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 620px) { .doc__toc ol { columns: 1; } }

.doc__toc li { margin-bottom: 8px; font-size: 16px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  margin-bottom: 28px;
}

.back svg { width: 14px; height: 14px; }
