:root {
  --emerald: #167a5a;
  --deep-emerald: #0d5f46;
  --mint: #a7dcc1;
  --coral: #e16a5a;
  --ivory: #f7f4ee;
  --paper: #fffdf8;
  --ink: #2b2e2b;
  --secondary: #656a65;
  --line: rgba(43, 46, 43, 0.14);
  --soft-line: rgba(43, 46, 43, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --page: 1280px;
  --shadow-photo: 0 24px 60px rgba(45, 42, 34, 0.15);
  --shadow-object: 0 18px 44px rgba(45, 42, 34, 0.18);
  --shadow-card: 0 8px 24px rgba(45, 42, 34, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(22, 122, 90, 0.38); outline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid rgba(43, 46, 43, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep-emerald);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 650;
}
.desktop-nav a,
.ios-link { transition: color 180ms ease; }
.desktop-nav a:hover,
.ios-link:hover { color: var(--deep-emerald); }
.ios-link {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep-emerald);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

/* ── Language Switcher ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(43, 46, 43, 0.14);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.85);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 2px 5px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease;
}
.lang-btn:hover {
  color: var(--deep-emerald);
}
.lang-btn.active {
  color: var(--deep-emerald);
  background: rgba(13, 95, 70, 0.1);
  font-weight: 800;
}
.lang-sep {
  color: rgba(43, 46, 43, 0.25);
  font-size: 11px;
}

.menu-button,
.mobile-menu { display: none; }

/* ── Pre-launch Badges & Store CTA Buttons ── */
.prelaunch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(13, 95, 70, 0.08);
  border: 1px solid rgba(13, 95, 70, 0.18);
  color: var(--deep-emerald);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prelaunch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(225, 106, 90, 0.25);
  animation: pulse-dot 2.2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.prelaunch-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.store-btn-apple {
  border: 1px solid var(--deep-emerald);
  background: var(--deep-emerald);
  color: white;
  box-shadow: 0 8px 20px rgba(13, 95, 70, 0.2);
}
.store-btn-apple:hover {
  transform: translateY(-2px);
  background: var(--emerald);
  box-shadow: 0 12px 26px rgba(13, 95, 70, 0.28);
}
.store-btn-google {
  border: 1px solid rgba(43, 46, 43, 0.18);
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(45, 42, 34, 0.05);
}
.store-btn-google:hover {
  transform: translateY(-2px);
  border-color: var(--deep-emerald);
  color: var(--deep-emerald);
}

main { padding-top: 72px; }
main > section[id] { scroll-margin-top: 72px; }
.scene-inner {
  width: min(calc(100% - 56px), var(--page));
  margin: 0 auto;
}
.scene { padding: 120px 0; }
.scene-number,
.scene-label {
  margin: 0 0 14px;
  color: var(--deep-emerald);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scene h2,
.pro-scene h2 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-scene {
  position: relative;
  min-height: 680px;
  height: min(780px, calc(100svh - 96px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ddcfb9;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.84) 25%, rgba(247, 244, 238, 0.28) 47%, rgba(247, 244, 238, 0) 62%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), var(--page));
  height: 100%;
  margin: 0 auto;
}
.hero-copy {
  position: absolute;
  top: 50%;
  left: 0;
  width: 480px;
  transform: translateY(-52%);
}
.hero-copy h1 {
  margin: 0;
  color: var(--deep-emerald);
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-intro {
  max-width: 440px;
  margin: 24px 0 0;
  color: #535953;
  font-size: 20px;
  line-height: 1.6;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid var(--deep-emerald);
  border-radius: 8px;
  background: var(--deep-emerald);
  color: white;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 95, 70, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}
.primary-action:hover { transform: translateY(-2px); background: var(--emerald); }
.hero-scroll {
  position: absolute;
  z-index: 3;
  left: max(28px, calc((100vw - var(--page)) / 2));
  bottom: 25px;
  color: var(--deep-emerald);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(13, 95, 70, 0.35);
}

.app-device {
  border: 9px solid #202321;
  border-radius: 36px;
  background: #fbfaf7;
  color: #222522;
  box-shadow: var(--shadow-object);
  overflow: hidden;
}
.app-device-hero {
  position: absolute;
  right: 30%;
  bottom: -88px;
  width: 248px;
  min-height: 545px;
  padding: 18px 12px 0;
  transform: rotate(1.2deg);
}
.device-status,
.device-heading,
.detail-topline,
.family-app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.device-status {
  color: #4d514d;
  font-size: 8px;
  font-weight: 700;
}
.device-heading { margin: 22px 0 14px; }
.device-heading strong { font-size: 21px; }
.avatar {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d9eee6;
  color: var(--deep-emerald);
  font-size: 10px;
  font-weight: 800;
}
.routine-card {
  position: relative;
  height: 170px;
  overflow: hidden;
  border: 1px solid rgba(43, 46, 43, 0.1);
  border-radius: 14px;
  background: white;
}
.routine-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.routine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.82) 46%, rgba(255, 253, 248, 0) 78%);
}
.routine-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 14px;
}
.routine-card-copy small { font-size: 8px; }
.routine-card-copy span { margin-top: 12px; font-size: 9px; }
.routine-card-copy strong { font-size: 14px; }
.routine-card-copy em { color: var(--secondary); font-size: 8px; font-style: normal; }
.taken-control {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--deep-emerald);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.app-device .taken-control {
  width: 100%;
  margin: 3px 0 12px;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  text-align: left;
}
.taken-control[aria-pressed="true"] { color: var(--emerald); }
.recent-record > small { color: var(--secondary); font-size: 8px; }
.recent-record > div { display: flex; gap: 8px; margin-top: 8px; padding: 10px 8px; border: 1px solid var(--soft-line); border-radius: 9px; background: white; }
.document-mark { align-self: center; color: var(--deep-emerald); font-size: 7px; font-weight: 800; }
.recent-record p { display: grid; gap: 1px; margin: 0; font-size: 9px; }
.recent-record p small { color: var(--secondary); font-size: 7px; }
.app-tabs {
  position: absolute;
  right: 0;
  bottom: 84px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 12px 10px;
  border-top: 1px solid var(--soft-line);
  background: rgba(255, 253, 248, 0.96);
  color: #7c817c;
  font-size: 6px;
  text-align: center;
}
.app-tabs .active { color: var(--deep-emerald); font-weight: 800; }
.app-tabs b { display: inline-flex; width: 28px; height: 28px; margin: 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: var(--deep-emerald); color: white; font-size: 15px; }

