@font-face {
  font-family: "AppDock.link Inter";
  src: url("./assets/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AppDock.link Inter";
  src: url("./assets/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "AppDock.link Inter";
  src: url("./assets/fonts/inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "AppDock.link Inter";
  src: url("./assets/fonts/inter-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #736a61;
  --green: #5f7d6f;
  --deep-green: #314c40;
  --stage-green: #3c5a4d;
  --green-border: #5d796c;
  --green-soft: #e8f0ec;
  --gray-soft: #f2f0ed;
  --border: #e5e1db;
  --orange: #f28c3a;
  --morning: #fff5d9;
  --morning-accent: #d19c45;
  --evening: #f2efff;
  --evening-accent: #645ba8;
  --delta: #fff0ed;
  --delta-accent: #a54d3a;
  --footer: #1a1a1a;
  --footer-muted: #a3aba7;
  --footer-rule: #404040;
  --font-latin: "AppDock.link Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", YuGothic, "Helvetica Neue", sans-serif;
  --font-body: var(--font-zh);
}

html[lang="ja"] {
  --font-body: var(--font-ja);
}

html[lang="en"] {
  --font-body: var(--font-latin);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  font-family: var(--font-body);
}

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

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

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.section-inner,
.header-inner {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 7.5px;
  background: #171e1b;
}

.brand-bars {
  display: flex;
  height: 14px;
  align-items: flex-end;
  gap: 2px;
}

.brand-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
}

.brand-bars i:nth-child(1) {
  height: 10px;
  background: #fff;
}

.brand-bars i:nth-child(2) {
  height: 14px;
  background: #849f92;
}

.brand-bars i:nth-child(3) {
  height: 12px;
  background: #f08133;
}

.brand-baseline {
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
}

.brand-word {
  color: #171e1b;
  font-family: var(--font-latin);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.main-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.main-nav a {
  min-width: 64px;
  padding-block: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.main-nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.language-switcher {
  display: grid;
  width: 208px;
  height: 38px;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--white);
}

.language-switcher button,
.footer-languages button {
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-latin);
  font-size: 12px;
  line-height: 20px;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gray-soft);
  border-radius: 15px;
  font-weight: 600;
}

.section-offwhite {
  background: var(--paper);
}

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

.eyebrow {
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.8px;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.045em;
}

h1 {
  font-size: 58px;
  line-height: 1.16;
}

h2 {
  font-size: 48px;
  line-height: 1.24;
}

.section-intro,
.hero-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero {
  height: 900px;
  overflow: hidden;
}

.hero-copy {
  position: absolute;
  top: 104px;
  left: 0;
  width: 590px;
}

.product-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 54px;
}

.product-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 18px;
}

