:root {
  --blue: #3b82f6;
  --blue-deep: #2f78ed;
  --ink: #0b0d10;
  --muted: #667085;
  --surface: #f5f7fa;
  --line: #e4e8ef;
  --white: #ffffff;
  --sora: "Sora", sans-serif;
  --inter: "Inter", sans-serif;
  --container: min(1200px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--inter); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: var(--white); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { height: 86px; background: var(--blue); color: var(--white); }
.nav-wrap { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand img { width: 42px; border-radius: 9px; }
.site-header nav { display: flex; gap: 38px; font-size: 0.78rem; font-weight: 500; }
.site-header nav a { opacity: .94; }

.hero { overflow: hidden; background: var(--white); }
.hero-grid { display: grid; min-height: 820px; grid-template-columns: minmax(0, .93fr) minmax(450px, 1.07fr); align-items: center; }
.hero-copy { max-width: 510px; padding: 76px 0 86px; }
h1, h2, h3 { font-family: var(--sora); }
.hero h1 { max-width: 510px; margin: 0; font-size: clamp(2.5rem, 3.15vw, 3.65rem); line-height: 1.16; letter-spacing: -.05em; }
.hero-copy > p { max-width: 425px; margin: 44px 0 34px; color: #3f4755; font-size: .92rem; line-height: 1.62; }
.store-links { display: flex; gap: 14px; align-items: center; }
.store-button { display: flex; min-width: 150px; min-height: 48px; flex-direction: column; justify-content: center; padding: 7px 15px 7px 44px; border-radius: 7px; background: #080a0d; color: var(--white); font-size: 1.1rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; position: relative; }
.store-button::before { position: absolute; left: 14px; content: "▶"; color: var(--blue); font-size: 1.1rem; }
.store-button.apple::before { content: "●"; color: var(--white); font-size: 1.15rem; }
.store-button span { margin-bottom: 3px; font-size: .45rem; font-weight: 600; letter-spacing: .08em; }
.hero-visual { position: relative; align-self: end; height: 815px; }
.hero-visual img { position: absolute; width: min(520px, 100%); right: -12px; bottom: 0; }

.feature-strip { padding: 28px 0; background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature-grid article { display: grid; grid-template-columns: 38px 1fr; gap: 11px; }
.feature-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid var(--ink); border-radius: 5px; font-size: 1rem; line-height: 1; }
.feature-grid h2 { margin: -3px 0 5px; color: var(--blue); font-size: 1rem; line-height: 1.2; }
.feature-grid p { max-width: 265px; margin: 0; color: #505b6b; font-size: .68rem; line-height: 1.45; }

.workflow, .quick-log, .faq { color: var(--white); background: linear-gradient(115deg, var(--blue) 0%, var(--blue-deep) 100%); }
.workflow-grid { display: grid; min-height: 1050px; grid-template-columns: minmax(290px, .75fr) minmax(0, 1.25fr); gap: 96px; align-items: center; }
.workflow-visual { align-self: stretch; display: flex; align-items: center; }
.workflow-visual img { width: 350px; }
.workflow-copy { position: relative; display: grid; gap: 40px; padding: 104px 0; }
.workflow-copy::before { position: absolute; top: 118px; bottom: 118px; left: -58px; width: 2px; background: rgba(255,255,255,.86); content: ""; }
.workflow-copy article { position: relative; }
.step { position: absolute; top: 3px; left: -78px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--white); color: var(--blue); font-family: var(--sora); font-weight: 800; }
.workflow-copy h2 { margin: 0 0 18px; font-size: 1.55rem; letter-spacing: -.04em; }
.workflow-copy ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .78rem; line-height: 1.35; }
.workflow-copy li::before { margin-right: 9px; content: "✓"; font-weight: 700; }

.screen-gallery { padding: 85px 0; background: var(--white); }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 62px; justify-items: center; }
.screens img { width: min(100%, 355px); border-radius: 18px; box-shadow: 0 14px 30px rgba(33, 49, 73, .13); }

.split-layout { display: grid; min-height: 760px; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.quick-log-image { align-self: end; }
.quick-log-image img { width: 422px; margin-left: 18px; }
.light-copy { max-width: 430px; }
.light-copy h2, .dark-copy h2 { margin: 0 0 20px; font-size: 2rem; letter-spacing: -.055em; }
.light-copy > p { max-width: 370px; margin: 0; color: rgba(255,255,255,.92); font-size: .86rem; line-height: 1.55; }
.stat-cards { display: flex; width: 290px; margin-top: 60px; overflow: hidden; border-radius: 10px; background: var(--white); color: var(--ink); }
.stat-cards div { width: 50%; padding: 16px; }
.stat-cards div + div { border-left: 1px solid var(--line); }
.stat-cards span, .stat-cards small { display: block; color: var(--muted); font-size: .56rem; }
.stat-cards strong { display: block; margin: 5px 0 4px; font-family: var(--sora); font-size: 1.75rem; }

.exercise-library { padding: 110px 0; background: var(--surface); }
.library-layout { min-height: 625px; }
.dark-copy { max-width: 430px; }
.dark-copy h2 { color: var(--blue); }
.dark-copy p { margin: 0; color: #3e4a5b; font-size: .86rem; line-height: 1.58; }
.library-image { display: flex; justify-content: center; }
.library-image img { width: 360px; border-radius: 18px; box-shadow: 0 12px 24px rgba(33,49,73,.12); }

.faq { position: relative; overflow: hidden; padding: 112px 0; }
.faq::after { position: absolute; right: -120px; bottom: -260px; width: 620px; height: 620px; border: 58px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.faq-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 260px minmax(0, 560px); gap: 140px; }
.eyebrow { margin: 0 0 12px; color: rgba(255,255,255,.7); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.faq h2 { margin: 0; font-size: 2.05rem; letter-spacing: -.06em; }
.questions { display: grid; gap: 28px; }
.questions h3 { margin: 0 0 7px; font-size: .82rem; }
.questions p { max-width: 480px; margin: 0; font-size: .75rem; line-height: 1.5; }

.download { padding: 105px 0; text-align: center; }
.download-wrap { max-width: 760px; }
.download h2 { margin: 0 auto 42px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.06em; }
.store-links.center { justify-content: center; }

.site-footer { padding: 48px 0 64px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-grid > div { min-height: 130px; padding: 4px 40px; }
.footer-grid > div + div { border-left: 1px solid #8f98a5; }
.footer-grid h2 { margin: 0 0 12px; font-size: .75rem; }
.footer-grid p { max-width: 230px; margin: 0; color: #4b5564; font-size: .69rem; line-height: 1.52; }

@media (max-width: 900px) {
  :root { --container: min(100% - 48px, 680px); }
  .hero-grid, .workflow-grid, .split-layout, .faq-wrap { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 74px 0 0; }
  .hero-copy { padding: 0; }
  .hero-visual { width: 520px; max-width: 100%; height: 650px; justify-self: center; }
  .hero-visual img { right: 0; }
  .feature-grid { gap: 25px; }
  .workflow-grid { gap: 0; }
  .workflow-visual { display: none; }
  .workflow-copy { padding: 82px 0 82px 70px; }
  .screens { gap: 24px; }
  .split-layout { gap: 45px; padding: 85px 0 0; }
  .quick-log-image { order: 2; justify-self: center; }
  .quick-log-image img { margin: 0; }
  .library-layout { padding-bottom: 85px; }
  .faq-wrap { gap: 36px; }
}

@media (max-width: 600px) {
  :root { --container: calc(100% - 36px); }
  .site-header { height: 70px; }
  .site-header nav { gap: 20px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.25rem); }
  .store-links { flex-wrap: wrap; }
  .hero-visual { height: 510px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-strip { padding: 32px 0; }
  .workflow-copy { padding-left: 52px; }
  .workflow-copy::before { left: -1px; }
  .step { left: -72px; }
  .screens { grid-template-columns: 1fr; gap: 30px; }
  .screens img { width: 300px; }
  .quick-log-image img, .library-image img { width: min(100%, 355px); }
  .faq { padding: 80px 0; }
  .download { padding: 82px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid > div { min-height: 0; padding: 0; }
  .footer-grid > div + div { padding-top: 22px; border-top: 1px solid #8f98a5; border-left: 0; }
}
