/* Tilt Together — site styles. Pairs with tokens.css.
 *
 * Follows the Sweet Action Labs grammar established by Mute and Zenith:
 * left-aligned two-column hero, a multi-line declarative headline with one
 * accented line, a real artifact of the product in the right column under a
 * letterspaced caption, pill CTAs over dot-separated facts, full-bleed
 * hairline dividers, and left-aligned section headings.
 *
 * What differs here is the brand itself: two accents of equal weight instead
 * of one, because the game is about two people. */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--tt-ground);
  color: var(--tt-ink);
  font-family: var(--tt-font-ui);
  font-size: var(--tt-size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The diagonal wash, one accent either side of the split. Mute uses a single
   diagonal; the two-tone version is this brand's read on it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 620px at 8% -8%, rgba(255, 143, 94, 0.14), transparent 62%),
    radial-gradient(820px 600px at 96% 18%, rgba(69, 224, 196, 0.11), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---- type ---- */

h1, h2, h3 {
  font-family: var(--tt-font-display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 var(--tt-space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--tt-b); text-underline-offset: 3px; }
a:hover { color: var(--tt-ink); }

.lead {
  font-size: 17px;
  color: var(--tt-ink-dim);
  max-width: 30em;
  line-height: 1.62;
}

.kicker {
  font-family: var(--tt-font-mono);
  font-size: var(--tt-size-kicker);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-ink-dim);
  margin: 0 0 var(--tt-space-4);
}
.kicker .a { color: var(--tt-a); }
.kicker .b { color: var(--tt-b); }

/* The headline's accented line — split across the two players, which is the
   one thing this brand does that no sibling does. */
.h-a { color: var(--tt-a); }
.h-b { color: var(--tt-b); }

/* Dot-separated micro-facts under the CTAs. Straight from Zenith. */
.facts {
  font-size: 13px;
  color: var(--tt-ink-dim);
  margin-top: var(--tt-space-4);
}

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

section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--tt-line); }

.section-head { max-width: 34em; margin-bottom: var(--tt-space-6); }
.section-head h2 { margin-bottom: var(--tt-space-3); }

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

.hero { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: var(--tt-space-5); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-3);
  margin-top: var(--tt-space-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  min-height: 50px;
  padding: 0 var(--tt-space-5);
  border-radius: var(--tt-radius-pill);
  font-family: var(--tt-font-ui);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--tt-motion), border-color var(--tt-motion);
}
.btn:focus-visible { outline: 2px solid var(--tt-b); outline-offset: 3px; }

.btn-primary { background: var(--tt-ink); color: var(--tt-ground); }
.btn-primary:hover { background: #fff; color: var(--tt-ground); }

.btn-ghost { color: var(--tt-ink); border-color: var(--tt-line-strong); }
.btn-ghost:hover { background: var(--tt-surface); color: var(--tt-ink); }

/* ---- the artifact column ---- */

.artifact { display: flex; flex-direction: column; align-items: center; gap: var(--tt-space-3); }

.rig { display: flex; flex-direction: column; align-items: center; gap: 7px; }

.grip {
  width: 148px;
  height: 18px;
  border-radius: 10px;
  transition: transform var(--tt-motion);
}
.grip.top { background: linear-gradient(180deg, var(--tt-a), rgba(255, 143, 94, 0)); }
.grip.bottom { background: linear-gradient(0deg, var(--tt-b), rgba(69, 224, 196, 0)); }

.phone {
  width: 244px;
  height: 434px;
  border-radius: 36px;
  background: linear-gradient(155deg, var(--tt-surface-raised), var(--tt-surface) 62%);
  border: 1px solid var(--tt-line);
  padding: 11px;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.75);
}
.phone canvas {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  display: block;
  background: var(--tt-field);
}

/* Letterspaced mono caption under the artifact — the family's signature. */
.caption {
  font-family: var(--tt-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tt-ink-dim);
  text-align: center;
  margin-top: var(--tt-space-2);
}
.caption .a { color: var(--tt-a); }
.caption .b { color: var(--tt-b); }

