
:root {
  color-scheme: light dark;
  --accent: #50c276;
  --accent-strong: #38aa5f;
  --text: #173221;
  --text-soft: #4f6758;
  --bg: #f7fbf8;
  --bg-2: #eef7f1;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(28, 69, 43, 0.10);
  --shadow: 0 24px 64px rgba(24, 53, 35, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max-width: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.page-shell {
  width: min(var(--max-width), calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero { padding: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(80, 194, 118, 0.10);
  border: 1px solid rgba(80, 194, 118, 0.20);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 22px;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: 0 0 22px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 20px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.02; max-width: 11ch; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.2; }
p, li { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.hero-text { margin: 14px 0 0; max-width: 39rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent;
}
.button { background: var(--accent); color: #fff; }
.button:hover { background: var(--accent-strong); text-decoration: none; }
.button-secondary {
  background: var(--surface-strong); border-color: var(--line); color: var(--text);
}
.button-secondary:hover { text-decoration: none; border-color: rgba(80,194,118,0.30); }
.hero-art-wrap { display:flex; justify-content:center; align-items:center; min-height:220px; }
.hero-art { width:100%; max-width:360px; height:auto; display:block; }
.stats-grid, .feature-grid, .secondary-grid {
  display:grid; gap:18px; margin-top:18px;
}
.stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.secondary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel { padding:24px; }
.stat-value { font-size: 34px; font-weight: 800; line-height: 1; color: var(--text); margin-bottom: 10px; }
.stat-label { font-size: 15px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.06em; }
.list { margin: 14px 0 0; padding-left: 20px; }
.section-stack { display:grid; gap:18px; margin-top:18px; }
.link-row { display:flex; flex-wrap:wrap; gap:12px 18px; margin-top:18px; }
.site-footer { text-align:center; padding:20px 0 4px; }
.site-footer p { margin:0; font-size:14px; }
@media (max-width: 900px) {
  .stats-grid, .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-shell { width: min(var(--max-width), calc(100vw - 20px)); padding-top:10px; padding-bottom:28px; }
  .hero, .panel { padding:18px; border-radius:22px; }
  .hero-grid, .secondary-grid { grid-template-columns: 1fr; }
  .hero-grid { gap:12px; }
  .hero-art-wrap { order:-1; min-height:0; padding-bottom:4px; }
  .hero-art { max-width:100%; max-height:130px; width:auto; }
  h1 { max-width:none; font-size: clamp(30px, 10vw, 40px); }
  p, li { font-size:16px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2fff5;
    --text-soft: #c8ddd0;
    --bg: #09110c;
    --bg-2: #0f1712;
    --surface: rgba(16, 27, 20, 0.84);
    --surface-strong: rgba(20, 34, 26, 0.96);
    --line: rgba(150, 220, 171, 0.14);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.30);
  }
  .brand {
    background: rgba(80, 194, 118, 0.14);
    border-color: rgba(80, 194, 118, 0.22);
    color: var(--text);
  }
  .button-secondary { background: rgba(18,31,23,0.9); }
}


/* === color overrides === */
body { background:#F9F9F9; color:#000000; }
.card, .panel, .section, .hero { background:#FFFFFF !important; }

@media (prefers-color-scheme: dark) {
  body { background:#000000; color:#FFFFFF; }
  .card, .panel, .section, .hero { background:#201F1F !important; }
}

button, .button, .cta {
  color:#FFFFFF !important;
}


/* === App Store badge + showcase + differentiators (additions) === */

/* App Store badge (official artwork lives at ./assets/app-store-badge.svg) */
.appstore-link { display: inline-flex; align-items: center; }
.appstore-link:hover { text-decoration: none; }
.appstore-badge {
  height: 52px; width: auto; display: block;
  transition: transform 0.15s ease;
}
.appstore-link:hover .appstore-badge { transform: translateY(-1px); }
.hero-actions-secondary { margin-top: 14px; }

/* --- Showcase: App Store-style horizontal gallery --- */
.showcase { margin-top: 18px; }
.showcase-head .eyebrow { margin-bottom: 6px; }
.showcase-head h2 { max-width: 22ch; }

.gallery {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  margin-right: calc(50% - 50vw);   /* let the strip run off the right edge */
  padding-right: 24px;
  padding-bottom: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.gallery-item {
  flex: 0 0 auto;
  width: 230px;
  aspect-ratio: 1160 / 2522;
  margin: 0;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  scroll-snap-align: start;
}
.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- Differentiators --- */
.diff { margin-top: 28px; }
.diff-head { margin-bottom: 4px; }
.diff-head .eyebrow { margin-bottom: 8px; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .diff-grid { grid-template-columns: 1fr; }
  .appstore-badge { height: 46px; }
  .gallery-item { width: 64vw; }
}
