:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2c2723;
  --muted: #7c7267;
  --gold: #9a7b56;
  --gold-dark: #7d6243;
  --champagne: #e8dcc4;
  --tint: #f3ece0;
  --line: #eadece;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(44, 39, 35, 0.07);
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-dark); }
img { max-width: 100%; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
section { padding: 80px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 52ch; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--gold); }
nav.main { display: flex; gap: 24px; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav.main a:hover { color: var(--gold-dark); }
@media (max-width: 720px) {
  nav.main a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font: 600 1rem var(--body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--gold); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
/* Home page: guests with a code go straight to the web app. */
.play { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.play-note { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  padding: 8px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.store small { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.04em; text-transform: uppercase; }
.store strong { font-size: 1.1rem; font-weight: 600; }
.store[aria-disabled='true'] { cursor: default; opacity: 0.9; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.invite {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(44, 39, 35, 0.1);
  transform: rotate(1.5deg);
}
.invite .tag { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.invite .name { font-family: var(--display); font-size: 1.7rem; font-weight: 600; margin-bottom: 20px; }
.invite .code {
  display: inline-block;
  background: var(--tint);
  border: 1px dashed var(--gold);
  border-radius: 16px;
  padding: 12px 24px;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-variant-numeric: lining-nums;
}
.invite .link { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* Cards and grids */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.alt { background: var(--tint); }
.alt .card { background: var(--surface); }

/* Steps */
.steps { counter-reset: step; }
.step .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: lining-nums;
}

/* Plans */
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 600; margin: 4px 0 16px; font-variant-numeric: lining-nums; }
.plan .price small { font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.97rem; }
.plan.featured { border: 2px solid var(--gold); }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Legal and join pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.updated { color: var(--muted); font-size: 0.95rem; }
.doc h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.doc ul ul { margin-top: 0.4em; }
.doc .summary, .doc .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .summary { background: var(--tint); box-shadow: none; }
.doc .summary ul, .doc .toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.doc .toc li { margin-bottom: 0.2em; }
.doc .tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.doc h2[id] { scroll-margin-top: 24px; }
.join { padding: 72px 0; text-align: center; }
.join .invite { transform: none; max-width: 460px; margin: 32px auto; }
.join .stores { justify-content: center; }

/* Logo */
.brand { display: inline-flex; align-items: center; }
.brand img { margin-right: 10px; }
.brand img { height: 40px; width: auto; }
