/* SnapDominos marketing site — fast, dark-navy brand, system fonts (no web-font
   fetch = better Core Web Vitals + privacy). */
:root {
  --bg: #f7f1e7;
  --bg-elev: #fffaf2;
  --card: #fffdf8;
  --border: rgba(47, 37, 28, 0.11);
  --primary: #f45c43;
  --primary-bright: #ff7057;
  --accent: #e95037;
  --text: #251f1a;
  --text-2: #6e655c;
  --text-3: #998f83;
  --maxw: 1080px;
  --readw: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 27, 46, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  height: 64px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
/* Nav: the same groups on every page. Dropdowns on desktop, one Menu panel on phones. */
.nav-toggle { display: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-group > summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.nav-group > summary { list-style: none; }
.nav-links a, .nav-group > summary, .nav-toggle { -webkit-tap-highlight-color: transparent; }
.nav-links a:focus-visible, .nav-group > summary:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
.nav-group[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-links > a:hover, .nav-group > summary:hover, .nav-group[open] > summary { color: var(--text); background: rgba(47, 37, 28, .06); }
.nav-links [aria-current="page"], .nav-group.is-current > summary { color: var(--accent); }
.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 230px; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(47, 37, 28, .14);
}
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav-menu a:hover { background: rgba(47, 37, 28, .06); }
.nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-menu .nav-all { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; color: var(--accent); }
@media (max-width: 680px) {
  .js .nav-toggle {
    display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--card);
    color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .15s, background .15s; }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -5px; }
  .nav-toggle-icon::after { top: 5px; }
  .nav.open .nav-toggle-icon { background: transparent; }
  .nav.open .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav.open .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .js .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(47, 37, 28, .12);
  }
  .nav-links > a, .nav-group > summary { padding: 0 4px; border-radius: 0; font-size: 16px; }
  .nav-links > a { border-top: 1px solid var(--border); color: var(--text); }
  .nav-group > summary { border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
  .nav-group:first-child > summary { border-top: 0; }
  .nav-group > summary::after { display: none; }
  .nav-links > a:hover, .nav-group > summary:hover, .nav-group[open] > summary { background: none; }
  .nav-menu { position: static; min-width: 0; padding: 0 0 8px; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .nav-menu a { padding: 0 4px; font-size: 16px; }
  .nav-menu .nav-all { margin-top: 0; border-top: 0; }
  /* Without JavaScript the links simply wrap under the brand. */
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding-top: 10px; }
  html:not(.js) .nav-links { margin: 0 -8px; flex-wrap: wrap; }
  html:not(.js) .nav-group > summary { pointer-events: auto; }
}

@media (max-width: 340px) { .js .nav-toggle { font-size: 0; gap: 0; padding: 0 13px; } }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero p.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .grad { color: var(--accent); }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-2); max-width: 640px; margin: 0 auto 28px; }

/* Buttons */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; line-height: 1; }
.btn .big { display: block; font-size: 16px; line-height: 1.2; }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.badge-soon { font-size: 11px; background: rgba(108,156,245,0.18); color: var(--accent); padding: 3px 8px; border-radius: 20px; margin-left: 6px; }

/* Sections */
section { padding: 48px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.lead { color: var(--text-2); font-size: 18px; max-width: 680px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); }
.card .ico { font-size: 26px; margin-bottom: 10px; }

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  margin-right: 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px;
}

