/* solvethebee.com — Dark Hive theme, lifted directly from
   SpellingBeeWord/Views/Theme.swift (Theme.dark). Keep these two files
   in sync if the app palette ever changes. */
:root {
  --bg: #121212;
  --card: #1c1c20;
  --hex: #2a2a2e;
  --accent: #ffb300;
  --accent-text: #121212;
  --text: #f5f5f5;
  --muted: #999999;
  --cream: #faf6ec;
  --green: #6aaa64;
  --yellow: #c9b458;
  --gray: #57575e;
  --tile: #e8d8b0;
  --max: 1080px;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255, 179, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(255, 179, 0, 0.05), transparent 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Top nav ---------- */
nav.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
}
nav.site-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none; letter-spacing: 0.01em;
}
nav.site-nav .brand .cell {
  width: 28px; height: 28px; flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text); font-size: 0.85rem; font-weight: 800;
}
nav.site-nav .links { display: flex; gap: 22px; font-size: 0.95rem; }
nav.site-nav .links a { color: var(--muted); text-decoration: none; }
nav.site-nav .links a:hover { color: var(--accent); }

@media (max-width: 480px) {
  nav.site-nav { flex-wrap: wrap; justify-content: center; gap: 12px; padding: 16px 16px; }
  nav.site-nav .links { gap: 14px; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
header.hero {
  text-align: center;
  padding: 56px 24px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
header.hero .cells {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 22px;
}
header.hero .cells span {
  width: 20px; height: 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--hex);
}
header.hero .cells span.lit { background: var(--accent); }

header.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
header.hero h1 .amber { color: var(--accent); }

header.hero p.tagline {
  color: var(--muted);
  margin: 16px auto 0;
  font-size: 1.2rem;
  max-width: 640px;
}

.badge-row { margin-top: 32px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.badge-row a.appstore img { height: 52px; width: auto; border-radius: 10px; }
.mini-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* ---------- Hero screenshots strip ---------- */
.hero-shots {
  display: flex; gap: 22px; justify-content: center; align-items: flex-end;
  flex-wrap: wrap; margin: 48px 0 8px;
}
.hero-shots img {
  width: 220px; max-width: 42vw; border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-shots img.tall { width: 240px; }

/* ---------- Main / sections ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 24px; }

.section-intro { text-align: center; max-width: 620px; margin: 72px auto 32px; }
.section-intro h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-intro p { color: var(--muted); }

.solvers { display: grid; gap: 18px; grid-template-columns: 1fr; }

section.solver {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}
section.solver .dot {
  width: 56px; height: 56px; flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}
section.solver .copy h3 { font-size: 1.35rem; margin-bottom: 6px; }
section.solver .copy p { color: var(--muted); max-width: 46ch; }
section.solver img.solver-shot {
  width: 130px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 720px) {
  section.solver { grid-template-columns: auto 1fr; }
  section.solver img.solver-shot { grid-column: 1 / -1; justify-self: center; width: 160px; margin-top: 6px; }
}

/* ---------- Privacy callout strip on landing ---------- */
.privacy-strip {
  margin: 20px 0 60px;
  background: linear-gradient(135deg, rgba(255,179,0,0.10), rgba(255,179,0,0.02));
  border: 1px solid rgba(255,179,0,0.25);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.privacy-strip .dot {
  width: 56px; height: 56px; flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--hex); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.privacy-strip h3 { font-size: 1.2rem; margin-bottom: 6px; }
.privacy-strip p { color: var(--muted); max-width: 60ch; }

.ipad-shot { text-align: center; margin: 12px 0 40px; }
.ipad-shot img { width: 480px; max-width: 92vw; margin: 0 auto; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04); }
.ipad-shot p { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer.site {
  text-align: center; color: var(--muted);
  padding: 40px 24px 56px; font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
}
footer.site .links { margin-bottom: 10px; }
footer.site .links a { color: var(--accent); text-decoration: none; margin: 0 10px; }
footer.site .links a:hover { text-decoration: underline; }

/* ---------- Content pages (support/privacy/terms) ---------- */
article.page {
  max-width: 680px; margin: 0 auto; padding: 8px 24px 64px;
}
article.page h1 { font-size: 2.1rem; margin-bottom: 6px; }
article.page .dek { color: var(--muted); margin-bottom: 36px; }
article.page h2 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--accent); }
article.page p, article.page li { color: #d8d8d8; margin-bottom: 14px; }
article.page ul { padding-left: 22px; }
article.page strong { color: var(--text); }
article.page .back { display: inline-block; margin-top: 24px; color: var(--muted); text-decoration: none; }
article.page .back:hover { color: var(--accent); }

.faq-item {
  background: var(--card); border-radius: 14px; padding: 22px 24px;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.05);
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { margin-bottom: 0; }

.contact-card {
  background: linear-gradient(135deg, rgba(255,179,0,0.12), rgba(255,179,0,0.02));
  border: 1px solid rgba(255,179,0,0.3);
  border-radius: var(--radius);
  padding: 26px 28px; margin: 8px 0 36px;
}
.contact-card a { font-size: 1.15rem; font-weight: 700; }
.contact-card p { color: var(--muted); margin-top: 6px; margin-bottom: 0; }
