:root {
  --cream: #f8f5f0;
  --paper: #fffdf9;
  --ink: #17202a;
  --muted: #66716e;
  --slate: #263850;
  --teal: #38616b;
  --green: #4caf7d;
  --blue: #4a90d9;
  --coral: #f55c4d;
  --amber: #f2a638;
  --line: rgba(23, 32, 42, 0.11);
  --shadow: rgba(20, 28, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 10px 30px var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 44px;
  color: white;
  transition: background 180ms ease, color 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(248, 245, 240, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 26px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-action {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header.is-scrolled .nav-action {
  background: var(--slate);
  border-color: var(--slate);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.7fr);
  align-items: center;
  gap: 46px;
  min-height: 86svh;
  overflow: hidden;
  padding: 116px 6vw 68px;
  color: white;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(115deg, rgba(38, 56, 80, 0.96), rgba(56, 97, 107, 0.86)),
    radial-gradient(circle at 78% 20%, rgba(76, 175, 125, 0.38), transparent 32%),
    #263850;
}

.hero-media,
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-lines {
  opacity: 0.28;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.34) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255, 255, 255, 0.2) 50%, transparent 50.2%);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.hero-mark {
  position: absolute;
  right: 8vw;
  top: 16vh;
  width: 390px;
  opacity: 0.18;
  transform: rotate(7deg);
  border-radius: 42px;
  filter: saturate(0.9);
}

.hero-asset {
  position: absolute;
  opacity: 0.18;
  filter: saturate(0.75);
}

.hero-asset-one {
  left: 46vw;
  bottom: 4vh;
  width: 360px;
  transform: rotate(-8deg);
}

.hero-asset-two {
  right: -38px;
  bottom: 18vh;
  width: 260px;
  transform: rotate(10deg);
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.kicker,
.section-kicker,
.board-label,
.persona-label {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 7rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 2.05rem;
  line-height: 1.08;
  font-weight: 760;
}

.hero-text {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  padding: 13px 18px;
  background: white;
  color: var(--slate);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.primary-action.dark {
  background: var(--slate);
  color: white;
}

.secondary-action {
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: white;
  transition: background 180ms ease;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-product {
  justify-self: center;
  position: relative;
  z-index: 2;
}

.phone-shell {
  width: 340px;
  min-height: 610px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  background: #f8f5f0;
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  animation: product-float 6s ease-in-out infinite;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 20px;
  font-weight: 850;
}

.phone-top img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.season-summary,
.session-panel {
  border-radius: 20px;
  padding: 18px;
}

.season-summary {
  color: white;
  background: linear-gradient(135deg, var(--slate), var(--teal));
}

.season-summary span,
.session-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.season-summary strong {
  font-size: 1.5rem;
}

.progress-track {
  height: 7px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: white;
  border-radius: inherit;
}

.session-panel {
  margin-top: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.08);
}

.session-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.session-meta span {
  color: var(--muted);
}

.session-meta strong {
  color: var(--teal);
  font-size: 0.9rem;
}

.session-panel h2 {
  margin: 12px 0 14px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.session-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.session-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.session-panel li span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--green);
}

.quick-row {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.quick-row span {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border-radius: 14px;
  background: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.07);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: white;
  transform: translateX(-50%);
  animation: cue 1.5s ease-in-out infinite;
}

.intro-section,
.workflow-section,
.apparatus-section,
.usage-section,
.final-section {
  padding: 108px 6vw;
}

.intro-section {
  padding-top: 92px;
}

.section-intro {
  max-width: 820px;
}

.section-intro.compact {
  max-width: 680px;
}

.section-intro h2,
.workflow-copy h2,
.usage-heading h2,
.final-section h2 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-intro p,
.workflow-copy p,
.final-section p,
.usage-heading p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-panel {
  min-height: 270px;
  padding: 30px;
  background: var(--cream);
  transition: background 180ms ease, transform 180ms ease;
}

.value-panel:hover {
  background: var(--paper);
  transform: translateY(-4px);
}

.value-number {
  color: var(--coral);
  font-weight: 900;
}

.value-panel h3 {
  margin: 44px 0 14px;
  font-size: 1.45rem;
}

.value-panel p {
  margin: 0;
  color: var(--muted);
}

.workflow-section {
  background: #eef4f0;
}

.workflow-copy {
  max-width: 720px;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
  gap: 64px;
  align-items: start;
  margin-top: 58px;
}

.workflow-steps {
  display: grid;
  gap: 18px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(23, 32, 42, 0.14);
  cursor: default;
  transition: color 180ms ease, transform 180ms ease;
}

.workflow-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(38, 56, 80, 0.09);
  color: var(--slate);
  font-weight: 900;
}

.workflow-step h3 {
  margin: 0;
  font-size: 1.55rem;
}

.workflow-step p {
  grid-column: 2;
  margin: -12px 0 0;
  color: var(--muted);
}

.workflow-step.is-active {
  color: var(--teal);
  transform: translateX(6px);
}

.workflow-step.is-active span {
  background: var(--teal);
  color: white;
}

.workflow-board {
  position: sticky;
  top: 102px;
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(38, 56, 80, 0.16);
}

.board-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.board-label {
  color: var(--green);
}

.board-focus-title {
  display: block;
  font-size: 1.75rem;
}

.board-focus-tag {
  margin: 4px 0 0;
  color: var(--muted);
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.month-strip span {
  padding: 10px 6px;
  border-radius: 8px;
  background: #eef4f0;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
}

.month-strip .is-current {
  background: var(--slate);
  color: white;
}

.lesson-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3efe9;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.lesson-row > span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  background: white;
  color: var(--slate);
  font-weight: 900;
}

.lesson-row strong {
  display: block;
}

.lesson-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lesson-row.is-active {
  border-color: rgba(76, 175, 125, 0.5);
  background: #eff8f3;
  transform: translateY(-2px);
}

.apparatus-section {
  overflow: hidden;
}

.apparatus-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.apparatus-item {
  margin: 0;
  min-height: 310px;
  display: grid;
  align-content: end;
  gap: 20px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.apparatus-item:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px rgba(74, 144, 217, 0.3), 0 18px 40px rgba(23, 32, 42, 0.1);
}

.apparatus-item img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin: 0 auto;
}