.today-scene { background: var(--paper); }
.today-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 80px; align-items: center; }
.today-heading h2 { max-width: 470px; }
.today-heading > p:last-child,
.health-heading > p:last-child,
.family-heading > p:last-child,
.records-heading > p:last-child {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: 19px;
  line-height: 1.65;
}
.today-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #e4d6c0;
  box-shadow: var(--shadow-photo);
}
.today-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.today-app-detail {
  position: absolute;
  top: 62px;
  left: 54px;
  width: 320px;
  min-height: 408px;
  padding: 28px;
  border: 1px solid rgba(43, 46, 43, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-object);
  backdrop-filter: blur(8px);
}
.detail-topline { color: var(--secondary); font-size: 12px; font-weight: 650; }
.today-app-detail h3 { margin: 48px 0 4px; color: var(--ink); font-size: 28px; font-weight: 650; }
.today-app-detail > p { margin: 0; color: var(--secondary); font-size: 14px; }
.today-app-detail > .taken-control { width: 100%; margin-top: 46px; border: 1px solid rgba(13, 95, 70, 0.24); }
.record-note { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.record-note span { grid-column: 1 / -1; color: var(--secondary); font-size: 11px; }
.record-note strong { font-size: 14px; }
.record-note small { color: var(--secondary); font-size: 11px; }

.health-scene { overflow: hidden; }
.health-heading { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.health-heading .scene-number { grid-column: 1 / -1; margin-bottom: -14px; }
.health-heading > p:last-child { justify-self: end; margin-top: 0; }
.health-composition {
  position: relative;
  min-height: 790px;
  margin-top: 64px;
}
.report-object {
  position: absolute;
  top: 34px;
  left: 0;
  width: 54%;
  margin: 0;
  transform: rotate(-1.4deg);
}
.report-object img { width: 100%; max-height: 660px; object-fit: cover; box-shadow: var(--shadow-photo); }
.report-object figcaption { margin-top: 12px; color: var(--secondary); font-size: 13px; }
.metric-object {
  position: absolute;
  top: 0;
  right: 4%;
  width: 330px;
  height: 650px;
  margin: 0;
  overflow: hidden;
  border: 9px solid #202321;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow-object);
}
.metric-object img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.source-thread {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 520px;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.4fr;
  border-block: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.92);
}
.source-thread > div { min-height: 90px; padding: 18px; border-right: 1px solid var(--line); }
.source-thread > div:last-child { border-right: 0; }
.source-thread span { display: block; margin-bottom: 5px; color: var(--secondary); font-size: 11px; }
.source-thread strong { display: block; font-size: 15px; line-height: 1.35; }
.source-thread strong small { color: var(--secondary); font-size: 11px; font-weight: 600; }

.family-scene { padding-bottom: 0; border-top: 1px solid var(--line); background: var(--paper); }
.family-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: end; padding-bottom: 54px; }
.family-heading .scene-number { grid-column: 1 / -1; margin-bottom: -32px; }
.family-heading > p:last-child { justify-self: end; margin-top: 0; }
.family-stage { position: relative; min-height: 720px; overflow: hidden; background: #d9c8b0; }
.family-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.family-app {
  position: absolute;
  right: max(30px, calc((100vw - var(--page)) / 2));
  bottom: 70px;
  width: 350px;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(43, 46, 43, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-object);
  backdrop-filter: blur(10px);
}
.family-app-title strong { font-size: 25px; }
.family-app-title span { color: var(--deep-emerald); font-size: 12px; font-weight: 700; }
.family-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0; }
.family-people span { display: grid; justify-items: center; gap: 7px; color: var(--secondary); font-size: 10px; }
.family-people b { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #e3efe9; color: var(--deep-emerald); font-size: 13px; }
.family-app-label { margin: 0 0 10px; color: var(--secondary); font-size: 11px; font-weight: 700; }
.family-event { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--soft-line); }
.family-event span { color: var(--secondary); font-size: 10px; }
.family-event strong { font-size: 13px; }
.family-event small { color: var(--secondary); font-size: 10px; }

