/* TCGTempo marketing site. Colors follow the app (src/app/globals.css): dark by default, light
   when the visitor's system prefers it. No web fonts: the system UI font, like the app. */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --band: #11141a;
  --surface: #16181d;
  --surface-2: #22252c;
  --border: #2f333b;
  --fg: #f5f6f8;
  --muted: #a3a8b3;
  --accent: #38bdf8;
  --accent-fg: #00111a;
  --link: #7dd3fc;
  --link-hover: #bae6fd;
  /* Accent tints: eyebrows, icon tiles, glows, the Pro column. */
  --accent-ink: #38bdf8;
  --accent-soft: rgb(56 189 248 / 0.12);
  --accent-line: rgb(56 189 248 / 0.45);
  --glow: rgb(56 189 248 / 0.22);
  --accent-hover: #7dd3fc;
  /* The app's Respond colour (src/app/globals.css --color-respond) */
  --respond: #facc15;
  --respond-fg: #1a1400;
  --frame: #2e323a;
  --radius: 1.25rem;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7f9;
    --band: #eceff3;
    --surface: #ffffff;
    --surface-2: #e2e5ea;
    --border: #d4d8df;
    --fg: #0b0d12;
    --muted: #4b5260;
    --accent: #0369a1;
    --accent-fg: #ffffff;
    --link: #0369a1;
    --link-hover: #075985;
    --accent-ink: #0369a1;
    --accent-soft: rgb(3 105 161 / 0.09);
    --accent-line: rgb(3 105 161 / 0.4);
    --glow: rgb(14 165 233 / 0.2);
    --accent-hover: #075985;
    --respond: #facc15;
    --respond-fg: #1a1400;
    --frame: #0b0d12;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.narrow {
  max-width: 46rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.small {
  font-size: 0.9375rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* Header */
.top {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  min-height: 3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.625rem;
  color: var(--fg);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
}

.nav-extra {
  display: none;
}

@media (min-width: 640px) {
  .nav-extra {
    display: list-item;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--accent-fg);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

/* Hero: a soft accent glow behind the copy and the phone */
.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, var(--glow), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 0%, var(--accent-soft), transparent 70%);
}

.hero h1 {
  max-width: 19ch;
}

/* Section kickers ("THE CLOCK") */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* An accent rule under section headings */
main h2:not(.sr-only)::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr auto;
  }
}

/* Screenshots in a simple phone frame */
.phone {
  margin: 0 auto;
  width: min(100%, 17.5rem);
  border: 0.5rem solid var(--frame);
  border-radius: 2rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.6);
}

/* Screenshots sit on a faint accent glow */
.glow {
  box-shadow:
    0 0 0 1px var(--accent-line),
    0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.6),
    0 0 4rem -0.5rem var(--glow);
}

.hero-phone {
  width: min(100%, 17.5rem);
}

@media (min-width: 768px) {
  .hero-phone {
    width: 20rem;
  }

  .phone {
    width: 18.75rem;
  }
}

.phone.wide {
  width: 100%;
  max-width: 29rem;
  border-radius: 1.5rem;
}

/* Sections */
section {
  scroll-margin-top: 1rem;
}

.band {
  background: var(--band);
}

/* A faint accent band between sections */
main > section + section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--accent-line), transparent) 1;
}

#games,
.feature,
#pro,
#install {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  #games,
  .feature,
  #pro,
  #install {
    padding: 4.5rem 0;
  }
}

/* Highlights under the hero: four icon tiles */
.highlights {
  padding: 1.5rem 0 2.5rem;
}

.tiles {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0.125rem 0.875rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}

.tile:hover {
  border-color: var(--accent-line);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface);
  color: var(--fg);
}

.tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.tile-title {
  font-weight: 700;
  line-height: 1.3;
}

.tile-text {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55em;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Free vs Pro */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child > * {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
}

tbody th {
  font-weight: 600;
  width: 40%;
}

/* The Pro column, tinted */
.pro {
  background: var(--accent-soft);
}

thead th.pro {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-2);
  color: var(--accent-ink);
}

.yes::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.375rem;
  color: var(--accent-ink);
  font-weight: 800;
}

/* Install */
.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.card li {
  margin-bottom: 0.5rem;
}

/* Install steps with accent numbers */
.numbered {
  counter-reset: step;
  list-style: none;
}

.card .numbered {
  padding-left: 0;
}

.numbered li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  min-height: 1.75rem;
}

.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* The clock: the Respond diagram and the blockers shot */
.clock-extra {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .clock-extra {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
}

.diagram,
.shot-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.diagram svg {
  display: block;
  width: 100%;
  max-width: 21rem;
  height: auto;
  margin: 0 auto;
}

.shot-card img {
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto;
  border-radius: 1rem;
}

figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.priority text {
  fill: var(--fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.priority .pd-title {
  font-size: 14px;
}

.priority .pd-sub {
  fill: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.priority .pd-time {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.pd-line {
  stroke: var(--accent-line);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.pd-dot {
  fill: var(--accent);
}

.pd-dot-resp {
  fill: var(--respond);
}

.priority .pd-num {
  fill: var(--accent-fg);
  font-size: 13px;
  font-weight: 800;
}

.priority .pd-dot-resp + .pd-num {
  fill: var(--respond-fg);
}

.pd-run rect {
  fill: var(--accent);
}

.pd-run,
.priority .pd-run text {
  color: var(--accent-fg);
  fill: var(--accent-fg);
}

.pd-resp rect {
  fill: var(--respond);
}

.pd-resp,
.priority .pd-resp text {
  color: var(--respond-fg);
  fill: var(--respond-fg);
}

.pd-idle rect {
  fill: var(--surface-2);
  stroke: var(--border);
}

.pd-idle,
.priority .pd-idle text {
  color: var(--muted);
  fill: var(--muted);
}

/* Footer */
.foot {
  padding: 2.5rem 0 3rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

/* Legal pages */
.page {
  padding: 2.5rem 0 3rem;
}

.page h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}
