/* Talking Bloop marketing site: mobile-first, no frameworks, no external requests */
:root {
  --navy: #03192C;
  --navy-2: #0A2A44;
  --navy-3: #0D3350;
  --aqua: #29D3E8;
  --aqua-dark: #13A9BD;
  --text: #F4FBFD;
  --muted: #B9D6E0;
  --line: #15405E;
  --radius: 20px;
  --max: 1120px;
  --focus: #F4FBFD;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(41, 211, 232, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #041F36 100%);
  background-color: var(--navy);
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--aqua);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(3, 25, 44, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand img { width: 38px; height: 38px; }
.brand:hover { color: var(--aqua); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--navy-2); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--aqua); }

/* Typography */
h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin-top: 0; font-weight: 800; }
h2 { font-size: 1.55rem; margin-top: 56px; font-weight: 800; }
h3 { font-size: 1.15rem; margin-top: 20px; color: var(--aqua); font-weight: 700; }
p { margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
main { padding: 28px 0 64px; }

/* Section eyebrow label, used above sections for rhythm */
main section + section { margin-top: 8px; }

ul.feature-list, ol.steps {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}
ul.feature-list li, ol.steps li { margin-bottom: 8px; }
ul.feature-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
ul.feature-list li {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px 12px 44px;
  position: relative;
  margin: 0;
}
ul.feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(41, 211, 232, 0.18);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding: 40px 0 24px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--navy);
  background: var(--aqua);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.5rem; }
.hero h1 .accent { color: var(--aqua); }
.hero-art {
  display: flex;
  justify-content: center;
}

/* Phone mockup around screenshots */
.phone {
  width: min(260px, 70vw);
  aspect-ratio: 9 / 20;
  height: auto;
  object-fit: cover;
  border-radius: 34px;
  border: 8px solid #0B2238;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background: var(--navy);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--aqua);
  background: var(--aqua);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 22px rgba(41, 211, 232, 0.22);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover {
  color: var(--navy);
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn-outline:hover { background: var(--navy-2); color: var(--text); border-color: var(--aqua); }
.btn-disabled,
.btn:disabled {
  background: #14293A;
  border: 2px dashed #2F5268;
  color: #A9C4D0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-disabled:hover,
.btn:disabled:hover { background: #14293A; color: #A9C4D0; border-color: #2F5268; transform: none; }
.note { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; }

/* Cards and grids */
.card {
  background: linear-gradient(180deg, var(--navy-2), #082238);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
.card h3 { margin-top: 0; }
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 20px 0 8px;
}
.game-card { scroll-margin-top: 96px; transition: border-color 0.2s, transform 0.2s; }
.game-card:hover { border-color: var(--aqua); transform: translateY(-2px); }

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.jump-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.jump-list a:hover { border-color: var(--aqua); color: var(--aqua); }

/* Steps: numbered cards */
ol.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}
ol.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0;
}
ol.steps li::before {
  content: counter(step);
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Screenshots row */
.screenshots {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin: 20px 0;
  justify-items: center;
}
.screenshots figure { margin: 0; text-align: center; }
.screenshots img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 30px;
  border: 7px solid #0B2238;
  box-shadow: var(--shadow);
}
.screenshots figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* Q&A content */
.qa h3 { color: var(--text); margin-top: 28px; font-size: 1.1rem; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 8px; font-weight: 700; }
.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--text);
  background: var(--navy-2);
  border: 2px solid #2A5873;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 50px;
  width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

.breadcrumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }

/* Tables (privacy policy permissions) */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--navy-2); font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--aqua); font-weight: 700; background: var(--navy-3); }
tr:last-child td { border-bottom: 0; }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.9em; color: var(--text); background: var(--navy-3); padding: 1px 6px; border-radius: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(3, 25, 44, 0.6);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.site-footer p { margin: 0; font-size: 0.88rem; }

/* Tablet and up */
@media (min-width: 640px) {
  h1 { font-size: 2.8rem; }
  .hero h1 { font-size: 3.3rem; }
  h2 { font-size: 1.9rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .screenshots { grid-template-columns: repeat(3, 1fr); }
  .screenshots img { max-width: 220px; }
  .button-row .btn { flex: 0 1 auto; white-space: nowrap; }
}

/* Desktop */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    padding: 64px 0 40px;
  }
  .hero-art { justify-content: flex-end; }
  .phone { width: 300px; }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
  .site-footer ul { gap: 10px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card { transition: none; }
}
