/* nertsnow.com's home page: the felt and the deck's blue back, as in the app and its App Store pictures. */
:root {
  --blue-deep: #0e204e;
  --blue: #1d3f86;
  --felt: #1f6a1d;
  --felt-dark: #0b350c;
  --cream: #fff4dc;
  --cream-muted: rgba(255, 244, 220, 0.78);
  --gold: #ffd142;
  --red: #e2412f;
  --ink: #11182e;
  --round: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--cream);
  font: 600 18px/1.55 var(--round);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); }

/* The bar along the top. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(14, 32, 78, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
}
.brand img { border-radius: 9px; }

/* The button to the App Store. */
.get {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 5px 0 #b88a10, 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.get:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b88a10, 0 16px 32px rgba(0, 0, 0, 0.4); }
.get:active { transform: translateY(3px); box-shadow: 0 2px 0 #b88a10, 0 6px 14px rgba(0, 0, 0, 0.35); }
.get.small { padding: 8px 16px; font-size: 0.9rem; box-shadow: 0 3px 0 #b88a10; }

/* A phone, its screen showing the app. */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 7px;
  background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #3a3a40, 0 24px 50px rgba(0, 0, 0, 0.5);
}
.phone img, .phone video {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 28px;
}

/* The top: the felt, with cards flying. */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, transparent 60%, var(--blue-deep)),
    linear-gradient(90deg, rgba(6, 26, 8, 0.92) 0%, rgba(6, 26, 8, 0.7) 45%, rgba(6, 26, 8, 0.15) 75%),
    url("media/felt.jpg") 70% 40% / cover;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.aka {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}
.lede { font-size: 1.2rem; color: var(--cream); max-width: 34ch; margin: 22px 0 30px; }
.price { margin: 18px 0 0; color: var(--cream-muted); font-size: 0.95rem; }

.hero-phone { width: min(300px, 100%); justify-self: center; transform: rotate(2.5deg); margin-bottom: 40px; }
.sound {
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%) rotate(-2.5deg);
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font: 800 0.8rem var(--round);
  cursor: pointer;
}

/* Sections. */
section { padding: 88px 16px; }
.section-title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.section-lede { max-width: 38em; margin: 0 auto 48px; text-align: center; color: var(--cream-muted); font-size: 1.15rem; }
.nerts {
  color: var(--gold);
  display: inline-block;
  transform: rotate(-4deg);
}
h3 { margin: 22px 0 6px; font-weight: 900; font-size: 1.35rem; }
section p { color: var(--cream-muted); }

/* How a round goes, in three phones. */
.steps { background: linear-gradient(180deg, var(--blue-deep), var(--blue) 120%); }
.trio {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trio li { text-align: center; }
.trio .phone { max-width: 260px; margin: 0 auto; }
.trio li:nth-child(1) .phone { transform: rotate(-2deg); }
.trio li:nth-child(3) .phone { transform: rotate(2deg); }
.trio p { max-width: 26ch; margin: 0 auto; }

.swipe-hint { display: none; margin: 18px 0 0; text-align: center; color: var(--cream-muted); font-size: 0.9rem; }

/* Who you play with: cards on the felt. */
.people { background: radial-gradient(ellipse at top, var(--felt), var(--felt-dark) 85%); }
.cards {
  max-width: 1050px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 3px 0 #d8c9a6, 0 18px 36px rgba(0, 0, 0, 0.35);
}
.card:nth-child(1) { transform: rotate(-1.2deg); }
.card:nth-child(3) { transform: rotate(1.2deg); }
.card h3 { margin-top: 10px; color: var(--ink); }
.card p { color: #3b3f52; margin: 0; }
.pip { font-size: 2rem; line-height: 1; color: var(--ink); }
.pip.red { color: var(--red); }

/* The TV. */
.tv { background: linear-gradient(180deg, var(--blue-deep), #091637); }
.tv-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.tv .section-title { text-align: left; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; font-weight: 800; }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 24px;
  text-align: center;
}
.tv-picture { position: relative; margin: 0 0 90px; }
.tv-picture .screen {
  width: 100%;
  border-radius: 14px;
  border: 12px solid #0f0f12;
  box-shadow: 0 0 0 1.5px #4a4a52, 0 30px 60px rgba(0, 0, 0, 0.55);
}
.small-phone {
  position: absolute;
  width: 24%;
  right: -4%;
  bottom: -90px;
  border-radius: 24px;
  padding: 5px;
  transform: rotate(4deg);
}
.small-phone img { border-radius: 19px; }

/* Records and rules. */
.more { background: radial-gradient(ellipse at bottom, var(--felt), var(--felt-dark) 85%); }
.more-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.more .phone { max-width: 260px; transform: rotate(-2deg); }
.more .section-title { text-align: left; }

/* The price. */
.promise { text-align: center; background: linear-gradient(180deg, var(--blue-deep), var(--blue)); }
.nos {
  list-style: none;
  padding: 0;
  margin: 0 auto 44px;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.nos li {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}
.nos li::before { content: "✕ "; color: var(--red); font-weight: 900; }

/* Help. */
.help { text-align: center; background: var(--blue); padding-bottom: 24px; }
.help .section-lede { margin-bottom: 0; }

.foot {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--cream-muted);
  font-size: 0.95rem;
  background: var(--blue);
}

/* Phones and narrow windows: one column. */
@media (max-width: 820px) {
  .hero-inner, .tv-inner, .more-inner { grid-template-columns: 1fr; }
  .hero { background:
    linear-gradient(180deg, rgba(6, 26, 8, 0.7), rgba(6, 26, 8, 0.82) 60%, var(--blue-deep)),
    url("media/felt.jpg") 60% 30% / cover; }
  .hero-inner { padding-top: 36px; text-align: center; gap: 40px; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-phone { width: min(250px, 70%); }
  .hero-inner { padding-bottom: 40px; }
  .trio {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 12px;
    scrollbar-width: none;
  }
  .trio::-webkit-scrollbar { display: none; }
  .trio li { flex: 0 0 72%; scroll-snap-align: center; }
  .trio .phone { max-width: 230px; }
  .trio li:nth-child(n) .phone { transform: none; }
  .swipe-hint { display: block; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(n) { transform: none; }
  .cards { gap: 22px; max-width: 520px; }
  .tv .section-title, .more .section-title { text-align: center; }
  .tv-pitch, .more-inner > div:last-child { text-align: center; }
  .ticks { display: inline-block; text-align: left; }
  .more .phone { margin: 0 auto; max-width: 220px; }
  section { padding: 64px 16px; }
}

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