:root {
  color-scheme: light;
  --paper: #faf8f5;
  --ink: #29251f;
  --muted: #6a625a;
  --accent: #a94425;
  --line: #e3dcd4;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2 { margin: 0; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 30;
  padding: 9px 16px;
  background: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid #eae5de;
}

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

.nav { min-height: 68px; justify-content: space-between; gap: 22px; }

.brand {
  gap: 9px;
  width: fit-content;
  font-size: 20px;
  font-weight: 650;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { gap: 30px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-detail { color: var(--muted); }
.nav-detail:hover, .text-link:hover { color: var(--accent); }

.nav-download {
  min-height: 44px;
  border-radius: 10px;
  color: #883719;
  font-weight: 600;
}

.nav-download span {
  display: block;
  padding: 6px 16px;
  background: #f5e3d7;
  border-radius: 10px;
  line-height: 1.5;
}

.nav-download:hover span, .nav-download:focus-visible span { background: #efd4c3; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(46px, 7vw, 110px);
  padding-block: clamp(62px, 6.8vw, 98px) clamp(66px, 7.2vw, 108px);
}

h1, h2 { color: var(--ink); letter-spacing: -.045em; }

h1 {
  font-size: clamp(40px, 4.35vw, 64px);
  font-weight: 650;
  line-height: 1.22;
}

h1 em { color: var(--accent); font-style: normal; }

.hero-description {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.26vw, 18px);
  line-height: 1.85;
}

.download-area {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 33px;
}

.store-badge {
  display: block;
  width: fit-content;
  padding: 14px;
  margin: -14px;
  border-radius: 8px;
}

.store-badge img { width: 150px; }

.availability, .download-qr figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.availability { margin-top: 12px; }

.download-qr {
  padding-left: 26px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.download-qr a { display: block; width: fit-content; margin-inline: auto; }
.download-qr img { width: 96px; border-radius: 6px; }
.download-qr figcaption { margin-top: 4px; font-size: 11px; }

.hero-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 500px);
  margin-inline: auto;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 11px -5px -6px 12px;
  z-index: -1;
  border-radius: 24px;
  background: #edd5c4;
  transform: rotate(1.6deg);
}

/* Each crop uses the original 900 × 1957 capture at full width. */
.screen-crop { position: relative; overflow: hidden; }
.screen-crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus-y);
}

.plan-shot {
  --focus-y: 22%;
  aspect-ratio: 900 / 838;
  border: 1px solid #e4dcd4;
  border-radius: 24px;
  background: #f9f8f4;
  box-shadow: 0 16px 38px -25px #79533866;
}

.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; }

h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.3;
}

.training { background: #211f1d; color: #f7f4ef; }

.training-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr);
  grid-template-areas: "exercise copy" "exercise record";
  align-content: center;
  align-items: center;
  column-gap: clamp(44px, 7.3vw, 110px);
  row-gap: 24px;
  padding-block: clamp(44px, 4.7vw, 72px);
}

