/* Acme Shop — demo storefront styling (no framework, no external assets). */
:root {
  --ink: #1c2530;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --accent: #f59e0b;
  --locked: #94a3b8;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.nav {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 22px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); }
.logo em { color: var(--brand); font-style: normal; }
.nav a.item { color: var(--muted); font-weight: 500; }
.nav a.item.active { color: var(--ink); }
.nav .spacer { flex: 1; }
.badge-analytics {
  display: none; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #7c3aed;
  background: #f3e8ff; border: 1px solid #e9d5ff;
  padding: 4px 10px; border-radius: 99px;
}
.badge-analytics.on { display: inline-flex; }

main { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }

.hero {
  background: linear-gradient(120deg, #0f766e, #115e59 60%, #134e4a);
  color: #ecfeff; border-radius: var(--radius);
  padding: 48px 40px; margin-bottom: 32px;
}
.hero h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.5px; }
.hero p { margin: 0 0 22px; max-width: 560px; color: #ccfbf1; }
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--accent); color: #451a03; padding: 10px 20px; border-radius: 10px;
}
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn:hover { filter: brightness(1.05); text-decoration: none; }

h2.section { font-size: 22px; letter-spacing: -0.3px; margin: 36px 0 16px; }
h2.section small { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .art { height: 130px; display: grid; place-items: center; font-size: 52px; }
.card .body { padding: 14px 16px 16px; }
.card .name { font-weight: 600; }
.card .price { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--brand); }

/* Consent-gated blocks: blurred + explained until the purpose is GRANTED. */
[data-requires-purpose] { position: relative; }
[data-requires-purpose].locked > .gated-content { filter: blur(6px); pointer-events: none; user-select: none; }
[data-requires-purpose] .gate-note { display: none; }
[data-requires-purpose].locked .gate-note {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  position: absolute; inset: 0; z-index: 2; text-align: center;
  background: rgba(248, 250, 252, 0.6); border-radius: var(--radius);
  color: var(--ink); font-weight: 500; padding: 20px;
}
.gate-note .btn { font-size: 14px; }
.gate-note .why { font-size: 13px; color: var(--muted); max-width: 420px; font-weight: 400; }

.newsletter {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.newsletter input {
  flex: 1; min-width: 220px; font: inherit; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
}

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.prose h1 { margin-top: 0; letter-spacing: -0.5px; }
.prose h3 { margin: 22px 0 6px; }
.prose p, .prose li { color: #334155; }

table.consents { width: 100%; border-collapse: collapse; margin: 14px 0; }
table.consents th, table.consents td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.consents th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.chip.GRANTED { background: #dcfce7; color: #166534; }
.chip.DENIED, .chip.WITHDRAWN { background: #fee2e2; color: #991b1b; }
.chip.EXPIRED { background: #fef3c7; color: #92400e; }
.chip.unknown { background: var(--line); color: var(--muted); }
td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 20px 40px;
  color: var(--muted); font-size: 14px; background: var(--card);
}
footer.site .inner { max-width: 1040px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; }