.records-scene { border-top: 1px solid var(--line); }
.records-heading { max-width: 800px; }
.records-flow {
  display: grid;
  grid-template-columns: 1.15fr 38px 0.9fr 38px 1fr 38px 0.8fr;
  align-items: center;
  margin-top: 66px;
  border-block: 1px solid var(--line);
}
.record-step {
  min-height: 390px;
  padding: 28px 22px;
  border-right: 1px solid var(--soft-line);
}
.record-step:last-child { border-right: 0; }
.record-step > p { margin: 0 0 24px; font-size: 12px; font-weight: 750; }
.record-step > p span { margin-right: 6px; color: var(--deep-emerald); }
.original-step img { width: 100%; height: 285px; object-fit: cover; box-shadow: 0 10px 24px rgba(45, 42, 34, 0.13); transform: rotate(-1deg); }
.flow-arrow { color: var(--deep-emerald); font-size: 22px; text-align: center; }
.extracted-step dl { margin: 0; }
.extracted-step dt { margin-top: 22px; color: var(--secondary); font-size: 11px; }
.extracted-step dd { margin: 3px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--soft-line); font-size: 17px; font-weight: 650; }
.review-step label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--secondary); font-size: 11px; }
.review-step input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 14px; font-weight: 650; }
.save-record { width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 6px; background: var(--deep-emerald); color: white; font-size: 12px; font-weight: 750; cursor: pointer; }
.saved-step > strong { display: block; margin-top: 52px; font-size: 24px; }
.saved-step > small { display: block; margin-top: 4px; color: var(--secondary); font-size: 11px; }
.saved-step > div { margin-top: 50px; padding-top: 14px; border-top: 1px solid var(--soft-line); font-size: 14px; }
.saved-step > em { display: block; margin-top: 16px; color: var(--deep-emerald); font-size: 11px; font-style: normal; font-weight: 750; }
.local-note { margin: 28px 0 0; color: var(--secondary); font-size: 14px; text-align: center; }