/* ---- stat band (Mute's device) ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--tt-line);
  border-bottom: 1px solid var(--tt-line);
}
.stat { padding: var(--tt-space-6) var(--tt-space-4); text-align: center; }
.stat + .stat { border-left: 1px solid var(--tt-line); }
.stat b {
  display: block;
  font-family: var(--tt-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat.a b { color: var(--tt-a); }
.stat.b b { color: var(--tt-b); }
.stat span { font-size: 13px; color: var(--tt-ink-dim); }

/* ---- content grids ---- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--tt-space-5);
}

.item h3 { margin-bottom: var(--tt-space-2); }
.item p { font-size: 14.5px; color: var(--tt-ink-dim); line-height: 1.58; }
.item .rule {
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--tt-line-strong);
  margin-bottom: var(--tt-space-3);
}
.item.accent .rule { background: var(--tt-b); }
.item.accent h3 { color: var(--tt-b); }

/* ---- levels ---- */

.levels { border-top: 1px solid var(--tt-line); }

.level {
  display: grid;
  grid-template-columns: 52px minmax(0, 13em) minmax(0, 1fr);
  gap: var(--tt-space-4);
  align-items: baseline;
  padding: var(--tt-space-4) 0;
  border-bottom: 1px solid var(--tt-line);
}
.level b {
  font-family: var(--tt-font-mono);
  font-size: 13px;
  color: var(--tt-ink-dim);
}
.level h3 { font-size: 16px; }
.level p { font-size: 14.5px; color: var(--tt-ink-dim); margin: 0; }

@media (max-width: 640px) {
  .level { grid-template-columns: 40px minmax(0, 1fr); }
  .level p { grid-column: 2; }
}

/* ---- screenshots ---- */

.shots {
  display: flex;
  gap: var(--tt-space-4);
  overflow-x: auto;
  padding-bottom: var(--tt-space-4);
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; flex: none; width: 218px; scroll-snap-align: start; }
.shots img {
  width: 218px;
  border-radius: 24px;
  border: 1px solid var(--tt-line);
  display: block;
}
.shots figcaption {
  font-size: 13px;
  color: var(--tt-ink-dim);
  margin-top: var(--tt-space-3);
  line-height: 1.45;
}

/* ---- pull quote ---- */

/* An epigraph, not a testimonial — deliberately unattributed, so it carries
   its own weight rather than leaning on a speaker. Sized up a little and given
   the display face, since there is no cite line beneath it. */
.pull {
  border-left: 2px solid var(--tt-b);
  padding-left: var(--tt-space-5);
  max-width: 26em;
  margin: var(--tt-space-7) 0 0;
}
.pull p {
  font-family: var(--tt-font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--tt-ink);
  line-height: 1.34;
  letter-spacing: -0.01em;
}

/* ---- prose pages ---- */

.prose { padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); max-width: 46em; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: var(--tt-space-4); }
.prose h2 { font-size: 21px; margin: var(--tt-space-7) 0 var(--tt-space-3); }
.prose p, .prose li { color: var(--tt-ink-dim); }
.prose strong { color: var(--tt-ink); }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: var(--tt-space-2); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--tt-space-4) 0; }
.prose th, .prose td {
  text-align: left;
  padding: var(--tt-space-3) var(--tt-space-3) var(--tt-space-3) 0;
  border-bottom: 1px solid var(--tt-line);
  font-size: 14.5px;
  vertical-align: top;
}
.prose th { color: var(--tt-ink); font-weight: 600; }

.note {
  border-left: 2px solid var(--tt-b);
  padding: var(--tt-space-1) 0 var(--tt-space-1) var(--tt-space-5);
  margin: var(--tt-space-5) 0;
}
.note p { color: var(--tt-ink); }

.updated {
  font-family: var(--tt-font-mono);
  font-size: var(--tt-size-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tt-ink-dim);
  margin-bottom: var(--tt-space-3);
}

/* ---- nav + footer ---- */

.topnav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--tt-space-5);
  padding: var(--tt-space-5) 0;
  font-size: 14px;
}
.topnav .home {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  font-family: var(--tt-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--tt-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.topnav .spacer { flex: 1; }
.topnav a:not(.home) { color: var(--tt-ink-dim); text-decoration: none; }
.topnav a:not(.home):hover { color: var(--tt-ink); }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--tt-line);
  padding: var(--tt-space-6) 0 var(--tt-space-7);
  font-size: 14px;
  color: var(--tt-ink-dim);
}
footer nav { display: flex; flex-wrap: wrap; gap: var(--tt-space-5); margin-bottom: var(--tt-space-4); }
footer a { color: var(--tt-ink-dim); text-decoration: none; }
footer a:hover { color: var(--tt-ink); }
footer .sister { color: var(--tt-ink-dim); opacity: 0.7; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .artifact { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--tt-line); }
}
