/*
 * Daily Chess Competition's marketing website: plain HTML and CSS, laid out like the sibling apps'
 * pages on stealthlaunch.com (hero, What you get, How it works, Plus, Screenshots, footer).
 * Design rules: no single-side accent borders or stripes, no hard square hover outlines. Cards
 * use full soft borders, rounded corners and soft shadows. Legible from 320px wide.
 */
:root {
  --cream: #fff8ee;
  --cream-deep: #f7ebda;
  --paper: #fffdf9;
  --teal: #085460;
  --teal-dark: #053c45;
  --teal-soft: #e3f1f2;
  --ink: #16302c;
  --ink-soft: #34504b;
  --ink-muted: #667f7a;
  --gold: #f4d35e;
  --gold-deep: #b9821f;
  --gold-soft: #fcf1cf;
  --line: #eadfcf;
  --radius: 22px;
  --shadow: 0 6px 22px rgba(90, 62, 27, 0.1);
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px rgba(8, 84, 96, 0.45); border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 238, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--teal-soft); color: var(--teal); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1rem; transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold-deep); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid rgba(8, 84, 96, 0.25); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; min-width: 168px; }
.btn-store small { font-size: 0.72rem; font-weight: 700; opacity: 0.8; }

/* Hero */
.product-hero { padding: 48px 0 56px; }
.product-hero-grid { display: grid; gap: 36px; align-items: center; }
.status-pill { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); font-weight: 800; font-size: 0.9rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 1rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); font-weight: 700; }
.hero-art { display: flex; justify-content: center; }
.phone-frame { background: #fff; border-radius: 34px; padding: 10px; box-shadow: 0 18px 50px rgba(8, 60, 69, 0.18); border: 1px solid var(--line); max-width: 300px; width: 100%; }
.phone-frame img { border-radius: 26px; width: 100%; height: auto; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.eyebrow { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--teal); margin-bottom: 0.5rem; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 30px; line-height: 1; }
.tint-pawn { background: #e1f4e9; } .tint-knight { background: #e4f0fc; } .tint-bishop { background: #f1e8fa; }
.tint-rook { background: #fcebe4; } .tint-queen { background: #fbe6ee; } .tint-king { background: var(--gold-soft); }
.tint-teal { background: var(--teal-soft); }

/* Plus callout */
.callout { background: var(--teal); color: #fff; border-radius: 28px; padding: 28px 24px; box-shadow: 0 18px 40px rgba(8, 60, 69, 0.2); }
.callout h3 { color: var(--gold); font-size: 1.5rem; }
.callout p { color: #e3f1f2; }
.callout .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.callout .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 1rem; }
.price { background: rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 10px 16px; font-weight: 800; }
.price strong { color: var(--gold); font-family: var(--display); font-size: 1.3rem; }

/* Screenshots */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); justify-items: center; }
.gallery figure { margin: 0; width: 100%; max-width: 260px; }
.gallery figcaption { text-align: center; font-weight: 800; color: var(--ink-soft); margin-top: 10px; font-size: 0.95rem; }

/* Get the app */
.get-app { text-align: center; }
.get-app .btn-row { justify-content: center; }

/* Article pages (support, privacy) */
.article { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
#delete-data { scroll-margin-top: 80px; }
.article h2 { font-size: 1.4rem; margin-top: 1.8em; }
.article ul { padding-inline-start: 1.2em; }
.article li { margin-bottom: 0.4em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* Challenge-link landing page (server/src/web.ts) */
.challenge { max-width: 560px; padding-top: 40px; padding-bottom: 56px; }
.challenge-card { text-align: center; }
.challenge-card .btn-row { justify-content: center; }
.challenge-card h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

/* Footer */
.site-footer { background: var(--teal-dark); color: #cfe5e7; padding: 36px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (min-width: 720px) {
  .product-hero { padding: 72px 0 80px; }
  .product-hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .callout { padding: 36px 40px; }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  body { font-size: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .brand span { font-size: 1rem; }
  .btn { width: 100%; }
  .btn-store { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
