/* DownHippo site styles. The palette and components follow resthippo.com and
   chiphippo.com, so the herd's sites read as one family. One shared file here
   (rather than an inline <style> per page) because Cloudflare serves real
   headers and caching; nothing about the look differs. */

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

:root {
  --bg:        #1c1c1c;
  --mantle:    #161616;
  --crust:     #101010;
  --surface-0: #2a2a2a;
  --surface-1: #383838;
  --surface-2: #484848;
  --overlay-0: #686868;
  --text:      #e8e8e8;
  --subtext:   #b0b0b0;

  /* Down Hippo's colour in the herd (hippoherd.com/downhippo), hue 331.
     --brand is for fills (white on it is 4.7:1); as text on --bg it is only
     3.6:1, so text uses --accent, the same hue lifted to 6.6:1. */
  --brand:     #D6297C;
  --accent:    #EE7DAF;
  --accent2:   #E3478F;

  --green:     #80c080;
  --yellow:    #d4b060;
  --teal:      #70b8d0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

/* ── Pre-release banner ───────────────────────────────────────────────── */

.prerelease-banner {
  background: color-mix(in srgb, var(--yellow) 14%, var(--crust));
  border-bottom: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent);
  padding: 9px 2rem;
  font-size: 0.8rem;
  text-align: center;
}
.prerelease-banner strong { color: var(--yellow); }

/* ── Nav ──────────────────────────────────────────────────────────────── */

nav {
  background: var(--mantle);
  border-bottom: 1px solid var(--surface-0);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--surface-1);
}

.nav-wordmark { font-size: 1.2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-link { color: var(--subtext); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  line-height: 1;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 86%, var(--crust));
  transform: translateY(-1px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--brand) 45%, transparent);
}

.btn-ghost { background: transparent; color: var(--subtext); border: 1px solid var(--surface-1); }
.btn-ghost:hover { background: var(--surface-0); color: var(--text); }

.btn-soon { background: var(--surface-0); color: var(--subtext); border: 1px dashed var(--surface-2); cursor: default; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 96px 2rem 72px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-mark { margin: 0 auto 28px; width: 96px; height: 96px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }

.hero-desc { font-size: 1.15rem; color: var(--subtext); max-width: 600px; margin: 0 auto 44px; line-height: 1.75; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-actions .btn { padding: 13px 28px; font-size: 0.975rem; }

.hero-platforms { font-size: 0.78rem; color: var(--overlay-0); }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding: 88px 2rem; }
.section-alt { background: var(--mantle); border-top: 1px solid var(--surface-0); border-bottom: 1px solid var(--surface-0); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }

.section-body { color: var(--subtext); font-size: 1.05rem; max-width: 620px; line-height: 1.75; }
.section-body a { text-decoration: none; }
.section-body a:hover { text-decoration: underline; }

/* ── Cards ────────────────────────────────────────────────────────────── */

.feature-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--surface-0);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.section-alt .feature-card { background: var(--bg); }
.section:not(.section-alt) .feature-card { background: var(--mantle); }
.feature-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }

.feature-icon {
  width: 42px;
  height: 42px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 { font-size: 0.975rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.855rem; color: var(--subtext); line-height: 1.65; }

.step-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.tier-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--overlay-0); margin-bottom: 6px; }
.tier-later { opacity: 0.75; }

.shield-demo {
  margin: 48px auto 0;
  max-width: 340px;
  background: linear-gradient(180deg, #2a1220, var(--crust));
  border: 1px solid var(--surface-1);
  border-radius: 28px;
  padding: 40px 28px 28px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.shield-demo h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.shield-demo p { color: var(--subtext); font-size: 0.85rem; margin-bottom: 22px; }
.shield-demo .shield-btn { display: block; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.shield-demo .shield-btn-primary { background: var(--brand); color: #fff; }
.shield-demo .shield-btn-secondary { color: var(--accent); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--surface-0); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); display: inline-block; width: 1.4em; font-weight: 800; }
.faq details[open] summary::before { content: "–"; }
.faq details p { color: var(--subtext); margin: 10px 0 0 1.4em; font-size: 0.95rem; }

/* ── Plain pages (privacy, support, console, 404) ─────────────────────── */

.page { max-width: 760px; margin: 0 auto; padding: 72px 2rem 96px; }
.page-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 12px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.page .updated { color: var(--overlay-0); font-size: 0.85rem; margin-bottom: 40px; }
.page h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.page h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.page p, .page li { color: var(--subtext); line-height: 1.75; }
.page p + p { margin-top: 12px; }
.page ul { margin: 10px 0 0 1.3em; }
.page li + li { margin-top: 6px; }
.page strong { color: var(--text); }
.page code { font-family: "Cascadia Code", "JetBrains Mono", "Fira Code", monospace; font-size: 0.85em; background: var(--surface-0); padding: 1px 5px; border-radius: 3px; }
.page .lead { font-size: 1.1rem; }
.page .centered { text-align: center; }

/* ── Footer ───────────────────────────────────────────────────────────── */

footer { background: var(--crust); border-top: 1px solid var(--surface-0); padding: 48px 2rem; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-name { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
footer p { color: var(--overlay-0); font-size: 0.83rem; line-height: 1.8; }
.footer-links { margin-bottom: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .prerelease-banner { padding: 9px 1rem; font-size: 0.74rem; }
  nav { padding: 0 1rem; }
  .nav-right .nav-link { display: none; }
  .hero { padding: 64px 1rem 48px; }
  .section { padding: 64px 1rem; }
  .page { padding: 48px 1rem 64px; }
}

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