/* Puzzle Bandits coming-soon page. Official brand palette (app 1.0.9). Mobile-first. */
:root {
  /* Brand palette: exact values */
  --bg: #0B0B0D;          /* background */
  --surface: #141210;     /* cards / surfaces */
  --surface-2: #1C1C21;   /* raised surfaces, inputs, dividers */
  --gold: #D4AF5A;        /* gold main */
  --gold-hi: #E2B857;     /* button highlight */
  --gold-light: #F7E3A1;  /* light gold */
  --gold-deep: #A8812F;   /* deep gold */
  --gold-deeper: #8C6A24; /* deep gold 2 */
  --hairline: #C99A3E;    /* hairline borders */
  --body: #CFC7B6;        /* body text, cream */
  --heading: #F3DFA2;     /* gold-tint headings */
  --muted: #6F6B64;       /* muted */

  --hair: rgba(201, 154, 62, .32);       /* #C99A3E hairline at reduced strength */
  --hair-strong: rgba(201, 154, 62, .6);
  --gg: linear-gradient(135deg, #F7E3A1 0%, #E2B857 34%, #A8812F 68%, #E2B857 100%);
  --gg-text: linear-gradient(180deg, #F7E3A1 0%, #E2B857 45%, #A8812F 100%);
  --radius: 20px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --error: #F0A58F;       /* form errors only (not a brand color) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background:
    radial-gradient(1000px 620px at 78% -160px, rgba(212, 175, 90, .14), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(140, 106, 36, .10), transparent 70%),
    var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.01em; color: var(--heading); text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; background: var(--gg-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hp { left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Header */
.site-header { position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.wordmark { font-family: var(--caps); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--gg-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-cta { color: var(--gold-light); font-weight: 700; font-size: .9rem; text-decoration: none; padding: 8px 14px; border: 1px solid var(--hair-strong); border-radius: 999px; white-space: nowrap; transition: border-color .2s, background .2s; }
.header-cta:hover { border-color: var(--gold); background: rgba(212, 175, 90, .08); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 800 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .15s, filter .2s, box-shadow .2s, background .2s; }
.btn-gold { background: var(--gg); color: var(--bg); box-shadow: 0 10px 30px -12px rgba(226, 184, 87, .7), inset 0 1px 0 rgba(247, 227, 161, .6); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { color: var(--gold-light); border: 1px solid var(--hair-strong); background: rgba(20, 18, 16, .7); }
.btn-ghost:hover { border-color: var(--gold); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 20px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 7px 15px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(20, 18, 16, .8); color: var(--gold); font: 600 .74rem/1.2 var(--caps); letter-spacing: .16em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 0 rgba(226, 184, 87, .7); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(226, 184, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 184, 87, 0); } }
.hero h1 { font-size: clamp(2.5rem, 10.5vw, 4.6rem); line-height: 1.04; max-width: 13ch; }
.hero h1 em { display: inline-block; }
.lead { margin-top: 20px; color: var(--body); font-size: 1.08rem; max-width: 36rem; }
.lead strong { color: var(--heading); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--body); opacity: .8; font-weight: 600; font-size: .95rem; }
.hero-note svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; flex: none; }

/* Phone frames (app 1.0.9 screens are 840x1800) */
.phone { position: relative; aspect-ratio: 840 / 1800; border-radius: 15% / 7%; padding: 3.2%; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--gold-deeper), inset 0 0 0 4px var(--bg), 0 40px 70px -28px rgba(0, 0, 0, .95), 0 0 50px -18px rgba(212, 175, 90, .3); }
.phone picture { display: block; height: 100%; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.5% / 5.8%; background: var(--bg); }
.hero-phones { position: relative; width: min(100%, 340px); height: 450px; margin: 0 auto; }
.hero-phones .phone { position: absolute; width: 196px; }
.phone-front { left: 50%; top: 0; transform: translateX(-76%) rotate(-5deg); z-index: 2; }
.phone-back { left: 50%; top: 30px; transform: translateX(-14%) rotate(6deg); }
.phone-back img { filter: brightness(.85); }

/* Sections */
.kicker { font: 600 .78rem/1.2 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { font-size: clamp(1.9rem, 7vw, 2.75rem); }
.how, .badges, .privacy, .bandit { padding: 64px 0; border-top: 1px solid var(--surface-2); }

.how { text-align: center; background: linear-gradient(180deg, rgba(20, 18, 16, .9), rgba(11, 11, 13, 0)); }
.how .section-title { max-width: 22ch; margin: 0 auto 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 22px 24px; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--gg); opacity: .85; }
.step-num { position: absolute; right: 18px; top: 8px; font: 700 3.4rem/1 var(--caps); color: rgba(212, 175, 90, .14); }
.step-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(247, 227, 161, .2), rgba(140, 106, 36, .14)); border: 1px solid var(--hair-strong); margin-bottom: 16px; }
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--body); font-size: 1rem; }
.step p strong { color: var(--heading); }

