/* DrawWatch site (drawwatch.html, index.html, privacy-policy.html,
 * terms-of-service.html). A light page so the app's dark screens stand out.
 * Same type as the app: Unbounded for display, DM Sans for text. Game colors
 * only where they name a game; green only for money and the main button.
 * The lottery-ball shading is the only gradient. No glows, emoji or icon
 * boxes. Motion only for state changes (switching the screen in the tour). */

:root {
  --bg: #F5F5F2;
  --card: #FFFFFF;
  --line: #E3E3DE;
  --line-strong: #D3D3CD;
  --text: #0E0F11;
  --text-soft: #3C4148;
  --muted: #646A73;
  --ink: #0C0D0F;
  --ink-surface: #16181B;
  --ink-line: #2B2F34;
  --ink-text: #F3F4F6;
  --ink-muted: #A0A7B0;
  --green: #5CF2A8;
  --on-green: #062B1B;
  --money: #0A8A54;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text-soft); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 760px; }
.narrow { width: min(760px, 100%); }

h1, h2, h3 { color: var(--text); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
p + p { margin-top: 12px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-soft); }
.note { color: var(--muted); font-size: 15px; }
.money { color: var(--money); font-family: var(--display); font-weight: 700; }

/* Device-aware blocks: a script in <head> sets html[data-device] to
   android, ios or desktop. Without it, the Google Play version shows. */
.for-android, .for-ios, .for-desktop { display: none; }
html:not([data-device]) .for-android,
html[data-device="android"] .for-android { display: flex; }
html[data-device="ios"] .for-ios { display: flex; }
html[data-device="desktop"] .for-desktop { display: flex; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 245, 242, 0.96); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; }
.top-brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top .get { color: var(--on-green); background: var(--green); padding: 9px 16px; border-radius: 999px; font-weight: 700; }
.top .get:hover { color: var(--on-green); background: #7AF5BA; }
@media (max-width: 700px) { .top nav .hide-sm { display: none; } }
html[data-device="ios"] .top .get { display: none; }

/* Lottery balls */
.ball {
  --b0: #FFFFFF; --b1: #F1F2F5; --b2: #C3C6CD; --b3: #8A8E97; --bt: #111317;
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: inline-grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 17px; font-style: normal; color: var(--bt);
  background: radial-gradient(circle at 34% 28%, var(--b0) 0%, var(--b1) 22%, var(--b2) 64%, var(--b3) 100%);
  box-shadow: 0 2px 4px rgba(14, 15, 17, 0.25);
}
.ball.pb { --b0: #FFB3BB; --b1: #FF4155; --b2: #C8102E; --b3: #7D0617; --bt: #fff; }
.ball.mm { --b0: #FFF0C2; --b1: #FFC23D; --b2: #D48A00; --b3: #8A5600; --bt: #1D1400; }
.ball.mfl { --b0: #C9FFF0; --b1: #2BD4A4; --b2: #0E9873; --b3: #065C45; --bt: #00261B; }
.ball.la { --b0: #E8DCFF; --b1: #A070FF; --b2: #6A35D6; --b3: #3B1691; --bt: #fff; }
.ball.sm { width: 24px; height: 24px; font-size: 11px; }
.ball.lg { width: 64px; height: 64px; font-size: 24px; }

/* Store badge and the download block */
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 56px; width: auto; }
.get-block { align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 32px; }
.qr { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px 14px 14px; }
.qr img { width: 112px; height: 112px; }
.qr strong { display: block; color: var(--text); font-size: 16px; }
.qr span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.ios-note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; max-width: 420px; }
.ios-note strong { color: var(--text); }
.ios-note span { color: var(--muted); font-size: 15px; }
.cta-note { color: var(--muted); font-size: 15px; }

/* A phone: the real screen in a plain dark frame */
.device { background: #050506; border-radius: 46px; padding: 9px; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 70px -30px rgba(14, 15, 17, 0.55), 0 16px 30px -18px rgba(14, 15, 17, 0.35); }
.device img { border-radius: 37px; width: 100%; }

/* Hero: one screen on desktop */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .lead { margin-top: 20px; max-width: 34ch; }
.games-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 15px; color: var(--text-soft); }
.games-line span { display: inline-flex; align-items: center; gap: 8px; }
.phones { display: flex; justify-content: center; align-items: flex-end; }
.phones .device { width: min(300px, 74vw); position: relative; z-index: 2; }
.phones .side { display: none; }

/* Tour: pick a feature, the phone shows it */
.tour { padding: 88px 0; }
.tour-head { max-width: 640px; }
.tour-head .lead { margin-top: 14px; }
.tour-grid { display: none; }
.tour-cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 20px; }
.tour-card { flex: 0 0 min(80vw, 330px); scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 0; overflow: hidden; display: flex; flex-direction: column; }
.tour-card p { font-size: 15.5px; margin-top: 8px; margin-bottom: 20px; }
.tour-card img { margin-top: auto; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 1px #000; }
.swipe-hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tabs { display: grid; gap: 4px; align-content: center; margin-top: 28px; margin-left: -22px; }
.tab { padding: 18px 22px; border-radius: 18px; border: 1px solid transparent; color: var(--text-soft); }
.tab .t { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--muted); }
.tab .d { display: block; font-size: 15.5px; color: var(--text-soft); max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease; }
.tab:hover .t { color: var(--text); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); }
.tab[aria-selected="true"] .t { color: var(--text); }
.tab[aria-selected="true"] .d { max-height: 120px; opacity: 1; margin-top: 6px; }
.stage { display: flex; justify-content: center; }
.stage .device { width: min(340px, (100vh - 150px) * 0.462); position: relative; }
.stage .screens { position: relative; }
.stage .screens img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease; }
.stage .screens img:first-child { position: relative; }
.stage .screens img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stage .screens img, .tab .d { transition: none; } }

