/* ============================================================
   FLIPWALK — landing page
   Aesthetic: white surface + cool-gray bg + restrained teal,
   with orange (#FF7A1A) reserved for the FLIP moments.
   Mirrors AppTheme.flip and the iPhone home-screen feel:
   atmospheric radial-teal glow over near-white, generous space,
   confident Manrope numerals, Noto Sans JP for Japanese body.
   ============================================================ */

:root {
  /* AppTheme.flip — single source of truth */
  --primary: #1FB8B0;
  --primary-light: #80CBC4;
  --primary-dark: #00897B;
  --primary-tint: rgba(31, 184, 176, 0.08);
  --primary-tint-strong: rgba(31, 184, 176, 0.18);
  --accent: #FF9F43;
  --flip: #FF7A1A;
  --flip-tint: rgba(255, 122, 26, 0.10);
  --flip-tint-strong: rgba(255, 122, 26, 0.18);

  --bg: #F1F2F1;
  --surface: #FFFFFF;
  --surface-tint: #EFF2F1;
  --slow-fill-normal: #E9F8F7;
  --slow-fill-return: #FFE9D5;

  --text-primary: #1C1D1C;
  --text-secondary: #757874;
  --text-tertiary: #BCBDB9;
  --hairline: rgba(28, 29, 28, 0.08);

  /* Typography */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-body-en: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-body-ja: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* Layout */
  --max-w: 1120px;
  --max-w-narrow: 760px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card:
    0 1px 2px rgba(28, 29, 28, 0.04),
    0 8px 24px rgba(28, 29, 28, 0.06);
  --shadow-soft:
    0 1px 2px rgba(28, 29, 28, 0.03),
    0 16px 48px rgba(28, 29, 28, 0.06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body-en);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
body[lang^="ja"] { font-family: var(--font-body-ja); line-height: 1.85; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--primary-tint-strong); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: var(--max-w-narrow); }

/* ---------- Editorial primitives ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4A4D49;
  margin: 0 0 20px;
}
body[lang^="ja"] .kicker {
  font-family: var(--font-body-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: none;
}
.kicker::before, .kicker.--center::after {
  content: "";
  width: 32px; height: 1.5px;
  background: currentColor;
  opacity: 0.55;
}
.kicker.--center { justify-content: center; }
.kicker.--accent { color: var(--flip); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0;
}
body[lang^="ja"] .display { font-family: var(--font-body-ja); font-weight: 800; letter-spacing: -0.005em; line-height: 1.25; }

.h1 { font-size: clamp(36px, 5.4vw, 64px); }
.h2 { font-size: clamp(32px, 4.4vw, 56px); }
.h3 { font-size: clamp(22px, 2.3vw, 28px); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}
body[lang^="ja"] .lede { line-height: 1.85; }

.flip-word {
  color: var(--flip);
  font-style: italic;
  font-weight: 800;
}
body[lang^="ja"] .flip-word { font-style: normal; }

/* Brand-tied highlight: matches WALK in the logo */
.walk-word {
  color: var(--primary);
  font-weight: 800;
}

