:root {
  --color-bg: #f5f3e8;
  --color-bg-alt: #ebe8dc;
  --color-surface: #ffffff;
  --color-border: #d4d0c4;
  --color-text: #2c3e20;
  --color-text-secondary: #5a6b4d;
  --color-text-muted: #8a9580;
  --color-primary: #2d5016;
  --color-primary-hover: #3d6820;
  --color-primary-light: #e8f0e0;
  --color-accent: #7cb342;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 28px rgba(45, 80, 22, 0.14);
  --container: 800px;
  --container-wide: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1f16;
    --color-bg-alt: #222820;
    --color-surface: #2a3024;
    --color-border: #3a4234;
    --color-text: #e8e6dc;
    --color-text-secondary: #b8c0a8;
    --color-text-muted: #8a9580;
    --color-primary: #7cb342;
    --color-primary-hover: #8bc34a;
    --color-primary-light: #2a3524;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--color-primary-light) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, var(--color-primary-light) 0%, transparent 55%);
  background-repeat: no-repeat;
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

header .header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  min-width: 0;
}

header .brand:hover { text-decoration: none; }

header .brand .mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

header .brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

header nav a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

header nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ---------- Layout ---------- */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

main.wide { max-width: var(--container-wide); }

.section { margin-bottom: 3.5rem; }

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.section-head h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Simple page (non-home) section headings */
.page main .section h3:not(.section-head h3) {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.hero .icon {
  width: 108px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 18px rgba(45, 80, 22, 0.28));
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero h1, .hero h2.h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.app-badges {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.app-badge:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.app-badge-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.3;
}

.soon-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.rating-line {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.rating-line .stars { color: #d8a71b; letter-spacing: 1px; }

/* ---------- Screenshot showcase ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

/* Percentage-based widths (not raw px) so the count-per-row changes only at
   our chosen breakpoints, never from ad-hoc overflow wrapping — keeps rows
   balanced (5, then 3+2, then stacked) instead of leaving a lone item. */
.shots li { width: calc(20% - 1.4rem); min-width: 150px; }

@media (max-width: 950px) {
  .shots li { width: calc(33.333% - 1.2rem); min-width: 0; }
}

@media (max-width: 600px) {
  .shots li { width: 100%; max-width: 280px; }
}

.phone {
  display: block;
  width: 100%;
  border: 8px solid #14180f;
  border-radius: 30px;
  padding: 0;
  background: #14180f;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  cursor: zoom-in;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.phone:hover, .phone:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(45, 80, 22, 0.22);
}

.phone:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  .phone { border-color: #050703; background: #050703; }
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shots figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  cursor: zoom-out;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-width: min(90vw, 480px);
  cursor: default;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
  color: #f0efe6;
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ---------- Categories ---------- */

.categories-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.categories-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
}

/* ---------- Callouts / cards ---------- */

.privacy-note, .callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.privacy-note a, .callout a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ---------- Page (sub-page) chrome ---------- */

.page-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.page-intro {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0.75rem 0 2rem;
  max-width: 560px;
}

.support-items, .steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-item, .step, .contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card { flex-direction: column; }

.support-item .item-icon, .step-number {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-number {
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.item-body, .step-body { flex: 1; min-width: 0; }

.item-title, .step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.item-desc, .step-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.step-desc a { font-weight: 600; word-break: break-word; }

.contact-card p { font-size: 0.9375rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.contact-card p:last-child { margin-bottom: 0; }
.email-line { font-size: 1.05rem; font-weight: 600; color: var(--color-text); }

/* ---------- Footer ---------- */

footer.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

footer.site-footer .foot-links {
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer.site-footer a { color: var(--color-text-muted); }
footer.site-footer a:hover { color: var(--color-primary); }

@media (max-width: 640px) {
  header nav { gap: 1rem; }
  header .brand-name { display: none; }
}
