:root {
  --ink: #1f2933;
  --muted: #6e716b;
  --paper: #f8f7f2;
  --surface: #fffdfa;
  --line: #dfddd5;
  --moss: #496f5a;
  --moss-soft: #dfeee5;
  --coral: #e86f5b;
  --coral-dark: #cf5d4d;
  --shadow: 0 24px 70px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 221, 213, 0.8);
  background: rgba(248, 247, 242, 0.88);
  padding: 0 32px;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 10px;
  height: 28px;
  border: 2px solid var(--moss);
  border-radius: 999px;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 247, 242, 0.97) 0%, rgba(248, 247, 242, 0.92) 35%, rgba(248, 247, 242, 0.42) 62%, rgba(248, 247, 242, 0.1) 100%),
    linear-gradient(180deg, rgba(248, 247, 242, 0.16), rgba(248, 247, 242, 0.32));
}

.hero-inner,
.app-section,
.join-section,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-right: 32px;
  padding-left: 32px;
}

.hero-inner {
  display: grid;
  min-height: calc(100svh - 72px);
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  max-width: 660px;
  font-family: Lora, Georgia, serif;
  font-size: clamp(41px, 5.2vw, 66px);
  line-height: 1.07;
  font-weight: 600;
}

h2 {
  max-width: 620px;
  font-family: Lora, Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  font-family: Lora, Georgia, serif;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 600;
}

.hero-text,
.section-copy p,
.flow-list p,
.site-footer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-text {
  max-width: 550px;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(232, 111, 91, 0.22);
}

.button-primary:hover {
  background: var(--coral-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-secondary {
  background: rgba(255, 253, 250, 0.78);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--moss);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 18px;
  padding-top: 18px;
}

.hero-proof div {
  display: grid;
  gap: 2px;
  border-left: 1px solid rgba(73, 111, 90, 0.25);
  padding-left: 14px;
}

.hero-proof dt {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.hero-proof dd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.app-section,
.join-section {
  display: grid;
  scroll-margin-top: 72px;
  gap: 34px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-copy {
  display: grid;
  max-width: 720px;
  gap: 12px;
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.demo-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-top {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.demo-top span {
  width: 46px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.demo-top strong {
  font-size: 14px;
  font-weight: 700;
}

.demo-frame {
  position: absolute;
  inset: 86px 22px 62px;
  display: grid;
  align-content: start;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.94);
  padding: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.demo-frame.is-active {
  opacity: 1;
  transform: translateY(0);
}

.demo-label {
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(73, 111, 90, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--moss-soft), rgba(255, 253, 250, 0.96));
  padding: 12px;
}

.problem-icon {
  width: 44px;
  height: 44px;
  color: var(--moss);
}

.problem-icon circle,
.problem-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-icon .problem-mark {
  color: var(--coral);
}

.choice-card span {
  display: grid;
  gap: 2px;
}

.choice-card strong,
.program-card strong,
.player-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.choice-card small,
.program-card small,
.player-copy small,
.player-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.program-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f4ec;
  padding: 14px;
}

.program-card.is-morning {
  border-color: rgba(73, 111, 90, 0.34);
  background: var(--moss-soft);
}

.program-card time {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 111, 90, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  color: var(--moss);
  font-weight: 700;
}

.program-card span {
  display: grid;
  gap: 3px;
}

.program-card em {
  color: var(--moss);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.week-strip span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  background: rgba(73, 111, 90, 0.12);
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}

.week-strip span:nth-child(6),
.week-strip span:nth-child(7) {
  background: rgba(232, 111, 91, 0.14);
  color: var(--coral-dark);
}

.workout-preview {
  display: grid;
  gap: 14px;
}

.player-screen {
  display: grid;
  grid-template-columns: minmax(130px, 0.95fr) minmax(160px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.video-block {
  position: relative;
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px solid rgba(73, 111, 90, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 32%, rgba(73, 111, 90, 0.08), transparent 30%),
    linear-gradient(145deg, #fbfaf6, #f5f1e7);
  overflow: hidden;
}

.chin-tuck-frame {
  position: absolute;
  top: 50%;
  left: 18px;
  width: min(43%, 112px);
  aspect-ratio: 3 / 4;
  background-image: url("./assets/chin-tuck-sprite.jpg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.09);
  transform: translateY(-50%);
  animation: chinTuckLoop 3.6s steps(1, end) infinite;
}

.chin-tuck-demo::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  box-shadow: inset 0 0 0 1px rgba(73, 111, 90, 0.18);
  content: "";
}

.chin-tuck-demo::before {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 23px;
  width: 12px;
  height: 18px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--moss);
  content: "";
  opacity: 0.9;
}

.player-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.player-copy small {
  color: var(--moss);
  font-weight: 700;
  text-transform: uppercase;
}

.player-copy strong {
  font-family: Lora, Georgia, serif;
  font-size: 24px;
  line-height: 1.12;
}

.player-copy p {
  margin: 0;
}

.player-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
}

.player-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
}

.player-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.player-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
}

.player-actions .is-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #ffffff;
}

@keyframes chinTuckLoop {
  0%,
  44% {
    background-position: left center;
  }

  50%,
  94% {
    background-position: right center;
  }
}

.demo-dots {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.demo-dots span.is-active {
  background: var(--moss);
}

.flow-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow-list div {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.flow-list span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}

.flow-list strong {
  font-family: Lora, Georgia, serif;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 600;
}

.join-panel {
  display: grid;
  justify-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 34px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}

.waitlist-form {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  text-align: left;
}

.waitlist-form label {
  font-size: 14px;
  font-weight: 700;
}

.waitlist-form input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(73, 111, 90, 0.14);
}

.waitlist-form .button {
  width: 100%;
}

.form-message {
  min-height: 24px;
  color: var(--moss);
  font-size: 14px;
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    min-height: 720px;
  }

  .hero-inner {
    min-height: 720px;
    align-content: start;
    padding-top: 70px;
  }

  .hero-visual {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(248, 247, 242, 0.98) 0%, rgba(248, 247, 242, 0.92) 43%, rgba(248, 247, 242, 0.32) 100%),
      linear-gradient(90deg, rgba(248, 247, 242, 0.66), rgba(248, 247, 242, 0.08));
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-inner,
  .app-section,
  .join-section,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-inner {
    justify-items: center;
    text-align: center;
  }

  .hero-actions,
  .form-row {
    justify-content: center;
  }

  .hero-proof {
    justify-items: center;
    text-align: center;
  }

  .hero-proof div {
    width: min(100%, 240px);
    border-top: 1px solid rgba(73, 111, 90, 0.25);
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
  }

  .section-copy {
    justify-items: center;
    text-align: center;
  }

  .product-preview {
    justify-items: center;
  }

  .demo-panel {
    width: 100%;
    text-align: left;
  }

  .flow-list {
    width: 100%;
  }

  .flow-list div {
    justify-items: center;
    text-align: center;
  }

  .waitlist-form .button {
    justify-self: center;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text,
  .section-copy p,
  .flow-list p,
  .site-footer {
    font-size: 16px;
  }

  .hero-actions .button,
  .form-row .button {
    width: min(100%, 270px);
  }

  .app-section,
  .join-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .demo-panel {
    min-height: 500px;
  }

  .demo-frame {
    inset: 82px 14px 58px;
    padding: 18px;
  }

  .join-panel {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
