:root {
  --coral: #ff6b6b;
  --coral-dark: #e64a4a;
  --ink: #2d2e38;
  --muted: #6b6e7e;
  --card: #ffffff;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(180deg, #fff7e6 0%, #ffe9e3 45%, #e9f4ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; max-width: 940px; margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.nav .brand img { width: 34px; height: 34px; border-radius: 22%; }
.nav .links a { margin-left: 18px; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 40px 20px 16px; }
.hero img.icon {
  width: 132px; height: 132px; border-radius: 29%;
  box-shadow: 0 16px 40px rgba(255,107,107,.35);
}
.hero h1 { font-size: clamp(34px, 6vw, 54px); margin: 22px 0 2px; font-weight: 900; letter-spacing: -.5px; }
.hero .subtitle { font-size: 16px; color: var(--coral-dark); font-weight: 700; margin: 0 0 8px; letter-spacing: .2px; }
.hero .tagline { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 640px; }
.hero .tagline .en { display: block; font-size: 16px; opacity: .8; margin-top: 4px; }

/* App Store download badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 24px;
  padding: 10px 20px; border-radius: 14px; background: #000; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.appstore-badge .apple-logo { width: 28px; height: 28px; flex: none; }
.appstore-badge .badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.appstore-badge .badge-text small { font-size: 11px; font-weight: 500; opacity: .92; }
.appstore-badge .badge-text strong { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }

/* Gallery */
.gallery { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 34px 20px 8px; }
.gallery img {
  width: 150px; height: 150px; object-fit: contain; background: #fff;
  border-radius: 18px; padding: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 30px 0; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.card .emoji { font-size: 30px; }
.card h3 { margin: 10px 0 4px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p .en { display: block; opacity: .8; font-size: 13.5px; }

/* Section heading */
.section-title { text-align:center; font-size: 26px; font-weight: 800; margin: 30px 0 0; }

/* Footer */
.footer { text-align: center; color: var(--muted); padding: 40px 20px 56px; font-size: 14px; }
.footer .links a { margin: 0 10px; font-weight: 600; }
.footer .small { margin-top: 14px; font-size: 12.5px; opacity: .8; }

/* Document pages (privacy / terms) */
.doc { background: var(--card); border-radius: var(--radius); padding: 30px 28px; margin: 20px 0 40px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.doc h1 { font-size: 30px; margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 26px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.lang-pill {
  display:inline-block; margin: 28px 0 4px; padding: 5px 14px; border-radius: 999px;
  background: var(--coral); color:#fff; font-weight:700; font-size: 13px;
}
.divider { border: none; border-top: 2px dashed #e3c9c9; margin: 34px 0; }
.back { display:inline-block; margin-top: 8px; font-weight: 600; }