.training-copy { grid-area: copy; align-self: end; }
.training .eyebrow { color: #f1a685; }
.training h2 { margin-top: 10px; color: #fffaf5; }
.training-copy > p:last-child { margin-top: 15px; color: #d4cdc6; font-size: 16px; }
.exercise { grid-area: exercise; }

.movement-shot {
  --focus-y: 17.4%;
  aspect-ratio: 900 / 506;
  border-radius: 14px;
  background: #f7f7f7;
}

.exercise figcaption { margin-top: 12px; color: #d4cdc6; font-size: 14px; }

.set-shot {
  --focus-y: 97.4%;
  grid-area: record;
  align-self: start;
  width: min(100%, 420px);
  aspect-ratio: 900 / 512;
  border-radius: 13px;
  background: #272624;
}

.follow-up {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(50px, 7.3vw, 112px);
  padding-block: clamp(58px, 6vw, 90px);
}

.follow-up h2 { margin-top: 12px; font-size: clamp(26px, 2.7vw, 39px); }

.story-description {
  max-width: 28em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.chat-shot, .adjustment-shot {
  margin-top: 28px;
  background: #f9f8f4;
}

.chat-shot {
  --focus-y: 48.5%;
  aspect-ratio: 900 / 1210;
}

.adjustment-shot {
  --focus-y: 38.6%;
  aspect-ratio: 900 / 1210;
  border-block: 1px solid var(--line);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr);
  gap: clamp(40px, 7vw, 100px);
  padding-block: 64px 80px;
  border-top: 1px solid var(--line);
}

.faq-intro p { margin-top: 14px; }
.text-link { color: var(--muted); font-size: 14px; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > div { padding-bottom: 21px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.faq-list details p + p { margin-top: 10px; }
.faq-list details a { color: var(--accent); }

.closing { background: #f1e6dc; }
.closing-inner { display: flex; align-items: center; gap: 20px; padding-block: 44px; }
.closing-inner > img { width: 48px; height: 48px; border-radius: 12px; }
.closing h2 { font-size: 30px; }
.closing .button { margin-left: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  text-decoration: none;
}

.button:hover { background: #494039; }
.site-footer { padding-block: 36px 28px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; gap: 24px; }
.footer-top { align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 13px; }
.footer-links a, .footer-bottom a { text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.75; }
.not-found { min-height: 70vh; padding-block: 80px; }
.not-found h1 { margin-top: 16px; }
.not-found p { margin-block: 22px; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 36px; }
  .desktop-break { display: none; }
  .training-inner, .follow-up { column-gap: 44px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: min(520px, calc(100% - 36px)); }
  .nav { min-height: 58px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .nav-detail { display: none; }
  .nav-download { font-size: 14px; }
  .nav-download span { padding: 5px 14px; }

  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 36px 44px; }
  h1 { font-size: clamp(34px, 8.7vw, 48px); line-height: 1.26; }
  .hero-description { max-width: 31em; margin-top: 15px; font-size: 16px; line-height: 1.75; }
  .download-area { margin-top: 22px; }
  .download-action { display: flex; align-items: center; gap: 22px; }
  .store-badge img { width: 140px; }
  .availability { margin: 0; font-size: 11px; }
  .download-qr { display: none; }
  .hero-art { width: calc(100% - 8px); margin-left: 0; }
  .hero-art::before { inset: 6px -3px -4px 7px; border-radius: 18px; }
  .plan-shot { border-radius: 18px; }

  h2 { font-size: clamp(27px, 7vw, 36px); }
  .training-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "exercise" "record";
    gap: 22px;
    padding-block: 37px 40px;
  }
  .eyebrow { font-size: 13px; }
  .training-break { display: none; }
  .training h2, .follow-up h2 { margin-top: 8px; }
  .training-copy > p:last-child { margin-top: 10px; font-size: 15px; }
  .movement-shot, .set-shot { border-radius: 10px; }
  .exercise figcaption { margin-top: 7px; font-size: 13px; }
  .set-shot { width: 100%; }

  .follow-up { grid-template-columns: 1fr; gap: 36px; padding-block: 40px; }
  .follow-up h2 { font-size: clamp(27px, 7vw, 36px); }
  .story-description { margin-top: 10px; font-size: 15px; }
  .chat-shot, .adjustment-shot { margin-top: 18px; }
  .adjustment-story { padding-top: 30px; border-top: 1px solid var(--line); }
  .adjustment-shot { --focus-y: 25%; aspect-ratio: 900 / 806; }
  .faq-section { grid-template-columns: 1fr; gap: 22px; padding-block: 38px 44px; }
  .faq-intro p { margin-top: 6px; }
  .faq-list summary { padding-block: 17px; font-size: 15px; }
  .faq-list details > div { font-size: 14px; }
  .closing-inner { flex-wrap: wrap; gap: 14px; padding-block: 28px; }
  .closing-inner > img { width: 39px; height: 39px; border-radius: 10px; }
  .closing h2 { font-size: 24px; }
  .closing .button { width: 100%; margin: 4px 0 0; }
  .site-footer { padding-block: 28px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 28px); }
  .download-action { gap: 16px; }
  .hero { gap: 29px; }
}

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