/* 健身透視 RepLens — palette from competition bumper plates:
   green = where your body should be, red = where it drifted, yellow = the measured number */
:root {
  --chalk: #EEF0EB;
  --paper: #F8F9F6;
  --ink: #1E2328;
  --slate: #59646E;
  --rule: #CDD2CB;
  --green: #1F8F55;
  --green-ink: #17703F;
  --red: #CF3A2B;
  --yellow: #EDB92E;
  --frame: #262B31;
  --radius-s: 6px;
  --radius-l: 18px;
  --max: 1120px;
  --tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --num: "Barlow Condensed", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font-family: var(--tc); font-size: 17px; line-height: 1.75; font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.num { font-family: var(--num); font-weight: 600; letter-spacing: .01em; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.brand span { font-family: var(--num); font-weight: 600; font-size: 17px; color: var(--slate); }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--slate); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.cta-s { color: var(--paper); background: var(--ink); padding: 6px 14px; border-radius: 999px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: 54px; line-height: 1.22; font-weight: 900; letter-spacing: .01em; margin: 0 0 22px; }
.hero p.lede { font-size: 19px; color: var(--slate); margin: 0 0 30px; max-width: 30em; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; border: 0;
}
.btn:hover { background: var(--green-ink); color: #fff; }
.btn .num { font-size: 21px; }
.btn[aria-disabled="true"] { background: var(--slate); cursor: default; }
.buy small { color: var(--slate); font-size: 14px; line-height: 1.5; }

/* the phone frame with the overlay */
.frame { justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; background: var(--frame);
  border-radius: 28px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(30, 35, 40, .55); }
.frame svg { width: 100%; height: 100%; border-radius: 20px; }
.ghost path, .ghost circle { animation: ghost-in 1.1s .5s both ease-out; }
.fix { stroke-dasharray: 60; animation: draw 0.9s 1.4s both ease-out; }
.tag { animation: tag-in .5s 2.1s both ease-out; }
@keyframes ghost-in { from { opacity: 0; transform: translateX(9px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes tag-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ghost path, .ghost circle, .fix, .tag { animation: none; } }

/* sections */
section.band { padding: 72px 0; border-top: 1px solid var(--rule); }
section.band h2 { font-size: 34px; line-height: 1.3; font-weight: 900; margin: 0 0 14px; }
section.band > .wrap > p.intro { color: var(--slate); max-width: 34em; margin: 0 0 36px; }

/* report anatomy: one column of what you get, keyed by the same plate colours */
.anatomy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.anatomy dl { margin: 0; }
.anatomy div.item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.anatomy dt { font-weight: 700; font-size: 18px; }
.anatomy dd { margin: 4px 0 0; color: var(--slate); }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; background: var(--ink); }
.dot.g { background: var(--green); } .dot.r { background: var(--red); } .dot.y { background: var(--yellow); }

/* steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--num); font-weight: 600; font-size: 44px; line-height: 1; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 20px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--slate); }

/* filming guide */
.shoot { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.shoot ul { margin: 0; padding-left: 1.2em; }
.shoot li { margin: 0 0 10px; }
.shoot li::marker { color: var(--green); }
.shoot figure { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 18px; }
.shoot figcaption { font-size: 14px; color: var(--slate); margin-top: 10px; line-height: 1.5; }

/* price */
.price { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: center; }
.price .amount { font-family: var(--num); font-weight: 600; font-size: 88px; line-height: .9; }
.price .amount small { font-size: 26px; margin-right: 4px; }
.price .meta { color: var(--slate); }
.price ul { margin: 10px 0 18px; padding-left: 1.2em; }
.price .buy { grid-column: 2; }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; max-width: 46em; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--num); font-size: 24px; line-height: 1; color: var(--slate); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--slate); }

/* english */
.en { font-family: Inter, "Helvetica Neue", Arial, var(--tc); font-size: 16px; line-height: 1.6; max-width: 46em; color: var(--slate); }
.en h2 { font-size: 22px !important; }

/* footer */
footer { padding: 40px 0 60px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--slate); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* legal pages */
.legal { padding-block: 24px 72px; }
.legal > * { max-width: 44em; }
.legal h1 { font-size: 36px; font-weight: 900; margin: 16px 0 6px; }
.legal .updated { color: var(--slate); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 880px) {
  body { font-size: 16px; }
  .top nav a:not(.cta-s) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 16px 56px; }
  .hero h1 { font-size: 34px; }
  .hero p.lede { font-size: 17px; }
  .frame { width: min(300px, 86%); }
  section.band { padding: 56px 0; }
  section.band h2 { font-size: 27px; }
  .anatomy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .shoot { grid-template-columns: 1fr; gap: 28px; }
  .shoot figure { max-width: 320px; }
  .price { grid-template-columns: 1fr; padding: 26px; }
  .price .amount { font-size: 72px; }
  .price .buy { grid-column: 1; }
  .wrap { padding: 0 16px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-ghost { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
