:root {
  color-scheme: light;
  --ink: #0d121c;
  --muted-ink: #68778f;
  --brand: #0a80ff;
  --brand-bright: #1ac7f5;
  --brand-soft: #e0f5ff;
  --success: #0abfaf;
  --warning: #ff873d;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --stroke: rgba(194, 212, 232, 0.64);
  --shadow: rgba(27, 74, 124, 0.16);
  --page-background:
    linear-gradient(135deg, rgba(224, 245, 255, 0.96), rgba(255, 255, 255, 0.98) 46%, rgba(232, 248, 255, 0.96)),
    var(--surface-soft);
  --max-width: 1120px;
  --content-width: 980px;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", "Arial Rounded MT Bold", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: var(--font-system);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(10, 128, 255, 0.45);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand);
}

.site-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, var(--content-width));
  margin: 18px auto 0;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(194, 212, 232, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 56px rgba(27, 74, 124, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 18px 48px var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.brand-word {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-ink);
  font-size: 0.9rem;
  font-weight: 720;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(10, 128, 255, 0.08);
}

.site-nav .nav-cta {
  margin-left: 4px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  font-weight: 820;
  box-shadow: 0 12px 24px rgba(10, 128, 255, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.site-nav .nav-cta:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 128, 255, 0.27);
}

.site-nav .nav-cta:active {
  transform: scale(0.98);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-rounded);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-ink);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.landing-hero {
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 50vh;
  padding: 64px 0 24px;
  text-align: center;
}

.landing-hero h1 {
  max-width: var(--content-width);
}

.landing-hero .lede {
  margin-right: auto;
  margin-left: auto;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(96, 123, 152, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(13, 18, 28, 0.06);
  backdrop-filter: blur(16px);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(10, 128, 255, 0.24);
}

.button:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(13, 18, 28, 0.08);
}

.button.primary:hover {
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(10, 128, 255, 0.28);
}

.button:active {
  transform: scale(0.98);
}

.screenshot-stage {
  position: relative;
  width: min(100%, var(--content-width));
  min-height: 560px;
  margin: 28px auto 92px;
}

.placeholder-shot,
.three-up article,
.showcase-band,
.mini-shot {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 54px rgba(27, 74, 124, 0.08);
}

.desktop-shot {
  width: min(100%, 840px);
  min-height: 480px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(224, 245, 255, 0.78)),
    var(--surface);
}

.shot-chrome {
  display: flex;
  gap: 8px;
  padding: 4px 2px 14px;
}

.shot-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 128, 255, 0.22);
}

.assistant-window {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}

.assistant-chat,
.generated-workout {
  border: 1px solid rgba(194, 212, 232, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.generated-workout span {
  color: var(--brand);
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.assistant-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.message {
  max-width: 76%;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  font-weight: 680;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  color: #ffffff;
}

.message.assistant {
  align-self: flex-start;
  background: rgba(224, 245, 255, 0.78);
}

.tool-call {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 76%;
  padding: 8px 10px;
  border: 1px solid rgba(194, 212, 232, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(104, 119, 143, 0.86);
  font-size: 0.78rem;
  line-height: 1;
}

.tool-call span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 128, 255, 0.10);
}

.tool-call strong {
  color: var(--ink);
  font-weight: 800;
}

.tool-call small {
  font-size: inherit;
  font-weight: 650;
}

.generated-workout {
  margin-top: auto;
  padding: 20px;
}

.generated-workout h2 {
  margin-top: 8px;
}

.generated-workout p {
  margin: 10px 0 0;
  color: var(--muted-ink);
  font-weight: 620;
}

.workout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.workout-meta strong {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10, 128, 255, 0.1);
  color: var(--brand);
  font-size: 0.86rem;
}

.shot-label {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.generated-workout h2,
.phone-shot h2,
.showcase-band h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.showcase-band p {
  margin: 12px 0 0;
  color: var(--muted-ink);
  font-weight: 620;
}

.phone-shot {
  position: absolute;
  right: -20px;
  bottom: -58px;
  width: min(28vw, 260px);
  min-width: 220px;
  aspect-ratio: 0.64;
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(224, 245, 255, 0.88));
}

.app-screenshot {
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 34px rgba(13, 18, 28, 0.22));
}

