/* WorkoutMe — shared styles
   Brand: cream #F5F2EE, navy #1B2B4D, gold #D4A853, DM Sans.
   Editorial, restrained. The gold sparkle is the app's AI indicator. */

:root {
  --cream:       #F5F2EE;
  --cream-deep:  #EDE7DF;
  --cream-line:  #E4DCD0;
  --paper:       #FFFFFF;
  --navy:        #1B2B4D;
  --navy-soft:   #33456B;
  --navy-ink:    #14213D;
  --gold:        #D4A853;
  --gold-deep:   #B98C38;
  --ink:         #1B2B4D;
  --muted:       #5A6480;
  --muted-soft:  #8A93AC;
  --rule:        #DDD4C8;
  --shadow:      0 1px 2px rgba(27,43,77,.05), 0 12px 32px -12px rgba(27,43,77,.16);
  --shadow-soft: 0 1px 3px rgba(27,43,77,.06);
  --maxw-wide:   70rem;
  --maxw-doc:    42rem;
  --ease:        cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Signature: a faint warm light in the upper corner, quiet grid nowhere else */
  background-image:
    radial-gradient(120% 90% at 88% -10%, rgba(212,168,83,.14), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(27,43,77,.05), transparent 60%);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Links & focus ---------- */
a { color: var(--navy); text-decoration: none; }
.prose a, .doc a { border-bottom: 1px solid var(--gold); }
.prose a:hover, .doc a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: var(--cream);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  z-index: 20; transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared shell ---------- */
.site-head,
.hero,
.strip,
.closing,
.site-foot { max-width: var(--maxw-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ================= Header ================= */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); }
.brand__mark { width: 22px; height: 22px; color: var(--gold); }
.brand__name { font-weight: 700; letter-spacing: -.01em; font-size: 1.12rem; }
.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--navy); background: var(--cream-deep);
  border: 1px solid var(--cream-line);
  padding: .4rem .75rem; border-radius: 100px; white-space: nowrap;
}

/* ================= Hero ================= */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1.4rem;
}

.display {
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  letter-spacing: -.032em;
  line-height: 1.02;
  margin: 0 0 1.5rem;
  color: var(--navy-ink);
  text-wrap: balance;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  max-width: 34rem;
  margin: 0 0 2.4rem;
}

.hero__meta {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .1rem;
  border-top: 1px solid var(--rule);
}
.hero__meta li {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--rule);
  font-size: .98rem; font-weight: 500; color: var(--navy);
}
.hero__meta .idx {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  color: var(--gold-deep); min-width: 1.5rem;
}

/* ---------- The transformation (signature) ---------- */
.transform {
  display: grid;
  justify-items: stretch;
  gap: 0;
  max-width: 25rem;
  width: 100%;
  margin-inline: auto;
}

.panel {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.2rem;
}
.panel__kicker {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .66rem; font-weight: 700; color: var(--muted-soft);
  margin: 0 0 .8rem;
}

/* Source clip */
.clip { display: grid; gap: .85rem; }
.clip__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  background:
    radial-gradient(120% 120% at 30% 20%, #2A3E68 0%, #1B2B4D 55%, #101B33 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.clip__thumb::after { /* subtle sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(212,168,83,.16), transparent 42%);
}
.clip__play {
  width: 44px; height: 44px; color: var(--cream);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%; padding: 11px 9px 11px 13px;
  backdrop-filter: blur(2px);
}
.clip__platform, .clip__time {
  position: absolute; font-size: .68rem; font-weight: 600;
  color: var(--cream); background: rgba(16,27,51,.6);
  padding: .18rem .5rem; border-radius: 100px;
  backdrop-filter: blur(2px);
}
.clip__platform { top: .6rem; left: .6rem; }
.clip__time { bottom: .6rem; right: .6rem; font-variant-numeric: tabular-nums; }
.clip__caption { margin: 0; font-size: .92rem; font-weight: 500; color: var(--navy); }
.clip__url {
  margin: .2rem 0 0; font-size: .8rem; color: var(--muted-soft);
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* The spine that connects source → result */
.spine {
  display: grid; justify-items: center; gap: .5rem;
  padding: .55rem 0;
}
.spine__line { width: 2px; height: 16px; background: linear-gradient(var(--rule), var(--gold)); }
.spine__line:last-child { background: linear-gradient(var(--gold), var(--rule)); }
.spine__node {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  box-shadow: 0 6px 18px -6px rgba(27,43,77,.5), 0 0 0 6px rgba(212,168,83,.12);
}
.spine__spark { width: 20px; height: 20px; }
.spine__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-deep);
}

/* Structured workout result */
.panel--result { border-color: #E7DCC6; box-shadow: var(--shadow), 0 0 0 1px rgba(212,168,83,.08); }
.workout__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; margin-bottom: .9rem;
}
.workout__title {
  margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em;
  color: var(--navy-ink); line-height: 1.2;
}
.workout__stat { margin: 0; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.workout__list { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: ex; }
.workout__list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-top: 1px solid var(--cream-line);
}
.workout__list li::before {
  counter-increment: ex; content: counter(ex);
  font-size: .72rem; font-weight: 700; color: var(--gold-deep);
  font-variant-numeric: tabular-nums; margin-right: -.5rem; min-width: 1.1rem;
}
.ex__name { flex: 1; font-size: .94rem; font-weight: 500; color: var(--navy); }
.ex__scheme {
  font-size: .9rem; font-weight: 700; color: var(--navy-ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ex__scheme em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; }
.workout__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .74rem; font-weight: 600; color: var(--navy);
  background: var(--cream); border: 1px solid var(--cream-line);
  padding: .28rem .6rem; border-radius: 100px;
}