.product-name {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.product-name-en {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.6px;
}

.hero-copy h1 {
  margin-top: 19px;
}

.hero-description {
  width: 545px;
  margin-top: 28px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-chips li {
  padding: 7px 13px;
  color: var(--green);
  border: 1px solid #cad8d1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.store-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--white);
  border-radius: 8px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.text-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

.local-note {
  margin-top: 19px;
  color: #968e86;
  font-size: 12px;
}

.product-stage {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--white);
}

.hero-stage {
  top: 72px;
  right: 0;
  width: 514px;
  height: 758px;
}

.stage-index {
  position: absolute;
  z-index: 2;
  top: 29px;
  right: 31px;
  color: #aaa198;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.stage-heading {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 31px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.stage-heading i {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--border);
}

.phone-screen {
  position: absolute;
  left: 50%;
  width: 283px;
  height: 614px;
  object-fit: contain;
  transform: translateX(-50%);
}

.hero-stage .phone-screen {
  top: 70px;
}

.product-stage figcaption {
  position: absolute;
  right: 28px;
  bottom: 20px;
  left: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.rhythm {
  height: 820px;
}

.rhythm-heading {
  position: absolute;
  top: 90px;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 530px;
  gap: 100px;
  align-items: end;
  padding-bottom: 45px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  margin-top: 14px;
}

.rhythm-heading .section-intro {
  padding-bottom: 4px;
}

.rhythm-cards {
  position: absolute;
  top: 300px;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.record-card {
  position: relative;
  height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.morning-card {
  background: var(--morning);
}

.evening-card {
  background: var(--evening);
}

.summary-card {
  background: var(--delta);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.time-symbol {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-latin);
  font-size: 24px;
  line-height: 1;
}

.sun {
  color: var(--morning-accent);
}

.moon {
  color: var(--evening-accent);
}

.period-code {
  color: rgba(26, 26, 26, 0.48);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.card-kicker {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
}

.weight-value {
  margin-top: 4px;
  font-family: var(--font-latin);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.8px;
}

.weight-value small,
.delta-list dd small,
.metrics dd small {
  font-size: 0.43em;
  font-weight: 500;
  letter-spacing: 0;
}

.record-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.card-rule {
  height: 1px;
  margin-top: 28px;
  background: rgba(115, 106, 97, 0.19);
}

.card-copy {
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.summary-card .card-kicker {
  margin-top: 0;
}

.delta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
}

.delta-list > div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(165, 77, 58, 0.18);
}

.delta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.delta-list dd {
  margin-top: 5px;
  color: var(--delta-accent);
  font-family: var(--font-latin);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
}

.delta-list span {
  display: block;
  margin-top: 4px;
  color: #9d827b;
  font-size: 11px;
}

.summary-note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid rgba(165, 77, 58, 0.18);
  font-size: 12px;
}

.rhythm-bottom {
  position: absolute;
  right: 0;
  bottom: 73px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rhythm-bottom p {
  font-size: 18px;
  font-weight: 600;
}

.rhythm-bottom span {
  color: var(--muted);
  font-size: 13px;
}

.trends {
  height: 900px;
  overflow: hidden;
}

.trends-copy {
  position: absolute;
  top: 101px;
  left: 0;
  width: 530px;
}

.trends-copy h2 {
  margin-top: 16px;
}

.trends-copy > .section-intro {
  margin-top: 27px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 43px;
  padding-block: 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.metrics dd {
  margin-top: 3px;
  font-family: var(--font-latin);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.insight-card {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding: 22px;
  border-radius: 14px;
  background: #edf0eb;
}

.insight-mark {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-latin);
  font-size: 20px;
}

.insight-card p {
  font-size: 14px;
  font-weight: 600;
}

.insight-card div > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.history-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.trends-stage {
  top: 64px;
  right: 0;
  width: 560px;
  height: 772px;
}

.trends-stage .phone-screen {
  top: 72px;
}

.backup {
  height: 980px;
  color: var(--white);
  overflow: hidden;
  background: var(--deep-green);
}

.backup-stage {
  position: absolute;
  top: 94px;
  left: 0;
  width: 520px;
  height: 792px;
  overflow: hidden;
  border: 1px solid var(--green-border);
  border-radius: 28px;
  background: var(--stage-green);
}

.backup-stage-head {
  position: absolute;
  top: 27px;
  right: 31px;
  left: 31px;
  display: flex;
  justify-content: space-between;
  color: #c9d6d0;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.backup-stage > img {
  position: absolute;
  top: 86px;
  left: 50%;
  width: 341px;
  height: 455px;
  object-fit: contain;
  transform: translateX(-50%);
}

.backup-stage figcaption {
  position: absolute;
  right: 42px;
  bottom: 42px;
  left: 42px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.backup-stage figcaption strong,
.backup-stage figcaption span {
  display: block;
}

.backup-stage figcaption strong {
  font-size: 15px;
  font-weight: 600;
}

.backup-stage figcaption span {
  margin-top: 13px;
  color: #c8d4cf;
  font-size: 12px;
  line-height: 1.75;
}

.backup-copy {
  position: absolute;
  top: 103px;
  right: 0;
  width: 584px;
}

.backup-copy h2 {
  margin-top: 17px;
  color: var(--white);
  font-size: 46px;
}

.backup-copy > .section-intro {
  width: 555px;
  margin-top: 26px;
  color: #d3ddd8;
}

.local-badge {
  display: inline-flex;
  height: 26px;
  align-items: center;
  margin-top: 23px;
  padding-inline: 10px;
  color: #dce7e2;
  border: 1px solid #6f8b7e;
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.backup-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 31px;
}

.backup-steps li {
  display: flex;
  min-height: 130px;
  gap: 16px;
  padding: 20px;
  border: 1px solid #587165;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.backup-steps li > span {
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 700;
}

.backup-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.backup-steps p {
  margin-top: 8px;
  color: #c9d6d0;
  font-size: 12px;
  line-height: 1.65;
}

.backup-bottom {
  margin-top: 30px;
  padding-top: 23px;
  color: #d7e0dc;
  border-top: 1px solid #587165;
  font-size: 14px;
}

.privacy {
  height: 720px;
  background: var(--gray-soft);
}

.privacy-copy {
  position: absolute;
  top: 86px;
  left: 0;
  width: 485px;
}

.privacy-copy h2 {
  margin-top: 15px;
  font-size: 44px;
}

.privacy-copy .section-intro {
  width: 455px;
  margin-top: 22px;
  font-size: 15px;
}

.privacy-facts {
  position: absolute;
  top: 88px;
  right: 0;
  display: grid;
  width: 620px;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 50px;
}

.privacy-facts li {
  display: flex;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9d5d0;
}

.privacy-facts li > span {
  padding-top: 3px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
}

.privacy-facts strong,
.path-node strong {
  font-size: 14px;
  font-weight: 600;
}

.privacy-facts p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.data-path {
  position: absolute;
  bottom: 84px;
  left: 0;
  display: grid;
  width: 100%;
  height: 190px;
  grid-template-columns: 232px 1fr 42px 1fr 42px 1fr;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid #dedad5;
  border-radius: 18px;
  background: var(--white);
}

.data-path-title {
  align-self: stretch;
  padding-right: 28px;
  border-right: 1px solid var(--border);
}

.data-path-title > span,
.data-path-title > strong {
  display: block;
  font-family: var(--font-latin);
}

.data-path-title > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.data-path-title > strong {
  margin-top: 8px;
  color: var(--green);
  font-size: 17px;
  letter-spacing: -0.2px;
}

.data-path-title p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.path-node {
  text-align: center;
}

.path-node strong,
.path-node span {
  display: block;
}

.path-node span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.path-arrow {
  color: #a7b4ae;
  font-family: var(--font-latin);
  font-size: 21px;
  font-style: normal;
  text-align: center;
}

.closing {
  height: 600px;
  background: var(--paper);
}

.closing-copy {
  position: absolute;
  top: 78px;
  left: 0;
  width: 610px;
}

.closing-copy h2 {
  margin-top: 13px;
}

.closing-copy .section-intro {
  width: 545px;
  margin-top: 22px;
  font-size: 15px;
}

.closing-product {
  position: absolute;
  top: 75px;
  right: 0;
  display: grid;
  width: 450px;
  grid-template-columns: 68px 1fr;
  gap: 0 18px;
  align-items: center;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.closing-product img {
  width: 68px;
  height: 68px;
  grid-row: span 2;
  border-radius: 16px;
}

.closing-product div strong,
.closing-product div span {
  display: block;
}

.closing-product div strong {
  font-size: 19px;
  font-weight: 600;
}

.closing-product div span {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.closing-product .store-button {
  grid-column: 1 / -1;
  margin-top: 17px;
}

.promises {
  position: absolute;
  top: 312px;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.promises li {
  display: flex;
  gap: 16px;
}

.promises li > span {
  padding-top: 2px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
}

.promises strong {
  font-size: 15px;
  font-weight: 600;
}

.promises p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.medical-note {
  position: absolute;
  right: 0;
  bottom: 66px;
  left: 0;
  padding-top: 23px;
  color: #918981;
  border-top: 1px solid var(--border);
  font-size: 11px;
  text-align: center;
}

.site-footer {
  height: 260px;
  color: var(--white);
  background: var(--footer);
}

.footer-inner {
  padding-top: 48px;
}

.brand-dark .brand-word {
  color: var(--white);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-github-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-rule);
  border-radius: 50%;
  transition: border-color 160ms ease, transform 160ms ease;
}

.footer-github-link img {
  width: 15px;
  height: 15px;
  filter: invert(1);
  opacity: 0.84;
}

.footer-github-link:hover {
  border-color: #727a76;
  transform: translateY(-1px);
}

.footer-brand p {
  margin-top: 17px;
  color: var(--footer-muted);
  font-family: var(--font-latin);
  font-size: 12px;
}

.footer-nav {
  position: absolute;
  top: 52px;
  left: 430px;
  display: flex;
  gap: 32px;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  color: #d4d8d6;
  background: transparent;
  font-size: 13px;
  line-height: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--white);
}

.footer-languages {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-languages button {
  padding: 0;
  color: var(--footer-muted);
}

.footer-languages button.is-active {
  color: var(--white);
}

.footer-languages span {
  color: #656b68;
  font-size: 11px;
}

.footer-bottom {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: #7d8581;
  border-top: 1px solid var(--footer-rule);
  font-family: var(--font-latin);
  font-size: 11px;
}

.footer-bottom .footer-contact {
  color: #aeb6b2;
  transition: color 160ms ease;
}

.footer-bottom .footer-contact:hover {
  color: var(--white);
}

body.is-modal-open {
  overflow: hidden;
}

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

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

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(18 23 21 / 58%);
  backdrop-filter: blur(5px);
  animation: legal-backdrop-in 180ms ease-out both;
}

.legal-dialog {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  height: min(720px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgb(15 25 20 / 24%);
  animation: legal-dialog-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.legal-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px 24px;
}

.legal-dialog-eyebrow {
  margin-bottom: 7px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.4px;
}

.legal-dialog h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-close-button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--gray-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.legal-close-button:hover {
  color: var(--ink);
  background: var(--white);
  border-color: #cec8c0;
}

.legal-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  margin-inline: 36px;
  padding: 4px;
  background: #eeece8;
  border-radius: 12px;
}

.legal-tabs button {
  min-height: 42px;
  padding: 8px 16px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.legal-tabs button[aria-selected="true"] {
  color: var(--deep-green);
  background: var(--white);
  box-shadow: 0 1px 4px rgb(31 42 37 / 10%);
}

.legal-document-scroll {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 20px;
  padding: 0 40px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c7c2bb transparent;
  scrollbar-width: thin;
}

.legal-effective-date {
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.legal-document-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-document-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-document-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.legal-document-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

@keyframes legal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes legal-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1099px) {
  .main-nav {
    display: none;
  }

  .hero,
  .rhythm,
  .trends,
  .backup,
  .privacy,
  .closing,
  .site-footer {
    height: auto;
  }

  .hero-inner,
  .trends-inner,
  .backup-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 56px;
    align-items: center;
    padding-block: 76px;
  }

  .hero-copy,
  .trends-copy,
  .backup-copy,
  .backup-stage,
  .privacy-copy,
  .privacy-facts,
  .closing-copy,
  .closing-product,
  .promises,
  .medical-note,
  .rhythm-heading,
  .rhythm-cards,
  .rhythm-bottom,
  .data-path,
  .product-stage {
    position: relative;
    inset: auto;
  }

  .hero-copy,
  .trends-copy,
  .backup-copy,
  .privacy-copy,
  .closing-copy {
    width: auto;
  }

  .product-lockup {
    margin-bottom: 42px;
  }

  .hero-stage,
  .trends-stage {
    width: 100%;
    min-height: 758px;
  }

  .rhythm-inner,
  .privacy-inner,
  .closing-inner {
    height: auto;
    padding-block: 80px;
  }

  .rhythm-heading {
    grid-template-columns: 1fr 1fr;
  }

  .rhythm-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 55px;
  }

  .record-card {
    height: 340px;
  }

  .rhythm-bottom {
    margin-top: 54px;
  }

  .backup-stage {
    width: 100%;
    height: 760px;
  }

  .backup-copy > .section-intro,
  .privacy-copy .section-intro,
  .closing-copy .section-intro,
  .hero-description {
    width: auto;
  }

  .privacy-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
  }

  .privacy-facts {
    width: auto;
  }

  .data-path {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .closing-inner {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 55px;
  }

  .promises,
  .medical-note {
    grid-column: 1 / -1;
  }

  .promises {
    margin-top: 13px;
  }

  .medical-note {
    margin-top: -15px;
  }

  .footer-inner {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .section-inner,
  .header-inner {
    width: min(100% - 40px, 680px);
  }

  .language-switcher {
    width: 168px;
  }

  .hero-inner,
  .trends-inner,
  .backup-inner,
  .privacy-inner,
  .closing-inner {
    display: flex;
    flex-direction: column;
    gap: 54px;
    align-items: stretch;
  }

  .hero-copy,
  .trends-copy,
  .backup-copy,
  .privacy-copy,
  .closing-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(40px, 9vw, 54px);
  }

  h2,
  .backup-copy h2,
  .privacy-copy h2 {
    font-size: clamp(34px, 7vw, 44px);
  }

  .hero-description,
  .section-intro {
    font-size: 16px;
  }

  .hero-stage,
  .trends-stage {
    min-height: 720px;
  }

  .rhythm-heading {
    display: block;
  }

  .rhythm-heading .section-intro {
    margin-top: 26px;
  }

  .rhythm-cards {
    grid-template-columns: 1fr;
  }

  .record-card {
    height: 330px;
  }

  .rhythm-bottom {
    display: block;
  }

  .rhythm-bottom span {
    display: block;
    margin-top: 10px;
  }

  .trends-stage {
    order: 2;
  }

  .backup-copy {
    order: 1;
  }

  .backup-stage {
    order: 2;
  }

  .privacy-facts {
    grid-template-columns: 1fr 1fr;
  }

  .data-path {
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
  }

  .data-path-title {
    width: 100%;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .path-arrow {
    transform: rotate(90deg);
  }

  .closing-product {
    width: 100%;
  }

  .promises {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    min-height: 340px;
    padding-top: 42px;
  }

  .footer-nav,
  .footer-languages,
  .footer-bottom {
    position: relative;
    inset: auto;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 36px;
  }

  .footer-languages {
    margin-top: 27px;
  }

  .footer-bottom {
    display: flex;
    margin-top: 30px;
  }
}

@media (max-width: 560px) {
  .section-inner,
  .header-inner {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 68px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-word {
    font-size: 16px;
  }

  .language-switcher {
    width: 146px;
    height: 36px;
  }

  .language-switcher button {
    font-size: 11px;
  }

  .hero-inner,
  .trends-inner,
  .backup-inner {
    padding-block: 58px;
  }

  .rhythm-inner,
  .privacy-inner,
  .closing-inner {
    padding-block: 64px;
  }

  .product-lockup {
    gap: 14px;
    margin-bottom: 38px;
  }

  .product-icon {
    width: 60px;
    height: 60px;
  }

  .product-name {
    font-size: 22px;
  }

  .hero-copy h1 {
    margin-top: 14px;
  }

  .hero-description {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .feature-chips {
    gap: 8px;
  }

  .hero-stage,
  .trends-stage {
    min-height: 0;
    height: auto;
    aspect-ratio: 514 / 758;
    border-radius: 22px;
  }

  .trends-stage {
    aspect-ratio: 560 / 772;
  }

  .phone-screen {
    top: 9.25% !important;
    width: 55%;
    height: auto;
    aspect-ratio: 283 / 614;
  }

  .product-stage figcaption {
    right: 18px;
    bottom: 14px;
    left: 18px;
    font-size: 11px;
  }

  .stage-heading {
    top: 19px;
    left: 20px;
    font-size: 12px;
  }

  .stage-index {
    top: 21px;
    right: 20px;
  }

  .rhythm-heading {
    padding-bottom: 34px;
  }

  .rhythm-cards {
    margin-top: 38px;
  }

  .record-card {
    height: 316px;
    padding: 24px;
  }

  .summary-note {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .metrics {
    margin-top: 34px;
  }

  .metrics > div + div {
    padding-left: 12px;
  }

  .metrics dd {
    font-size: 21px;
  }

  .backup-stage {
    height: auto;
    aspect-ratio: 520 / 792;
    border-radius: 22px;
  }

  .backup-stage > img {
    top: 10.9%;
    width: 65.6%;
    height: auto;
    aspect-ratio: 341 / 455;
  }

  .backup-stage-head {
    top: 21px;
    right: 20px;
    left: 20px;
    font-size: 8px;
  }

  .backup-stage figcaption {
    right: 26px;
    bottom: 28px;
    left: 26px;
    padding-top: 18px;
  }

  .backup-stage figcaption strong {
    font-size: 13px;
  }

  .backup-stage figcaption span {
    margin-top: 8px;
    font-size: 10px;
  }

  .backup-steps {
    grid-template-columns: 1fr;
  }

  .backup-steps li {
    min-height: 0;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .closing-product {
    grid-template-columns: 58px 1fr;
    padding: 18px;
  }

  .closing-product img {
    width: 58px;
    height: 58px;
  }

  .footer-inner {
    min-height: 380px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-modal {
    padding: 8px;
  }

  .legal-dialog {
    width: 100%;
    height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .legal-dialog-header {
    gap: 12px;
    padding: 22px 20px 18px;
  }

  .legal-dialog h2 {
    font-size: 20px;
  }

  .legal-close-button {
    min-height: 34px;
    padding: 6px 10px;
  }

  .legal-close-button span {
    display: none;
  }

  .legal-tabs {
    margin-inline: 20px;
  }

  .legal-tabs button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .legal-document-scroll {
    margin-top: 16px;
    padding: 0 22px 30px;
  }

  .legal-document-section {
    padding-block: 21px;
  }
}

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

  .legal-modal-backdrop,
  .legal-dialog {
    animation: none;
  }
}
