/* CodeHound — codehound.app
   Palette sampled from the artwork (see CodeHound/UI/Theme.swift). */

:root {
  --blue: #0085fc;
  --cyan: #00e8fc;
  --orange: #fc8c21;
  --orange-ink: #e86614;
  --navy: #0d2945;
  --sky: #f0f7ff;
  --ink: #16283a;
  --muted: #5b6b7b;
  --line: #d9e6f3;
  --card: #ffffff;
  --bg: #ffffff;
  --code-bg: #fff3e8;
  --max: 1080px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--orange-ink);
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.95em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.site-nav a { color: var(--navy); white-space: nowrap; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #ffffff 100%); padding: 56px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.hero-art .hound { width: 54%; position: absolute; left: -4%; bottom: 0; z-index: 2; filter: drop-shadow(0 18px 30px rgba(13, 41, 69, 0.18)); }
.phone {
  width: 250px; margin-left: 44%;
  border-radius: 40px; padding: 10px; background: var(--navy);
  box-shadow: 0 30px 60px rgba(13, 41, 69, 0.25);
}
.phone img { border-radius: 32px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 133, 252, 0.3);
}
.btn:hover { text-decoration: none; background: #0071d9; }
.btn.secondary { background: #fff; color: var(--navy); box-shadow: none; border: 1.5px solid var(--line); }
.btn.soon { background: var(--navy); cursor: default; box-shadow: none; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.fineprint { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--sky); }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(180deg, var(--cyan), var(--blue)); color: #fff; font-weight: 800;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.deal-demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 26rem; }
.deal-demo .store { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy); }
.deal-demo .store span { color: var(--blue); font-weight: 500; font-size: 0.9rem; }
.deal-demo .code { font-size: 1.3rem; margin-top: 8px; display: inline-block; }
.deal-demo .ends { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 0.85rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer p { margin: 0 0 6px; }

/* Document pages (privacy, terms, support) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc .updated { color: var(--muted); margin-bottom: 2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--navy); }
.table-wrap { overflow-x: auto; }
.summary {
  background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 2em;
}
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq details p:last-child { margin-bottom: 0; }
.faq details > *:not(summary) { margin-top: 10px; }
.contact-card {
  background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 1.5em 0 2.5em;
}
.contact-card p:last-child { margin: 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; margin-top: 12px; }
  .hero-art .hound { width: 55%; left: 0; }
  .phone { width: 220px; margin-left: 38%; }
  .steps { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .site-nav a[href^="#"] { display: none; }
}
@media (max-width: 420px) {
  .hero-art .hound { width: 60%; left: -8%; }
  .phone { width: 190px; margin-left: 40%; }
}