/* ================= Value strip ================= */
.strip {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip__item { max-width: 22rem; }
.strip__idx {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: 1rem;
  font-weight: 700; font-size: .85rem; color: var(--gold-deep);
  border: 1px solid var(--gold); border-radius: 50%;
}
.strip__item h3 {
  margin: 0 0 .5rem; font-size: 1.12rem; font-weight: 700;
  letter-spacing: -.015em; color: var(--navy-ink);
}
.strip__item p { margin: 0; color: var(--muted); font-size: .96rem; }
.ai { color: var(--gold-deep); font-weight: 600; }

/* ================= Closing ================= */
.closing {
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--rule);
}
.closing__thesis {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  color: var(--navy-ink); margin: 0 auto .8rem; max-width: 22ch;
  text-wrap: balance;
}
.closing__note { color: var(--muted); margin: 0; font-size: 1rem; }

/* ================= Footer ================= */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  padding-top: 2rem; padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem; color: var(--muted);
}
.site-foot__mark { font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.site-foot__links { display: flex; gap: 1.5rem; }
.site-foot__links a { color: var(--muted); }
.site-foot__links a:hover { color: var(--navy); }
.site-foot__copy { margin-left: auto; color: var(--muted-soft); }

/* ================= Entrance motion ================= */
@media (prefers-reduced-motion: no-preference) {
  .hero__lede > *,
  .transform > * {
    opacity: 0; transform: translateY(10px);
    animation: rise .7s var(--ease) forwards;
  }
  .hero__lede > *:nth-child(1) { animation-delay: .04s; }
  .hero__lede > *:nth-child(2) { animation-delay: .12s; }
  .hero__lede > *:nth-child(3) { animation-delay: .20s; }
  .hero__lede > *:nth-child(4) { animation-delay: .28s; }
  .transform > *:nth-child(1) { animation-delay: .30s; }
  .transform > *:nth-child(2) { animation-delay: .42s; }
  .transform > *:nth-child(3) { animation-delay: .52s; }

  .spine__node { animation: float 3.4s ease-in-out 1.1s infinite; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ================= Document pages (privacy / terms) ================= */
.doc { max-width: var(--maxw-doc); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.doc__nav {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: 2.75rem; font-weight: 700; letter-spacing: -.01em;
}
.doc__nav svg { width: 22px; height: 22px; color: var(--gold); }
.doc__nav a { color: var(--navy); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); letter-spacing: -.028em; margin: 0 0 .4rem; line-height: 1.06; color: var(--navy-ink); }
.doc .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2.75rem; }
.doc__lede { font-size: 1.08rem; color: var(--navy-soft); }
.doc h2 {
  font-size: 1.28rem; margin: 2.8rem 0 .7rem; letter-spacing: -.018em;
  color: var(--navy-ink); padding-top: .2rem;
}
.doc h3 { font-size: 1.02rem; margin: 1.7rem 0 .4rem; color: var(--navy); }
.doc p, .doc li { color: #2C3654; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin: .3rem 0; }
.doc li::marker { color: var(--gold-deep); }
.doc hr { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }
.doc .note {
  background: var(--cream-deep); border-left: 3px solid var(--gold);
  padding: 1.1rem 1.3rem; border-radius: 0 8px 8px 0; font-size: .95rem;
  margin: 1.6rem 0;
}
.doc footer {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .88rem;
}

/* ================= Reset form ================= */
.reset-wrap { min-height: 100svh; display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.card {
  max-width: 26rem; width: 100%; margin: 0 auto; padding: 2.5rem 2rem;
  background: var(--paper); border: 1px solid var(--cream-line); border-radius: 18px;
  box-shadow: var(--shadow);
}
.card__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1.6rem; font-weight: 700; color: var(--navy);
}
.card__brand svg { width: 20px; height: 20px; color: var(--gold); }
.reset-wrap h1 { font-size: 1.55rem; margin: 0 0 .4rem; letter-spacing: -.02em; color: var(--navy-ink); }
.reset-wrap .lede { color: var(--muted); margin: 0 0 1.6rem; font-size: .96rem; }
.field { margin: 1.1rem 0; text-align: left; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .4rem; color: var(--navy); }
.field input {
  width: 100%; padding: .75rem .9rem; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--cream);
  font-family: inherit; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus-visible {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212,168,83,.22);
}
.btn {
  width: 100%; padding: .85rem 1rem; font-size: 1rem; font-weight: 700;
  color: var(--cream); background: var(--navy); border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit; margin-top: .7rem;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--navy-soft); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.msg { font-size: .92rem; margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 10px; }
.msg--error { background: #FBE9E7; color: #8A2B1F; }
.msg--ok { background: #E8F2EA; color: #23603A; }
.hidden { display: none !important; }
