/* TCG Hub palette (tcg-hub-pokemon/DESIGN.md): a night-time binder, mint as the highlighter */
:root {
  --midnight: #020617;
  --raised: #0e1223;
  --page: #1c2438;
  --sheet-near: #171d2e;
  --sheet-far: #131825;
  --outline: #334155;
  --mint: #64f2c0;
  --mint-on: #002018;
  --coral: #f26464;
  --orchid: #c064f2;
  --cloud: #e3e2ea;
  --cloud-muted: #c2c5d0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--cloud);
  font: 400 16px/1.6 "Open Sans", Roboto, system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand-mark { display: block; width: 36px; height: 36px; border-radius: 9px; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--cloud-muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--mint); }

.hero { padding-top: 72px; padding-bottom: 88px; }
.eyebrow, .tag {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lede { max-width: 52ch; margin: 20px 0 32px; color: var(--cloud-muted); font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { border-color: var(--mint); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-on); }
.btn.primary:hover { filter: brightness(1.08); }

section h2 { margin: 0 0 20px; font-size: 28px; font-weight: 600; }
#apps, #contact { padding-bottom: 72px; }

.card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--raised);
  border: 1px solid var(--outline);
  border-radius: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.card p { margin: 0 0 16px; color: var(--cloud-muted); }
.link { color: var(--mint); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Two app screens, one tucked behind the other */
.phones {
  position: relative;
  height: 440px;
}
.phone {
  position: absolute;
  top: 0;
  width: 200px;
  height: auto;
  border: 6px solid #0b0f1c;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--outline), 0 24px 48px rgba(0, 0, 0, 0.5);
}
.phone.front { left: 50%; transform: translateX(-80%); z-index: 1; }
.phone.back { left: 50%; transform: translateX(-10%) translateY(32px) rotate(4deg); opacity: 0.9; }

.contact {
  padding: 28px 32px;
  background: var(--raised);
  border: 1px solid var(--outline);
  border-radius: 20px;
}
.contact p { margin: 0 0 8px; color: var(--cloud-muted); }
.email { color: var(--mint); font-size: 20px; font-weight: 600; text-decoration: none; word-break: break-all; }
.email:hover { text-decoration: underline; }

.foot { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--outline); color: var(--cloud-muted); font-size: 14px; }

@media (max-width: 720px) {
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .card { grid-template-columns: 1fr; padding: 24px; }
  .phones { height: 400px; }
  .phone { width: 180px; }
}
