:root {
  color-scheme: light dark;
  --bg: #f8f5ef;
  --surface: #ffffff;
  --surface-muted: #f1ece3;
  --ink: #26231f;
  --ink-soft: #4a453d;
  --muted: #6b655b;
  --border: #e3dcd0;
  --border-strong: #cec4b4;
  --accent: #c24141;
  --accent-bright: #e85d5d;
  --accent-solid: #c24141;
  --accent-solid-hover: #b03a3a;
  --on-accent: #ffffff;
  --accent-soft: #fbe7e3;
  --accent-ink: #7a2b2b;
  --paper: #fff9f0;
  --shadow: 0 18px 50px rgba(58, 43, 31, 0.1);
  --av1-bg: #fbe7e3;
  --av1-ink: #8a3a36;
  --av2-bg: #e7efe8;
  --av2-ink: #3e5c4a;
  --av3-bg: #f4ead8;
  --av3-ink: #7a5a2e;
  --av4-bg: #e8eaf4;
  --av4-ink: #3f486b;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --surface: #201d19;
    --surface-muted: #2a251f;
    --ink: #f3ede4;
    --ink-soft: #d8cfc2;
    --muted: #b7ac9c;
    --border: #373129;
    --border-strong: #4b4338;
    --accent: #f08a8a;
    --accent-bright: #e85d5d;
    --accent-solid: #f08a8a;
    --accent-solid-hover: #ffa3a3;
    --on-accent: #20100e;
    --accent-soft: #3a2422;
    --accent-ink: #ffd8d3;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --av1-bg: #3a2422;
    --av1-ink: #ffd8d3;
    --av2-bg: #23302a;
    --av2-ink: #cfe6d8;
    --av3-bg: #33291d;
    --av3-ink: #f0d6ac;
    --av4-bg: #262a3a;
    --av4-ink: #d5d9f2;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(1100px 600px at 12% -10%, rgba(232, 93, 93, 0.09), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-solid-hover);
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol {
  overflow-wrap: break-word;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-en {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-download {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
}

.site-nav .nav-download:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--accent-bright);
}

.lede {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-solid);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-solid-hover);
  color: var(--on-accent);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* Family circle illustration */
.circle-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.circle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, transparent 80%);
}

.circle-ring {
  position: absolute;
  inset: 14%;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}

.circle-ring::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.7;
}

.circle-center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 10px var(--surface);
  text-align: center;
  transform: translate(-50%, -50%);
}

.circle-mark {
  color: var(--accent-ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1;
}

.circle-title {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 600;
}

.circle-sub {
  margin-top: 1px;
  color: var(--muted);
  font-size: clamp(9px, 1.2vw, 11px);
}

.member {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: clamp(38px, 6vw, 52px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(58, 43, 31, 0.08);
}

.member-1 {
  left: 10%;
  top: 16%;
}

.member-1 .member-avatar {
  background: var(--av1-bg);
  color: var(--av1-ink);
}

.member-2 {
  right: 10%;
  top: 14%;
}

.member-2 .member-avatar {
  background: var(--av2-bg);
  color: var(--av2-ink);
}

.member-3 {
  left: 16%;
  bottom: 14%;
}

.member-3 .member-avatar {
  background: var(--av3-bg);
  color: var(--av3-ink);
}

.member-4 {
  right: 14%;
  bottom: 12%;
}

.member-4 .member-avatar {
  background: var(--av4-bg);
  color: var(--av4-ink);
}

.private-badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(58, 43, 31, 0.08);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.private-badge svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Privacy band */
.privacy-band {
  padding: 64px 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.privacy-copy p {
  margin: 14px 0 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.privacy-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}

.privacy-card-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.visibility-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  white-space: nowrap;
}

.pill-soft {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.pill-muted {
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
}

.privacy-card-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Download */
.download-section {
  padding: 64px 0 72px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #3a332b;
  border-radius: 28px;
  background: #26231f;
  box-shadow: var(--shadow);
  color: #fff9f0;
}

.download-panel h2 {
  margin: 0;
  color: #fff9f0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.download-panel p {
  margin: 14px 0 0;
  color: #d8cfc2;
}

.download-panel .eyebrow {
  background: rgba(232, 93, 93, 0.18);
  color: #ffc9c3;
}

.download-panel .eyebrow::before {
  background: #e85d5d;
}

.download-panel .btn {
  margin-top: 24px;
}

.btn-light {
  background: #fff9f0;
  color: #26231f;
}

.btn-light:hover {
  background: #ffffff;
  color: #26231f;
}

.download-note {
  color: #b7ac9c !important;
  font-size: 12px;
}

.install-steps {
  display: grid;
  gap: 14px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-steps li {
  position: relative;
  padding-left: 38px;
  color: #e7ded2;
  font-size: 14px;
  counter-increment: step;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #5a5146;
  border-radius: 50%;
  color: #fff9f0;
  font-size: 11px;
}

/* Footer */
.site-footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  max-width: 34em;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Legal pages */
.legal {
  width: min(780px, 100% - 48px);
  margin-inline: auto;
  padding: 48px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.legal h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-summary {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-summary strong {
  color: var(--ink);
}

.legal h2 {
  margin: 38px 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.legal p {
  margin: 12px 0;
}

.legal ul,
.legal ol {
  margin: 12px 0;
  padding-left: 1.4em;
}

.legal li {
  margin: 6px 0;
}

.legal code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  font-size: 0.9em;
}

.legal hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.legal .note {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  border-right: 0;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap td {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0 48px;
  }

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

  .circle-card {
    max-width: 420px;
  }

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

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

  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 36px, 1080px);
  }

  .site-header .wrap {
    min-height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12.5px;
  }

  .site-nav .nav-download {
    padding: 6px 10px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .section {
    padding: 48px 0;
  }

  .privacy-band {
    padding: 48px 0;
  }

  .download-section {
    padding: 48px 0 56px;
  }

  .download-panel {
    border-radius: 22px;
  }

  .circle-card {
    border-radius: 24px;
  }

  .circle-center {
    width: 34%;
  }

  .legal {
    width: min(100% - 36px, 780px);
    padding: 36px 0 64px;
  }

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

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand-en {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .member {
    font-size: 10px;
  }

  .private-badge {
    bottom: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
