/* Apex Roping public site (apexroping.com). Plain CSS, no framework.
   Dark theme; every text colour on the page background is at least 4.5:1. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0b0f15;
  --surface: #121821;
  --surface-2: #18202b;
  --line: rgba(255,255,255,0.09);
  --text: #f1f3f6;
  --muted: #a7b1bd;
  --soft: #cdd5de;
  --accent: #f2a93b;      /* amber: buttons and highlights */
  --accent-ink: #1a1203;  /* text on amber */
  --roper: #7cc4ee;       /* roper door */
  --producer: #f2a93b;    /* producer door */
  --radius: 14px;
  --max: 1120px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--roper); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--roper); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip-link { position: absolute; left: 8px; top: -200px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); color: #fff; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: #0D192C; border-bottom: 1px solid var(--line); } /* Deep Navy header bar (brand README) */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: center; flex: none; }
/* 42 px tall = 120 px wide, the README's smallest allowed logo width */
.wordmark img { display: block; height: 42px; width: auto; }
.nav-cta { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .nav-cta { width: 100%; }
  .nav-cta .btn { flex: 1 1 0; text-align: center; padding: 10px 8px; font-size: 0.88rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f6bb60; }
.btn-roper { background: var(--roper); color: #04131d; }
.btn-roper:hover { background: #a3d6f4; }
.btn-ghost { background: transparent; color: var(--soft); border-color: rgba(255,255,255,0.18); }
.btn-ghost:hover { color: #fff; border-color: var(--soft); }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Type */
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1.1; letter-spacing: -1px; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.5px; font-weight: 800; }
h3 { font-size: 1.08rem; line-height: 1.35; font-weight: 700; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* Hero with the two doors */
.hero { padding: 56px 0 48px; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto 16px; }
.hero .lead { margin: 0 auto; }
.doors { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; text-align: left; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 20px; } }
.door { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--roper); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.door.producer { border-top-color: var(--producer); }
.door .who { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--roper); }
.door.producer .who { color: var(--producer); }
.door h2 { font-size: 1.6rem; }
.door p { color: var(--soft); }
.door .btn-row { margin-top: auto; padding-top: 6px; }
.door .more { font-size: 0.92rem; font-weight: 600; color: var(--soft); }
.door .more:hover { color: #fff; }
.rename-note { margin: 22px auto 0; max-width: 680px; color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section.alt { background: rgba(255,255,255,0.02); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .lead { margin-top: 10px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; list-style: none; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p, .card li { color: var(--soft); font-size: 0.95rem; }
.card ul { padding-left: 18px; display: grid; gap: 6px; }
.after-grid { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.text-link { color: var(--soft); font-weight: 600; }
.text-link:hover { color: #fff; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pills li { background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--soft); padding: 6px 14px; border-radius: 100px; font-size: 0.86rem; }
.stage { max-width: 760px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stage:last-child { border-bottom: 0; }
.stage h2, .stage h3 { margin-bottom: 8px; }
.stage p { color: var(--soft); margin-top: 8px; }

/* Page head (inner pages) */
.page-head { padding: 52px 0 28px; }
.page-head h1 { max-width: 820px; margin-bottom: 14px; }

/* Apps */
.apps { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .apps { grid-template-columns: 1fr 1fr; } }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.app .icon { width: 52px; height: 52px; }
.app p { color: var(--soft); font-size: 0.95rem; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: #fff; color: #111; text-decoration: none; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 0.92rem; }
.store-btn.dark { background: #1c1c1e; color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .label small { font-size: 0.7rem; font-weight: 500; opacity: 0.75; }
.note { margin-top: 18px; background: rgba(242,169,59,0.08); border: 1px solid rgba(242,169,59,0.35); border-radius: 12px; padding: 14px 16px; color: var(--soft); font-size: 0.92rem; max-width: 900px; }
.note strong { color: #fff; }

/* FAQ */
.qa { max-width: 760px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa h2 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: 8px; }
.qa p { color: var(--soft); }
.qa p + p { margin-top: 8px; }

/* Call-to-action band */
.cta-band { margin: 40px 0 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 18px; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 0.86rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-top: 18px; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.app .soon { color: var(--muted); font-size: 0.9rem; }

/* Flip cards (cards.js): front = text, back = screenshot of that screen */
.card.flippable { padding: 0; cursor: pointer; perspective: 1200px; background: none; border: 0; border-radius: var(--radius); }
.card.flippable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card.flippable .flip { display: grid; height: 100%; transition: transform 0.5s ease; transform-style: preserve-3d; }
.card.flippable .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; min-height: 380px; }
.card.flippable:hover .face { border-color: rgba(255,255,255,0.22); }
.card.flippable .back { transform: rotateY(180deg); padding: 12px; align-items: center; justify-content: center; background: var(--surface-2); }
.card.flipped .flip { transform: rotateY(180deg); }
.card.flippable .back img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; border-radius: 8px; }
/* Arena-computer screens are wide: two cards across on computers so they are readable */
@media (min-width: 980px) { .grid.four.wide-shots { grid-template-columns: repeat(2, 1fr); } }
.card .soon { display: none; color: var(--muted); text-align: center; }
.card.no-shot .back img { display: none; }
.card.no-shot .soon { display: block; }
@media (prefers-reduced-motion: reduce) { .card.flippable .flip { transition: none; } }
.hero-ctas { justify-content: center; margin-top: 26px; }
.hero .switch { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.hero .switch a { color: var(--soft); }
.app img.icon { border-radius: 12px; }
