:root {
  --night-deep: #070B1C;
  --night:      #101736;
  --sapphire:   #1B2A5E;
  --amber:      #F5B455;
  --amber-soft: #FFD79A;
  --ivory:      #F4EFE4;
  --dim:        #A3ACCB;
  --hairline:   rgba(255, 215, 154, 0.14);
}

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

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--ivory);
  background-color: var(--night-deep);
  background-image: linear-gradient(180deg, var(--night-deep) 0%, var(--night) 55%, var(--sapphire) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ivory); letter-spacing: -0.02em; line-height: 1.22; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

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

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 460px;
  height: 460px;
  margin-left: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 154, 0.20) 0%, rgba(255, 215, 154, 0.06) 42%, rgba(255, 215, 154, 0) 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 18px; max-width: 14em; }
.hero .subhead { margin: 0 auto 32px; max-width: 34em; color: var(--dim); font-size: 1.08rem; }

.btn-download {
  background: var(--amber);
  color: #1A1206;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 180, 85, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-download:hover { background: var(--amber-soft); text-decoration: none; transform: translateY(-1px); }
.btn-note { display: block; margin-top: 14px; font-size: 0.86rem; color: var(--dim); }

/* ---------- the board illustration ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 44px auto 0;
}

.tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.035);
  position: relative;
  overflow: hidden;
}

/* face-down tiles get a faint centred dot */
.tile.down::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 215, 154, 0.22);
}

/* a revealed tile: two photos split on the diagonal, gold divider */
.tile.up {
  border-color: rgba(255, 215, 154, 0.4);
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--amber) calc(50% - 1px), var(--amber) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(135deg, #4A6FA5 0%, #6E8FC0 49.6%, transparent 49.6%),
    linear-gradient(315deg, #B4794A 0%, #D8A06B 49.6%, transparent 49.6%);
}

.tile.today {
  border-color: rgba(255, 215, 154, 0.55);
  background: rgba(255, 215, 154, 0.07);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 154, 0.16); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 215, 154, 0); }
}

.board-caption {
  text-align: center;
  color: var(--dim);
  font-size: 0.88rem;
  margin: 16px auto 0;
  max-width: 30em;
}

/* ---------- sections ---------- */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 64px 0;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.card p  { margin: 0; color: var(--dim); font-size: 0.98rem; }

.section { margin: 56px 0; }
.section ol { padding-left: 1.3em; color: var(--dim); margin: 0; }
.section ol li { margin-bottom: 12px; padding-left: 4px; }

.closing {
  text-align: center;
  margin: 64px 0 8px;
  color: var(--dim);
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
}
.closing p { max-width: 32em; margin: 0 auto 26px; }

/* ---------- inner pages ---------- */
.page-header { padding: 64px 0 8px; }
.page-header h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-header .intro { color: var(--dim); margin: 0; }

.faq { margin: 36px 0 40px; }
.faq h3 { margin: 32px 0 8px; font-size: 1.06rem; }
.faq p { margin: 0; color: var(--dim); }
.faq-closing { margin: 40px 0 8px; color: var(--dim); }

.policy { margin: 28px 0 8px; }
.policy .meta { color: var(--dim); margin: 0 0 6px; }
.policy h2 { margin: 40px 0 12px; }
.policy h3 { margin: 28px 0 8px; font-size: 1.04rem; }
.policy p, .policy li { color: var(--dim); }
.policy ul { padding-left: 1.25em; }
.policy li { margin-bottom: 10px; }
.policy strong { color: var(--ivory); }
.policy hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }
.policy .fine { font-style: italic; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px;
  padding: 32px 0 56px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--dim);
  border-top: 1px solid var(--hairline);
}
.site-footer nav { margin-bottom: 10px; }
.site-footer nav a { margin: 0 10px; }
.site-footer .tagline { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn-download { transition: none; }
  .btn-download:hover { transform: none; }
  .tile.today { animation: none; }
}
