:root {
  color-scheme: light;
  --accent: #ff9500;
  --accent-soft: #fff4df;
  --ink: #101114;
  --muted: #6a6f7a;
  --subtle: #9197a3;
  --line: #e6e9ef;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --surface-warm: #fffaf1;
  --hero-blue: #2fa7f2;
  --hero-blue-deep: #0f77cb;
  --shadow: 0 16px 42px rgba(19, 25, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-soft);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface-soft) 430px),
    var(--surface-soft);
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 149, 0, 0.55);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b86600;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  overflow: hidden;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hero-blue);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark span {
  display: block;
  border-radius: 99px;
  background: var(--accent);
}

.brand-mark span:nth-child(1) {
  height: 10px;
  opacity: 0.72;
}

.brand-mark span:nth-child(2) {
  height: 18px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
  opacity: 0.84;
}

.brand-name,
.brand-subtitle,
.eyebrow,
.summary-date,
.section-index p,
.summary-panel p,
.policy-section p {
  margin: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.25;
}

.language-control {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(19, 25, 35, 0.04);
  flex: 0 0 auto;
}

.language-control button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  min-width: 42px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.language-control button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 44px;
  padding: 72px 0 54px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #ffd999;
  border-radius: 8px;
  color: #9b5800;
  background: var(--surface-warm);
  font-size: 0.83rem;
  font-weight: 750;
}

h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.65;
}

.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-date {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.summary-panel ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-panel li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.summary-panel li:last-child {
  border-bottom: 0;
}

.summary-panel span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-panel p {
  color: var(--ink);
  line-height: 1.45;
}

.content-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.section-index {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.section-index p {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-index ol {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.section-index a {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.section-index a:hover {
  color: var(--ink);
}

.policy-list {
  display: grid;
  gap: 12px;
  counter-reset: policy-section;
}

.policy-section {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-section::before {
  counter-increment: policy-section;
  content: counter(policy-section, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

.policy-section h2 {
  grid-column: 2;
  margin: 0 0 9px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.policy-section p {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.65;
}

.page-home {
  background: var(--surface-soft);
}

.landing-topbar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-topbar .brand-name {
  color: #ffffff;
}

.landing-topbar .brand-subtitle,
.landing-nav a {
  color: rgba(255, 255, 255, 0.68);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.landing-language {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.landing-language button {
  color: rgba(255, 255, 255, 0.66);
}

.landing-language button[aria-pressed="true"] {
  color: #073557;
  background: #ffffff;
}

.landing-hero {
  position: relative;
  min-height: clamp(560px, 62vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 108px max(20px, calc((100vw - 1180px) / 2)) 58px;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--hero-blue) 0%, var(--hero-blue-deep) 100%);
  isolation: isolate;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.landing-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.landing-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.feature-header .eyebrow {
  border-color: #ffd999;
  color: #9b5800;
  background: var(--surface-warm);
}

.landing-copy h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary-action {
  color: #16110a;
  background: var(--accent);
}

.secondary-action {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover {
  color: #16110a;
  background: #ffad33;
}

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

.app-scene {
  position: absolute;
  z-index: 1;
  inset: 78px max(16px, calc((100vw - 1180px) / 2)) -96px auto;
  width: min(54vw, 660px);
  min-width: 440px;
  pointer-events: none;
  opacity: 0.94;
}

.mascot-card {
  position: absolute;
  top: 0;
  right: 238px;
  width: 158px;
  height: 158px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: var(--hero-blue);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.2);
  transform: rotate(-8deg);
}

.mascot-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.phone-frame {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 42px;
  background: #050506;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.44);
  padding: 12px;
}

.phone-primary {
  top: 78px;
  right: 4px;
  width: 316px;
  height: 640px;
  transform: rotate(4deg);
}

.phone-secondary {
  top: 208px;
  right: 246px;
  width: 250px;
  height: 500px;
  transform: rotate(-7deg);
  opacity: 0.72;
}

.phone-screen {
  height: 100%;
  padding: 24px 18px;
  border-radius: 32px;
  background: #18181b;
  overflow: hidden;
}

.screen-status,
.screen-title,
.metric-row,
.workout-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.screen-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 800;
}

.screen-title {
  margin-top: 28px;
  padding: 18px 14px;
}

.screen-title span,
.workout-card strong {
  display: block;
  color: #ffffff;
  font-weight: 850;
}

.screen-title strong,
.workout-card span,
.workout-card p,
.metric-row span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.86rem;
}

.chart-grid {
  position: relative;
  height: 230px;
  margin-top: 28px;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-grid span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.chart-grid span:nth-child(1) {
  top: 24%;
}

.chart-grid span:nth-child(2) {
  top: 52%;
}

.chart-grid span:nth-child(3) {
  top: 78%;
}

.chart-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 38px;
  height: 150px;
  border: solid var(--accent);
  border-width: 0 0 5px 0;
  border-radius: 58% 42% 46% 54%;
  transform: skewY(-10deg);
}

.chart-line::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.muscle-tabs {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.muscle-tabs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 149, 0, 0.12);
}

.compact-screen {
  padding-top: 64px;
}

.workout-card,
.metric-row {
  padding: 14px;
}

.workout-card strong {
  margin-top: 8px;
  font-size: 1.25rem;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.metric-row strong {
  color: var(--accent);
}

.feature-band,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.feature-band {
  padding: 58px 0 66px;
}

.feature-header {
  display: grid;
  gap: 16px;
  max-width: 700px;
}

.feature-header h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.feature-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(19, 25, 35, 0.05);
}

.feature-grid span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
}

.feature-grid h3 {
  margin: 54px 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
    padding-bottom: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0 34px;
  }

  .summary-panel {
    max-width: 520px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-index {
    position: static;
  }

  .landing-topbar {
    width: min(100% - 28px, 1180px);
  }

  .landing-hero {
    min-height: auto;
    padding: 110px 14px 44px;
    overflow: hidden;
  }

  .landing-copy {
    max-width: 640px;
  }

  .app-scene {
    position: relative;
    inset: auto;
    width: min(100%, 520px);
    min-width: 0;
    height: 350px;
    margin-top: 32px;
  }

  .mascot-card {
    top: 0;
    right: 255px;
    width: 112px;
    height: 112px;
    border-width: 7px;
    border-radius: 24px;
  }

  .phone-primary {
    top: 46px;
    right: 0;
    width: 248px;
    height: 500px;
  }

  .phone-secondary {
    top: 118px;
    right: 196px;
    width: 202px;
    height: 390px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .language-control {
    width: 100%;
  }

  .language-control button {
    flex: 1;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.3rem);
  }

  .summary-panel li,
  .policy-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .policy-section {
    padding: 22px;
  }

  .policy-section h2,
  .policy-section p {
    grid-column: 1;
  }

  .landing-topbar {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .topbar-actions {
    align-items: stretch;
    width: 100%;
  }

  .landing-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-language {
    flex: 0 0 auto;
  }

  .landing-hero {
    padding-top: 164px;
  }

  .landing-copy h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .landing-actions {
    flex-direction: column;
  }

  .app-scene {
    height: 300px;
  }

  .mascot-card {
    top: 8px;
    right: 168px;
    width: 92px;
    height: 92px;
  }

  .phone-primary {
    top: 36px;
    width: 216px;
    height: 434px;
  }

  .phone-secondary {
    display: none;
  }

  .chart-grid {
    height: 160px;
  }

  .feature-band,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
