/* Score Keep — marketing site. Static, dependency-free, no build step.
   "Game table" design system: green felt, cream score sheets, amber tally
   stroke, rounded tabular numerals. Colors come from the app icon. */

:root {
  --felt: #12614a;
  --felt-light: #1b7a5d;
  --felt-deep: #0b3f30;
  --on-felt: #eef5f0;
  --on-felt-muted: #b9d2c5;
  --page: #f4f0e4;
  --sheet: #fffaf0;
  --sheet-edge: #e3d8bf;
  --ink: #14231d;
  --muted: #54645b;
  --rule: #e6dcc6;
  --accent: #f0a422;
  --accent-ink: #3a2804;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  /* Player markers, as in the app. Decorative only. */
  --m-blue: #0a84ff;
  --m-orange: #ff9500;
  --m-green: #30b956;
  --m-pink: #ff2d55;
  --m-purple: #af52de;
  --m-teal: #2fb8d6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1814;
    --sheet: #17221d;
    --sheet-edge: #293a32;
    --ink: #ecf2ee;
    --muted: #a5b5ad;
    --rule: #26352e;
  }
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(240 164 34 / 18%);
  color: #8a5a00;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (prefers-color-scheme: dark) {
  .tag {
    color: var(--accent);
  }
}

.felt .tag {
  background: rgb(240 164 34 / 20%);
  color: var(--accent);
}

/* Felt surfaces */
.felt {
  color: var(--on-felt);
  background:
    radial-gradient(ellipse 60% 70% at 25% 0%, var(--felt-light), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, var(--felt-deep), transparent 70%),
    var(--felt);
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 18%), 0 6px 16px rgb(0 0 0 / 25%);
}

.site-header nav {
  display: flex;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-header nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-felt-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--on-felt);
  background: rgb(255 255 255 / 10%);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 4px 0 #b8770d, 0 12px 24px rgb(0 0 0 / 18%);
}

.button-primary:hover {
  box-shadow: 0 6px 0 #b8770d, 0 16px 28px rgb(0 0 0 / 20%);
}

.button-ghost {
  border-color: rgb(238 245 240 / 45%);
  color: var(--on-felt);
}

.button-ghost:hover {
  border-color: var(--on-felt);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "shot copy";
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-block: 56px 96px;
}

.hero-copy {
  grid-area: copy;
}

.hero h1 {
  margin-bottom: 26px;
}

/* The amber tally stroke from the icon, struck through "paper". */
.struck {
  position: relative;
  display: inline-block;
}

.struck::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 0.13em;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0.03em var(--felt);
  transform: rotate(-8deg);
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--on-felt-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-shot {
  grid-area: shot;
  position: relative;
  justify-self: center;
  width: min(320px, 80vw);
}

.phone {
  padding: 10px;
  border-radius: 50px;
  background: #0a1f18;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 12%),
    0 40px 80px rgb(0 0 0 / 35%);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 40px;
}

/* Poker chips */
.chip {
  position: absolute;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 5px 0 rgb(0 0 0 / 22%), 0 16px 26px rgb(0 0 0 / 28%);
}

.chip::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px dashed currentColor;
  border-radius: 50%;
  opacity: 0.45;
}

.chip-amber {
  top: -26px;
  right: -34px;
  color: var(--accent-ink);
  background: var(--accent);
  transform: rotate(10deg);
}

.chip-cream {
  bottom: -22px;
  left: -36px;
  color: var(--felt-deep);
  background: #fffaf0;
  transform: rotate(-12deg);
}

