/* Venn — venn.levge.com
   Warm terracotta / copper theme, matched to the in-app gradient and report
   cards (copper → rust background, cream cards, sage-green score accents).
   No external fonts. Dark-first. */

:root {
  color-scheme: dark light;

  --bg: #150f0a;
  --bg-alt: #1c140d;
  --surface: rgba(255, 255, 255, .05);
  --surface-solid: #211810;
  --ink: #f8f1e4;
  --ink-2: #c9bba4;
  --ink-3: #93876f;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --accent: #d59c5f;
  --accent-2: #a8613a;
  --accent-3: #7fa888;
  --accent-ink: #241a0f;
  --accent-soft: rgba(213, 156, 95, .16);
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, #6d4023 100%);

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 32px);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-glow: 0 12px 40px rgba(168, 97, 58, .35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf4e9;
    --bg-alt: #f4e8d5;
    --surface: rgba(255, 255, 255, .78);
    --surface-solid: #ffffff;
    --ink: #241a10;
    --ink-2: #5c4732;
    --ink-3: #8a7458;
    --line: rgba(36, 26, 16, .10);
    --line-strong: rgba(36, 26, 16, .18);
    --accent-ink: #ffffff;
    --accent-soft: rgba(213, 156, 95, .20);
    --shadow: 0 10px 30px rgba(90, 55, 25, .12);
    --shadow-glow: 0 12px 34px rgba(168, 97, 58, .26);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow behind the whole page — no layout impact, so no CLS. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45vw 45vh at 18% 8%, rgba(213, 156, 95, .30), transparent 65%),
    radial-gradient(40vw 40vh at 82% 2%, rgba(127, 168, 136, .18), transparent 65%),
    radial-gradient(35vw 35vh at 55% 30%, rgba(168, 97, 58, .24), transparent 70%);
  filter: blur(10px);
}

/* The glow reads far heavier on a light background — dial it back. */
@media (prefers-color-scheme: light) {
  body::before { opacity: .5; }
}

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

a { color: var(--ink); text-decoration: none; }

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

h1, h2, h3 {
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.03em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.125rem; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- shared layout ----------
   One rule owns horizontal rhythm, so no section can drift out of alignment. */
.site-header,
.hero,
.strip,
.cta-band {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* Sections are full-bleed (so .section-alt can paint edge to edge) but lay their
   children out in one centred column. A child's own max-width then only shortens
   its line length — it can never re-centre itself and break the left edge. */
.section,
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, var(--maxw));
  justify-content: center;
}

.section { padding: clamp(56px, 9vw, 96px) var(--pad); }
.hero,
.strip,
.cta-band { padding-inline: var(--pad); }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lede {
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 1.05rem;
}

/* ---------- header ---------- */
.site-header {
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }

.brand-mark { display: inline-flex; width: 34px; height: 22px; position: relative; }
.brand-mark i {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.brand-mark i:first-child { left: 0; border: 2px solid var(--accent); }
.brand-mark i:last-child {
  left: 12px;
  border: 2px solid var(--accent-3);
  background: rgba(127, 168, 136, .20);
}

.header-nav { display: flex; gap: 8px; font-size: .95rem; }
.header-nav a {
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background-color .15s ease, color .15s ease;
}
.header-nav a:hover { background: var(--surface); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 15px 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 44ch;
}

.hero-note { font-size: .875rem; color: var(--ink-3); margin: 0; }

.hero-art { position: relative; }
.hero-art img {
  border-radius: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  margin-inline: auto;
  max-width: 320px;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(168, 97, 58, .42); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--ink-3); }

/* ---------- chips strip ---------- */
.strip { padding-top: 0; padding-bottom: clamp(32px, 5vw, 56px); }
.strip-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  backdrop-filter: blur(6px);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.chips li:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }

.card-num {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.steps > li {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.steps h3 { display: flex; align-items: center; gap: 12px; }
.step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---------- bullets ---------- */
.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 32px;
  color: var(--ink-2);
}
.bullets li {
  font-size: .98rem;
  padding-inline-start: 30px;
  position: relative;
}
.bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  opacity: .9;
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-solid);
  transition: transform .2s ease;
}
.shot img:hover { transform: translateY(-4px) scale(1.01); }
.shot-phone img { aspect-ratio: 1290 / 2796; object-fit: cover; }
.shot-tablet img { aspect-ratio: 2048 / 2732; object-fit: cover; }
.shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-3); }
.shot-tablet { grid-column: span 2; }

/* ---------- final cta ---------- */
.cta-band {
  text-align: center;
  padding-block: clamp(48px, 7vw, 88px);
}
.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band p { color: var(--ink-2); max-width: 50ch; margin-inline: auto; font-size: 1.05rem; }
.cta-band .section-lede { margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* ---------- contact ---------- */
.contact-row { justify-content: flex-start; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px var(--pad) 60px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .93rem; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-links a:first-child { color: var(--ink); font-weight: 700; }

.disclaimer { margin-top: 20px; font-size: .8rem; color: var(--ink-3); max-width: 70ch; }

/* ---------- sticky download bar (injected by assets/app.js on mobile) ---------- */
.app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .24s ease;
}
.app-bar.is-visible { transform: translateY(0); }
.app-bar .btn { width: 100%; }

@media (min-width: 900px) { .app-bar { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 250px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-tablet { grid-column: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-nav { display: none; }
  .cta-row .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .shot-tablet { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .chips li:hover, .shot img:hover { transform: none; }
}
