/* Mirrors src/theme.ts (Zare app, light mode) so this page sits on the same
   wavelength as the product. Keep these values in sync if the app palette changes. */
:root {
  --bg: #F4F4F6;
  --bg-card: #FFFFFF;
  --bg-muted: #ECECEE;
  --forest: #1E4D30;
  --forest-mid: #3A6648;
  --sage: #6A9A78;
  --sage-pale: #B8D4C0;
  --sage-faint: #E4F0E8;
  --ink: #0F0F10;
  --ink-mid: #3C3C40;
  --ink-light: #8A8A90;
  --border: #E0E0E4;
  --border-light: #EBEBEE;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --shadow-card: 0 1px 8px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

img { max-width: 100%; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.wrap.wrap-wide {
  max-width: 1080px;
}

/* ---------- Header ---------- */

header.site {
  padding: var(--space-xl) 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand img {
  width: 36px;
  height: 36px;
  display: block;
  mix-blend-mode: multiply;
}

.brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--forest);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
}

.hero-mark {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 460px;
  height: 460px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.14;
  color: var(--forest);
  margin: 0 0 var(--space-md);
}

.hero p.sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  color: var(--ink-mid);
  margin: 0 auto;
  max-width: 480px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-decoration: none;
}

.badge-live:hover { background: var(--forest-mid); }

.badge-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-pale);
  flex: none;
}

/* ---------- Section rhythm ---------- */

section { padding: var(--space-xxl) 0; position: relative; }
section.tight { padding: var(--space-xl) 0; }

section.section-green {
  background: var(--sage-faint);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--forest-mid);
  text-align: center;
  margin: 0 0 var(--space-sm);
}

.eyebrow-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  box-shadow: 0 0 0 3px var(--sage-faint), 0 0 0 4px var(--sage-pale);
  flex: none;
}

section.section-green .eyebrow-ring {
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 4px var(--sage-pale);
}

h2.section-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--space-xl);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--space-md);
  box-shadow: 0 0 0 5px var(--sage-faint), 0 0 0 9px var(--sage-pale);
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--forest);
  margin: 0 0 var(--space-xs);
}

.step-card p {
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-mid);
  margin: 0;
}

/* ---------- Pattern card showcase ---------- */

.pattern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: var(--space-lg);
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.confidence-pill {
  display: inline-block;
  background: var(--sage-faint);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.pattern-statement {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 var(--space-lg);
}

.evidence-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 var(--space-sm);
}

.evidence-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.evidence-item:last-child { margin-bottom: 0; }

.evidence-tag {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--forest-mid);
  border: 1px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
}

.evidence-item p {
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-mid);
  margin: 0;
}

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.shot {
  width: 170px;
  flex: none;
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-light);
}

/* ---------- Contact ---------- */

.contact .card {
  background: var(--sage-faint);
  border: 1px solid var(--sage-pale);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.contact h2.section-title { margin-bottom: var(--space-sm); }

.contact p.lead {
  font-size: 15px;
  color: var(--ink-mid);
  margin: 0 0 var(--space-lg);
}

.contact p.lead strong { color: var(--forest); }

.email-pill {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--forest);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.email-pill:hover { background: var(--forest-mid); }

/* ---------- Footer ---------- */

footer.site {
  padding: var(--space-xl) 0 var(--space-xxl);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-xl);
  text-align: center;
}

.footer-mark {
  width: 28px;
  height: 28px;
  margin: 0 auto var(--space-md);
  display: block;
  mix-blend-mode: multiply;
}

footer.site .links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-md);
}

footer.site a,
.legal a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 2px;
}

footer.site a {
  font-size: 14px;
  font-weight: 600;
}

footer.site a:hover,
.legal a:hover { color: var(--forest-mid); }

footer.site .copyright {
  font-size: 12px;
  color: var(--ink-light);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) var(--space-xxl);
}

.legal a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.legal h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--forest);
  margin: 0 0 var(--space-xs);
}

.legal .updated {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0 0 var(--space-xl);
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--forest);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-mid);
}

.legal ul { padding-left: 20px; margin: var(--space-sm) 0; }

.legal strong { color: var(--ink); }

.legal .placeholder {
  background: var(--sage-faint);
  color: var(--forest);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .hero-mark { width: 320px; height: 320px; top: -80px; right: -110px; }
  .shot { width: 42%; max-width: 160px; }
}