/* Japanese: single-char unit ("分") shouldn't carry caps tracking */
body[lang^="ja"] .phase .unit {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-body-ja);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 242, 241, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 17px;
  display: inline-flex;
  /* FLIP = flipAccent (orange), WALK = walkPrimary (teal) — mirrors BrandLogoText.swift */
}
.brand .b-flip { color: var(--flip); }
.brand .b-walk { color: var(--primary); }
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
}
.lang-switch a.is-active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(28,29,28,0.06);
}
.lang-switch a:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 48px;
  overflow: hidden;
}
.hero::before {
  /* The signature radial-teal glow from the home screen */
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 95%;
  background:
    radial-gradient(ellipse 50% 60% at 78% 50%,
      rgba(31, 184, 176, 0.10) 0%,
      rgba(31, 184, 176, 0.04) 40%,
      transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

/* Hero banner — wide poster that opens the page */
.hero-banner {
  position: relative;
  margin: 0 auto 56px;
  max-width: var(--max-w);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-tint);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-banner-mark {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 56px);
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.hero-banner-mark .b-flip { color: var(--flip); }
.hero-banner-mark .b-walk { color: var(--primary); }
@media (max-width: 600px) {
  .hero-banner-mark { top: 8%; letter-spacing: 0.18em; }
}
@media (max-width: 880px) {
  .hero-banner { margin-bottom: 36px; border-radius: 18px; }
}
.hero h1 { margin: 0 0 24px; }
.hero .lede { margin-bottom: 32px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(28,29,28,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28,29,28,0.22);
}
.btn-store svg { width: 22px; height: 22px; flex: none; }
.hero-meta {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
body[lang^="ja"] .hero-meta { letter-spacing: 0.06em; }

/* iPhone-shaped device frame (bezel + rounded screen) */
.hero-visual {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 9px;
  background: #1A1A1A;
  border-radius: 48px;
  box-shadow:
    0 36px 70px rgba(28, 29, 28, 0.18),
    0 12px 24px rgba(28, 29, 28, 0.08);
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1206 / 2622; /* iPhone 16/17 standard */
  object-fit: cover;
  border-radius: 38px;
  background: var(--surface);
}
.hero-visual .placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-size: 13px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,
      rgba(31, 184, 176, 0.16) 0%,
      rgba(31, 184, 176, 0.04) 50%,
      transparent 75%),
    var(--surface);
  text-align: center;
  padding: 24px;
}

/* ---------- Section frame ---------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section-head { text-align: center; margin: 0 auto 56px; max-width: var(--max-w-narrow); }
.section-head .lede { margin: 16px auto 0; text-align: center; }

/* ---------- Anatomy of one set ---------- */
.anatomy {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}
.anatomy-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
}
.anatomy h2 { margin: 0 0 16px; }
.anatomy p { color: var(--text-secondary); margin: 0; }
.anatomy-body {
  max-width: 60ch;
  margin: 0 auto !important;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

.set-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.phase {
  border-radius: 18px;
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.phase .phase-icon {
  width: 38px; height: 38px;
  margin-bottom: 4px;
}
.phase .phase-icon svg { width: 100%; height: 100%; }
.phase--brisk {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 184, 176, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.phase--slow {
  background: var(--slow-fill-normal);
  color: var(--primary-dark);
}
.phase--result {
  background: var(--surface-tint);
  color: var(--primary-dark);
  border: 1px solid var(--hairline);
}
.phase--result .num { color: var(--primary-dark); }
.phase--result .label { color: var(--text-secondary); }
.phase .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.phase .unit {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}
.phase .label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
body[lang^="ja"] .phase .label { font-family: var(--font-body-ja); }
.set-plus, .set-eq {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-tertiary);
  line-height: 1;
}

/* ---------- Weekly grid ---------- */
.weekly-with-phone {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}
.weekly-with-phone .hero-visual { margin: 0; }
@media (max-width: 880px) {
  .weekly-with-phone { grid-template-columns: 1fr; gap: 40px; }
  .weekly-with-phone .hero-visual { max-width: 240px; }
}
.weekly-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  text-align: center;
}
.weekly-display {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 144px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.weekly-display .unit {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}
body[lang^="ja"] .weekly-display .unit { letter-spacing: 0.04em; text-transform: none; }
.weekly-caption {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 40px auto 8px;
}
.weekly-grid .day {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--hairline);
}
.weekly-grid .day.is-active {
  background: var(--primary-tint-strong);
  border-color: transparent;
}
.weekly-grid .day .dlabel {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.weekly-grid .day.is-active .dlabel { color: var(--primary-dark); }
.weekly-grid .day .dnum {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.weekly-grid .day:not(.is-active) .dnum { color: var(--text-tertiary); font-weight: 500; }

.weekly-recipe {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
body[lang^="ja"] .weekly-recipe { letter-spacing: 0.06em; text-transform: none; font-family: var(--font-body-ja); font-weight: 600; }
.flex-tag {
  display: inline-block;
  background: var(--flip-tint);
  color: var(--flip);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 8px;
}
body[lang^="ja"] .flex-tag { letter-spacing: 0.04em; text-transform: none; font-family: var(--font-body-ja); }

/* ---------- Evidence stats (in anatomy section) ---------- */
.evidence {
  margin: 0;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.evidence .kicker { margin: 0 0 22px; }
.evidence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.evidence-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.evidence-note { text-align: center; max-width: 60ch; margin: 0 auto !important; }
.evidence-stats .stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.evidence-stats .stat .lab {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
body[lang^="ja"] .evidence-stats .stat .lab {
  font-family: var(--font-body-ja);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}
.evidence-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}
.evidence-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .evidence-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.card .glyph {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-tint);
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.card .glyph svg { width: 24px; height: 24px; }
.card.--flip .glyph { background: var(--flip-tint); color: var(--flip); }
.card.--flip .card-title { color: var(--flip); }
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
body[lang^="ja"] .card-title { font-family: var(--font-body-ja); }
.card p { color: var(--text-secondary); margin: 0; font-size: 16px; line-height: 1.65; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.--reverse > :first-child { order: 2; }
.two-col h2 { margin: 0 0 16px; }
.two-col p { color: var(--text-secondary); margin: 0 0 12px; max-width: 48ch; }

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%,
      rgba(31, 184, 176, 0.16) 0%,
      rgba(31, 184, 176, 0.05) 45%,
      transparent 75%),
    var(--surface);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
}
.visual-card.--flip {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%,
      rgba(255, 122, 26, 0.16) 0%,
      rgba(255, 122, 26, 0.05) 45%,
      transparent 75%),
    var(--surface);
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visual-card .ph {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-size: 12px;
  text-transform: uppercase;
}
.visual-card.--flip .ph { color: var(--flip); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.step .num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(31, 184, 176, 0.3);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 6px;
}
body[lang^="ja"] .step h3 { font-family: var(--font-body-ja); }
.step p { color: var(--text-secondary); margin: 0; font-size: 15px; }

/* ---------- References ---------- */
.references {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--hairline);
}
.references ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: ref;
}
.references li {
  counter-increment: ref;
  position: relative;
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.references li:last-child { border-bottom: none; }
.references li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0; top: 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
}
.references cite {
  font-style: normal;
  font-weight: 700;
  color: var(--text-primary);
}
.references .ref-source {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-left: 6px;
}
body[lang^="ja"] .references .ref-source { letter-spacing: 0.04em; text-transform: none; }

/* ---------- Section emblem (large icon above kicker) ---------- */
.section-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: var(--flip);
}
.section-emblem svg { width: 100%; height: 100%; display: block; }

/* Cards: 2-column variant for sections that only need two cards */
.cards.--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 880px) {
  .cards.--two { grid-template-columns: 1fr; }
}

