/* wizkidproductions.app — Solvable Solitaire. Brand: navy #14275E, blue #1E4FB8, sky #3E86F0, gold #FFD66B / #F5A623. */
:root {
  --navy: #14275E; --blue: #1E4FB8; --sky: #3E86F0; --gold: #FFD66B; --amber: #F5A623;
  --ink: #12203F; --ink2: #4A5878; --line: #E2E8F5; --bg: #F7F9FF; --card: #FFFFFF; --wash: #EEF3FF;
  --radius: 18px; --shadow: 0 10px 30px rgba(20, 39, 94, .10);
  --font: ui-rounded, 'SF Pro Rounded', 'Avenir Next', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #EAF0FF; --ink2: #A9B6D6; --line: #26365F; --bg: #0C1736; --card: #13224A; --wash: #182A57; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 39, 94, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: #DCE6FF; text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: #fff; }
.get { background: linear-gradient(#FFD35C, var(--amber)); color: #3A2600; font-weight: 800; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
@media (max-width: 760px) { .top nav { display: none; } .get { margin-left: auto; } }

/* store button (swap for Apple's official badge: see web/README.md) */
.store { display: inline-flex; flex-direction: column; justify-content: center; background: #000; color: #fff; text-decoration: none; border-radius: 12px; padding: 8px 22px 9px; min-height: 56px; border: 1px solid rgba(255,255,255,.35); }
.store-small { font-size: 12px; line-height: 1.1; opacity: .9; } .store-big { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.store.small { min-height: 46px; padding: 6px 16px; } .store.small .store-big { font-size: 18px; }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: #14275E url('/images/hero-1280.webp') center/cover no-repeat; }
@media (min-width: 1100px) { .hero { background-image: url('/images/hero-2400.webp'); } }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 35% 50%, rgba(12, 28, 80, .82), rgba(12, 28, 80, .35)); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 64px; }
.hero-logo { width: 220px; margin: 0 0 10px -10px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); margin: 0 0 14px; font-weight: 900; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #DCE6FF; max-width: 34em; }
.game-page .lede, .prose .lede { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 14px; }
.ghost { color: #fff; font-weight: 700; text-decoration: none; padding: 14px 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); }
.ghost:hover { background: rgba(255,255,255,.12); }
.fine { font-size: 14px; color: #BFD0F5; margin: 10px 0 0; }
.hero-phone img { width: min(360px, 100%); margin-inline: auto; border-radius: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.9); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; text-align: center; padding: 36px 0 44px; } .hero-logo { margin-inline: auto; width: 180px; } .cta-row { justify-content: center; } .lede { margin-inline: auto; } .hero-phone img { width: 260px; } }

/* sections */
section { padding: 8px 0; }
.sec { font-size: clamp(28px, 3.6vw, 40px); text-align: center; margin: 56px 0 10px; }
.sec.left { text-align: left; margin-top: 0; }
.sub { text-align: center; color: var(--ink2); max-width: 40em; margin: 0 auto 28px; }
.band { background: var(--wash); padding: 8px 0 48px; margin-top: 48px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -36px; position: relative; }
.promise { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.promise h2 { font-size: 22px; margin: 8px 0 6px; } .promise p { margin: 0; color: var(--ink2); }
.pi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: var(--wash); }
@media (prefers-color-scheme: dark) { .pi { color: var(--gold); } }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; margin-top: 20px; } }

.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 18px; }
.shots figure { margin: 0; flex: 0 0 230px; scroll-snap-align: start; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); }
.shots figcaption { text-align: center; font-size: 14px; color: var(--ink2); margin-top: 8px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; margin: 20px 0 10px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gcard img { border-radius: 12px; aspect-ratio: 280 / 300; object-fit: cover; object-position: top; width: 100%; }
.gname { font-weight: 800; margin-top: 10px; font-size: 17px; } .gblurb { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.games.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 48px; }
.two p { font-size: 18px; color: var(--ink2); }
.tilt { width: 260px; margin-inline: auto; border-radius: 26px; box-shadow: var(--shadow); transform: rotate(3deg); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; } .feature p { margin: 0; color: var(--ink2); font-size: 15.5px; }

.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--wash); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.compare tbody th { font-weight: 700; } .compare td.us { font-weight: 700; color: #1C8A4C; }
@media (prefers-color-scheme: dark) { .compare td.us { color: #5FD996; } }
.compare tr:last-child > * { border-bottom: 0; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--sky); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 14px; color: var(--ink2); }
.more { text-align: center; } .more a { font-weight: 700; }

.final { text-align: center; color: #fff; margin-top: 64px; padding: 56px 0; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.final h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; } .final p { color: #DCE6FF; margin: 0 0 22px; }

/* inner pages */
.pagehead { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; padding: 40px 0 34px; }
.pagehead h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 6px 0 8px; }
.pagehead p { margin: 0; color: #DCE6FF; font-size: 18px; } .pagehead a { color: var(--gold); }
.crumbs { font-size: 14px; color: #BFD0F5; } .crumbs a { color: #DCE6FF; text-decoration: none; }
.game-page { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-top: 34px; }
.game-page h2 { font-size: 26px; margin: 34px 0 10px; }
.game-side img { position: sticky; top: 84px; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .game-page { grid-template-columns: 1fr; } .game-side { order: -1; } .game-side img { position: static; width: 180px; margin-inline: auto; } }
.aka { color: var(--ink2); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.facts div { background: var(--wash); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); } .facts dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.rules li, .tips li { margin: 8px 0; }
.play-box { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: var(--wash); border-radius: var(--radius); padding: 22px 24px; margin: 34px 0; }
.play-box h2 { margin: 0 0 4px; font-size: 22px; } .play-box p { margin: 0; color: var(--ink2); }
@media (max-width: 600px) { .play-box { flex-direction: column; align-items: flex-start; } }
.prose { padding-top: 28px; padding-bottom: 20px; } .prose h2 { margin-top: 32px; }
.legal-doc { font-size: 16px; } .legal-doc h2 { font-size: 22px; } .legal-doc h3 { font-size: 18px; } .last-updated { color: var(--ink2); font-size: 14px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h2 { margin-top: 0; } .big { font-size: 20px; font-weight: 700; word-break: break-all; }

/* challenge landing */
.challenge { text-align: center; color: #fff; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(120% 80% at 50% 0%, var(--sky), var(--blue) 45%, var(--navy)); padding: 40px 0; }
.challenge img { width: 220px; margin: 0 auto 6px; }
.challenge h1 { font-size: 34px; margin: 8px 0; }
.challenge .pill { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.challenge .goal { color: var(--gold); font-weight: 700; font-size: 19px; min-height: 1.4em; }

/* footer */
.foot { background: #0B1636; color: #BFD0F5; margin-top: 0; padding: 44px 0 20px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.foot a { color: #BFD0F5; text-decoration: none; display: block; margin: 5px 0; } .foot a:hover { color: #fff; }
.foot .brand { display: inline-flex; margin: 0 0 6px; } .foot .store { display: inline-flex; margin-top: 8px; color: #fff; }
.legal { border-top: 1px solid #1E2C55; margin-top: 30px; padding-top: 16px; font-size: 13px; } .legal a { display: inline; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
