/* Domino Score: landing pages, guides, privacy, support and 404 in English
   and Spanish. Same palette as the app's store art: deep blue, app blue,
   ivory tiles, gold accent. Hand-written; the build doesn't touch it. */

:root {
  color-scheme: light dark;
  --navy: #0e2a63;
  --navy-deep: #0a1f4a;
  --blue: #1f5fd6;
  --blue-press: #174db3;
  --blue-ink: #1a56c4;
  --blue-wash: rgba(31, 95, 214, 0.1);
  --gold: #f2c14e;
  --ivory: #fbf5e6;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --text: #0d1a33;
  --muted: #56627a;
  --hairline: rgba(13, 26, 51, 0.1);
  --shadow: 0 1px 2px rgba(13, 26, 51, 0.06), 0 6px 20px rgba(13, 26, 51, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left));
  --gutter-r: max(20px, env(safe-area-inset-right));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070f22;
    --surface: #101c38;
    --text: #eef1f8;
    --muted: #9aa6bf;
    --hairline: rgba(255, 255, 255, 0.09);
    --shadow: none;
    --blue-ink: #7fa8ff;
    --blue-wash: rgba(80, 140, 255, 0.16);
  }
}

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

html {
  background: var(--navy-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--blue-ink);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy-deep);
  color: #fff;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-links .lang-switch {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, #1d4fae 100%);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  color: var(--ivory);
  font-size: clamp(36px, 9vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.5;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.fine {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.hero-shot {
  margin: 0;
  justify-self: center;
  width: min(330px, 82%);
  height: 420px;
  overflow: hidden;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 95, 214, 0.35);
}

.btn-primary:hover {
  background: var(--blue-press);
}

/* Apple's "Download on the App Store" badge: never recoloured or stretched,
   48px tall (Apple's minimum is 40px), with clear space around it. */
.store-badge {
  display: inline-block;
  flex: none;
  margin: 12px 0;
  line-height: 0;
  border-radius: 9px;
  -webkit-tap-highlight-color: transparent;
}

.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

.ctas .store-badge {
  margin: 0 12px 0 0;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 56px 0;
}

.section-tight {
  padding-top: 8px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 38em;
  margin: 0 0 28px;
  color: var(--muted);
}

.section-alt {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline);
}

.narrow {
  max-width: 760px;
}

.more {
  margin: 20px 0 0;
  font-weight: 700;
}

.more a {
  text-decoration: none;
}

.features,
.styles {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature,
.style {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
}

.section-alt .feature,
.section-alt .style,
.section-alt .faq,
.section-alt .post-card a {
  background: var(--bg);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--blue-wash);
  color: var(--blue-ink);
}

.feature h3,
.style h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature p,
.style p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.style {
  border-top: 5px solid var(--gold);
}

.style .style-sub {
  margin: 0 0 8px;
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 700;
}

/* App Store screenshots (already framed on their blue background). */
.phones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 62%);
  gap: 16px;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l));
  padding: 6px var(--gutter-r) 18px var(--gutter-l);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.phones li {
  scroll-snap-align: center;
}

.phones figure {
  margin: 0;
}

.phones img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(13, 26, 51, 0.18);
}

.phones figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------- callout */

.callout {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ivory);
}

.callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.callout .store-badge {
  justify-self: start;
}

/* ------------------------------------------------------------------- faq */

.faq {
  margin: 0 0 28px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq .answer {
  padding: 0 20px 18px;
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child,
.faq .answer ol:last-child {
  margin-bottom: 0;
}

.faq .answer ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

/* ------------------------------------------------- privacy, support, 404 */

.page-head {
  background: var(--navy);
  color: #fff;
}

.page-head .container {
  padding-top: 36px;
  padding-bottom: 36px;
}

.page-head h1 {
  margin: 0 0 6px;
  color: var(--ivory);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.prose {
  max-width: 720px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.summary {
  margin-bottom: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 18px;
}

.summary ul {
  margin-bottom: 0;
}

.contact {
  padding: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}

.contact h2 {
  margin: 0 0 6px;
}

.contact p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.76);
}

.contact a.btn {
  color: #fff;
  overflow-wrap: anywhere;
}

.not-found {
  max-width: 520px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.not-found .code {
  margin: 0 0 8px;
  color: var(--blue-ink);
  font: 900 64px/1 var(--font-round);
}

.not-found h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}

.not-found .not-found-more {
  margin: 20px 0 0;
}

.not-found .not-found-app {
  margin: 36px 0 0;
}

/* ------------------------------------------------------------ blog cards */

.post-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px rgba(13, 26, 51, 0.12);
}

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.post-card-kicker {
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card strong {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post-card-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.blog-list {
  padding-top: 32px;
  padding-bottom: 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a {
  color: inherit;
}

.crumbs [aria-current] {
  color: var(--text);
}

.crumbs-dark,
.crumbs-dark [aria-current] {
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------ posts */

.post-wrap {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.post-head {
  margin-bottom: 24px;
}

.post-kicker {
  margin: 0 0 10px;
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.post-dek {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}

.toc p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.post-body {
  max-width: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
}

.post-body h2 {
  margin: 48px 0 12px;
  font-size: clamp(24px, 4.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}

.post-body h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
}

.post-body ol {
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body li::marker {
  color: var(--blue-ink);
  font-weight: 700;
}

.post-body blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--gold);
  color: var(--muted);
}

.table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--hairline);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
  background: var(--surface);
}

.post-body th,
.post-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.post-body th {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.post-body tr:last-child td {
  border-bottom: 0;
}

.post-img {
  margin: 8px 0 24px;
}

.post-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
}

.post-img-tall img {
  width: min(320px, 80%);
  margin: 0 auto;
}

.post-img figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* A printable score sheet ({{download}} in a post). */
.download a {
  display: grid;
  gap: 2px;
  margin: 8px 0 24px;
  padding: 14px 18px 14px 62px;
  border-radius: 14px;
  background: var(--surface) no-repeat 18px 50% / 28px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.download a:hover strong {
  color: var(--blue-ink);
}

.download span {
  color: var(--muted);
  font-size: 15px;
}

.download .download-meta {
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* The one mid-post mention of the app. */
.inline-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  margin: 8px 0 26px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--blue-wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.inline-cta > img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.inline-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.inline-cta .store-badge {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 8px 0 0;
}

.inline-cta .store-badge img {
  height: 40px;
}

/* The app CTA that ends every post. */
.post-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  margin: 48px 0 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
}

.post-cta > img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.post-cta h2 {
  margin: 0 0 6px;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.post-cta p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.related {
  margin-top: 56px;
}

.related h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- larger */

@media (max-width: 420px) {
  .brand {
    font-size: 16px;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 14px;
  }
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .callout {
    grid-template-columns: 1fr auto;
    padding: 28px 32px;
  }

  .callout .store-badge {
    justify-self: end;
  }

  .phones {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    margin: 0;
    padding: 6px 0 0;
    overflow: visible;
  }

  .post-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-cta {
    grid-template-columns: auto 1fr;
    padding: 28px 32px;
    gap: 22px;
  }

  .post-cta > img {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .inline-cta {
    grid-template-columns: auto 1fr auto;
  }

  .inline-cta .store-badge {
    grid-column: auto;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 56px;
    padding-top: 72px;
  }

  .hero .container > div {
    padding-bottom: 88px;
  }

  .hero-shot {
    width: 340px;
    height: 520px;
  }

  .section {
    padding: 80px 0;
  }

  .section-tight {
    padding-top: 8px;
  }

  .styles {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-cards,
  .post-cards-wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .related .post-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card a,
  .faq summary::after {
    transition: none;
  }
}