/* Games and data */
.facts { padding: 88px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; gap: 56px; }
.game-list { margin-top: 28px; display: grid; }
.game-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.game-row:last-child { border-bottom: 0; }
.game-row .ball { grid-row: span 2; }
.game-row strong { color: var(--text); font-size: 17px; }
.game-row span { color: var(--muted); font-size: 15px; }
.trust { display: grid; gap: 22px; margin-top: 28px; }
.trust div { border-left: 3px solid var(--text); padding-left: 16px; }
.trust h3 { font-family: var(--body); font-size: 17px; }
.trust p { margin-top: 4px; font-size: 15.5px; }

/* FAQ */
.faq-wrap { padding: 88px 0; }
.faq-layout { display: grid; gap: 8px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; color: var(--text); font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-family: var(--display); font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; max-width: 64ch; }

/* Closing band */
.closing { background: var(--ink); padding: 80px 0; }
.closing .wrap { display: grid; gap: 28px; align-items: center; }
.closing h2 { color: var(--ink-text); }
.closing .lead { color: var(--ink-muted); margin-top: 14px; max-width: 36ch; }
.closing .balls { display: flex; gap: 12px; margin-bottom: 26px; }
.closing .get-block { margin-top: 0; }
.closing .qr { background: var(--card); }
.closing .ios-note { background: var(--ink-surface); border-color: var(--ink-line); }
.closing .ios-note strong { color: var(--ink-text); }
.closing .ios-note span { color: var(--ink-muted); }
.closing .ios-note a { color: var(--ink-text); }

/* Shared box */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }

/* Legal pages */
.legal { padding: 56px 0 40px; }
.legal h1 { font-size: clamp(34px, 6vw, 52px); }
.legal .updated { color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 23px; margin: 44px 0 12px; }
.legal h3 { font-family: var(--body); font-size: 18px; margin: 26px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.legal th, .legal td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; }
.legal .summary { margin-top: 26px; }
.legal .summary li { margin: 8px 0; }
.legal .summary strong { color: var(--text); }

/* Studio home (index.html) */
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--text); color: var(--bg); font-family: var(--display); font-size: 13px; font-weight: 700; }
.studio-hero { padding: 80px 0 24px; }
.studio-hero h1 { max-width: 12ch; }
.studio-hero .lead { margin-top: 22px; max-width: 46ch; }
.products { display: grid; gap: 18px; margin-top: 48px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.product-head { display: flex; align-items: center; gap: 16px; }
.product-head img { width: 60px; height: 60px; border-radius: 15px; }
.product-head h2 { font-size: 28px; }
.product .meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.product > p { margin-top: 20px; }
.product ul { margin-top: 16px; padding-left: 20px; }
.product li { margin: 6px 0; }
.product .links { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.product .links .primary { color: var(--text); font-weight: 700; }
.studio-about { max-width: 720px; padding: 72px 0; }
.studio-about p { margin-top: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
footer nav a { color: var(--text-soft); }
footer .fine { font-size: 14px; color: var(--muted); max-width: 90ch; }
.closing + footer { border-top: 0; }

/* Tablet and up */
@media (min-width: 760px) {
  .phones .device { width: min(300px, 31vh); }
  .phones .side { display: block; width: min(250px, 26vh); z-index: 1; transform: translateY(32px); }
  .phones .side.left { margin-right: -34px; }
  .phones .side.right { margin-left: -34px; }
  .products { grid-template-columns: 1fr 1fr; }
}

/* Desktop: hero fills the first screen, the tour becomes tabs beside a phone,
   games and data sit side by side, FAQ beside its heading */
@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 32px 0; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 24px; }
  .tour { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 40px 0; }
  .narrow-only { display: none; }
  .tour-cards, .swipe-hint { display: none; }
  .tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .facts .wrap { grid-template-columns: 1fr 1fr; gap: 80px; }
  .faq-layout { grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
  .faq-layout .faq { margin-top: 0; }
  .closing .wrap { grid-template-columns: 1.1fr 1fr; }
}
