:root {
  --background: #faf7f2;
  --surface: #ffffff;
  --primary: #f2994a;
  --secondary: #2d9c9c;
  --have: #4caf50;
  --missing: #e53935;
  --spare: #ffb74d;
  --text: #1f1b16;
  --muted: #6b6661;
  --divider: #ede7de;
  --shadow: 0 24px 70px rgba(31, 27, 22, 0.14);
  --radius: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Nunito, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.no-hero {
  background: linear-gradient(180deg, #fffdf9 0%, var(--background) 420px);
}

a {
  color: var(--text);
  text-underline-offset: 0.22em;
}

a:hover {
  color: #8a4d1b;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-180%);
  background: var(--text);
  color: var(--background);
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid rgba(237, 231, 222, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  font-weight: 900;
  font-size: 1.18rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(31, 27, 22, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

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

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #8a4d1b;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10.8ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy .lede {
  max-width: 34rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button,
.button-muted {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(242, 153, 74, 0.32);
}

.button-muted {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--divider);
}

.button[aria-disabled="true"] {
  cursor: default;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  min-height: min(64vw, 640px);
}

.table-scene {
  width: 100%;
  min-height: 520px;
  height: min(62vw, 660px);
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.table-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.phone {
  position: absolute;
  right: clamp(0.75rem, 4vw, 3rem);
  bottom: -1.5rem;
  width: min(42%, 310px);
  min-width: 220px;
  aspect-ratio: 0.48;
  border: 12px solid #171411;
  border-radius: 42px;
  background: #171411;
  box-shadow: 0 26px 64px rgba(31, 27, 22, 0.32);
  transform: rotate(3deg);
}

.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 34%;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #171411;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--background);
  color: var(--text);
}

.app-shot {
  min-height: 100%;
  padding: 42px 18px 18px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 18px;
}

.app-title {
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 950;
}

.app-pill {
  border-radius: 999px;
  background: rgba(45, 156, 156, 0.14);
  color: #116464;
  padding: 0.45rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.mini-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 14px;
}

.mini-tabs span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.mini-tabs span:first-child {
  background: var(--primary);
  color: #fff;
}

.set-card {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 27, 22, 0.09);
}

.set-art {
  height: 96px;
  background:
    radial-gradient(circle at 25% 35%, #2d9c9c 0 12px, transparent 13px),
    radial-gradient(circle at 55% 52%, #f2994a 0 14px, transparent 15px),
    radial-gradient(circle at 77% 32%, #4caf50 0 10px, transparent 11px),
    linear-gradient(135deg, #fff1df, #def1ed);
}

.set-copy {
  padding: 11px 12px 13px;
}

.set-copy strong {
  display: block;
  font-size: 0.93rem;
}

.set-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.part-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.part-row span {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 -5px rgba(31, 27, 22, 0.06);
}

.part-row span:nth-child(1) {
  background: #f2994a;
}

.part-row span:nth-child(2) {
  background: #2d9c9c;
}

.part-row span:nth-child(3) {
  background: #ffcc55;
}

.part-row span:nth-child(4) {
  background: #4caf50;
}

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split.reversed {
  grid-template-columns: minmax(280px, 1.08fr) minmax(0, 0.92fr);
}

.split.reversed .section-copy {
  order: 2;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.section-copy p,
.legal-content p,
.support-content p {
  color: var(--muted);
}

.visual-panel,
.trust-panel,
.info-panel {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(31, 27, 22, 0.08);
}

.visual-panel {
  min-height: 300px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.collection-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.board-tile {
  min-height: 132px;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--divider);
}

.board-tile.large {
  grid-row: span 2;
  min-height: 276px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.94)),
    url("hero-table.jpg") center / cover;
}

.tile-label {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0.6rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
}

.tile-stat {
  display: block;
  margin-top: 0.8rem;
  font-size: 2.2rem;
  font-weight: 950;
}

.buildable {
  display: grid;
  gap: 12px;
}

.build-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  border-radius: 18px;
  background: #fff;
  padding: 0.9rem;
  border: 1px solid var(--divider);
}

.build-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d9c9c, #f2994a);
}

.build-card:nth-child(2) .build-thumb {
  background: linear-gradient(135deg, #ffb74d, #4caf50);
}

.build-card:nth-child(3) .build-thumb {
  background: linear-gradient(135deg, #efe7dc, #2d9c9c);
}

.build-card strong {
  display: block;
}

.build-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: rgba(76, 175, 80, 0.14);
  color: #216b27;
  font-size: 0.82rem;
  font-weight: 900;
}

.family-panel {
  overflow: hidden;
  padding: 0;
}

.family-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
}

.subscription-list,
.trust-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.1rem 0 0;
  list-style: none;
}

.subscription-list li,
.trust-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
}

.subscription-list li::before,
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: inset 0 0 0 4px #dff1f1;
}

.trust-panel {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.trust-item {
  min-height: 140px;
  border-radius: 18px;
  background: var(--background);
  padding: 1rem;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero,
.not-found {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) 0 2rem;
}

.page-hero h1,
.not-found h1 {
  max-width: 12ch;
}

.page-hero p {
  max-width: 45rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.legal-content,
.support-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1rem 0 clamp(4rem, 8vw, 6rem);
}

.info-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1rem 0;
}

.info-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.info-panel ul,
.info-panel ol {
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.info-panel li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.notice {
  border-left: 6px solid var(--primary);
  background: #fff7ec;
}

.site-footer {
  border-top: 1px solid var(--divider);
  background: #fffdf9;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  font-weight: 900;
}

.footer-note,
.disclaimer {
  max-width: 780px;
  color: var(--muted);
  font-size: 0.94rem;
}

.copyright {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .split.reversed {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .split.reversed .section-copy {
    order: 0;
  }

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

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, 1120px);
    min-height: auto;
    padding: 0.55rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 0 0.85rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero,
  .section,
  .page-hero,
  .legal-content,
  .support-content,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero-visual {
    min-height: 480px;
  }

  .table-scene {
    min-height: 390px;
    height: 470px;
    border-radius: 22px;
  }

  .phone {
    right: 1rem;
    bottom: -1.2rem;
    width: 235px;
    min-width: 0;
    border-width: 10px;
  }

  .collection-board,
  .build-card,
  .trust-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .board-tile.large {
    min-height: 220px;
  }

  .build-card {
    grid-template-columns: 64px 1fr;
  }

  .build-card .status {
    grid-column: 2;
    width: fit-content;
  }

  .copyright {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
