:root {
  color-scheme: light;
  --ink: #10231d;
  --muted: #5c6d66;
  --paper: #f7f9f4;
  --surface: #ffffff;
  --line: #dce6df;
  --green: #12956f;
  --green-dark: #0b4d3a;
  --blue: #3568d4;
  --red: #e2554f;
  --amber: #d99a24;
  --shadow: 0 24px 80px rgba(16, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(16, 35, 29, 0.1);
  background: rgba(247, 249, 244, 0.92);
  backdrop-filter: blur(16px);
}

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

.logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #e0f1ea;
}

.logo-frame.large {
  width: 124px;
  height: 124px;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(16, 35, 29, 0.18);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-frame b {
  display: none;
  color: var(--green-dark);
  font-weight: 900;
}

.logo-frame.image-failed img {
  display: none;
}

.logo-frame.image-failed b {
  display: inline;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eaf3ee;
  color: var(--ink);
}

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

.language-toggle,
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.language-toggle {
  min-width: 48px;
  cursor: pointer;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.header-cta {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 0 16px;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 112px));
  overflow: hidden;
  background: #edf4ef;
  border-bottom: 1px solid var(--line);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.scene-rail {
  position: absolute;
  height: 1px;
  background: rgba(16, 35, 29, 0.16);
}

.rail-one {
  top: 28%;
  left: 8%;
  width: 76%;
}

.rail-two {
  right: 0;
  bottom: 28%;
  width: 58%;
}

.hero-photo {
  position: absolute;
  right: 23%;
  top: 54px;
  width: 430px;
  height: 548px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background-color: #dfeae3;
  background-image: url("fitness-hero.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.72) contrast(0.92);
  box-shadow: 0 28px 80px rgba(16, 35, 29, 0.22);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(237, 244, 239, 0.22);
}

.hero-watermark {
  position: absolute;
  right: -64px;
  bottom: -132px;
  z-index: 2;
  width: 620px;
  height: 620px;
  background-image: url("fitcore-logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.26;
  pointer-events: none;
}

.phone-shell {
  position: absolute;
  right: 8%;
  top: 42px;
  z-index: 3;
  width: 320px;
  min-height: 592px;
  border: 10px solid #17231f;
  border-radius: 32px;
  background: #17231f;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.phone-speaker {
  width: 82px;
  height: 5px;
  margin: 10px auto 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.phone-screen {
  display: flex;
  min-height: 535px;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-radius: 22px;
  background: #f8fbf8;
  padding: 18px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-bar img {
  width: 30px;
  height: 30px;
}

.app-bar span {
  flex: 1;
  color: var(--ink);
  font-weight: 800;
}

.app-bar b {
  border-radius: 6px;
  background: #e0f1ea;
  color: var(--green-dark);
  font-size: 12px;
  padding: 8px 10px;
}

.score-strip,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-strip div,
.metric-grid div,
.plan-block,
.coach-note,
.feature-card,
.privacy-grid article,
.benefit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.score-strip div,
.metric-grid div {
  padding: 12px;
}

.score-strip span,
.metric-grid span,
.plan-block span,
.coach-note span,
.benefit-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-strip strong,
.metric-grid strong,
.plan-block strong,
.benefit-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
}

.plan-block {
  padding: 16px;
  background: #10231d;
  color: #fff;
}

.plan-block span,
.plan-block strong {
  color: #fff;
}

.progress-line {
  height: 8px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-line i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.coach-note {
  padding: 16px;
  border-color: rgba(226, 85, 79, 0.22);
  background: #fff8f6;
}

.coach-note p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 96px 32px 72px;
  margin-left: max(32px, calc((100vw - 1180px) / 2));
}

.eyebrow,
.section-heading span,
.intro-copy span,
.daily-copy span {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-brand-mark {
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 84px;
  line-height: 0.95;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 900;
}

.hero-copy {
  max-width: 580px;
  margin: 18px 0 0;
  color: #34483f;
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  min-width: 178px;
  padding: 0 18px;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: rgba(16, 35, 29, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-dark);
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  padding: 34px 0 28px;
}

.intro-copy h2,
.section-heading h2,
.daily-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.intro-band p,
.daily-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.feature-card {
  min-height: 214px;
  padding: 24px;
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: #e6f4ee;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-mark,
.feature-card:nth-child(5) .feature-mark {
  background: #e9effd;
  color: var(--blue);
}

.feature-card:nth-child(3) .feature-mark,
.feature-card:nth-child(6) .feature-mark {
  background: #fff0e1;
  color: #94630e;
}

.feature-card h3,
.flow-list h3,
.privacy-grid h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.feature-card p,
.flow-list p,
.privacy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.flow-section {
  border-top: 1px solid var(--line);
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.privacy-section {
  border-top: 1px solid var(--line);
}

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

.privacy-grid article {
  padding: 24px;
}

.download-section {
  border-top: 1px solid var(--line);
}

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

.download-card {
  display: flex;
  min-height: 258px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.download-card.highlight {
  border-color: rgba(18, 149, 111, 0.32);
  background: #f4fbf7;
}

.download-card span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.download-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3ef;
  color: var(--muted);
  font-weight: 900;
  padding: 0 16px;
}

.store-button.active {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.daily-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.benefit-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.benefit-panel div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.benefit-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.benefit-panel strong {
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-copy {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

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

.site-footer nav a {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.policy-hero {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.policy-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
}

.policy-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.policy-hero .policy-updated {
  font-size: 14px;
  font-weight: 800;
}

.policy-layout {
  display: grid;
  width: min(1080px, calc(100% - 48px));
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  margin: 0 auto;
  padding: 26px 0 76px;
}

.policy-toc {
  position: sticky;
  top: 96px;
  display: grid;
  align-self: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.policy-toc a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
  background: #eaf3ee;
  color: var(--ink);
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.policy-content h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.policy-content p {
  margin: 0;
}

.policy-content p + p {
  margin-top: 14px;
}

.policy-content ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.policy-content .button {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

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

  .hero {
    min-height: min(680px, calc(100svh - 104px));
    padding-bottom: 0;
  }

  .hero-content {
    max-width: 640px;
    padding: 56px 24px 40px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 58px;
  }

  .logo-frame.large {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .phone-shell {
    position: absolute;
    right: -44px;
    top: auto;
    bottom: -118px;
    width: 280px;
    min-height: 500px;
    margin: 0;
    opacity: 0.72;
    transform: rotate(3deg);
  }

  .hero-photo {
    right: -80px;
    top: auto;
    bottom: -24px;
    width: 430px;
    height: 430px;
    opacity: 0.24;
  }

  .hero-watermark {
    right: -180px;
    bottom: -210px;
    width: 560px;
    height: 560px;
    opacity: 0.22;
  }

  .phone-screen {
    min-height: 455px;
  }

  .hero-scene {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .hero-scene .scene-rail {
    display: none;
  }

  .intro-band,
  .daily-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .privacy-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand span {
    font-size: 18px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero-content {
    padding: 42px 20px 30px;
  }

  .hero {
    min-height: min(640px, calc(100svh - 96px));
  }

  .hero h1 {
    font-size: 44px;
  }

  .logo-frame.large {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 54px 0;
  }

  .intro-copy h2,
  .section-heading h2,
  .daily-copy h2 {
    font-size: 30px;
  }

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

  .flow-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .flow-list article > span {
    width: 38px;
    height: 38px;
  }

  .phone-shell {
    right: -96px;
    bottom: -146px;
    width: 232px;
    min-height: 420px;
    border-width: 8px;
    opacity: 0.52;
  }

  .hero-photo {
    right: -160px;
    bottom: -58px;
    width: 360px;
    height: 360px;
    opacity: 0.18;
  }

  .hero-watermark {
    right: -156px;
    bottom: -130px;
    width: 420px;
    height: 420px;
    opacity: 0.2;
  }

  .phone-screen {
    min-height: 370px;
    padding: 14px;
  }

  .score-strip,
  .metric-grid {
    gap: 8px;
  }

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

  .footer-copy {
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .policy-hero,
  .policy-layout {
    width: min(100% - 32px, 1080px);
  }

  .policy-hero {
    padding-top: 48px;
  }

  .policy-hero h1 {
    font-size: 38px;
  }

  .policy-hero p {
    font-size: 16px;
  }

  .policy-content section {
    padding: 22px;
  }
}

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