/* Final CTA: brand wordmark as the headline */
.cta-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1;
  display: inline-flex;
}
.cta-wordmark .b-flip { color: var(--flip); }
.cta-wordmark .b-walk { color: var(--primary); }

/* App Store button + QR code side by side */
.cta-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-code img {
  width: 132px;
  height: 132px;
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(28, 29, 28, 0.06), 0 8px 20px rgba(28, 29, 28, 0.08);
}
.qr-code.--sm img { width: 100px; height: 100px; padding: 5px; }
.qr-code.--sm .qr-caption { font-size: 10px; }
body[lang^="ja"] .qr-code.--sm .qr-caption { font-size: 11px; }
.qr-code .qr-caption {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
body[lang^="ja"] .qr-code .qr-caption {
  font-family: var(--font-body-ja);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 12px;
}
@media (max-width: 600px) {
  .qr-code { display: none; }
}

/* ---------- FLIP showcase (orange return-phase walking screen) ---------- */
.flip-showcase {
  margin: 8px auto 56px;
  max-width: 320px;
}
.flip-showcase .hero-visual {
  /* override hero-visual default glow with orange (return-phase) glow */
}
.flip-showcase .placeholder {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,
      rgba(255, 122, 26, 0.20) 0%,
      rgba(255, 122, 26, 0.06) 50%,
      transparent 75%),
    var(--surface);
  color: var(--flip);
}

/* ---------- Citations (under CTA) ---------- */
.citations {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 16px;
}
.citations .kicker { margin-bottom: 12px; }
.citations h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 14px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
body[lang^="ja"] .citations h3 { font-family: var(--font-body-ja); }
.citations .preface {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 60ch;
}
.citations ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: ref;
}
.citations li {
  counter-increment: ref;
  position: relative;
  padding: 14px 0 14px 36px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.citations li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0; top: 17px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.citations cite { font-style: normal; font-weight: 700; color: var(--text-primary); }
.citations .ref-source {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-left: 4px;
}
body[lang^="ja"] .citations .ref-source { letter-spacing: 0.04em; text-transform: none; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  text-align: center;
  padding: 96px 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 24px 0 96px;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%,
      rgba(31, 184, 176, 0.10) 0%,
      transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 60%,
      rgba(255, 122, 26, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final .kicker { display: flex; justify-content: center; margin: 0 0 18px; }
.cta-final .cta-wordmark { display: flex; justify-content: center; margin: 0 0 16px; }
.cta-final p { color: var(--text-secondary); margin: 0 0 32px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 64px;
  font-size: 14px;
  color: var(--text-tertiary);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: var(--text-secondary);
  margin-left: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer-links a:first-child { margin-left: 0; }
.disclaimer {
  margin-top: 28px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.7;
  max-width: 720px;
}
.citations .disclaimer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .container { padding: 0 22px; }
  .hero { padding: 56px 0 24px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .anatomy-stack { gap: 36px; }
  .set-equation { gap: 8px; }
  .two-col.--reverse > :first-child { order: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .anatomy, .weekly-card, .references { padding: 36px 24px; }
  .section { padding: 64px 0; }
  .hero-visual { max-width: 260px; }
  .weekly-grid { gap: 6px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
