:root {
  color-scheme: light;
  --ink: #1c2028;
  --muted: #535964;
  --red: #ef343e;
  --button: #bc2631;
  --line: rgba(52, 59, 73, .16);
  --radius: 22px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: #e9ebef;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(135deg, #f1f2f5, #e5e8ed 55%, #eef0f3); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #9e202a; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.glass { background: #edf0f4; border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(32,42,60,.08), inset 0 1px 0 rgba(255,255,255,.55); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.skip { position: absolute; z-index: 3; top: .5rem; left: .5rem; padding: .65rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead, .footer, nav, .brand, .actions, .primary, .nav-cta, .eyebrow { display: flex; align-items: center; }
.masthead, .footer { min-height: 76px; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.masthead { border-bottom: 1px solid var(--line); }
.brand { gap: 7px; min-height: 44px; font-weight: 660; font-size: 29px; letter-spacing: -.065em; text-decoration: none; }
nav, .actions { gap: 20px; flex-wrap: wrap; }
nav a, .quiet { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; font-weight: 560; }
nav a:hover, .quiet:hover { text-decoration: underline; }
.nav-cta { padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.47); }
.hero, .method, .join { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: clamp(24px,5vw,80px); }
.hero { padding-block: clamp(22px,4vw,56px); }
.eyebrow { gap: .65rem; color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow span { width: 21px; height: 2px; background: var(--red); }
h1, h2 { font-weight: 630; letter-spacing: -.057em; line-height: 1.05; text-wrap: balance; }
h1 { margin-block: 19px; font-size: clamp(3.25rem,5.6vw,5.35rem); }
h2 { font-size: clamp(2.1rem,3.7vw,3.3rem); }
:lang(en) h1 em, :lang(en) h2 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 450; }
:lang(zh-CN) h1, :lang(zh-CN) h2 { letter-spacing: -.035em; line-height: 1.17; }
:lang(zh-CN) em { font-style: normal; }
.intro, .join p, .pricing p { color: var(--muted); }
.intro { max-width: 40ch; line-height: 1.65; font-size: 1.06rem; }
.actions { margin-top: 24px; gap: 12px 20px; }
.primary { justify-content: center; gap: .65rem; padding: 9px 18px; min-height: 44px; border: 1px solid transparent; border-radius: 999px; font-size: 1rem; font-weight: 610; text-decoration: none; background: var(--button); color: white; cursor: pointer; }
.primary:hover { background: #a61f2c; }
.primary:disabled { background: #626974; cursor: default; }
.quiet { gap: .5rem; }
.hero-shot { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: #e3e0d9; }
.gym-photo { width: 100%; height: auto; aspect-ratio: 6/5; object-fit: cover; object-position: 50% 8%; display: block; }
.photo-note { position: absolute; inset: auto clamp(12px,2vw,26px) clamp(12px,2vw,26px); padding: 12px 18px; background: rgba(248,249,252,.94); display: grid; row-gap: 1px; border-radius: 16px; }
.photo-note small { color: var(--muted); font-size: .75rem; }
.photo-note strong { font-size: 1.2rem; letter-spacing: -.025em; }
.photo-note div, .preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.photo-note div { font-size: .86rem; color: var(--muted); }
.photo-note b { color: #92202a; }
.join { padding: clamp(22px,4vw,52px); align-items: start; scroll-margin-top: 16px; }
.join h2 { margin-bottom: 12px; }
#signup { min-width: 0; }
#signup > label:first-child { display: block; font-weight: 650; }
#email { width: 100%; min-height: 48px; margin-block: 6px 10px; border: 1px solid #8d939f; border-radius: 13px; padding: 10px 12px; background: rgba(255,255,255,.84); color: var(--ink); font-size: 1rem; }
#email:disabled { background: rgba(245,246,247,.65); }
.opt-in { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin-bottom: 13px; }
.opt-in input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--button); }
.opt-in label { padding-block: 2px; min-height: 44px; font-size: .92rem; color: var(--ink); cursor: pointer; }
.opt-in a, .delete-note a { color: #88202a; }
.trap { position: absolute; display: block; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
#signup-message { font-size: .97rem; font-weight: 540; }
#signup-message:not(:empty) { margin-top: 12px; }
#signup-message[data-state="error"], #signup-message[data-state="unavailable"] { color: #8e1b28; }
.join .delete-note { font-size: .86rem; margin-top: 13px; overflow-wrap: anywhere; }
.method { padding-block: clamp(46px,7vw,86px); }
.method h2, .pricing h2 { margin-block: 15px; }
.log-preview { padding: clamp(18px,3vw,32px); }
.preview-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.preview-head span { color: var(--muted); font-size: .85rem; }
.log-row { display: grid; grid-template-columns: minmax(4.7rem,auto) 1fr; align-items: start; gap: 18px; margin-top: 17px; }
.day { color: var(--muted); font-size: .88rem; }
.log-row div { padding-left: 16px; border-left: 2px solid var(--red); }
.log-row strong, .log-row small { display: block; }
.log-row small { color: var(--muted); }
.pricing { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: clamp(40px,6vw,72px); }
.ai-note { font-size: .94rem; }
.footer { padding-block: 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer .brand { font-size: 24px; }
.faq { padding-block: 28px 48px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { padding-block: 15px; font-weight: 600; cursor: pointer; }
.faq details p { max-width: 68ch; margin-bottom: 18px; color: var(--muted); }
@media(max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 64px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { font-size: .88rem; }
  .nav-cta { padding-inline: 13px; }
  .hero, .join, .method { grid-template-columns: minmax(0,1fr); gap: 22px; }
  h1 { margin-block: 15px; font-size: clamp(3rem,12vw,4.6rem); }
  .actions { margin-top: 16px; }
  .gym-photo { aspect-ratio: 1.82; object-position: 50% 6%; }
  .photo-note { inset-inline: auto 12px; min-width: min(64%,255px); padding: 8px 12px; }
  .photo-note strong { font-size: 1.05rem; }
  #signup .primary { width: 100%; }
  .join, .log-preview { padding: 20px; }
  .footer nav { gap: 4px 16px; }
}
@media(prefers-reduced-transparency: reduce), (forced-colors: active) {
  .glass { background: #f4f5f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media(prefers-reduced-motion: no-preference) {
  .primary { transition: background-color 160ms ease; }
}