.app-screenshot figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.phone-lines {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.phone-lines span {
  display: block;
  height: 48px;
  border-radius: 14px;
  background: rgba(10, 128, 255, 0.12);
}

.phone-lines span:nth-child(2) {
  width: 78%;
}

.phone-lines span:nth-child(3) {
  width: 56%;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 28px;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.three-up {
  --loop-card-gap: 8px;
  --loop-card-radius: 24px;
  --loop-card-min-height: 390px;
  --loop-flow-gap: 16px;
  --loop-mobile-rail-width: 44px;
  --loop-mobile-bottom-clearance: 70px;

  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--loop-flow-gap);
  width: min(100%, var(--content-width));
  margin-right: auto;
  margin-left: auto;
  padding: 0 0 var(--loop-mobile-bottom-clearance);
}

.three-up article {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: var(--loop-card-min-height);
  padding: 22px;
  border-radius: var(--loop-card-radius);
}

.step-number {
  color: var(--brand);
  font-weight: 860;
}

.step-preview {
  display: grid;
  gap: 8px;
  height: 124px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(194, 212, 232, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(224, 245, 255, 0.70));
}

.step-preview span {
  display: block;
  border-radius: 999px;
  background: rgba(10, 128, 255, 0.14);
}

.plan-preview {
  grid-template-columns: 1fr;
  align-content: center;
}

.plan-preview span:nth-child(1) {
  width: 72%;
  height: 12px;
}

.plan-preview span:nth-child(2) {
  width: 90%;
  height: 12px;
}

.plan-preview span:nth-child(3) {
  width: 54%;
  height: 12px;
}

.loop-flow {
  align-items: stretch;
}

.loop-return {
  position: relative;
  grid-column: 1 / -1;
  z-index: 2;
  width: 66.666%;
  height: 46px;
  margin: calc(var(--loop-card-gap) - var(--loop-flow-gap)) auto 0;
  border-right: 1px solid rgba(104, 119, 143, 0.24);
  border-bottom: 1px solid rgba(104, 119, 143, 0.24);
  border-left: 1px solid rgba(104, 119, 143, 0.24);
  border-radius: 0 0 var(--loop-card-radius) var(--loop-card-radius);
}

.loop-return::after {
  position: absolute;
  top: -4px;
  left: -3px;
  width: 0;
  height: 0;
  border-right: 3px solid transparent;
  border-bottom: 4px solid rgba(104, 119, 143, 0.46);
  border-left: 3px solid transparent;
  content: "";
}

.return-copy {
  position: absolute;
  top: 26px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(104, 119, 143, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--muted-ink);
  font-size: 0.86rem;
  font-weight: 760;
  text-align: center;
  box-shadow: 0 14px 34px rgba(27, 74, 124, 0.08);
  transform: translateX(-50%);
  white-space: nowrap;
}

.three-up h3 {
  margin-top: 38px;
  font-size: 1.42rem;
}

.three-up p {
  margin: 12px 0 0;
  color: var(--muted-ink);
  font-weight: 610;
}

.step-screenshot {
  display: grid;
  gap: 8px;
  margin: auto auto 0;
  width: min(100%, 160px);
}

.app-screen-preview {
  position: relative;
  display: grid;
  gap: 8px;
  aspect-ratio: 0.62;
  padding: 14px;
  border: 1px solid rgba(194, 212, 232, 0.68);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 245, 255, 0.82));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.app-screen-preview::before {
  width: 42%;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: rgba(104, 119, 143, 0.18);
  content: "";
}

.app-screen-preview span {
  display: block;
  border-radius: 12px;
  background: rgba(10, 128, 255, 0.12);
}

.train-shot .app-screen-preview {
  grid-template-rows: 5px 42px 1fr 1fr 36px;
}

.train-shot .app-screen-preview span:nth-child(1) {
  background: rgba(10, 128, 255, 0.24);
}

