/*
Theme Name:   Top Answers
Theme URI:    https://topanswers.app
Description:  The sales site for the Top Answers party game. Pairs with the Top Answers Store plugin for the Buy button, price and download.
Version:      1.0.0
Author:       The Meier Co
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  topanswers
*/

:root {
	--bg: #0b1033;
	--bg2: #10174a;
	--panel: #161f5c;
	--line: rgba(170, 185, 255, .18);
	--ink: #f4f6ff;
	--muted: #b3bbe6;
	--gold: #ffc93c;
	--gold-2: #ff9f1c;
	--red: #ff4d5e;
	--tile: #2350e0;
	--tile-2: #15339e;
	--f-display: 'Bungee', 'Arial Black', sans-serif;
	--f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--r: 18px;
	--wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 18px/1.6 var(--f-body);
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #ffe08a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--f-head); font-weight: 800; letter-spacing: .01em; }
h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; }
p { margin: 0 0 1em; }

.ta-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .ta-wrap { padding: 0 28px; } }
.ta-narrow { max-width: 780px; }
.ta-center { text-align: center; }
.ta-muted { color: var(--muted); }
.ta-small { font-size: .9rem; }
.ta-ic { width: 28px; height: 28px; flex: none; }

.ta-skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #14112e; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.ta-skip:focus { left: 8px; }

