:root {
  color-scheme: light;
  --ink: #171717;
  --ink-soft: #5e5e5e;
  --ink-faint: #8b8b8b;
  --paper: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f0efec;
  --line: #deddd8;
  --line-strong: #b8b7b2;
  --brand: #e8613c;
  --brand-dark: #c84524;
  --brand-pale: #fce8e1;
  --brand-wash: #fff5f0;
  --green: #237a57;
  --yellow: #f7c84b;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(24, 20, 18, 0.1);
  --content: min(1180px, calc(100vw - 48px));
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font: 400 16px/1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(232, 97, 60, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--content);
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18);
  font: 700 12px/1 var(--font-mono);
}

.brand small {
  color: var(--ink-faint);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.site-nav button {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: white;
  background: var(--ink);
}

.site-nav .nav-cta:hover {
  color: white;
  background: var(--brand-dark);
}

body.modal-open {
  overflow: hidden;
}

.qr-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.66);
  backdrop-filter: blur(5px);
}

.qr-dialog {
  position: relative;
  width: min(100%, 410px);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.qr-kicker {
  margin: 0;
  color: var(--brand-dark);
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
}

.qr-dialog h2 {
  margin: 14px 0 6px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.qr-dialog p:not(.qr-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.qr-code {
  width: min(100%, 280px);
  height: auto;
  margin-top: 24px;
  border-radius: 12px;
  display: block;
  margin-inline: auto;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font: 500 25px/1 var(--font-sans);
}

.qr-close:hover {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.container {
  width: var(--content);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: clamp(70px, 10vw, 132px) 0 72px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--brand-dark);
  font: 700 12px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 7.3vw, 110px);
  font-weight: 830;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--brand);
}

.hero-lead {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.75;
}

.hero-actions,
.page-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: var(--ink);
  font-size: 15px;
  font-weight: 730;
  transition: transform 160ms ease, background 160ms ease;
}

.button::after {
  content: "↗";
  font: 700 16px/1 var(--font-mono);
}

.button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button.secondary::after {
  content: "↓";
}

.button.secondary:hover {
  color: var(--brand-dark);
  background: var(--surface);
  border-color: var(--brand);
}

.hero-note {
  margin: 20px 0 0;
  color: var(--ink-faint);
  font: 500 12px/1.6 var(--font-mono);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(232, 97, 60, 0.45);
  border-radius: inherit;
  inset: 15%;
}

.orbit::after {
  border-style: solid;
  border-color: rgba(23, 23, 23, 0.08);
  inset: 30%;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(318px, 82vw);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38px;
  color: var(--ink);
  background: #202020;
  box-shadow: 0 34px 90px rgba(20, 20, 20, 0.25);
  transform: rotate(2.5deg);
}

.phone-screen {
  min-height: 540px;
  padding: 18px 17px 20px;
  overflow: hidden;
  border-radius: 30px;
  background: #f6f6f6;
}

.phone-top {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 650 11px/1 var(--font-mono);
}

.phone-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.phone-subtitle {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.workout-card {
  padding: 18px;
  border-radius: 20px;
  color: white;
  background: var(--brand);
  box-shadow: 0 14px 35px rgba(200, 69, 36, 0.22);
}

.workout-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.82;
}

