/* Draw Dawg — drawdawg.app
   Emerald card-table felt, gold, and the lottery ticket itself. */

:root {
  --felt: #0A1F15;
  --felt-raised: #123F2A;
  --felt-deep: #06140D;
  --gold: #F6C445;
  --gold-soft: #FFE7A3;
  --mint: #A9C9B6;
  --mint-faint: #7FA38E;
  --paper: #FFFDF7;
  --ink: #13241B;
  --win: #1E8A4C;
  --pb-red: #D7263D;

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --stamp: "Courier Prime", "Courier New", monospace;

  --measure: 64ch;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #fff;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--felt);
  /* the app's felt: fine weave + a lamp over the table */
  background-image:
    radial-gradient(ellipse 110% 70% at 50% 18%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.22) 100%),
    url("felt.png");
  background-size: 100% 1400px, 48px 48px;
  background-repeat: no-repeat, repeat;
  min-height: 100vh;
}

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

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand img { width: 52px; height: 52px; }
.brand span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand b { color: var(--gold); font-weight: 900; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 64px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero p {
  margin: 0 0 28px;
  color: var(--mint);
  font-size: 20px;
  max-width: 34ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #2A1A00;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(246, 196, 69, 0.25);
}
.btn:hover { color: #2A1A00; background: var(--gold-soft); }
.soon { color: var(--mint-faint); font-size: 15px; }

/* ---------- the ticket (hero visual) ---------- */
.ticket {
  position: relative;
  background: linear-gradient(140deg, #FFF3CF, #FFD9B0 55%, #F9B8A6);
  color: #3B2412;
  border-radius: 22px;
  padding: 26px 26px 24px;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(246, 196, 69, 0.35);
  max-width: 460px;
  justify-self: center;
}
.ticket::before, .ticket::after {
  /* the punched notches on the sides of a paper ticket */
  content: "";
  position: absolute;
  top: 56%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--felt);
}
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.ticket-state { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: #7A4E2A; }
.ticket-game {
  font-family: var(--body);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  margin: 2px 0 14px;
}
.ticket-rule { border: 0; border-top: 2px dashed rgba(122, 78, 42, 0.35); margin: 0 0 16px; }
.line { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.line-letter { width: 18px; font-weight: 900; color: #7A4E2A; }
.ball {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid #D9822B;
  background: #fff;
  font-weight: 900;
  font-size: 15px;
  color: #3B2412;
}
.ball.mb { background: #F2B705; border-color: #F2B705; }
.ball.hit { background: var(--win); border-color: var(--win); color: #fff; }
.ball.mb.hit { border-color: var(--win); box-shadow: 0 0 0 3px rgba(30, 138, 76, 0.35); }
.mult { margin-left: 6px; font-weight: 900; font-size: 18px; }
.ticket-stamp {
  font-family: var(--stamp);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  margin: 14px 0 12px;
  font-size: 15px;
}
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticket-foot span { font-weight: 800; color: #7A4E2A; font-size: 15px; }
.ticket-foot .fetched {
  background: var(--win);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 15px;
}

/* ---------- unclaimed strip ---------- */
.unclaimed {
  border-top: 1px solid rgba(246, 196, 69, 0.35);
  border-bottom: 1px solid rgba(246, 196, 69, 0.35);
  padding: 30px 0;
  text-align: center;
}
.unclaimed p {
  margin: 0 auto;
  font-family: var(--stamp);
  font-weight: 700;
  color: var(--gold-soft);
  font-size: clamp(17px, 2.3vw, 22px);
  max-width: 52ch;
  line-height: 1.5;
}
.unclaimed small { display: block; margin-top: 8px; color: var(--mint-faint); font-family: var(--body); font-size: 14px; }

/* ---------- sections ---------- */
section.block { padding: 80px 0 24px; }
h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  margin: 0 0 18px;
}
.lead { color: var(--mint); font-size: 20px; max-width: 46ch; margin: 0 0 40px; }

/* how it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(169, 201, 182, 0.2);
}
.steps li:last-child { border-bottom: 1px solid rgba(169, 201, 182, 0.2); }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.8;
  color: var(--gold);
}
.steps h3 { margin: 0 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--mint); max-width: var(--measure); }

/* games */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.games h3 { font-size: 20px; margin: 0 0 10px; }
.games ul { margin: 0; padding-left: 20px; color: var(--mint); }
.games li { margin-bottom: 6px; }
.games li strong { color: #fff; }
.st-head { font-size: 20px; margin: 40px 0 14px; }
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st { background: rgba(255,255,255,0.04); border: 1px solid rgba(246,196,69,0.25); border-radius: 12px; padding: 12px 14px; }
.st h4 { margin: 0 0 4px; font-size: 15px; color: #F6C445; }
.st p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mint); }
.st-note { margin-top: 16px; font-size: 14px; color: var(--mint); }

/* golden */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.plan {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(169, 201, 182, 0.25);
  background: rgba(6, 20, 13, 0.55);
}
.plan.golden {
  background: linear-gradient(150deg, #FFF4D6, #FFE08A 60%, #F4B41A);
  color: #3B2412;
  border: 0;
  box-shadow: 0 16px 40px rgba(244, 180, 26, 0.18);
}
.plan h3 { font-family: var(--display); font-weight: 900; font-size: 38px; margin: 0; line-height: 1; }
.plan .price { font-weight: 800; margin: 8px 0 18px; font-size: 18px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin-bottom: 8px; }
.plan:not(.golden) li { color: var(--mint); }
.fineprint { color: var(--mint-faint); font-size: 14px; margin-top: 16px; max-width: var(--measure); }

/* ---------- legal + support pages ---------- */
.doc { padding: 24px 0 80px; }
.doc h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95;
  margin: 24px 0 10px;
}
.doc .updated { color: var(--mint-faint); margin: 0 0 36px; font-size: 15px; }
.doc .card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
  max-width: 820px;
}
.doc .card h2 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  margin: 34px 0 10px;
}
.doc .card h2:first-child { margin-top: 0; }
.doc .card p, .doc .card li { max-width: var(--measure); }
.doc .card a { color: #146B39; font-weight: 700; }
.doc .card ul { padding-left: 22px; }
.doc .card li { margin-bottom: 6px; }
.doc details { border-top: 1px solid #E6DFD0; padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid #E6DFD0; }
.doc summary { cursor: pointer; font-weight: 800; font-size: 19px; }
.doc details p { margin: 10px 0 0; }
.contact-box {
  background: #FFF4D6;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 28px;
}
.contact-box p { margin: 0; }
.contact-box a { font-size: 20px; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 72px;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(169, 201, 182, 0.2);
  color: var(--mint-faint);
  font-size: 15px;
}
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--mint); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.site-foot p { margin: 14px 0 0; max-width: 80ch; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 16px; }
  .ticket { transform: rotate(-1.5deg); }
  .games, .plans { grid-template-columns: 1fr; }
  .states { grid-template-columns: 1fr 1fr; }
  .steps li { grid-template-columns: 64px 1fr; gap: 16px; }
  .steps li::before { font-size: 56px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-head { flex-wrap: wrap; row-gap: 12px; padding-bottom: 8px; }
  .site-nav { gap: 18px; width: 100%; }
  .site-nav a { font-size: 15px; }
  .brand span { font-size: 26px; }
  .brand img { width: 44px; height: 44px; }
  .ball { width: 32px; height: 32px; font-size: 13px; border-width: 2.5px; }
  .ticket { padding: 22px 18px 20px; }
  .ticket-game { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Waitlist form */
.waitlist-card { max-width: 620px; }
.waitlist { display: grid; gap: 18px; }
.waitlist .hp { position: absolute; left: -9999px; }
.waitlist .field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.waitlist .field > span, .waitlist legend { font-weight: 800; font-size: 16px; color: #1B2A20; }
.waitlist em { font-style: normal; font-weight: 600; color: #6B7A70; }
.waitlist input[type="text"], .waitlist input[type="email"], .waitlist select {
  font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid #CFC6B2; background: #fff; color: #1B2A20; width: 100%;
}
.waitlist input:focus, .waitlist select:focus { outline: 3px solid rgba(242, 183, 5, 0.55); border-color: #B88A00; }
.waitlist .choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; font-weight: 700; color: #1B2A20; cursor: pointer; }
.waitlist .choice input { width: 20px; height: 20px; accent-color: #1E8A4C; }
.waitlist .agree { margin-top: 2px; }
.waitlist .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 18px; }
.waitlist .fine { margin: 0; font-size: 14px; color: #6B7A70; }
.btn.btn-ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn.btn-ghost:hover { background: rgba(242, 183, 5, 0.12); color: var(--gold-soft); }