/* ---- Header ---- */
.ta-top { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 51, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ta-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.ta-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.ta-brand:hover { color: var(--ink); }
.ta-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: #14112e; font: 400 15px/1 var(--f-display); }
.ta-brand-name { font: 400 1.15rem/1 var(--f-display); letter-spacing: .02em; }
.ta-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 1rem; }
.ta-nav a { color: var(--ink); text-decoration: none; }
.ta-nav a:hover { color: var(--gold); }
.ta-nav .ta-nav-buy { background: var(--gold); color: #14112e; padding: .45em 1em; border-radius: 999px; }
.ta-nav .ta-nav-buy:hover { color: #14112e; filter: brightness(1.08); }
@media (max-width: 760px) { .ta-nav a:not(.ta-nav-buy):not(.ta-nav-login) { display: none; } .ta-nav { gap: 14px; } .ta-brand-name { font-size: 1rem; } }

/* ---- Buttons (the store plugin's .tas-btn too) ---- */
.tas-btn, .ta-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: .7em 1.5em; border-radius: 999px;
	font: 700 1.05rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; border: 0;
}
.tas-btn { background: linear-gradient(180deg, #ffd768, var(--gold)); color: #14112e; box-shadow: 0 6px 24px rgba(255, 201, 60, .28); }
.tas-btn:hover { color: #14112e; filter: brightness(1.06); }
.ta-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.ta-btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.ta-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }
.ta-cta-center { justify-content: center; }

/* ---- Hero ---- */
.ta-hero { position: relative; padding: 56px 0 64px; background:
	radial-gradient(900px 500px at 85% 10%, rgba(35, 80, 224, .45), transparent 60%),
	radial-gradient(700px 400px at 0% 100%, rgba(255, 159, 28, .14), transparent 60%); }
.ta-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ta-hero-in { grid-template-columns: 1.05fr 1fr; } .ta-hero { padding: 84px 0 96px; } }
.ta-kicker { font: 700 .85rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.ta-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
.ta-lead { font-size: 1.2rem; color: #dfe4ff; max-width: 34em; }

/* The demo board: our own look, not the TV show's. */
.ta-demo { margin: 0; }
.ta-tv { padding: 14px; border-radius: 26px; background: linear-gradient(160deg, #2b3270, #11163f); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ta-board { border-radius: 16px; padding: 18px; background: radial-gradient(120% 90% at 50% 0%, #1b2a86, #070b2a); }
.ta-board-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ta-team { font: 700 .95rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ta-team b { display: block; font: 400 1.6rem/1.1 var(--f-display); color: var(--ink); }
.ta-team:last-child { text-align: right; }
.ta-bank { font: 400 2.2rem/1 var(--f-display); color: #14112e; background: linear-gradient(180deg, #ffe08a, var(--gold)); padding: .2em .6em; border-radius: 12px; }
.ta-q { text-align: center; font: 700 1.05rem/1.3 var(--f-head); letter-spacing: .02em; margin: 0 0 12px; color: #fff; }
.ta-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ta-tile { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px;
	background: linear-gradient(180deg, var(--tile), var(--tile-2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font: 700 1.15rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.ta-tile .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--gold); font: 400 .95rem/1 var(--f-display); }
.ta-tile .a, .ta-tile .p { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.ta-tile .p { font: 400 1.2rem/1 var(--f-display); color: var(--gold); }
.ta-tile.on { background: linear-gradient(180deg, #3a69ff, #1b3fbf); }
.ta-tile.on .a, .ta-tile.on .p { opacity: 1; transform: none; }
.ta-strikes { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ta-strikes i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font: 400 1.3rem/1 var(--f-display); font-style: normal; color: rgba(255, 77, 94, .25); box-shadow: inset 0 0 0 2px rgba(255, 77, 94, .25); }
.ta-strikes i.on { color: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 0 14px rgba(255, 77, 94, .5); }
.ta-demo figcaption { text-align: center; margin-top: 12px; }

/* ---- Sections ---- */
.ta-sec { padding: 72px 0; }
.ta-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.ta-h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-align: center; margin-bottom: 1em; }

.ta-steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 820px) { .ta-steps3 { grid-template-columns: repeat(3, 1fr); } }
.ta-steps3 li { position: relative; padding: 28px 24px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); counter-increment: s; }
.ta-steps3 li::before { content: counter(s); position: absolute; top: 20px; right: 22px; font: 400 2.2rem/1 var(--f-display); color: rgba(255, 201, 60, .22); }
.ta-steps3 .ta-ic, .ta-card .ta-ic { color: var(--gold); margin-bottom: 12px; }
.ta-steps3 p, .ta-card p { color: var(--muted); margin: 0; }

.ta-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ta-grid { grid-template-columns: repeat(4, 1fr); } }
.ta-card { padding: 24px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }

/* ---- Pricing ---- */
.ta-price { max-width: 520px; margin: 0 auto; padding: 36px 28px 30px; border-radius: 24px; text-align: center;
	background: linear-gradient(180deg, #1d2770, #121955); border: 1px solid rgba(255, 201, 60, .45); box-shadow: 0 24px 70px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 201, 60, .06); }
.ta-amount { font: 400 clamp(3rem, 9vw, 4.2rem)/1 var(--f-display); color: var(--gold); margin: .1em 0 .15em; }
.ta-checks { list-style: none; margin: 1.4em auto 1.6em; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 360px; }
.ta-checks li { display: flex; gap: 10px; align-items: flex-start; }
.ta-checks .ta-ic { color: var(--gold); width: 22px; height: 22px; margin-top: 3px; }
.ta-price .tas-buy { margin: 0 0 .8em; }
.ta-price .tas-btn { width: 100%; min-height: 58px; font-size: 1.15rem; }

/* ---- FAQ ---- */
.ta-faq { display: grid; gap: 10px; }
.ta-faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ta-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.ta-faq summary::-webkit-details-marker { display: none; }
.ta-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--f-display); color: var(--gold); }
.ta-faq details[open] summary::after { content: '\2212'; }
.ta-faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---- Inner pages, store boxes ---- */
.ta-page { padding: 56px 16px 72px; }
.ta-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.ta-prose { font-size: 1.05rem; }
.ta-prose h2 { font-size: 1.8rem; margin-top: 1.4em; }
.ta-prose input, .ta-prose textarea { color: var(--ink); background: #0a0f30; }
.ta-prose ul, .ta-prose ol { padding-left: 1.3em; }
.tas-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tas-license h2 { color: var(--gold); }
.tas-key { background: #070b26 !important; color: #e8ecff !important; border-color: var(--line) !important; }
.ta-404 { text-align: center; }
.ta-x { display: inline-grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 16px; font: 400 3.4rem/1 var(--f-display); color: var(--red); box-shadow: inset 0 0 0 4px var(--red), 0 0 30px rgba(255, 77, 94, .45); }

/* ---- Footer ---- */
.ta-foot { border-top: 1px solid var(--line); padding: 40px 0 28px; background: #080c28; }
.ta-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.ta-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ta-foot-links a { color: var(--muted); text-decoration: none; }
.ta-foot-links a:hover { color: var(--gold); }
.ta-fine { font-size: .8rem; color: #7f88b8; margin: 22px 0 0; }

/* ---- The game page ---- */
.ta-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ta-game { padding-top: 20px; }
.ta-game .ta-prose { font-size: 1rem; }
