/* The marketing site (D-060). Same tokens as the app's green felt, standing alone: no build,
   no framework, one page. Fonts from Google Fonts; pictures are real renders of the app. */
:root {
  --table: #1f5a3f;
  --table-texture: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.035) 0 6px,
    transparent 6px 12px
  );
  --card: #fff8ea;
  --card-2: #f1e6cd;
  --border: #d9c9a5;
  --edge: #c9b88f;
  --ink: #2a2115;
  --ink-2: #6b5b43;
  --ink-3: #9a8a6f;
  --on-table: #fff8ea;
  --on-table-2: rgba(255, 248, 234, 0.75);
  --primary: #d8433a;
  --on-primary: #fff8ea;
  --secondary: #e7a92b;
  --brass: #b8892e;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Rubik', 'Trebuchet MS', Verdana, sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max: 1100px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-table);
  background-color: var(--table);
  background-image: var(--table-texture);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6em;
}
.lead {
  font-size: 1.25rem;
}
.fine {
  font-size: 0.95rem;
  color: var(--on-table-2);
}
strong {
  font-weight: 800;
}

/* Buttons, as in the app */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.btn-quiet {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--on-table);
}
.btn-lg {
  min-height: 56px;
  font-size: 1.15rem;
  padding: 0 2rem;
}

/* Top bar */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand img,
.foot img {
  /* The reversed logo cut carries a hairline at each edge; keep it off the page. */
  clip-path: inset(0 1.5% round 10px);
}
.brand img {
  width: auto;
  height: 52px;
}
.top-nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  font-weight: 700;
}
.top-nav a {
  text-decoration: none;
  color: var(--on-table-2);
}
.top-nav a:hover {
  color: var(--on-table);
}
.top-cta {
  margin-left: auto;
}
@media (min-width: 800px) {
  .top-nav {
    display: flex;
  }
  .top-cta {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art .tilo {
  position: absolute;
  width: 120px;
  left: 4%;
  bottom: -18px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}
@media (min-width: 800px) {
  .hero-art .tilo {
    width: 170px;
    left: 0;
    bottom: -10px;
  }
}

/* A phone frame around a real render */
.phone {
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 34px;
  background: #1a1410;
  box-shadow:
    0 20px 40px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.phone img {
  border-radius: 24px;
}
.phone-sm {
  width: min(260px, 70vw);
}

/* Feature bands: copy beside a phone, alternating sides */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 800px) {
  .band {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 4rem 1.25rem;
  }
  .band-rev {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .band-rev .band-copy {
    order: 2;
  }
}
.band-copy {
  max-width: 560px;
  justify-self: stretch;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 0.5rem;
}
.ticks li {
  padding-left: 1.75rem;
  position: relative;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 0.2em;
}

/* The problem (D-060 amendment): three group chats beside the one table they become */
.band-why {
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .band-why {
    grid-template-columns: 1fr 1.1fr;
  }
}
@media (min-width: 1100px) {
  .band-why {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .mess-chats {
    flex: 0 0 290px;
  }
  .mess .phone-sm {
    width: 240px;
  }
}
.mess-grid {
  white-space: nowrap;
}
.mess {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 1100px) {
  .mess {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}
.mess-chats {
  display: grid;
  gap: 0.6rem;
  width: min(340px, 100%);
}
.mess-chat {
  background: rgba(255, 255, 255, 0.92);
  color: #2a2115;
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.35;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.5deg);
}
.mess-chat:nth-child(2) {
  transform: rotate(1deg) translateX(6px);
}
.mess-chat:nth-child(3) {
  transform: rotate(-0.5deg) translateX(-4px);
}
.mess-name {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8a6f;
}
.mess-msg b {
  font-weight: 800;
  margin-right: 0.3em;
}
.mess-q {
  color: #6b5b43;
  font-style: italic;
}
.mess-arrow {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.1rem;
  white-space: nowrap;
}
.mess-arrow::after {
  content: ' ↓';
}
@media (min-width: 1100px) {
  .mess-arrow::after {
    content: ' →';
  }
}

/* How it works: three cards on paper */
.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 0 var(--edge);
  text-align: left;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3dd9a, #b8892e 70%);
  color: #5a4315;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* Looks: a desktop render under the copy */
.looks {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.looks-copy {
  max-width: 620px;
}
.desktop-shot {
  margin-top: 1.5rem;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
}

/* Closing call */
.cta {
  background: var(--card);
  color: var(--ink);
  text-align: center;
  padding: 3rem 1.25rem;
}
.cta p {
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.tilo-sm {
  width: 110px;
  margin: 0 auto 0.5rem;
}

/* Footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--on-table-2);
  font-size: 0.95rem;
}
.foot img {
  width: min(220px, 55vw);
  margin: 0 auto 1rem;
}

/* Game pages (D-060 amendment): a page hero, a game head with its lid, rules, scoring,
   strips of pictures, the piece gallery and the analysed-game showcase. */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}
.page-hero .lead {
  max-width: 640px;
}
.top-nav a[aria-current='page'] {
  color: var(--on-table);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.band-tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.band-wide {
  grid-template-columns: 1fr;
}
.pair {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pair .phone {
  width: min(240px, 44vw);
}
.game {
  border-top: 4px solid var(--secondary);
  margin-top: 1rem;
}
.game-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.game-head .lid {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.game-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.game-head .lead {
  max-width: 620px;
}
@media (max-width: 560px) {
  .game-head {
    flex-direction: column;
    gap: 0.75rem;
  }
  .game-head .lid {
    width: 72px;
    height: 72px;
  }
}
.game .band {
  border-top: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.game h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.rules {
  padding-left: 1.4rem;
  margin: 0 0 1em;
  display: grid;
  gap: 0.6rem;
}
.rules li::marker {
  color: var(--secondary);
  font-weight: 800;
}
.sw {
  display: inline-block;
  padding: 0 0.4em;
  border-radius: 4px;
  font-weight: 800;
  color: #fff8ea;
}
.sw-correct {
  background: #2f7a4d;
}
.sw-present {
  background: #c99a2e;
  color: #2a2115;
}
.sw-absent {
  background: #6b6b6b;
}
.score-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 460px;
  margin: 0 0 1em;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 0 var(--edge);
}
.score-table th,
.score-table td {
  padding: 0.55rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.score-table th {
  font-weight: 800;
  width: 55%;
}
.score-table tr:last-child th,
.score-table tr:last-child td {
  border-bottom: 0;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 960px;
}
.band-wide .band-copy {
  max-width: 640px;
}
.strip img {
  border-radius: 12px;
  box-shadow:
    0 12px 24px -14px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pieces {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  width: 100%;
}
.pieces li {
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.5rem 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: end;
  gap: 0.2rem;
  box-shadow: 0 4px 0 var(--edge);
}
.pieces img {
  width: 56px;
  height: 56px;
}
.pieces span {
  grid-column: 1 / -1;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}
.showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.showcase .band-copy {
  max-width: 640px;
}
.showcase .desktop-shot {
  margin-top: 1.25rem;
  border-radius: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
