:root {
  --snow-blue: #29B5E8;
  --snow-dark: #11567F;
  --ink:       #0B1220;
  --text:      #111827;
  --text-2:    #4B5563;
  --text-3:    #9CA3AF;
  --bg:        #F9FAFB;
  --card:      #FFFFFF;
  --border:    #E5E7EB;
  --shadow:    0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

/* ───── Top bar ───── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand-logo {
  border-radius: 8px;
  object-fit: cover;
}
.brand-name { font-size: 16px; }

.appstore-link {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 999px;
}
.appstore-link:hover { text-decoration: none; opacity: 0.9; }

/* ───── Share preview card ───── */
.share-preview {
  max-width: 720px;
  margin: 20px auto 40px;
  padding: 0 20px;
}
.share-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.share-kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 6px;
}
.share-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.share-desc {
  color: var(--text-2);
  margin: 0 0 16px;
}
.share-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 14px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-stat {
  min-width: 96px;
}
.share-stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 700;
}
.share-stat .value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}
.share-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.share-list li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.share-list li:last-child { border-bottom: 0; }
.share-list li .idx {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.share-hint {
  font-size: 13px;
  color: var(--text-3);
  margin: 12px 0 0;
}

/* ───── CTA buttons ───── */
.cta {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.06s ease, opacity 0.12s ease;
}
.cta:hover { text-decoration: none; opacity: 0.92; }
.cta:active { transform: translateY(1px); }
.cta.primary {
  background: var(--snow-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(41, 181, 232, 0.35);
}
.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta.large {
  font-size: 16px;
  padding: 14px 28px;
}

/* ───── Hero ───── */
.hero {
  max-width: 1080px;
  margin: 16px auto 56px;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0F766E;
  background: #CCFBF1;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-sub {
  color: var(--text-2);
  font-size: 18px;
  margin: 0 0 24px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-svg {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

/* ───── Battery section ───── */
.battery {
  max-width: 880px;
  margin: 16px auto 64px;
  padding: 32px 20px;
}
.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-head p {
  color: var(--text-2);
  margin: 0;
}
.section-head-with-art {
  margin-bottom: 36px;
}
/* Mascot illustration used in section headers — always rounded. The
   border-radius is set directly on the <img> so the rendered pixels are
   clipped; the filter:drop-shadow then follows that rounded silhouette
   instead of the original rectangular box. */
.section-art {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 28px;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.12));
}
.batt-grid {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.batt-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
}
.batt-row + .batt-row {
  border-top: 1px solid var(--border);
}
.batt-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.batt-bar {
  height: 12px;
  background: #F3F4F6;
  border-radius: 8px;
  overflow: hidden;
}
.batt-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(.22,.61,.36,1);
}
.batt-pct {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.batt-row.highlight .batt-label,
.batt-row.highlight .batt-pct { color: #166534; }
.best-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #166534;
  background: #DCFCE7;
  padding: 3px 7px;
  border-radius: 999px;
}
.batt-foot {
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  max-width: 640px;
}

/* ───── Features grid ───── */
.features {
  max-width: 1080px;
  margin: 16px auto 64px;
  padding: 24px 20px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.feat-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}
.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.feat-card p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ───── Footer CTA ───── */
.footer-cta {
  max-width: 720px;
  margin: 16px auto 36px;
  padding: 36px 20px;
  text-align: center;
}
.footer-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-cta p {
  color: var(--text-2);
  margin: 0 0 22px;
}

.page-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}
.page-footer a { color: var(--text-3); }

/* ───── Responsive tweaks ───── */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 36px;
  }
  .hero-cta { justify-content: center; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-svg { width: 200px; height: 200px; }
  .batt-row {
    grid-template-columns: 130px 1fr 48px;
    gap: 10px;
  }
  .batt-label { font-size: 13px; }
  .section-head h2 { font-size: 24px; }
  .share-card { padding: 22px; }
  .share-title { font-size: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0B1220;
    --card:   #111827;
    --border: #1F2937;
    --text:   #F9FAFB;
    --text-2: #D1D5DB;
    --text-3: #6B7280;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  }
  .appstore-link { background: var(--snow-blue); color: #0B1220; }
  .batt-bar { background: #1F2937; }
  .hero-badge { background: rgba(16, 185, 129, 0.18); color: #6EE7B7; }
  .best-badge { background: rgba(34, 197, 94, 0.2); color: #86EFAC; }
  .batt-row.highlight .batt-label,
  .batt-row.highlight .batt-pct { color: #86EFAC; }
  .section-art { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
}
