/* bridge.games — marketing site
   Palette, type, and vernacular are inherited from the app itself:
   felt greens, ivory card stock, brass, Fraunces + Atkinson Hyperlegible. */

/* ---------- fonts (self-hosted, copied from the app's own packages) ---------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --felt-950: #0b1d16;
  --felt-900: #10251c;
  --felt-700: #1c4534;
  --felt-500: #276549;
  --baize: #2b7c50;

  --cream: #f3ecd8;
  --cream-soft: rgba(243, 236, 216, 0.78);
  --cream-dim: rgba(243, 236, 216, 0.55);
  --hairline: rgba(243, 236, 216, 0.16);

  --gold: #c9a648;
  --gold-bright: #ddba60;
  --red: #d4685c;
  --card-red: #c0392b;
  --ink: #1c1a14;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 66ch;
  --col: 1100px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--cream);
  background:
    radial-gradient(110rem 70rem at 50% -18%, var(--felt-700), var(--felt-900) 55%, var(--felt-950) 100%)
    var(--felt-950);
}

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

a { color: var(--gold-bright); }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--col), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- suit coloring ---------- */

.pip-r { color: var(--red); }
.pip-b { color: var(--cream); }

/* ---------- header ---------- */

.site-head {
  padding: 1.4rem 0;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 640;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .spade {
  color: var(--gold);
  font-size: 0.9em;
  margin: 0 0.12em;
}
.wordmark:hover { color: var(--cream); }

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.head-login {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 1rem;
}
.head-login:hover { color: var(--cream); text-decoration: underline; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 1.02em 1.7em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 9px 22px rgba(0, 0, 0, 0.4);
}
.btn:active { transform: translateY(0); }

.btn-small { padding: 0.72em 1.25em; font-size: 0.98rem; }

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

.hero { padding: 3.5rem 0 5rem; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1.4rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.5rem, 6.2vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 1.4rem;
  max-width: 21ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

.hero-sub {
  font-size: 1.22rem;
  color: var(--cream-soft);
  max-width: 56ch;
  margin-bottom: 2.1rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.hero-aside {
  font-size: 0.98rem;
  color: var(--cream-dim);
}
.hero-aside a { color: var(--cream-soft); }

.hero-figure {
  margin: 3.2rem 0 0;
}
.hero-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(243, 236, 216, 0.08),
    0 30px 70px rgba(0, 0, 0, 0.55);
}
figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin-top: 0.9rem;
}

/* ---------- sections & the ascending-auction markers ---------- */

section { padding: 4.6rem 0; }

.bid-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.bid-card {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.06rem;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #faf5e6, #ece2c6);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 7px;
  padding: 0.5em 0.55em 0.42em;
  min-width: 2.5em;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.bid-card .r { color: var(--card-red); }
.bid-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

section h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  margin: 0 0 1.1rem;
  max-width: 24ch;
}

.lede {
  font-size: 1.14rem;
  color: var(--cream-soft);
  max-width: var(--measure);
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.4rem;
}
.card {
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(243, 236, 216, 0.045), rgba(243, 236, 216, 0.015));
  padding: 1.5rem 1.4rem 1.4rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.card p {
  font-size: 1rem;
  color: var(--cream-soft);
  margin: 0;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3.4rem;
  align-items: center;
  margin-top: 1rem;
}
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.flip .split-copy { order: 2; }
.split.flip .split-media { order: 1; }

.split-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(243, 236, 216, 0.08), 0 22px 50px rgba(0, 0, 0, 0.5);
}

.ticklist {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.ticklist li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--cream-soft);
  font-size: 1.03rem;
}
.ticklist li::before {
  content: '♦';
  position: absolute;
  left: 0.15rem;
  top: 0;
  color: var(--gold);
  font-size: 0.95em;
}
.ticklist.spades li::before { content: '♠'; color: var(--gold); }
.ticklist.hearts li::before { content: '♥'; color: var(--gold); }
.ticklist strong { color: var(--cream); }