.badges-grid { display: grid; gap: 40px; align-items: center; }
.badges-phone { width: 230px; margin: 0 auto; }
.badges-phone .phone { transform: rotate(-3deg); }
.badges-copy .section-title { margin-bottom: 16px; }
.badges-copy > p { color: var(--body); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; color: var(--heading); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hair-strong); background: rgba(212, 175, 90, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7E3A1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ladder { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.ladder span { font: 600 .74rem/1.2 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hair-strong); background: var(--surface); }
.ladder i { flex: 1; min-width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold-deeper), var(--gold-hi), var(--gold-deeper)); }

.privacy { text-align: center; }
.privacy .section-title { margin-bottom: 14px; }
.privacy-intro { max-width: 40rem; margin: 0 auto; }
.privacy-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.privacy-cards li { position: relative; padding: 18px 20px 18px 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--surface-2); color: var(--heading); font-weight: 600; }
.privacy-cards li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hair-strong); background: rgba(212, 175, 90, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7E3A1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.bandit-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 36px 24px; border-radius: 28px; border: 1px solid var(--hair); background: radial-gradient(520px 300px at 50% 0, rgba(212, 175, 90, .13), transparent 72%), var(--surface); }
.bandit-mark { width: 170px; height: 170px; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .75)) drop-shadow(0 0 28px rgba(212, 175, 90, .2)); }
.bandit-copy .section-title { margin-bottom: 14px; }
.bandit-copy > p:last-child { color: var(--body); max-width: 40rem; }

/* Join */
.join { padding: 24px 0 80px; scroll-margin-top: 12px; }
.join-card { max-width: 720px; margin: 0 auto; padding: 36px 22px 30px; border-radius: 28px; border: 1px solid var(--hair-strong); background: radial-gradient(460px 220px at 50% 0, rgba(212, 175, 90, .15), transparent 75%), var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); text-align: center; }
.join-card h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 12px; }
.join-intro { color: var(--body); margin: 0 auto 26px; max-width: 34rem; }
.join-intro strong { color: var(--gold-light); }
.signup { display: grid; gap: 16px; text-align: left; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: .92rem; color: var(--heading); }
.field .opt { color: var(--body); opacity: .7; font-weight: 500; }
.signup input, .signup select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--surface-2); background: var(--bg); color: var(--body); font: 600 1rem var(--sans); transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 0 0 1px rgba(201, 154, 62, .12); }
.signup select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.signup select option { background: var(--surface); color: var(--body); }
.signup input::placeholder { color: var(--muted); }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 90, .25); }
.signup [aria-invalid="true"] { border-color: var(--error); }
.signup .btn { margin-top: 4px; min-height: 56px; font-size: 1.05rem; }
.form-status { font-weight: 700; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--gold-light); }
.form-status.err, .nojs-msg.err { color: var(--error); }
.privacy-note { color: var(--body); opacity: .75; font-size: .88rem; text-align: center; }
.privacy-note svg { display: inline-block; width: 15px; height: 15px; margin: 0 3px -2px 0; fill: none; stroke: var(--gold); stroke-width: 1.8; }

