:root {
  color-scheme: light dark;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --card: #ececec;
  --text: #1a1a1a;
  --text-muted: #55575c;
  --accent: #323a5a;
  --accent-text: #ffffff;
  --border: #dcdcdc;
  --hero-bg: #afb5c7;
  --hero-text: #1a1a1a;

  --cat-order: #3b6ea5;
  --cat-ship: #2f8f6b;
  --cat-inventory: #a9752c;
  --cat-id: #7a4fa3;
  --cat-analytics: #c1553d;
  --cat-premium: #9c7a1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --surface: #232323;
    --card: #2b2b2b;
    --text: #ececec;
    --text-muted: #b5b5b5;
    --accent: #ccc8c8;
    --accent-text: #1a1a1a;
    --border: #3a3a3a;
    --hero-bg: #595d60;
    --hero-text: #f2f2f2;

    --cat-order: #7ea9d6;
    --cat-ship: #6bc49b;
    --cat-inventory: #d9a457;
    --cat-id: #b291d6;
    --cat-analytics: #e08268;
    --cat-premium: #e0c169;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.site-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.site-nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.site-nav .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.site-nav .links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
}

.site-nav .links a:hover,
.site-nav .links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta.secondary {
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.nav-cta:hover {
  opacity: 0.85;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  padding: 48px 32px;
  margin: -40px -24px 0;
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: 0 0 16px 16px;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero p.tagline {
  font-size: 17px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.35);
  color: var(--hero-text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.callout {
  background: var(--card);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text);
}

.badge {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 8px 0 0;
}

h2 {
  font-size: 22px;
  margin: 48px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cat-color, var(--accent));
  flex: none;
}

h2 + .section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 8px;
  padding: 18px 20px;
  border-top: 3px solid var(--cat-color, var(--border));
}

section.category {
  --cat-color: var(--accent);
}
section.category-order {
  --cat-color: var(--cat-order);
}
section.category-ship {
  --cat-color: var(--cat-ship);
}
section.category-inventory {
  --cat-color: var(--cat-inventory);
}
section.category-id {
  --cat-color: var(--cat-id);
}
section.category-analytics {
  --cat-color: var(--cat-analytics);
}
section.category-premium {
  --cat-color: var(--cat-premium);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.card li {
  margin: 4px 0;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  padding: 4px 4px 8px;
}

.phone-shot {
  margin: 0;
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 0.49;
  object-fit: cover;
  object-position: center 65%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.phone-shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.phone-shot ul {
  margin: 4px 0 0;
  padding-left: 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.phone-shot li {
  margin: 0;
}

.carousel-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
}

@media (max-width: 560px) {
  .carousel-btn {
    display: none;
  }
}

.quick-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 24px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.quick-tips li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.quick-tips li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tips-more {
  margin: 0 0 24px;
  font-size: 13px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

article h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

article .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

article h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

article h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}

article p,
article li {
  font-size: 15px;
}

article ul li {
  margin: 6px 0;
}

article ul {
  padding-left: 20px;
}

pre {
  background: var(--card);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--border);
}
