/* playsundown.com website. Same look as the TV home: near-black stage, white
   type, the half-sun in sunset orange, game colour only from the key art.
   Anton for headings, Archivo for everything else. No gradients. */

@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); }

:root {
  --bg: #0B0B10;
  --bg-2: #13131A;
  --panel: #1A1A24;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #FFFFFF;
  --ink-soft: #C9C9D6;
  --ink-dim: #9A9AAD;
  --sun: #FF8A3D;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font: 'Archivo', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---- wordmark ---- */
.sd-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.sd-sun { width: 36px; height: 21px; fill: var(--sun); margin-top: -3px; flex: none; }
.sd-brand-sm { font-size: 20px; gap: 10px; }
.sd-brand-sm .sd-sun { width: 28px; height: 17px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; transition: transform 0.12s ease, background-color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(2px); }
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: #ECECF2; }
.btn-quiet { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.small-only { display: none !important; }

/* ---- header ---- */
.top { position: relative; z-index: 2; }
.top-row { display: flex; align-items: center; gap: 32px; height: 88px; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--ink-dim); text-decoration: none; font-weight: 700; font-size: 16px; }
.top-nav a:hover { color: #fff; }

/* ---- hero ---- */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { color: var(--ink-dim); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: clamp(56px, 7.4vw, 104px); }
.hero-title em { font-style: normal; color: var(--sun); }
.lede { color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 24px 0 36px; max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--ink-dim); font-size: 15px; font-weight: 700; }
.facts li { display: flex; align-items: center; gap: 22px; }
.facts li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4A4A5C; margin-left: -12px; margin-right: -10px; }

/* The stage: a TV showing key art, a half-sun setting behind it, a phone in front. */
.hero-stage { position: relative; aspect-ratio: 16 / 8.6; }
.sun { position: absolute; left: 3%; right: 3%; bottom: 5%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--sun); }
.horizon { position: absolute; left: 0; right: 0; bottom: 5%; height: 8px; margin-bottom: -4px; border-radius: 4px; background: var(--sun); }
.tv { position: absolute; left: 14%; width: 68%; bottom: calc(5% + 18px); aspect-ratio: 16 / 9; border-radius: 16px; background: #050507; padding: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.tv img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.stand { position: absolute; left: 44%; right: 44%; bottom: 5%; height: 22px; background: #050507; }
.phone { position: absolute; right: 2%; bottom: 0; width: 19%; aspect-ratio: 9 / 18.5; border-radius: 22px; background: #050507; padding: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-screen { height: 100%; border-radius: 16px; background: var(--bg-2); padding: 18% 11% 0; display: flex; flex-direction: column; gap: 8%; container-type: inline-size; }
.ph-label { font-size: 9cqi; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.ph-code { font-family: var(--display); font-size: 30cqi; line-height: 1; letter-spacing: 0.04em; margin-top: -4%; }
.ph-field { font-size: 11cqi; font-weight: 700; color: var(--ink-soft); padding: 10% 9%; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.ph-join { font-size: 11cqi; font-weight: 900; text-align: center; padding: 10% 0; border-radius: 999px; background: #fff; color: var(--bg); }

/* ---- sections ---- */
.section { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(44px, 5.4vw, 72px); }
.section-sub { color: var(--ink-soft); font-size: 19px; margin-top: 16px; max-width: 44em; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step-n { display: block; color: var(--sun); font-size: 40px; margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); }

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 48px; }
.game-art { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--g); }
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.game:hover .game-art img { transform: scale(1.03); }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 22px; color: var(--ink-dim); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.game-meta i { width: 4px; height: 4px; border-radius: 50%; background: #4A4A5C; }
.game-name { font-size: 44px; margin-top: 10px; }
.game-tag { color: var(--ink-soft); margin-top: 10px; }

.soon { display: flex; align-items: center; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.soon-label { color: var(--sun); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; flex: none; }
.soon-list { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.soon-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 700; }
.suggest { margin-left: auto; flex: none; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.suggest:hover { background: rgba(255, 255, 255, 0.14); }
.soon-list img { width: 72px; height: 40px; object-fit: cover; object-position: 100% 50%; border-radius: 8px; opacity: 0.85; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.plan { border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 28px 24px 30px; display: flex; flex-direction: column; }
.plan-pick { box-shadow: inset 0 0 0 2px var(--sun); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); min-height: 28px; }
.flag { font-size: 12px; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: var(--sun); color: var(--bg); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan-price b { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; }
.plan-price span { color: var(--ink-dim); font-weight: 700; }
.badge { align-self: flex-start; margin-top: 14px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 138, 61, 0.14); color: var(--sun); }
.plan-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 16px; }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: #4A4A5C; }
.plans-note { color: var(--ink-dim); font-size: 15px; margin-top: 24px; max-width: 52em; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-dim); font-size: 26px; font-weight: 500; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 24px; max-width: 36em; }
.faq a { color: var(--sun); }

.closer { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; }
.closer-inner { display: flex; flex-direction: column; align-items: center; }
.closer-sun { width: 88px; height: 52px; fill: var(--sun); }
.closer-title { font-size: clamp(44px, 6vw, 84px); line-height: 1; margin: 28px 0 36px; }
.closer-note { color: var(--ink-dim); margin-top: 18px; font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 24px; margin-left: auto; }
.foot-nav a, .foot-copy { color: var(--ink-dim); text-decoration: none; font-size: 15px; font-weight: 700; }
.foot-nav a:hover { color: #fff; }

/* ---- tablet ---- */
@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games .game:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 36px); align-items: start; }
  .games .game:last-child .game-art { grid-row: 1 / span 3; }
  .games .game:last-child .game-meta { margin-top: 0; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; }
  .top-nav { display: none; }
  .top-row .btn { margin-left: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- phone: phones join games rather than host them ---- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .big-only { display: none !important; }
  .small-only { display: flex !important; }
  .top-row { height: 72px; }
  .sd-brand { font-size: 22px; gap: 10px; }
  .sd-sun { width: 30px; height: 18px; }
  .cta-row .btn { flex: 1 1 auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .step-n { font-size: 32px; margin-bottom: 10px; }
  .games, .plans { grid-template-columns: 1fr; margin-top: 36px; }
  .games .game:last-child { display: block; }
  .games .game:last-child .game-meta { margin-top: 22px; }
  .game + .game { margin-top: 20px; }
  .soon { flex-direction: column; align-items: flex-start; gap: 16px; }
  .soon-list { flex-direction: column; }
  .suggest { margin-left: 0; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-nav { margin-left: 0; }
  .closer-note { display: block !important; }
}
p { text-wrap: pretty; }
.display { text-wrap: balance; }