/* Facts strip */
.facts {
  border-top: 1px solid rgb(255 255 255 / 12%);
  background: rgb(0 0 0 / 14%);
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.facts li {
  padding: 28px 20px;
  text-align: center;
}

.facts li + li {
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.facts .num {
  display: block;
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.facts span:last-child {
  color: var(--on-felt-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding-block: clamp(80px, 11vw, 140px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

/* Score sheet (feature list) */
.sheet {
  position: relative;
  border: 1px solid var(--sheet-edge);
  border-radius: 22px;
  background: var(--sheet);
  box-shadow: 0 1px 0 var(--sheet-edge), 0 24px 50px rgb(20 35 29 / 8%);
}

.score-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.score-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 34px 36px;
  border-bottom: 1px solid var(--rule);
}

.score-row:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.score-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.score-row h3 {
  margin-bottom: 8px;
}

.score-row p {
  color: var(--muted);
  line-height: 1.65;
}

/* Player marker shapes */
.marker {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: var(--m-blue);
}

.marker-circle {
  border-radius: 50%;
}

.marker-square {
  border-radius: 5px;
  background: var(--m-orange);
}

.marker-triangle {
  background: var(--m-green);
  clip-path: polygon(50% 4%, 100% 92%, 0 92%);
}

.marker-diamond {
  background: var(--m-pink);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.marker-star {
  background: var(--m-purple);
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%,
    20% 98%, 30% 60%, 0 38%, 38% 35%);
}

.marker-hexagon {
  background: var(--m-teal);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

/* History band */
.history {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.history h2 {
  margin-bottom: 20px;
}

.history-copy p {
  color: var(--on-felt-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.history-copy p + p {
  margin-top: 16px;
}

.history-card {
  padding: 22px;
  border-radius: 24px;
  color: #14231d;
  background: #fffaf0;
  box-shadow: 0 30px 60px rgb(0 0 0 / 28%);
}

.history-card h3 {
  margin: 4px 6px 12px;
  color: #54645b;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-card li {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-top: 1px solid #e6dcc6;
  font-size: 1.05rem;
}

.history-card .marker {
  width: 18px;
  height: 18px;
  margin: 0;
}

.history-card .who small {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dff0e7;
  color: #12614a;
  font-size: 0.72rem;
  font-weight: 700;
}

.history-card .delta {
  color: #12614a;
  font-weight: 700;
}

.history-card .total {
  min-width: 3.4ch;
  font-size: 1.4rem;
  text-align: right;
}

.undo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  background: #efe8d8;
  font-weight: 650;
}

/* Presets */
.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.preset {
  padding: 30px;
}

.preset .num {
  display: block;
  margin-bottom: 18px;
  color: var(--felt);
  font-size: 3rem;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  .preset .num {
    color: #4fc79b;
  }
}

.preset h3 {
  margin-bottom: 6px;
}

.preset p {
  color: var(--muted);
}

.presets-note {
  max-width: 640px;
  margin: 34px auto 0;
  color: var(--muted);
  text-align: center;
}

/* Closing */
.closing {
  padding-block: clamp(70px, 9vw, 110px);
}

.closing-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 28px;
  color: #14231d;
  background: #fffaf0;
  text-align: center;
  box-shadow: 0 30px 70px rgb(0 0 0 / 30%);
}

.closing-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgb(11 63 48 / 30%);
}

.closing-card h2 {
  margin-bottom: 14px;
}

.closing-card p {
  margin-bottom: 30px;
  color: #54645b;
  font-size: 1.08rem;
}

.closing-card .button-row {
  justify-content: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pills li {
  padding: 6px 12px;
  border: 1px solid #e3d8bf;
  border-radius: 999px;
  color: #54645b;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding-block: 40px;
  color: var(--on-felt-muted);
  background: var(--felt-deep);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
}

.footer-inner .brand {
  color: var(--on-felt);
  font-size: 1.1rem;
}

.footer-inner .brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 650;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-felt);
}

/* Subpages */
.page-hero {
  padding-block: 40px 80px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
}

.page-hero p {
  max-width: 640px;
  color: var(--on-felt-muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.page-hero .button-row {
  margin-top: 30px;
}

.updated {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: var(--on-felt);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-body {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 70px 110px;
}

.page-body > * + * {
  margin-top: 28px;
}

/* FAQ */
.faq {
  overflow: hidden;
}

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

.faq summary {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  list-style: none;
}

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

.faq summary .marker {
  width: 18px;
  height: 18px;
  margin: 0;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  background: rgb(240 164 34 / 7%);
}

.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.faq details p {
  padding: 0 28px 26px 68px;
  color: var(--muted);
  line-height: 1.7;
}

.faq a,
.policy a,
.contact-card a:not(.button) {
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-card {
  padding: 34px;
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-card p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

/* Privacy */
.glance {
  padding: 30px 34px;
}

.glance h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.glance ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.glance li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.glance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--felt);
  font-size: 0.75rem;
}

.policy {
  padding: 10px 36px;
}

.policy section {
  padding-block: 32px;
}

.policy section + section {
  border-top: 1px solid var(--rule);
}

.policy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.policy h3 {
  margin: 22px 0 8px;
  font-size: 1.1rem;
}

.policy p {
  color: var(--muted);
  line-height: 1.75;
}

.policy p + p {
  margin-top: 14px;
}

.data-list {
  margin-bottom: 18px;
}

.data-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.data-list dt {
  font-weight: 700;
}

.data-list dd {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "shot";
    padding-top: 32px;
  }

  .facts ul {
    grid-template-columns: 1fr 1fr;
  }

  .facts li:nth-child(3) {
    border-left: 0;
  }

  .facts li:nth-child(n + 3) {
    border-top: 1px solid rgb(255 255 255 / 12%);
  }

  .score-sheet {
    grid-template-columns: 1fr;
  }

  .score-row:nth-child(odd) {
    border-right: 0;
  }

  .score-row:nth-last-child(2) {
    border-bottom: 1px solid var(--rule);
  }

  .history,
  .presets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell,
  .page-body {
    width: calc(100% - 32px);
  }

  .brand span {
    font-size: 1.1rem;
  }

  .site-header nav a {
    padding: 8px 10px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .chip {
    width: 66px;
    height: 66px;
    font-size: 1.15rem;
  }

  .chip-amber {
    top: -18px;
    right: -14px;
  }

  .chip-cream {
    bottom: -16px;
    left: -14px;
  }

  .score-row {
    grid-template-columns: 28px 1fr;
    gap: 14px;
    padding: 26px 22px;
  }

  .faq summary {
    gap: 14px;
    padding: 20px;
  }

  .faq details p {
    padding: 0 20px 22px 52px;
  }

  .glance ul {
    grid-template-columns: 1fr;
  }

  .policy {
    padding: 4px 22px;
  }

  .data-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