.workout-card h3 {
  margin: 28px 0 7px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.workout-card p {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

.metric-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.metric {
  padding: 12px 8px;
  border-radius: 13px;
  text-align: center;
  background: var(--surface);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 13px;
}

.metric span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.next-card {
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid #e5e4e0;
  border-radius: 16px;
  background: var(--surface);
}

.next-card small {
  color: var(--ink-faint);
}

.next-card strong {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.floating-label {
  position: absolute;
  z-index: 3;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
  font: 650 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.floating-label.one {
  top: 14%;
  right: 0;
}

.floating-label.two {
  left: -3%;
  bottom: 17%;
}

.hero-index {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font: 650 11px/1 var(--font-mono);
}

.hero-index::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--line-strong);
}

.section {
  padding: clamp(90px, 13vw, 180px) 0;
  border-top: 1px solid var(--line);
  background: rgba(248, 247, 244, 0.9);
}

.section.white {
  background: var(--surface);
}

.section.dark {
  color: #f8f7f4;
  background: var(--ink);
  border-color: #2f2f2f;
}

.section-head {
  margin-bottom: clamp(54px, 8vw, 100px);
  display: grid;
  grid-template-columns: 100px minmax(0, 0.9fr) minmax(280px, 0.46fr);
  align-items: start;
  gap: 28px;
}

.section-no {
  color: var(--brand);
  font: 700 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.section-title {
  margin: -8px 0 0;
  max-width: 780px;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 810;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.section-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.dark .section-intro {
  color: #aaa;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.thesis-main,
.thesis-side {
  background: var(--surface);
}

.thesis-main {
  padding: clamp(32px, 6vw, 76px);
}

.thesis-main blockquote {
  margin: 0;
  max-width: 770px;
  font-size: clamp(29px, 4.4vw, 58px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.thesis-main blockquote em {
  color: var(--brand);
  font-style: normal;
}

.thesis-main p {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.thesis-side {
  display: grid;
}

.thesis-note {
  min-height: 180px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thesis-note:last-child {
  border-bottom: 0;
}

.thesis-note small {
  color: var(--brand-dark);
  font: 650 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.thesis-note strong {
  max-width: 300px;
  font-size: 20px;
  line-height: 1.45;
}

.loop {
  counter-reset: loop;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.loop-step {
  counter-increment: loop;
  position: relative;
  min-height: 210px;
  padding: 18px 16px;
  border: 1px solid #383838;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1e1e1e;
}

.loop-step::before {
  content: "0" counter(loop);
  color: var(--brand);
  font: 700 11px/1 var(--font-mono);
}

.loop-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  font: 700 12px/1 var(--font-mono);
}

.loop-step strong {
  font-size: 17px;
  line-height: 1.45;
}

.loop-step span {
  color: #949494;
  font-size: 12px;
  line-height: 1.55;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-card {
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.role-card .role-kicker {
  color: var(--brand-dark);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.role-card h3 {
  margin: 68px 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.role-card p {
  margin: 0;
  color: var(--ink-soft);
}

.role-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.role-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.role-card li::before {
  content: "—";
  margin-right: 8px;
  color: var(--brand);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.path-card {
  min-height: 460px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.path-card.accent {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.path-card .path-no {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.path-card h3 {
  max-width: 470px;
  margin: 90px 0 18px;
  font-size: clamp(36px, 4.7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.path-card p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.path-card.accent p {
  color: rgba(255, 255, 255, 0.8);
}

.text-link {
  margin-top: auto;
  padding-top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid currentColor;
  font-weight: 750;
}

.text-link::after {
  content: "↗";
  font-family: var(--font-mono);
}

.site-footer {
  padding: 72px 0 34px;
  color: #d4d4d4;
  background: #101010;
}

.footer-main {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.footer-main h2 {
  max-width: 620px;
  margin: 0;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 12px 28px;
}

.footer-links a {
  padding: 11px 0;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  color: #bbb;
}

.footer-links a::after {
  content: "↗";
  color: var(--brand);
  font-family: var(--font-mono);
}

.footer-meta {
  padding-top: 24px;
  border-top: 1px solid #303030;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #737373;
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: 0.05em;
}

.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.has-motion [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    min-height: 610px;
  }

  .section-head {
    grid-template-columns: 72px 1fr;
  }

  .section-intro {
    grid-column: 2;
    max-width: 620px;
  }

  .loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-step {
    min-height: 160px;
  }

  .loop-step:not(:last-child)::after {
    display: none;
  }

  .roles {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 330px;
  }

  .role-card h3 {
    margin-top: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100% - 32px, 1180px);
  }

  body {
    background-size: 24px 24px;
  }

  .nav-shell {
    height: 68px;
  }

  .brand small {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    padding: 13px 14px;
  }

  .site-nav .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .qr-modal {
    padding: 16px;
  }

  .qr-dialog {
    padding: 34px 24px 26px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .phone-screen {
    min-height: 500px;
  }

  .floating-label.one {
    right: -6px;
  }

  .floating-label.two {
    left: -6px;
  }

  .hero-index {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .section-head {
    margin-bottom: 48px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-intro {
    grid-column: auto;
  }

  .section-title {
    margin-top: 0;
    font-size: clamp(38px, 12vw, 56px);
  }

  .thesis-grid,
  .path-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .thesis-main {
    padding: 30px 24px 44px;
  }

  .thesis-side {
    grid-template-columns: 1fr 1fr;
  }

  .thesis-note {
    min-height: 160px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .thesis-note:last-child {
    border-right: 0;
  }

  .loop {
    grid-template-columns: 1fr;
  }

  .loop-step {
    min-height: 130px;
  }

  .role-card,
  .path-card {
    min-height: 360px;
  }

  .path-card h3 {
    margin-top: 56px;
  }

  .footer-main {
    min-height: 0;
    gap: 50px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    margin-top: 56px;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 510px;
  }

  .phone {
    width: min(292px, 87vw);
  }

  .phone-screen {
    min-height: 470px;
  }

  .floating-label {
    font-size: 10px;
  }

  .floating-label.one {
    top: 9%;
  }

  .floating-label.two {
    bottom: 12%;
  }

  .thesis-side {
    grid-template-columns: 1fr;
  }

  .thesis-note,
  .thesis-note:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thesis-note:last-child {
    border-bottom: 0;
  }
}

/* Privacy policies */
.legal-hero {
  padding: clamp(70px, 9vw, 120px) 0 clamp(62px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: clamp(42px, 9vw, 130px);
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.legal-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
}

.policy-meta {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.policy-meta-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-meta-row:first-child {
  padding-top: 0;
}

.policy-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-meta-row span {
  color: var(--ink-faint);
  font: 650 11px/1.4 var(--font-mono);
  letter-spacing: 0.05em;
}

.policy-meta-row strong {
  text-align: right;
  font-size: 13px;
}

.policy-status {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-pale);
}

.policy-status.ready {
  color: var(--green);
  background: #e6f3ec;
}

.legal-notice-wrap {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  background: var(--brand-wash);
}

.legal-notice {
  padding: 24px 26px;
  border-left: 4px solid var(--brand);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  background: rgba(255, 255, 255, 0.68);
}

.legal-notice strong {
  color: var(--brand-dark);
  font-size: 14px;
}

.legal-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-content {
  padding: clamp(72px, 10vw, 132px) 0;
  background: var(--paper);
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(50px, 10vw, 140px);
}

.legal-toc {
  position: sticky;
  top: 112px;
  align-self: start;
}

.legal-toc-label {
  margin-bottom: 18px;
  color: var(--ink-faint);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.legal-toc a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-toc a:hover {
  color: var(--brand-dark);
}

.legal-toc a span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.legal-article {
  min-width: 0;
}

.legal-intro {
  margin: 0 0 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.legal-section {
  padding: 18px 0 60px;
  scroll-margin-top: 110px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section-no {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.legal-section h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.legal-section h3 {
  margin: 32px 0 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
}

.legal-section p {
  margin: 0 0 18px;
}

.legal-section ul,
.legal-section ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.legal-section li {
  margin: 9px 0;
}

.legal-section a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.data-list {
  margin: 30px 0;
  border-top: 1px solid var(--line-strong);
}

.data-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
  gap: 30px;
}

.data-row strong {
  font-size: 15px;
}

.data-row p {
  margin: 0;
  font-size: 14px;
}

.legal-callout {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 14px;
}

.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.official-policy-link {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink) !important;
  background: var(--surface);
  text-decoration: none !important;
  font-weight: 740;
}

.official-policy-link::after {
  content: "↗";
  color: var(--brand);
  font-family: var(--font-mono);
}

.legal-end-note {
  margin-top: 12px;
  padding: 28px;
  border-radius: var(--radius-md);
  color: white;
  background: var(--ink);
}

.legal-end-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.legal-end-note p {
  margin: 0;
  color: #b9b9b9;
}

.footer-links a.legal-link {
  color: #939393;
  font-size: 13px;
}

@media (max-width: 980px) {
  .legal-hero-grid {
    grid-template-columns: 1fr;
  }

  .policy-meta {
    max-width: 540px;
  }

  .legal-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 54px;
  }
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 62px 0 72px;
  }

  .legal-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .legal-notice {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .legal-toc-label {
    grid-column: 1 / -1;
  }

  .legal-intro {
    margin-bottom: 44px;
    padding-bottom: 36px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .legal-toc {
    grid-template-columns: 1fr;
  }

  .policy-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .policy-meta-row strong {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Inner pages */
.page-hero {
  padding: clamp(72px, 10vw, 138px) 0 clamp(78px, 10vw, 132px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 244, 0.9);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: clamp(48px, 9vw, 128px);
}

.breadcrumb {
  margin: 0 0 36px;
  color: var(--ink-faint);
  font: 650 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.page-hero h1 {
  font-size: clamp(52px, 7.2vw, 100px);
}

.page-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.7vw, 22px);
}

.page-hero-panel {
  min-height: 500px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f7f5;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.page-hero-panel .panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #939393;
  font: 650 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.page-hero-panel .panel-label::after {
  content: "●";
  color: var(--brand);
}

.formula {
  display: grid;
  gap: 12px;
}

.formula-item {
  padding: 16px 18px;
  border: 1px solid #3a3a3a;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9d9d9;
  background: #212121;
}

.formula-item strong {
  color: white;
  font-size: 15px;
}

.formula-item span {
  color: var(--brand);
  font: 700 11px/1 var(--font-mono);
}

.formula-result {
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid #3a3a3a;
}

.formula-result small {
  color: #858585;
  font: 650 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.formula-result strong {
  margin-top: 9px;
  display: block;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.statement-strip {
  padding: 18px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--surface);
  font: 650 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.statement-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.statement-strip span::before {
  content: "●";
  margin-right: 12px;
  color: var(--brand);
}

.story-section {
  padding: clamp(90px, 12vw, 170px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 244, 0.93);
}

.story-section.white {
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(50px, 10vw, 150px);
}

.story-copy {
  position: sticky;
  top: 120px;
}

.story-number {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--brand-dark);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.story-number::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--brand);
}

.story-copy h2 {
  margin: 30px 0 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.story-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.story-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.story-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green);
  font-weight: 800;
}

.ui-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(28, 24, 20, 0.07);
}

.ui-panel.dark-panel {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.ui-caption {
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-faint);
  font: 650 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.ui-caption .sample-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-pale);
}

.progress-track {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.progress-track span {
  height: 5px;
  border-radius: 999px;
  background: #e7e6e2;
}

.progress-track span.active {
  background: var(--brand);
}

.mock-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.mock-subtitle {
  margin: 9px 0 30px;
  color: var(--ink-soft);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-card {
  min-height: 120px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfbfa;
}

.choice-card.active {
  border-color: var(--brand);
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card strong {
  font-size: 15px;
}

.choice-card span {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
}

.field-group {
  margin-top: 28px;
}

.field-label {
  margin-bottom: 11px;
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 12px;
}

.chip.active {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-wash);
  font-weight: 700;
}

.stat-stack {
  display: grid;
  gap: 10px;
}

.stat-line {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.stat-line span {
  color: var(--ink-soft);
  font-size: 13px;
}

.stat-line strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.calibration {
  margin-top: 16px;
  padding: 22px;
  border-radius: 16px;
  background: var(--brand-wash);
}

.calibration small {
  color: var(--brand-dark);
  font: 650 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.calibration strong {
  margin-top: 8px;
  display: block;
  font-size: 24px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.day-chip {
  min-height: 66px;
  padding: 10px 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 11px;
}

.day-chip.rest {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-wash);
}

.day-chip small {
  color: var(--ink-faint);
  font-size: 9px;
}

.info-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  background: #f4f3f0;
  font-size: 13px;
}

.summary-list {
  border-top: 1px solid var(--line);
}

.summary-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.summary-row span {
  color: var(--ink-faint);
  font-size: 12px;
}

.summary-row strong {
  text-align: right;
  font-size: 13px;
}

.suggestion {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: var(--brand);
}

.suggestion small {
  opacity: 0.8;
}

.suggestion strong {
  margin-top: 7px;
  display: block;
  font-size: 20px;
}

.principle-section {
  padding: clamp(90px, 12vw, 160px) 0;
  color: white;
  background: var(--ink);
}

.principle-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 9vw, 130px);
}

.principle-grid h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.principle-list {
  display: grid;
  gap: 1px;
  background: #343434;
}

.principle-item {
  padding: 25px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  background: #1f1f1f;
}

.principle-item span {
  color: var(--brand);
  font: 700 11px/1.5 var(--font-mono);
}

.principle-item strong {
  display: block;
  font-size: 18px;
}

.principle-item p {
  margin: 6px 0 0;
  color: #9e9e9e;
  font-size: 14px;
}

/* Guide */
.guide-map {
  display: grid;
  gap: 8px;
}

.guide-map-row {
  min-height: 62px;
  padding: 13px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #212121;
}

.guide-map-row span {
  color: var(--brand);
  font: 700 10px/1 var(--font-mono);
}

.guide-map-row strong {
  font-size: 14px;
}

.guide-map-row small {
  color: #818181;
}

.today-mock {
  padding: 8px;
  border-radius: 24px;
  background: #efefed;
}

.today-primary {
  padding: 28px;
  border-radius: 20px;
  color: white;
  background: var(--brand);
}

.today-primary small {
  opacity: 0.78;
}

.today-primary h3 {
  margin: 35px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.today-primary p {
  margin: 0;
  opacity: 0.82;
}

.today-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-action {
  padding: 15px 12px;
  border-radius: 15px;
  text-align: center;
  background: var(--surface);
  font-size: 13px;
  font-weight: 720;
}

.mock-action.outline {
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.adjust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.adjust-option {
  min-height: 145px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbfbfa;
}

.adjust-option span {
  color: var(--brand-dark);
  font: 700 10px/1 var(--font-mono);
}

.adjust-option strong {
  font-size: 19px;
}

.device-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.device-row:last-child {
  border-bottom: 0;
}

.device-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.device-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  font: 700 11px/1 var(--font-mono);
}

.device-info strong,
.device-info small {
  display: block;
}

.device-info small {
  margin-top: 3px;
  color: var(--ink-faint);
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e6f3ec;
  font-size: 11px;
  font-weight: 700;
}

.analysis-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 22px;
  color: white;
  background: var(--ink);
}

.analysis-card .ai-label {
  color: var(--brand);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.analysis-card h3 {
  margin: 44px 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.analysis-card p {
  margin: 0;
  color: #b4b4b4;
  font-size: 15px;
}

.analysis-points {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #3b3b3b;
}

.analysis-point {
  padding: 18px;
  background: #232323;
}

.analysis-point small {
  color: #7f7f7f;
}

.analysis-point strong {
  margin-top: 6px;
  display: block;
  color: white;
  font-size: 14px;
}

.next-workout {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.next-workout-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font: 650 11px/1 var(--font-mono);
}

.next-workout h3 {
  margin: 36px 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.next-workout p {
  margin: 0;
  color: var(--ink-soft);
}

.boundary-band {
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--brand);
  color: white;
}

.boundary-band h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.boundary-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.boundary-item {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--brand);
}

.boundary-item span {
  font: 700 11px/1 var(--font-mono);
  opacity: 0.68;
}

.boundary-item strong {
  font-size: 23px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .page-hero-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-panel {
    min-height: 430px;
  }

  .story-grid {
    grid-template-columns: 0.7fr 1fr;
    gap: 48px;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .boundary-item {
    min-height: 170px;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 66px 0 82px;
  }

  .page-hero-panel {
    min-height: 400px;
  }

  .statement-strip .container span:nth-child(n + 3) {
    display: none;
  }

  .story-section {
    padding: 90px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .story-copy {
    position: static;
  }

  .ui-panel {
    padding: 20px;
    border-radius: 21px;
  }

  .choice-grid,
  .analysis-points {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 100px;
  }

  .week-grid {
    gap: 4px;
  }

  .day-chip {
    min-height: 58px;
    padding-inline: 0;
    font-size: 10px;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .summary-row strong {
    text-align: left;
  }

  .principle-grid {
    gap: 48px;
  }

  .adjust-grid {
    grid-template-columns: 1fr;
  }

  .adjust-option {
    min-height: 110px;
  }

  .boundary-grid {
    margin-top: 48px;
  }
}

@media (max-width: 430px) {
  .page-hero-panel {
    min-height: 370px;
    padding: 22px;
  }

  .formula-item {
    padding: 14px;
  }

  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .today-actions {
    grid-template-columns: 1fr;
  }
}
