:root {
  --blue-deep: #0b3e86;
  --blue: #1b71cc;
  --blue-bright: #4e9be0;
  --ink: #10233f;
  --paper: #f5f7fa;
  --muted: #5b7089;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

.hero {
  background:
    linear-gradient(180deg, rgba(11, 62, 134, 0.92), rgba(27, 113, 204, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(255, 255, 255, 0.07) 63px 64px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.07) 63px 64px),
    var(--blue-deep);
  color: #fff;
  text-align: center;
  padding: 72px 24px 88px;
}

.hero img.appicon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  margin: 28px auto 16px;
  max-width: 16ch;
}

.hero p.sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44ch;
  margin: 0 auto 32px;
}

.badge {
  display: inline-block;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto 48px;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

nav .brand img { width: 34px; height: 34px; border-radius: 8px; }
nav .links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; margin-left: 20px; font-size: 0.95rem; }

.features {
  max-width: 960px;
  margin: -44px auto 0;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.feature {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(16, 35, 63, 0.08);
}

.feature .glyph { font-size: 1.8rem; }
.feature h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Shop / shelf page */
.hero-compact { padding: 72px 24px 64px; }
.hero-compact h1 { margin-top: 0; }

.shop {
  max-width: 960px;
  margin: -32px auto 0;
  padding: 0 24px 24px;
}

.disclosure {
  background: #fff;
  border-radius: 14px;
  border-left: 4px solid var(--blue);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow: 0 6px 24px rgba(16, 35, 63, 0.08);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0 8px;
}

.shelf h2 {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(16, 35, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover, .product:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 35, 63, 0.14);
}

.product .shot { aspect-ratio: 4 / 3; background: #eef2f7; }

.product .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }

.product .tag {
  align-self: flex-start;
  background: rgba(27, 113, 204, 0.1);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.product h3 { font-size: 1rem; }
.product p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.product .price { color: var(--blue); font-weight: 700; font-size: 0.92rem; }

.fineprint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 28px;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .product { transition: none; }
  .product:hover, .product:focus-visible { transform: none; }
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 32px 24px 48px;
}

footer a { color: var(--muted); }

/* Legal pages */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.doc header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}

.doc header a img { width: 28px; height: 28px; border-radius: 6px; }
.doc h1 { font-size: 1.9rem; margin-bottom: 4px; }
.doc p.effective { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #2c3e55; font-size: 0.98rem; }
.doc ul { padding-left: 22px; margin: 8px 0; }
