/* TCG Tradr marketing site. Colours mirror the app's design tokens
   (src/constants/theme.ts); IBM Plex Sans when installed, system fonts
   otherwise — nothing is downloaded. */

:root {
  color-scheme: light dark;
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --raised: #eef1f5;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --accent: #2f6fe4;
  --accent-subtle: rgba(47, 111, 228, 0.12);
  --accent-border: rgba(47, 111, 228, 0.35);
  --on-accent: #ffffff;
  --success: #1e9e67;
  --success-subtle: rgba(30, 158, 103, 0.12);
  --danger: #d93545;
  --danger-subtle: rgba(217, 53, 69, 0.12);
  --warning: #b87514;
  --hairline: rgba(17, 24, 39, 0.08);
  --border: rgba(17, 24, 39, 0.16);
  --sell: #1e9e67;
  --trade: #b87514;
  --stock: #6b4fd6;
  --radius: 14px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-condensed: "IBM Plex Sans Condensed", "IBM Plex Sans", "Avenir Next Condensed",
    "Arial Narrow", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0e14;
    --surface: #151a23;
    --raised: #1e2633;
    --text: #f2f4f7;
    --text-2: #a0a8b5;
    --text-3: #6e7786;
    --accent: #4f8dff;
    --accent-subtle: rgba(79, 141, 255, 0.16);
    --accent-border: rgba(79, 141, 255, 0.35);
    --success: #3ecf8e;
    --success-subtle: rgba(62, 207, 142, 0.14);
    --danger: #ff5a64;
    --danger-subtle: rgba(255, 90, 100, 0.14);
    --warning: #f2b33d;
    --hairline: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.16);
    --sell: #3ecf8e;
    --trade: #f2b33d;
    --stock: #a58bff;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.top nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-left: 20px;
}

.top nav a:hover {
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.lede {
  font-size: 19px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 34em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

/* Placeholder store badges: plain links until the listings exist. */
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.store small {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store span {
  font-size: 17px;
  font-weight: 600;
}

.store:hover {
  border-color: var(--accent-border);
}

.fine {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

/* The illustrative scan result, drawn in CSS. */
.device {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  border-radius: 36px;
  padding: 14px;
  background: var(--raised);
  border: 1px solid var(--hairline);
}

.screen {
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 20px 18px 22px;
}

.screen .bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.cardart {
  aspect-ratio: 63 / 88;
  width: 46%;
  float: left;
  margin: 0 14px 6px 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(150deg, #f2b33d 0%, #d9552a 45%, #6b4fd6 100%);
  border: 3px solid var(--raised);
}

.screen h3 {
  font-family: var(--font-condensed);
  font-size: 19px;
  line-height: 1.15;
  margin: 2px 0 4px;
}

.code {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 10px;
}

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.rows {
  clear: both;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
}

.rows b {
  font-family: var(--font-condensed);
  font-size: 17px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rows .offer b {
  font-size: 24px;
  color: var(--success);
}

.screen .cta {
  margin-top: 14px;
  text-align: center;
  border-radius: 10px;
  padding: 11px;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: var(--on-accent);
}

/* -- features -------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 80px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.feature .icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature:nth-child(2) .icon {
  background: var(--success-subtle);
  color: var(--sell);
}

.feature:nth-child(3) .icon {
  background: rgba(184, 117, 20, 0.12);
  color: var(--trade);
}

.feature:nth-child(4) .icon {
  background: rgba(107, 79, 214, 0.12);
  color: var(--stock);
}

.feature svg {
  width: 20px;
  height: 20px;
}

.feature h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

/* -- waitlist ---------------------------------------------------------------- */

.join {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 72px;
  scroll-margin-top: 24px;
}

.join h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.join > div > p {
  color: var(--text-2);
  margin: 0 0 12px;
}

form label,
fieldset legend {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
}

.optional {
  font-weight: 400;
  color: var(--text-3);
}

input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--text);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

fieldset legend {
  padding: 0;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roles label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--canvas);
  cursor: pointer;
}

.roles input {
  accent-color: var(--accent);
  margin: 0;
}

.roles label:has(input:checked) {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

/* Honeypot: off-screen for people, present for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button,
.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button:hover {
  filter: brightness(1.08);
}

.notice {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 15px;
  background: var(--raised);
  border: 1px solid var(--border);
}

.notice.success {
  background: var(--success-subtle);
  border-color: var(--success);
}

.notice.error {
  background: var(--danger-subtle);
  border-color: var(--danger);
}

/* -- message pages (confirm / unsubscribe) --------------------------------- */

.message {
  max-width: 560px;
  margin: 40px auto 96px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 36px;
}

.message h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.message p {
  color: var(--text-2);
}

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

footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--text-3);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav a {
  color: var(--text-2);
  text-decoration: none;
  margin-right: 18px;
  white-space: nowrap;
}

footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

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

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero,
  .join {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    gap: 40px;
  }

  .join {
    padding: 28px 22px;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .top nav a:not(.keep) {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .lede {
    font-size: 17px;
  }

  .store {
    flex: 1 1 140px;
    min-width: 0;
  }

  .message {
    padding: 26px 20px;
    margin-top: 16px;
  }
}

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

.fine.after {
  margin-top: 14px;
}