/* centered craft figure (e.g. the bidding box) */
.craft-figure {
  margin: 3rem auto 0;
  max-width: 420px;
  text-align: center;
}
.craft-figure img {
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(243, 236, 216, 0.08), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.craft-figure figcaption { margin-top: 1rem; }

/* small in-copy UI fragment (e.g. the captain's menu) */
.ui-snippet { margin: 1.9rem 0 0; }
.ui-snippet img {
  width: min(300px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(243, 236, 216, 0.08), 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* ---------- the table diagram (A/V signature) ---------- */

.av-scene {
  position: relative;
}
.av-table {
  position: relative;
  margin: 52px 64px;
  background: linear-gradient(180deg, #59371f, #3a2213);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.av-felt {
  background: radial-gradient(90% 90% at 50% 30%, var(--felt-500), var(--felt-700));
  border-radius: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
  aspect-ratio: 1.16;
  display: grid;
  place-items: center;
}
.av-felt .fan {
  font-size: 2rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(243, 236, 216, 0.85);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.av-felt .fan .r { color: #e98d80; }

.av-tile {
  position: absolute;
  z-index: 1;
  width: 118px;
  background: #12271e;
  border: 1px solid rgba(243, 236, 216, 0.22);
  border-radius: 10px;
  padding: 0.6rem 0.6rem 0.5rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.av-tile .face {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.25rem;
  color: var(--ink);
}
.av-tile .who {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}
.av-tile .state {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  margin-top: 0.15rem;
}
.av-tile.nw { top: 0; left: 0; }
.av-tile.ne { top: 0; right: 0; }
.av-tile.sw { bottom: 0; left: 0; }
.av-tile.se { bottom: 0; right: 0; }

.av-tile.speaking { border-color: var(--gold); }
.av-tile.speaking .face { box-shadow: 0 0 0 3px var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .av-tile.speaking .face { animation: speak 2.2s ease-in-out infinite; }
  @keyframes speak {
    0%, 100% { box-shadow: 0 0 0 3px var(--gold); }
    50% { box-shadow: 0 0 0 6px rgba(201, 166, 72, 0.55); }
  }
}

.f1 { background: #d9b08c; }
.f2 { background: #a8c3a0; }
.f3 { background: #cfa0a5; }
.f4 { background: #b9b0d8; }

.av-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 1.1rem;
}

/* ---------- steps (NT section) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 2.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.7rem;
  max-width: 40rem;
}
.steps li {
  position: relative;
  padding-left: 4.1rem;
  min-height: 3rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.3rem;
  color: var(--cream);
  background: radial-gradient(120% 120% at 50% 25%, var(--felt-500), var(--felt-700));
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.steps h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}
.steps p {
  margin: 0;
  color: var(--cream-soft);
  font-size: 1.02rem;
}

.phone-figure { margin: 0; }
.phone-figure img {
  width: min(300px, 80%);
  margin-inline: auto;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(243, 236, 216, 0.1), 0 24px 55px rgba(0, 0, 0, 0.55);
}
.phone-figure figcaption { text-align: center; }

/* ---------- closing CTA ---------- */

.closing {
  text-align: center;
  padding: 5.2rem 0 5.8rem;
}
.closing h2 {
  margin-inline: auto;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}
.closing .lede { margin: 0 auto 2.2rem; }
.closing .hero-aside { margin-top: 1.2rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 2.6rem 0 3.2rem;
  font-size: 0.98rem;
  color: var(--cream-dim);
}
.site-foot .wrap {
  display: grid;
  gap: 0.9rem;
}
.foot-mark {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.15rem;
  color: var(--cream-soft);
}
.foot-mark .spade { color: var(--gold); }
.site-foot a { color: var(--cream-soft); }

/* ---------- document pages (privacy, terms) ---------- */

.doc-page { padding: 2.5rem 0 5rem; }
.doc-page .wrap { max-width: 46rem; }
.doc-page h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 0 0 0.4rem;
}
.doc-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  margin-bottom: 2.2rem;
}
.doc-page h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 2.4rem 0 0.7rem;
}
.doc-page p, .doc-page li { color: var(--cream-soft); font-size: 1.05rem; }
.doc-page strong { color: var(--cream); }
.doc-page ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.doc-page li { margin-bottom: 0.55em; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.flip .split-copy { order: 1; }
  .split.flip .split-media { order: 2; }
  .split-media { max-width: 560px; }
  .av-scene { max-width: 480px; margin-inline: auto; }
}

@media (max-width: 620px) {
  body { font-size: 1.06rem; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 3.4rem 0; }
  .hero { padding: 2.2rem 0 3.4rem; }
  .hero-sub { font-size: 1.12rem; }
  .head-login { display: none; }
  .av-table { margin: 44px 40px; }
  .av-tile { width: 96px; }
  .av-tile .face { width: 42px; height: 42px; font-size: 1.05rem; }
  .av-felt .fan { font-size: 1.4rem; }
}