.privacy-scene { padding: 136px 0; border-block: 1px solid var(--line); background: var(--paper); }
.privacy-inner { text-align: center; }
.privacy-inner h2 { margin-inline: auto; }
.privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-block: 1px solid var(--line);
  text-align: left;
}
.privacy-facts p { min-height: 160px; margin: 0; padding: 30px 36px; border-right: 1px solid var(--line); }
.privacy-facts p:last-child { border-right: 0; }
.privacy-facts span { display: block; margin-bottom: 24px; color: var(--coral); font-size: 12px; font-weight: 750; }
.privacy-facts strong { display: block; margin-bottom: 8px; font-size: 19px; }
.privacy-facts small { display: block; color: var(--secondary); font-size: 14px; line-height: 1.6; }

.pro-scene {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #776b58;
}
.pro-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 31, 25, 0.78) 0%, rgba(20, 31, 25, 0.46) 35%, rgba(20, 31, 25, 0.08) 63%, rgba(20, 31, 25, 0) 75%); }
.pro-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 56px), var(--page));
  margin: 0 auto;
  padding-top: 150px;
  color: white;
}
.pro-name { margin: 0 0 28px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.pro-name span { display: inline-flex; margin-left: 7px; padding: 4px 8px; border-radius: 6px; background: var(--mint); color: var(--deep-emerald); font-family: var(--sans); font-size: 10px; font-weight: 800; vertical-align: middle; }
.pro-content h2 { max-width: 570px; color: white; }
.pro-content > p:not(.pro-name) { max-width: 500px; margin: 24px 0 0; color: rgba(255,255,255,0.9); font-size: 19px; line-height: 1.65; }
.pro-content .primary-action { border-color: white; background: white; color: var(--deep-emerald); box-shadow: none; }
.pro-content > small { display: block; max-width: 440px; margin-top: 20px; color: rgba(255,255,255,0.68); font-size: 11px; }

.site-footer {
  padding: 64px max(28px, calc((100vw - var(--page)) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}
.footer-brand { justify-content: center; color: white; font-size: 23px; }
.footer-brand img { width: 32px; height: 32px; }
.site-footer nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 32px 0 22px; font-size: 14px; font-weight: 650; }
.site-footer nav a:hover { color: white; }
.site-footer > p { max-width: 720px; margin: 0 auto 22px; font-size: 13px; line-height: 1.65; }
.site-footer > small { font-size: 11px; }

/* ── Redesigned Legal & Policy Experience ── */
.legal-page { background: var(--ivory); }
.legal-container {
  width: min(calc(100% - 48px), 880px);
  margin: 0 auto;
  padding: 124px 0 96px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--deep-emerald);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 28px;
  transition: transform 180ms ease;
}
.legal-back:hover { transform: translateX(-3px); }
.legal-hero {
  margin-bottom: 36px;
}
.legal-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(13, 95, 70, 0.08);
  color: var(--deep-emerald);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.legal-hero h1 {
  margin: 0 0 16px;
  color: var(--deep-emerald);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.legal-lead {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
}
.legal-operator {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

/* Legal Summary Box (Apple Frosted Style) */
.legal-summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-card);
}
.summary-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.summary-p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
}

