/* Pixelistick marketing site — Light Table design system.
   Tokens mirror lib/theme/px_colors.dart and px_typography.dart. */

:root {
  --ink: #22303B;
  --muted: #7C93A4;
  --chrome-muted: #9AA7B2;
  --accent: #5B8FB0;
  --accent-press: #3C5060;
  --bg: #FBFCFE;
  --surface: #FFFFFF;
  --line: #E3EBF1;
  --input-border: #DCE6EC;
  --linen: #F0EDE8;
  --error: #D0606A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --radius: 4px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Wordmark — PxType.wordmark: Poppins 900, letter-spacing -0.2 */
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark img { display: block; width: 30px; height: 30px; border-radius: var(--radius); }
.wordmark span { font-weight: 900; letter-spacing: -0.2px; font-size: 24px; line-height: 1; color: var(--ink); }

.site-header {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-header nav .secondary { color: var(--muted); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: var(--muted); }

h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.06; text-wrap: pretty; }
h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; text-wrap: pretty; }
h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2vw, 26px); }

.lede { margin: 0; max-width: 46ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.75; color: var(--muted); text-wrap: pretty; }

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* Framed artwork — the mystery board in its matte */
.frame { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.frame .matte {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(12px, 1.4vw, 18px);
  box-shadow: 0 12px 32px rgba(34, 48, 59, 0.07);
}
.frame figcaption,
.frame .caption {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--muted); text-align: center;
}

/* Buttons */
.btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 14px 26px; border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--accent-press); color: var(--bg); }
.btn:disabled { background: #AEBECB; cursor: default; }
/* Official Apple badge artwork — used unmodified per Apple's App Store
   marketing guidelines (min height 40px; layout gaps give the required
   clear space). Do not restyle or redraw it. */
.store-badge { display: inline-flex; }
.store-badge img { height: 52px; display: block; }
.btn-quiet {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--input-border); border-radius: var(--radius);
  padding: 9px 16px; font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer;
}
.btn-quiet:hover { border-color: var(--accent); }

/* Code blocks — the share slug, and the code the player types in */
.panel {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 420px;
  margin-top: 4px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.panel .label { font-size: 13px; color: var(--muted); }
.slug-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.slug { font-weight: 900; font-size: 26px; letter-spacing: 3px; line-height: 1; }

.code-form { display: flex; flex-wrap: wrap; gap: 10px; }
.code-form input {
  flex: 1 1 160px; min-width: 0;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--input-border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 3px;
  color: var(--ink); outline: none;
}
.code-form input:focus { border-color: var(--accent); }
.code-error { font-size: 12px; color: var(--error); }
.code-error[hidden] { display: none; }

/* Section intro + feature columns */
.section-intro { display: flex; flex-direction: column; gap: 10px; padding-top: clamp(56px, 6vw, 80px); padding-bottom: 8px; }
.section-intro h2 { max-width: 24ch; }
.section-intro .lede { max-width: 52ch; margin-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(32px, 3.4vw, 48px);
  padding-top: clamp(40px, 4vw, 56px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.feature svg { stroke: var(--accent); }

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

/* Closing band */
.band {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  background: var(--linen);
  padding: clamp(56px, 6vw, 80px) var(--gutter);
  text-align: center;
}
.band h2 { font-size: clamp(32px, 3.2vw, 42px); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
  padding-top: 36px; padding-bottom: 36px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.site-footer .wordmark img { width: 20px; height: 20px; opacity: 0.75; }
.site-footer .wordmark span { font-size: 16px; color: var(--muted); }
.site-footer .links { display: flex; gap: 28px; }
.site-footer a { color: var(--muted); }
