:root {
  --primary: #FF9A76;
  --primary-dark: #E37650;
  --accent-yellow: #FFD93D;
  --accent-green: #6BCB77;
  --accent-blue: #A8D8EA;
  --accent-pink: #F8B6C2;
  --bg: #FFF7F2;
  --card: #FFFFFF;
  --border: #F2D9CB;
  --text: #2A1F1A;
  --text-muted: #6B5A50;
  --text-tertiary: #A6968B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1411;
    --card: #2A201B;
    --border: #3D2E26;
    --text: #FAF1EB;
    --text-muted: #C9B4A6;
    --text-tertiary: #8A7669;
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "SF Pro Rounded", "SF Pro Text", BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

header.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 28px;
}

header.app-header .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 154, 118, 0.25);
}

header.app-header .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

header.app-header .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

h1 {
  font-size: 24px;
  margin: 28px 0 10px;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

h2 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

h3 {
  font-size: 15px;
  margin: 18px 0 4px;
  color: var(--text);
}

p, li { font-size: 14.5px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

th {
  width: 34%;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg);
}

tr:last-child th, tr:last-child td { border-bottom: none; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 18px 0;
}

.card h3 { margin-top: 0; color: var(--primary-dark); }

.updated {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

footer.app-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

footer.app-footer a { margin: 0 8px; }

/* ===== Landing-specific ===== */
.hero {
  text-align: center;
  padding: 24px 0 28px;
}

.hero .app-icon-large {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 12px 32px rgba(255, 154, 118, 0.35);
}

.hero h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 10px;
}

.hero .lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.8;
}

.hero .lead-en {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
  font-style: italic;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--text);
  color: var(--card);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.app-store-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.app-store-btn::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>") center/contain no-repeat;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.feature-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  color: var(--primary-dark);
}

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

.price-card {
  background: linear-gradient(135deg, rgba(255, 154, 118, 0.12), rgba(255, 217, 61, 0.10));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 18px;
}

.price-card .price-main {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.price-card .price-regions {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.price-card li {
  font-size: 13.5px;
  color: var(--text-muted);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item h3 { color: var(--text); margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--text-muted); }

.bilingual-block { margin-bottom: 28px; }
.bilingual-block .en {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--card);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 10px 10px 0;
}
.bilingual-block .en p,
.bilingual-block .en li { font-size: 13.5px; color: var(--text-muted); }
.bilingual-block .en h2,
.bilingual-block .en h3 { color: var(--text-muted); }

@media (max-width: 480px) {
  body { padding: 24px 16px 40px; }
  .hero .app-icon-large { width: 104px; height: 104px; border-radius: 24px; }
  .hero h1 { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
}