.nojs-msg { display: none; margin: 0 0 18px; font-weight: 700; }
.nojs-msg:target { display: block; }
.thanks { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px; border-radius: 20px; border: 1px solid var(--hair); background: rgba(11, 11, 13, .6); outline: none; }
.thanks img { width: 72px; height: 72px; }
.thanks-title { font-size: 1.9rem; background: var(--gg-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.thanks p { color: var(--body); max-width: 30rem; }
.thanks:target, .is-joined .thanks { display: flex; }
.thanks:target ~ .signup, .is-joined .signup, .thanks:target ~ .nojs-msg, .is-joined .nojs-msg { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--surface-2); padding: 36px 0 40px; text-align: center; color: var(--body); font-size: .92rem; background: var(--bg); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-tag { margin: 8px 0 14px; font: italic 500 1.05rem var(--serif); color: var(--heading); }
.site-footer .copy { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.site-footer .sep { display: none; }

/* Phones: short header button */
.cta-long { display: none; }
@media (min-width: 520px) { .cta-long { display: inline; } .wordmark { font-size: 1.2rem; } }

/* Small phones */
@media (max-width: 374px) {
  .wordmark { font-size: .9rem; letter-spacing: .05em; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .header-cta { font-size: .82rem; padding: 7px 11px; }
}

/* Tablet */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 28px 22px; }
  .privacy-cards { grid-template-columns: repeat(3, 1fr); }
  .signup { grid-template-columns: 1fr 1fr; align-items: end; }
  .signup .btn, .signup .form-status, .signup .privacy-note { grid-column: 1 / -1; }
  .join-card { padding: 48px 44px 36px; }
  .bandit-card { flex-direction: row; text-align: left; padding: 40px 44px; gap: 36px; }
  .bandit-mark { width: 200px; height: 200px; flex: none; }
  .site-footer .sep { display: inline; }
  .site-footer .br-m { display: none; }
}

/* Desktop */
@media (min-width: 960px) {
  .hero { padding: 40px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 32px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .hero-phones { width: 460px; height: 600px; }
  .hero-phones .phone { width: 262px; }
  .how, .badges, .privacy, .bandit { padding: 96px 0; }
  .how .section-title { margin-bottom: 48px; }
  .step { padding: 32px 28px; }
  .badges-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .badges-phone { width: 270px; }
  .badges-copy .section-title { max-width: 16ch; }
  .bandit-card { max-width: 920px; margin: 0 auto; }
  .join { padding: 32px 0 110px; }
}

/* Legal pages (privacy, terms) + footer links. Appended; homepage unaffected except footer links. */
.footer-links { margin: 10px 0 0; font-size: .88rem; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-light); text-decoration: underline; }
.legal { padding: 48px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.15; margin: 6px 0 8px; background: var(--gg-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-meta { color: var(--muted); font-size: .95rem; margin: 0 0 28px; }
.legal-toc { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); padding: 18px 22px; margin-bottom: 36px; }
.legal-toc p { font-family: var(--caps); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; font-size: .95rem; }
.legal-toc li { margin: 0 0 6px; break-inside: avoid; }
.legal-toc a, .legal-sec a { color: var(--gold); }
.legal-sec { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 26px; }
.legal-sec h2 { font-family: var(--serif); color: var(--heading); font-size: 1.45rem; line-height: 1.3; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--surface-2); }
.legal-sec p, .legal-sec li { line-height: 1.7; }
.legal-sec ul { padding-left: 1.2em; }
.legal-sec li { margin: 6px 0; }
.legal-sec li::marker { color: var(--gold); }
.legal-sec strong { color: var(--gold-light); font-weight: 700; }
.legal-email { color: var(--gold-light); font-weight: 600; white-space: nowrap; }

/* Pieces + FAQ (preview) */
.pieces, .faq { padding: 64px 0; border-top: 1px solid var(--surface-2); text-align: center; }
.pieces .section-title, .faq .section-title { margin-bottom: 14px; }
.step p + p { margin-top: 10px; }
.privacy-cards li strong { color: var(--gold-light); }
.faq-list { max-width: 44rem; margin: 32px auto 0; display: grid; gap: 12px; text-align: left; }
.faq-list details { background: var(--surface); border: 1px solid var(--surface-2); border-radius: 16px; padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 18px 0; color: var(--heading); font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--gold); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--body); padding-bottom: 18px; }
@media (min-width: 960px) { .pieces .privacy-cards { grid-template-columns: repeat(2, 1fr); } }

.pieces-main { display: grid; gap: 16px; margin: 32px auto 0; max-width: 52rem; text-align: left; }
.piece-card { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 22px 24px; overflow: hidden; }
.piece-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--gg); opacity: .85; }
.piece-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-strong); background: rgba(212, 175, 90, .12); font: 700 1.3rem/1 var(--caps); color: var(--gold-light); margin-bottom: 14px; }
.piece-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.piece-card p { color: var(--body); }
.tips-title { font: 600 .82rem/1.2 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 40px 0 16px; }
.tips { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 52rem; text-align: left; }
.tips li { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--surface-2); color: var(--body); font-size: .95rem; }
.tips li strong { color: var(--heading); }
@media (min-width: 760px) { .pieces-main, .tips { grid-template-columns: repeat(2, 1fr); } }