/* Article */
.article { padding: 40px 0 64px; }
.article .container { display: block; }
.breadcrumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.02em; }
.article .meta { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 26px; margin: 36px 0 12px; }
.article h3 { font-size: 20px; margin: 26px 0 8px; }
.article p, .article li { color: #514940; font-size: 17px; }
.article ul, .article ol { padding-left: 22px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article th { background: var(--bg-elev); }
.faq dt { font-weight: 700; margin-top: 18px; font-size: 18px; }
.faq dd { margin: 6px 0 0; color: var(--text-2); }

.callout {
  background: #e5eddf;
  border: 1px solid rgba(38, 91, 59, .15);
  border-radius: 18px; padding: 26px; margin: 32px 0; text-align: center;
}
.callout h3 { margin: 0 0 8px; color: #1d3325; font-size: 22px; }
.callout p { color: #4e6454; margin: 0 0 16px; }
.callout .btn.primary { background: #285b3e; color: #fff; border: none; }

.related { margin-top: 40px; }
.related h2 { font-size: 22px; }
.related ul { list-style: none; padding: 0; }
.related li { margin: 8px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-3); font-size: 14px; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-links a { display: block; color: var(--text-2); margin: 6px 0; }
.footer-col h4 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }

/* Game-facts box (top of each game guide) */
.gamebox {
  display: flex; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; margin: 20px 0 28px;
}
.gamebox .gb { flex: 1; text-align: center; }
.gamebox .gb .ic { font-size: 22px; margin-bottom: 4px; }
.gamebox .gb .v { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; }
.gamebox .gb .l { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
@media (max-width: 520px) {
  .gamebox { gap: 4px; padding: 12px; }
  .gamebox .gb .v { font-size: 16px; }
}

/* SnapDominos visual system, based on the warm scorecard and green scan views. */
.site-header { background: rgba(247, 241, 231, .9); border-bottom-color: rgba(47, 37, 28, .1); }
.nav-links a:hover, .footer-links a:hover { color: var(--accent); }
.article .breadcrumbs, .article .meta { color: var(--text-3); }
.article th { color: var(--text); }
.article a, .related a { color: #d94a34; }
.gamebox { background: #eee7d9; border-color: var(--border); }
.gamebox .gb .v { color: var(--text); }
.hero-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-copy { padding: 10px 0 18px; text-align: left; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #d94a34; font-size: 12px; letter-spacing: .15em; }
.eyebrow-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: rgba(244,92,67,.13); font-size: 16px; }
.home-page .hero { padding: 64px 0 70px; text-align: left; }
.home-page .hero h1 { max-width: 590px; font-size: clamp(42px, 5.5vw, 67px); line-height: 1.02; letter-spacing: -.055em; }
.home-page .hero h1 .grad { color: #e95037; }
.home-page .hero p.sub { max-width: 500px; margin: 0 0 25px; color: #62594f; font-size: clamp(17px, 2vw, 19px); line-height: 1.65; }
.home-page .cta-row { justify-content: flex-start; gap: 10px; }
.home-page .btn { border-radius: 12px; padding: 13px 18px; font-size: 14px; }
.home-page .btn.primary { color: #fff; background: #f45c43; border-color: #f45c43; box-shadow: 0 7px 16px rgba(224,77,51,.16); }
.home-page .btn.primary:hover { background: #e84e36; text-decoration: none; }
.home-page .btn:not(.primary) { background: rgba(255,253,248,.65); color: #332b24; }
.home-page .btn:not(.primary):hover { background: #fffdf8; text-decoration: none; }
.hero-note { margin: 17px 0 0; color: var(--text-3); font-size: 12px; }.hero-note span { padding: 0 7px; color: #c6baaa; }
.hero-art { position: relative; min-height: 470px; display: grid; place-items: center; }
.scan-art { width: min(100%, 470px); padding: 18px 20px 16px; border-radius: 28px; background: linear-gradient(145deg,#20684b,#134b37); color: #f9f5e9; box-shadow: 0 24px 46px rgba(36,75,50,.22); transform: rotate(-2deg); }
.scan-art-head { display: flex; align-items: center; justify-content: space-between; color: rgba(248,246,231,.68); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.scan-art-head > span:first-child { display: flex; align-items: center; gap: 7px; color: #fff8e9; }.scan-art-head i { width: 7px; height: 7px; border-radius: 50%; background: #ff6549; box-shadow: 0 0 12px rgba(255,101,73,.65); }
.scan-stage { position: relative; height: 278px; margin: 15px 0 11px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: radial-gradient(ellipse at 48% 48%,rgba(139,192,126,.18),transparent 58%),rgba(5,39,27,.22); }
.scan-stage::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: radial-gradient(rgba(255,255,255,.6) .6px,transparent .6px); background-size: 12px 12px; }
.scan-corner { position: absolute; width: 22px; height: 22px; border-color: #ff674b; border-style: solid; }.corner-tl { top: 15px; left: 15px; border-width: 2px 0 0 2px; border-radius: 5px 0 0; }.corner-tr { top: 15px; right: 15px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }.corner-bl { bottom: 15px; left: 15px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }.corner-br { bottom: 15px; right: 15px; border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.art-domino { position: absolute; z-index: 1; width: 136px; height: 64px; display: flex; align-items: center; padding: 8px 10px; border: 3px solid #ff704c; border-radius: 12px; background: #fff8e9; box-shadow: 0 10px 22px rgba(0,0,0,.24); }.art-domino > span { width: 1px; align-self: stretch; margin: 0 8px; background: #d7cdbb; }.domino-a { top: 58px; left: 23%; transform: rotate(-12deg); }.domino-b { top: 151px; left: 43%; transform: rotate(8deg); }
.art-half { position: relative; flex: 1; height: 100%; }.dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #263b2d; }.d1 { top: 2px; left: 2px; }.d2 { top: 2px; right: 2px; }.d3 { top: 50%; left: 50%; transform: translate(-50%,-50%); }.d4 { bottom: 2px; left: 2px; }.d5 { bottom: 2px; right: 2px; }.d6 { top: 50%; right: 2px; transform: translateY(-50%); }
.pip-tag { position: absolute; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #ff704c; color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.2); }.tag-seven { top: 43px; left: 20%; }.tag-eight { top: 134px; left: 40%; }
.scan-art-result { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 15px; background: #fff8ed; color: #312820; }.scan-art-result div { display: flex; flex-direction: column; }.scan-art-result div > span { color: #978b7d; font-size: 8px; font-weight: 850; letter-spacing: .15em; }.scan-art-result strong { font-size: 34px; line-height: 1.12; letter-spacing: -.05em; }.scan-art-result small { color: #8b8174; font-size: 11px; letter-spacing: 0; }.tile-count { padding: 7px 10px; border-radius: 9px; background: #edf1e8; color: #527158; font-size: 10px; font-weight: 700; }
.round-art { position: absolute; z-index: 2; right: -12px; bottom: 14px; width: 210px; padding: 13px 14px; border: 1px solid rgba(57,45,32,.08); border-radius: 17px; background: #fffdf8; box-shadow: 0 15px 35px rgba(55,42,29,.16); transform: rotate(3deg); }.round-art-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: #93897d; font-size: 7px; font-weight: 850; letter-spacing: .1em; }.round-art-label span { color: #e95037; }.round-score { height: 31px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #f0ebe2; color: #40382f; font-size: 10px; }.round-score strong { margin-left: auto; font-size: 11px; }.avatar { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 8px; }.avatar.coral { background: #f45c43; }.avatar.blue { background: #36a4d7; }.avatar.green { background: #38b878; }.avatar.purple { background: #9661d7; }
.art-caption { position: absolute; left: 0; bottom: -5px; color: #94897c; font-size: 10px; }
.home-page section { padding-top: 54px; padding-bottom: 48px; }.home-page section h2 { letter-spacing: -.04em; }.home-page .lead { color: var(--text-2); }
.card { box-shadow: 0 8px 22px rgba(60,45,29,.035); }.card h3 { letter-spacing: -.015em; }.home-page .card { background: var(--card); }.home-page .steps .card h3::before { background: #f45c43; }.home-page #games .card h3 { color: #d94a34; }.home-page #games .card:hover { border-color: rgba(217,74,52,.35); }
.home-page #features .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f5e8d9; }
.home-page .callout { background: #e4ecdf; border-color: rgba(40,91,62,.14); }.home-page .callout h3 { color: #1e3a2a; }.home-page .callout p { color: #5c6b5e; }.home-page .callout .btn.primary { background: #285b3e; color: #fff; }
.site-footer { background: #f0e9dd; border-top-color: rgba(47,37,28,.1); }.footer-col h4 { color: #322a23; }
@media (max-width: 850px) { .hero-layout { grid-template-columns: 1fr 1fr; gap: 24px; }.hero-art { min-height: 420px; }.scan-art { padding: 15px; }.scan-stage { height: 250px; }.round-art { right: -2px; bottom: 2px; } }
@media (max-width: 650px) { .home-page .hero { padding: 42px 0 36px; }.hero-layout { grid-template-columns: 1fr; gap: 15px; }.home-page .hero h1 { font-size: clamp(42px, 11vw, 58px); }.home-page .hero p.sub { font-size: 16px; }.home-page .cta-row { align-items: stretch; }.home-page .cta-row .btn { justify-content: center; flex: 1; }.hero-art { min-height: 390px; margin: 0 6px; }.scan-art { width: 100%; }.scan-stage { height: 230px; }.domino-a { left: 18%; }.domino-b { left: 38%; }.round-art { right: -5px; bottom: 0; }.art-caption { left: 4px; bottom: -17px; }.home-page section { padding-top: 40px; padding-bottom: 34px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