.apparatus-item figcaption {
  color: var(--slate);
  font-weight: 900;
  font-size: 1.08rem;
}

.usage-section {
  background: var(--slate);
  color: white;
}

.usage-heading {
  max-width: 780px;
}

.usage-heading p {
  color: var(--amber);
}

.persona-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 4px;
  margin-top: 34px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.persona-control button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease;
}

.persona-control button.is-active {
  background: white;
  color: var(--slate);
}

.persona-stage {
  margin-top: 34px;
  min-height: 330px;
}

.persona-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 52px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.persona-panel.is-active {
  display: grid;
  animation: panel-in 280ms ease both;
}

.persona-label {
  color: var(--green);
}

.persona-panel h3 {
  max-width: 670px;
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.05;
}

.persona-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
}

.task-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: task;
  list-style: none;
}

.task-list li {
  counter-increment: task;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.task-list li::before {
  content: counter(task, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.final-section {
  display: grid;
  place-items: start;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.final-section img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 22px;
}

.final-section .primary-action {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 140ms;
}

@keyframes product-float {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 24px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.62fr);
    gap: 28px;
    min-height: 86svh;
    padding: 92px 24px 56px;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .hero-lede {
    font-size: 1.72rem;
  }

  .hero-product {
    justify-self: center;
  }

  .phone-shell {
    width: 292px;
    min-height: 540px;
  }

  .value-grid,
  .workflow-layout,
  .persona-panel {
    grid-template-columns: 1fr;
  }

  .workflow-board {
    position: relative;
    top: auto;
  }

  .apparatus-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .nav-action {
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 84svh;
    padding: 82px 20px 56px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-lede {
    font-size: 1.38rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-product {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .intro-section,
  .workflow-section,
  .apparatus-section,
  .usage-section,
  .final-section {
    padding: 72px 20px;
  }

  .section-intro h2,
  .workflow-copy h2,
  .usage-heading h2,
  .final-section h2 {
    font-size: 2.35rem;
  }

  .value-panel {
    min-height: 220px;
    padding: 24px;
  }

  .workflow-step {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .workflow-step p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .workflow-board {
    padding: 18px;
  }

  .apparatus-rail {
    grid-template-columns: 1fr;
  }

  .apparatus-item {
    min-height: 250px;
  }

  .apparatus-item img {
    height: 180px;
  }

  .persona-control {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .persona-panel h3 {
    font-size: 2rem;
  }
}