/* Core Highlights Cards Grid */
.legal-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.commitment-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(45, 42, 34, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.commitment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 42, 34, 0.08);
}
.card-icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-block;
}
.card-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}
.card-desc {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Legal Collapsible Accordion (100% Intact Legal Content) */
.legal-accordion-heading {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}
.legal-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.legal-details[open] {
  border-color: rgba(13, 95, 70, 0.3);
  box-shadow: 0 6px 20px rgba(45, 42, 34, 0.05);
}
.legal-details summary {
  padding: 22px 26px;
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  transition: color 180ms ease;
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary:hover { color: var(--deep-emerald); }
.details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(13, 95, 70, 0.08);
  color: var(--deep-emerald);
  font-size: 16px;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.legal-details[open] summary .details-icon {
  transform: rotate(45deg);
  background: var(--deep-emerald);
  color: white;
}
.legal-body {
  padding: 0 26px 28px;
  font-size: 17px;
  line-height: 1.75;
  color: #3b3f3b;
  border-top: 1px solid var(--soft-line);
  margin-top: -2px;
  padding-top: 20px;
}
.legal-body p {
  margin: 0 0 18px;
}
.legal-body p:last-child {
  margin-bottom: 0;
}
.legal-body a {
  color: var(--deep-emerald);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover {
  color: var(--emerald);
}
.legal-body ul {
  margin: 12px 0 20px;
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.legal-notice-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(225, 106, 90, 0.08);
  border-left: 4px solid var(--coral);
}
.legal-notice-box strong {
  display: block;
  color: #a83d31;
  font-size: 15px;
  margin-bottom: 4px;
}
.legal-notice-box p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.release-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  width: min(calc(100% - 32px), 520px);
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.release-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.home-reveal { opacity: 0; transform: translateY(16px); transition: opacity 340ms ease, transform 340ms ease; }
.home-reveal.visible { opacity: 1; transform: none; }

/* ── Responsive Viewports ── */
@media (max-width: 1180px) {
  .hero-copy h1 { font-size: 60px; }
  .app-device-hero { right: 24%; width: 225px; }
  .today-layout { gap: 48px; }
  .metric-object { right: 0; width: 310px; }
  .source-thread { width: 460px; }
}

@media (max-width: 900px) {
  .desktop-nav,
  .site-header > .ios-link { display: none; }
  .site-header > .lang-switch { margin-left: auto; margin-right: 12px; }
  .menu-button { display: inline-flex; margin-left: 0; min-height: 38px; align-items: center; border: 0; background: transparent; color: var(--deep-emerald); font-size: 14px; font-weight: 750; cursor: pointer; }
  .mobile-menu.open {
    position: fixed;
    z-index: 45;
    inset: 72px 0 auto;
    display: grid;
    padding: 18px 28px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 18px 40px rgba(45,42,34,0.12);
  }
  .mobile-menu a,
  .mobile-menu button { min-height: 48px; display: flex; align-items: center; border: 0; border-bottom: 1px solid var(--soft-line); background: transparent; color: var(--ink); font-size: 15px; font-weight: 650; text-align: left; }
  .mobile-menu button { color: var(--deep-emerald); }
  .scene { padding: 96px 0; }
  .scene h2,
  .pro-scene h2 { font-size: 40px; }
  .hero-shade { background: linear-gradient(90deg, rgba(247,244,238,0.95) 0%, rgba(247,244,238,0.78) 42%, rgba(247,244,238,0.12) 76%); }
  .hero-copy { width: 400px; }
  .hero-copy h1 { font-size: 54px; }
  .app-device-hero { right: 8%; width: 210px; opacity: 0.96; }
  .today-layout { grid-template-columns: 1fr; }
  .today-heading { max-width: 600px; }
  .today-stage { min-height: 560px; }
  .health-heading,
  .family-heading { grid-template-columns: 1fr; gap: 18px; }
  .health-heading .scene-number,
  .family-heading .scene-number { grid-column: auto; margin-bottom: 0; }
  .health-heading > p:last-child,
  .family-heading > p:last-child { justify-self: start; }
  .health-composition { min-height: 760px; }
  .report-object { width: 62%; }
  .metric-object { width: 280px; height: 590px; }
  .source-thread { right: 0; width: 440px; }
  .family-stage { min-height: 640px; }
  .records-flow { grid-template-columns: 290px 34px 240px 34px 260px 34px 220px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .record-step { scroll-snap-align: start; }
  .legal-container { padding: 104px 0 64px; }
  .legal-hero h1 { font-size: 40px; }
  .legal-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { height: 64px; padding-inline: 18px; }
  .brand { font-size: 22px; }
  .brand img { width: 31px; height: 31px; }
  main { padding-top: 64px; }
  main > section[id] { scroll-margin-top: 64px; }
  .mobile-menu.open { inset: 64px 0 auto; padding-inline: 18px; }
  .scene-inner,
  .hero-content,
  .pro-content { width: min(calc(100% - 36px), var(--page)); }
  .scene { padding: 80px 0; }
  .scene h2,
  .pro-scene h2 { font-size: 34px; line-height: 1.12; }
  .hero-scene { height: 720px; min-height: 720px; }
  .hero-photo { object-position: 66% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(247,244,238,0.98) 0%, rgba(247,244,238,0.9) 28%, rgba(247,244,238,0.28) 53%, rgba(247,244,238,0.04) 74%); }
  .hero-copy { top: 40px; width: 100%; transform: none; }
  .hero-copy h1 { font-size: 44px; line-height: 1.02; }
  .hero-intro { max-width: 325px; margin-top: 17px; font-size: 16px; line-height: 1.55; }
  .prelaunch-cta-group { flex-direction: column; width: 100%; gap: 10px; margin-top: 22px; }
  .store-btn { width: 100%; justify-content: center; min-height: 46px; }
  .primary-action { min-height: 46px; margin-top: 20px; font-size: 13px; }
  .app-device-hero { right: 14px; bottom: -230px; width: 176px; min-height: 470px; padding-inline: 9px; border-width: 7px; border-radius: 29px; transform: rotate(1deg); }
  .device-heading { margin: 14px 0 10px; }
  .device-heading strong { font-size: 17px; }
  .routine-card { height: 136px; }
  .routine-card-copy { padding: 10px; }
  .routine-card-copy span { margin-top: 6px; }
  .app-tabs { bottom: 110px; }
  .hero-scroll { left: 18px; bottom: 22px; color: white; border-color: rgba(255,255,255,0.5); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
  .today-stage { min-height: 520px; }
  .today-stage > img { object-position: 66% center; }
  .today-app-detail { top: 34px; left: 18px; width: calc(100% - 90px); min-width: 250px; padding: 22px; }
  .health-composition { min-height: 930px; margin-top: 40px; }
  .report-object { position: relative; top: 0; width: 82%; }
  .report-object img { max-height: 420px; }
  .metric-object { top: 345px; right: -14px; width: 235px; height: 505px; border-width: 7px; border-radius: 28px; }
  .source-thread { right: auto; bottom: 0; left: 0; width: 100%; grid-template-columns: 1fr; }
  .source-thread > div { min-height: 60px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .source-thread > div:last-child { border-bottom: 0; }
  .family-heading { padding-bottom: 38px; }
  .family-stage { min-height: 690px; }
  .family-stage > img { object-position: 58% center; }
  .family-app { right: 18px; bottom: 28px; width: calc(100% - 36px); min-height: 350px; padding: 22px; }
  .records-flow { margin-right: -18px; padding-right: 18px; grid-template-columns: 260px 30px 220px 30px 240px 30px 210px; }
  .record-step { min-height: 360px; padding-inline: 16px; }
  .original-step img { height: 255px; }
  .privacy-scene { padding: 92px 0; }
  .privacy-facts { grid-template-columns: 1fr; margin-top: 48px; }
  .privacy-facts p { min-height: 0; padding: 24px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .privacy-facts p:last-child { border-bottom: 0; }
  .privacy-facts span { margin-bottom: 12px; }
  .pro-scene { min-height: 700px; }
  .pro-scene > img { object-position: 58% center; }
  .pro-shade { background: linear-gradient(180deg, rgba(20,31,25,0.8) 0%, rgba(20,31,25,0.42) 52%, rgba(20,31,25,0.16) 78%, rgba(20,31,25,0.05) 100%); }
  .pro-content { padding-top: 78px; }
  .pro-content h2 { max-width: 350px; }
  .site-footer { padding: 48px 18px; }

  .legal-container { width: min(calc(100% - 36px), var(--page)); padding: 88px 0 48px; }
  .legal-hero h1 { font-size: 32px; }
  .legal-lead { font-size: 16px; }
  .legal-summary-card { padding: 22px 20px; }
  .summary-p { font-size: 16px; }
  .commitment-card { padding: 20px; }
  .card-title { font-size: 17px; }
  .card-desc { font-size: 14px; }
  .legal-accordion-heading { font-size: 20px; }
  .legal-details summary { padding: 18px 20px; font-size: 18px; }
  .legal-body { padding: 0 20px 22px; font-size: 15px; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 38px; }
  .hero-intro { font-size: 15px; }
  .brand span { font-size: 20px; }
  .lang-switch { padding: 3px 6px; }
  .lang-btn { font-size: 11px; padding: 1px 3px; }
  .scene h2, .pro-scene h2 { font-size: 30px; }
  .today-app-detail { width: calc(100% - 44px); min-width: 220px; }
  .metric-object { right: -20px; }
  .legal-hero h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .home-reveal { opacity: 1; transform: none; }
}
