/* Cavaqui — site stylesheet. Palette mirrors DESIGN.md (the app's tokens). */
:root {
  --ink: #171714;
  --cream: #f4f1ea;
  --panel: #fffcf6;
  --accent: #e7582a;
  --accent-soft: #fce7de;
  --accent-strong: #a83e22;
  --tuned: #177553;
  --tuned-soft: #ddefe6;
  --muted: #716f68;
  --line: #d8d3c8;
  --max: 1060px;
  --radius: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-bottom: var(--analytics-space, 0px);
}

body {
  margin: 0;
  padding-bottom: var(--analytics-space, 0px);
  background: var(--cream);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

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

/* Header */
.site-head {
  padding: 26px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand-name {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.4px;
}

/* Hero */
.hero {
  padding: 32px 0 30px;
}
.hero h1 {
  font-size: clamp(30px, 6.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 20ch;
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
}
.hero-mark {
  width: min(240px, 58vw);
  height: auto;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.note {
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
section {
  padding: 34px 0;
}
h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.8px;
  font-weight: 800;
  margin: 0 0 8px;
}
.section-lede {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 60ch;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.card .chip {
  display: inline-block;
  margin-bottom: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}
.facts b {
  color: var(--ink);
  font-weight: 700;
}
.tick {
  color: var(--tuned);
  flex: 0 0 auto;
  font-weight: 800;
}

.privacy-teaser {
  background: var(--tuned-soft);
  border: 1px solid #b8d9ca;
  border-radius: var(--radius);
  padding: 22px;
}
.privacy-teaser h2 {
  font-size: 20px;
}
.privacy-teaser p {
  margin: 0 0 10px;
  color: #23493c;
  font-size: 15.5px;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
}
.site-foot a {
  color: var(--muted);
}
.site-foot .foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

/* Reserve the measured bar height so all content remains reachable. */
.analytics-consent[hidden] {
  display: none;
}
.analytics-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 100dvh;
  overflow-y: auto;
}
.analytics-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.analytics-layout > div:first-child {
  flex: 1 1 420px;
}
.analytics-consent h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.analytics-consent p {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}
.analytics-consent .cta-row {
  flex: 1 1 310px;
  gap: 10px;
}
.analytics-consent button {
  font-family: inherit;
  cursor: pointer;
  flex: 1;
  width: auto;
  justify-content: center;
  font-size: 14px;
  padding: 12px 10px;
  min-height: 44px;
}
.analytics-consent .analytics-accept {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--panel);
}
.analytics-consent .analytics-accept:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.analytics-consent .btn-quiet:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}
.analytics-consent a:hover {
  color: var(--ink);
}
.analytics-preferences {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.analytics-consent :focus-visible,
.analytics-preferences:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

/* Legal / policy page */
.legal {
  padding: 40px 0 20px;
  max-width: 72ch;
}
.legal h1 {
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: -1.1px;
  margin: 0 0 6px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 30px;
}
.legal h2 {
  font-size: 20px;
  margin: 30px 0 8px;
}
.legal p,
.legal li {
  color: #2a2a26;
}
.legal ul {
  padding-left: 20px;
}
.legal li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .hero {
    padding: 22px 0 20px;
  }
  .hero-mark {
    width: 80px;
    margin-bottom: 14px;
  }
  .hero .lede {
    margin-bottom: 18px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