.train-shot .app-screen-preview span:nth-child(2),
.train-shot .app-screen-preview span:nth-child(3) {
  width: 82%;
}

.train-shot .app-screen-preview span:nth-child(4) {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

.review-shot .app-screen-preview {
  grid-template-rows: 5px 44px repeat(3, 1fr);
}

.review-shot .app-screen-preview span:nth-child(1) {
  background: rgba(10, 128, 255, 0.18);
}

.review-shot .app-screen-preview span:nth-child(2) {
  width: 70%;
}

.review-shot .app-screen-preview span:nth-child(3),
.review-shot .app-screen-preview span:nth-child(4) {
  border-radius: 999px;
}

.step-screenshot figcaption {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.showcase-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-bottom: 76px;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 30px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-shot {
  display: grid;
  align-items: end;
  min-height: 310px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(224, 245, 255, 0.86));
}

.mini-shot span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10, 128, 255, 0.12);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 820;
}

.faq-section {
  width: min(100%, var(--content-width));
  margin: 0 auto 92px;
}

.faq-section .section-intro {
  padding-top: 0;
}

.faq-list {
  display: grid;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(27, 74, 124, 0.08);
  overflow: hidden;
}

.faq-list details {
  border-bottom: 1px solid rgba(194, 212, 232, 0.58);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list details[open] {
  background:
    linear-gradient(90deg, rgba(224, 245, 255, 0.58), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.54);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 20px 78px 20px 28px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 820;
  line-height: 1.28;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 28px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat,
    rgba(10, 128, 255, 0.10);
  content: "";
}

.faq-list details[open] summary::after {
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    rgba(10, 128, 255, 0.12);
}

.faq-list p {
  max-width: 720px;
  margin: 0;
  padding: 0 78px 24px 28px;
  color: var(--muted-ink);
  font-weight: 610;
}

.content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 46px 0 88px;
}

.content h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.content h2 {
  margin-top: 42px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.content h3 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.content p,
.content li {
  color: var(--muted-ink);
}

.content ul {
  padding-left: 1.2rem;
}

.updated {
  margin: 18px 0 34px;
  color: var(--muted-ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--stroke);
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    top: 10px;
    margin-top: 10px;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 36px;
  }

  .screenshot-stage {
    display: grid;
    gap: 14px;
    min-height: auto;
    margin-bottom: 58px;
  }

  .desktop-shot {
    min-height: 0;
    padding: 12px;
  }

  .assistant-window {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .assistant-chat {
    padding: 18px;
  }

  .message {
    max-width: 100%;
  }

  .phone-shot {
    position: static;
    justify-self: center;
    width: min(100%, 360px);
    min-width: 0;
  }

  .phone-shot {
    aspect-ratio: auto;
  }

  .three-up,
  .showcase-band,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .loop-flow {
    position: relative;
    --loop-flow-gap: 12px;

    gap: var(--loop-flow-gap);
    padding-right: calc(var(--loop-mobile-rail-width) + (var(--loop-card-gap) * 2) + 2px);
  }

  .loop-return {
    position: absolute;
    top: calc(var(--loop-card-min-height) / 2);
    right: calc((var(--loop-mobile-rail-width) + var(--loop-card-gap)) * -1);
    bottom: calc((var(--loop-card-min-height) / 2) + var(--loop-mobile-bottom-clearance));
    z-index: 3;
    width: var(--loop-mobile-rail-width);
    height: auto;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(104, 119, 143, 0.24);
    border-right: 1px solid rgba(104, 119, 143, 0.24);
    border-bottom: 1px solid rgba(104, 119, 143, 0.24);
    border-radius: 0 var(--loop-card-radius) var(--loop-card-radius) 0;
  }

  .loop-return::before {
    content: none;
  }

  .loop-return::after {
    top: -3px;
    left: -4px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-right: 5px solid rgba(104, 119, 143, 0.46);
    border-bottom: 3px solid transparent;
    border-left: 0;
    content: "";
    transform: none;
  }

  .return-copy {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }
}

@media (min-width: 821px) {
  .generated-workout p {
    max-width: 68%;
  }
}
