/* CRACKD microsite — shared styles. Mobile-first. No JS, no third-party resources. */

:root {
  --bg: #0b0d12;
  --bg-soft: #10131b;
  --surface: #141824;
  --border: #262c3d;
  --border-soft: #1d2230;
  --text: #ece9e0;
  --muted: #9aa1b0;
  --faint: #6b7280;
  --gold: #e8b34b;
  --gold-soft: #f3d489;
  --gold-dim: rgba(232, 179, 75, 0.14);
  --review-bg: rgba(232, 179, 75, 0.1);
  --radius: 14px;
  --maxw: 1040px;
  --legalw: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* skip link (keyboard a11y) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #0b0d12;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #0b0d12; text-decoration: none; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--legalw); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 18px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--gold-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-soft); }

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

.hero {
  position: relative;
  text-align: center;
  padding: 72px 20px 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 179, 75, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(232, 179, 75, 0.05), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero-mark { width: 72px; height: 72px; margin: 0 auto 22px; }

.wordmark {
  font-size: clamp(44px, 12vw, 84px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(180deg, #f7e7bd 0%, var(--gold) 55%, #b98a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text);
  font-weight: 500;
}

.hero-sub {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Store chips ---------- */

.store-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.store-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
  flex: none;
}

.store-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-lede { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Bullet list ---------- */

.bullets { list-style: none; display: grid; gap: 12px; }
.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 15.5px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.bullets li span { color: var(--muted); }

/* ---------- Publisher band ---------- */

.publisher-band {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-soft);
}
.publisher-band p { color: var(--muted); font-size: 15px; }
.publisher-band strong { color: var(--text); font-weight: 600; }

/* ---------- Legal pages ---------- */

.legal { padding: 48px 0 72px; }

.legal-hero { margin-bottom: 36px; }
.legal-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal-meta {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
.legal h2 .num { color: var(--gold); margin-right: 8px; }

.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }

.legal p, .legal li { color: #cfd2d9; font-size: 15.5px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px 22px; display: grid; gap: 7px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.legal td { color: #cfd2d9; }

.ednote {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--review-bg);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.ednote strong { color: var(--gold-soft); }

.review {
  display: inline-block;
  background: var(--review-bg);
  border: 1px solid rgba(232, 179, 75, 0.4);
  color: var(--gold-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ---------- Support page ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0 36px;
}
.contact-card h2 { margin: 0 0 8px; font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-soft);
}

.topics { display: grid; gap: 12px; margin: 24px 0 8px; }

details.topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
details.topic summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 46px 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  color: var(--text);
}
details.topic summary::-webkit-details-marker { display: none; }
details.topic summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
details.topic[open] summary::after { content: "\2212"; }
details.topic[open] summary { border-bottom: 1px solid var(--border-soft); }
.topic-body { padding: 16px 20px 20px; }
.topic-body p { color: #cfd2d9; font-size: 15px; margin-bottom: 10px; }
.topic-body p:last-child { margin-bottom: 0; }
.topic-body ol { margin: 0 0 12px 20px; color: #cfd2d9; font-size: 15px; display: grid; gap: 6px; }
.topic-body ol li::marker { color: var(--gold); }

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

.site-foot {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 36px 20px 44px;
}

.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-brand img { width: 22px; height: 22px; }
.foot-brand span {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-publisher { color: var(--muted); font-size: 14px; }
.foot-publisher a { color: var(--muted); border-bottom: 1px solid var(--border); }
.foot-publisher a:hover { color: var(--gold-soft); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.foot-links a { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.foot-links a:hover { color: var(--gold-soft); text-decoration: none; }

.foot-copy { color: var(--faint); font-size: 12.5px; }

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 96px 20px 80px; }
  .section { padding: 72px 0; }
  .legal { padding: 64px 0 96px; }
}

@media (min-width: 960px) {
  .grid.quad { grid-template-columns: repeat(4, 1fr); }
}
