:root {
  color-scheme: dark;
  --page: #101411;
  --surface: #171d18;
  --surface-subtle: #202820;
  --text: #e6ece5;
  --muted: #a6b0a5;
  --line: #303b31;
  --accent: #94c58d;
  --accent-hover: #a7d39f;
  --accent-text: #142014;
  --accent-soft: #1e2b1f;
  --notice-border: #354b36;
  --shadow: rgba(0, 0, 0, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #fff;
  --surface: #fff;
  --surface-subtle: #f5f7f5;
  --text: #202620;
  --muted: #68716a;
  --line: #e5e9e5;
  --accent: #477a46;
  --accent-hover: #376438;
  --accent-text: #fff;
  --accent-soft: #f0f5ef;
  --notice-border: #dce8da;
  --shadow: rgba(32, 38, 32, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #79a977; outline-offset: 3px; }
.wrap { width: min(1050px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 900; }
.nav { display: flex; align-items: center; gap: 25px; }
.nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.nav a:hover, .footer-links a:hover { color: var(--accent); }
.nav .nav-cta { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.theme-toggle { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-subtle); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }

.intro { padding: 48px 0 40px; }
.intro-label { display: inline-block; margin-bottom: 15px; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.intro h1, .policy-content h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -.065em; }
.intro p { max-width: 540px; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 650; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.button-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.collection { padding: 30px 0 48px; scroll-margin-top: 24px; }
.collection + .collection { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 20px; }
.collection h2, .about h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.section-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card { min-height: 225px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 5px 18px var(--shadow); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon { display: block; width: 68px; height: 68px; border-radius: 15px; background: var(--surface-subtle); object-fit: contain; }
.app-index { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.app-card h3 { margin: 20px 0 7px; font-size: 17px; letter-spacing: -.02em; }
.app-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.app-tag { padding: 5px 8px; border-radius: 999px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; }
.store-link { color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; padding: 31px 0 60px; border-top: 1px solid var(--line); }
.about h2 { font-size: 23px; }
.about p { max-width: 600px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.policy-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 65px; }
.policy-content h1 { margin-bottom: 10px; }
.updated { color: var(--muted); font-size: 12px; }
.notice { margin: 25px 0 32px; padding: 16px 18px; border: 1px solid var(--notice-border); border-radius: 12px; background: var(--surface-subtle); color: var(--muted); font-size: 13px; line-height: 1.75; }
.notice strong { color: var(--accent); }
.policy { padding: 22px 0; border-top: 1px solid var(--line); }
.policy h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.03em; }
.privacy-page p, .privacy-page li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.privacy-page p { margin: 0 0 12px; }
.privacy-page ul { margin: 10px 0 0; padding-left: 20px; }
.privacy-page li { padding: 3px 0; }
.privacy-page code { color: var(--accent); font-family: inherit; }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }

@media (max-width: 760px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card { min-height: 195px; }
  .about { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 34px, 1050px); }
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav a { font-size: 10px; }
  .nav .nav-cta { padding: 7px 9px; }
  .theme-toggle { min-height: 30px; padding: 0 8px; font-size: 10px; }
  .intro { padding: 50px 0 30px; }
  .app-grid { grid-template-columns: 1fr; }
  .policy-content { width: min(100% - 34px, 760px); padding: 43px 0 55px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 17px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
