:root {
  /* Highloop parent palette — slate-blue, distinct from both children */
  --hl-primary: #3B5BDB;
  --hl-dark:    #1E2A5A;
  --hl-accent:  #C9D6FF;
  --hl-bg:      #F5F7FB;
  --hl-card:    #FFFFFF;
  --hl-text:    #161A2E;
  --hl-muted:   #5A6378;
  --hl-border:  #E2E6F1;

  /* Product accents — used on the per-product pages only */
  --rosemary:   #C24A6E;
  --cilantro:   #5DA85C;

  --hl-radius:  14px;
  --hl-max-w:   780px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hl-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--hl-primary); }

.container {
  max-width: var(--hl-max-w);
  margin: 0 auto;
  padding: 32px 24px 96px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  margin-bottom: 32px;
}
header .logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hl-primary) 0%, var(--hl-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(30, 42, 90, 0.15);
}
header .brand {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hl-dark);
}
header nav {
  margin-left: auto;
  display: flex; gap: 18px;
  font-size: 14px;
}
header nav a {
  text-decoration: none;
  color: var(--hl-muted);
}
header nav a:hover { color: var(--hl-dark); }

/* Typography */
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 8px; color: var(--hl-dark); }
h2 { font-size: 22px; margin: 32px 0 8px; color: var(--hl-dark); }
h3 { font-size: 17px; margin: 20px 0 4px; color: var(--hl-dark); }
.lede { font-size: 18px; color: var(--hl-muted); margin: 0 0 24px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--hl-primary);
  margin-bottom: 6px;
}

/* Cards */
.card {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
  margin: 12px 0;
}

ul, ol { padding-left: 22px; }
ul li, ol li { margin: 4px 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hl-border);
  font-size: 14px;
  vertical-align: top;
}
th {
  background: var(--hl-bg);
  font-weight: 600;
  color: var(--hl-dark);
}
tr:last-child td { border-bottom: none; }

/* Product cards on landing page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.product {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  text-decoration: none;
  color: var(--hl-text);
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border-top: 3px solid var(--hl-primary);
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  color: var(--hl-text);
}
.product.rosemary { border-top-color: var(--rosemary); }
.product.cilantro { border-top-color: var(--cilantro); }
.product .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hl-dark);
  margin-bottom: 4px;
}
.product .tag {
  font-size: 13px;
  color: var(--hl-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.product .desc {
  font-size: 15px;
  color: var(--hl-text);
  line-height: 1.5;
}
.product .more {
  margin-top: 14px;
  font-size: 14px;
  color: var(--hl-primary);
  font-weight: 600;
}
.product.rosemary .more { color: var(--rosemary); }
.product.cilantro .more { color: var(--cilantro); }

/* Feature grid (used on product pages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.feature {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature .name { font-weight: 600; color: var(--hl-dark); font-size: 14px; margin-bottom: 2px; }
.feature .desc { font-size: 13px; color: var(--hl-muted); }

/* CTA buttons */
.cta {
  display: inline-block;
  background: var(--hl-primary);
  color: white;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  margin: 8px 8px 0 0;
}
.cta:hover { background: var(--hl-dark); color: white; }
.cta.secondary {
  background: transparent;
  color: var(--hl-dark);
  border: 1.5px solid var(--hl-accent);
}
.cta.secondary:hover { background: var(--hl-accent); color: var(--hl-dark); }
.cta.rosemary { background: var(--rosemary); }
.cta.rosemary:hover { background: #8E2A4D; }
.cta.cilantro { background: var(--cilantro); }
.cta.cilantro:hover { background: #234C23; }

/* Policy / legal pages */
.policy-meta {
  color: var(--hl-muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.section-tag.rosemary { background: #FCE4EC; color: var(--rosemary); }
.section-tag.cilantro { background: #DFF1DD; color: #234C23; }
.section-tag.shared   { background: var(--hl-accent); color: var(--hl-dark); }

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hl-border);
  font-size: 13px;
  color: var(--hl-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer a { color: var(--hl-muted); }
footer .spacer { flex: 1; }

/* Proof / stat card — used in hero + diff panel */
.proof {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 16px 20px;
  margin: 18px 0 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-left: 3px solid var(--cilantro);
}
.proof-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hl-muted);
  margin-bottom: 8px;
}
.proof-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
  font-size: 15px;
}
.proof-row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  color: var(--hl-dark);
  min-width: 90px;
  text-align: right;
}
.proof-row .label {
  color: var(--hl-muted);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}
.price-card {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1.5px solid var(--hl-border);
  position: relative;
}
.price-card.featured {
  border-color: var(--cilantro);
  border-width: 2px;
}
.price-card .plan {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hl-muted);
  font-weight: 700;
}
.price-card .sticker {
  font-size: 30px;
  font-weight: 700;
  color: var(--hl-dark);
  letter-spacing: -0.01em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.price-card .sticker .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--hl-muted);
}
.price-card .effective {
  font-size: 13px;
  color: var(--hl-muted);
  margin-top: 4px;
}
.price-card .meta {
  font-size: 13px;
  color: var(--hl-muted);
  margin-top: 10px;
}
.save-pill {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--cilantro);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(35, 76, 35, 0.25);
}
.price-fineprint {
  font-size: 13px;
  color: var(--hl-muted);
  margin: 8px 0 0;
}

/* CTA fineprint */
.cta-fineprint {
  font-size: 13px;
  color: var(--hl-muted);
  margin: 8px 0 0;
}

/* "What's actually different" panel */
.diff-panel {
  background: linear-gradient(180deg, #F4FAF3 0%, var(--hl-card) 100%);
  border-radius: var(--hl-radius);
  padding: 22px 24px;
  margin: 16px 0 24px;
  border: 1px solid #DFF1DD;
}
.diff-panel h3 {
  margin-top: 0;
}

/* "NEW" tag for feature highlights */
.new-tag {
  color: var(--cilantro);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-left: 4px;
}

/* Closer pull-quote */
.closer {
  background: var(--hl-card);
  border-radius: var(--hl-radius);
  padding: 22px 24px;
  margin: 36px 0 0;
  border-left: 3px solid var(--hl-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.closer .quote {
  font-size: 17px;
  line-height: 1.5;
  color: var(--hl-dark);
}
.closer .sig {
  font-size: 13px;
  color: var(--hl-muted);
  margin-top: 8px;
}

/* Checklist (pricing page "what's included") */
.included {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px 16px;
}
.included li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--hl-text);
}
.included li::before {
  content: "✓";
  color: var(--cilantro);
  font-weight: 700;
  margin-right: 10px;
}

/* FAQ — simple stacked Q/A on pricing page */
.faq h3 {
  margin-top: 22px;
  margin-bottom: 4px;
}
.faq p {
  margin: 0 0 8px;
  color: var(--hl-text);
}

/* ─────────────────────────────────────────
   Marketing polish — scoped to body.marketing
   so policy pages (privacy/terms/etc.) stay calm.
   ───────────────────────────────────────── */
body.marketing { background: #FAFCFA; }
body.marketing .container { max-width: 1040px; padding: 32px 32px 96px; }

/* Cilantro-branded header (overrides slate-blue Highloop chrome) */
body.marketing header .logo {
  background: linear-gradient(135deg, var(--cilantro) 0%, #234C23 100%);
  box-shadow: 0 2px 8px rgba(35, 76, 35, 0.18);
}
body.marketing header .brand { color: #234C23; }
body.marketing header nav a:hover { color: #234C23; }
body.marketing h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; margin: 8px 0 16px; }
body.marketing h2 { font-size: 28px; letter-spacing: -0.015em; margin: 56px 0 14px; }
body.marketing .lede { font-size: 19px; max-width: 580px; }
body.marketing .eyebrow { font-size: 13px; }

/* Hero — 2-col grid with phone mockup on desktop */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(180deg, #F4FAF3 0%, #FAFCFA 100%);
  border-radius: 28px;
  padding: 44px 36px;
  margin: 16px 0 32px;
}
.hero-text { min-width: 0; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* Phone-frame mockup (CSS-only, no asset) */
.phone {
  width: 288px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1A1F1A 0%, #0F1410 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 24px 60px rgba(20, 40, 30, 0.18),
    0 8px 18px rgba(20, 40, 30, 0.08);
}
.phone-screen {
  background: #F4FAF3;
  border-radius: 28px;
  padding: 40px 16px 22px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #0F1410;
  border-radius: 0 0 14px 14px;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; color: #1A331A;
  padding: 0 12px 14px;
}
.phone-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--cilantro);
  padding: 2px 8px 14px;
}
.phone-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #4A5C4A; font-weight: 700;
  padding: 0 8px 8px;
}
.phone-card {
  background: white; border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin: 0 4px;
}
.phone-card .row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0;
  font-size: 12px;
}
.phone-card .row:not(:last-child) {
  border-bottom: 1px solid #F0F4EE;
}
.phone-card .row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
  color: #1A331A;
  min-width: 64px;
  text-align: right;
}
.phone-card .row .label {
  color: #5A6378; font-size: 11px; flex: 1;
}
.phone-cta {
  margin: 18px 4px 0;
  background: var(--cilantro);
  color: white; text-align: center;
  padding: 11px; border-radius: 12px;
  font-weight: 700; font-size: 12px;
}

/* Icon-led feature cards */
body.marketing .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}
body.marketing .feature {
  padding: 22px 22px 20px;
  border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.marketing .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #DFF1DD; color: #234C23;
  margin-bottom: 12px;
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
body.marketing .feature .name { font-size: 16px; margin-bottom: 4px; }
body.marketing .feature .desc { font-size: 14px; line-height: 1.5; }

/* Section band — alternates background to create rhythm */
.band {
  background: #F2F6FA;
  border-radius: 24px;
  padding: 36px 32px;
  margin: 40px 0;
}
.band.green { background: linear-gradient(180deg, #F4FAF3 0%, #ECFFE8 100%); }
.band > h2:first-child { margin-top: 0; }

/* 3-tile brand-promise strip — replaces pull-quote closer */
.promise-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 36px 0 0;
}
.promise {
  background: var(--hl-card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.promise-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--hl-accent); color: var(--hl-dark);
  margin-bottom: 10px;
}
.promise-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
.promise .title {
  font-weight: 700; color: var(--hl-dark);
  font-size: 15px; margin-bottom: 4px;
}
.promise .body {
  font-size: 13px; color: var(--hl-muted); line-height: 1.5;
}

/* Polished CTAs on marketing pages */
body.marketing .cta {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(35, 76, 35, 0.15);
}
body.marketing .cta.cilantro:hover {
  box-shadow: 0 4px 14px rgba(35, 76, 35, 0.25);
}
body.marketing .cta.secondary { box-shadow: none; }
body.marketing .cta-fineprint { margin-top: 12px; }
body.marketing .price-card { padding: 22px 24px; }

/* Mobile */
@media (max-width: 540px) {
  h1 { font-size: 30px; }
  header { flex-wrap: wrap; }
  header nav { width: 100%; gap: 14px; margin-top: 4px; }
  .container { padding: 24px 18px 64px; }
  .price-card .sticker { font-size: 26px; }
  .proof-row .num { min-width: 80px; }
  body.marketing h1 { font-size: 36px; }
  body.marketing h2 { font-size: 22px; margin-top: 40px; }
  body.marketing .container { padding: 20px 16px 60px; }
  .hero-grid { padding: 22px 18px; gap: 24px; }
  .phone { width: 240px; }
  .phone-screen { min-height: 400px; }
  .band { padding: 24px 18px; margin: 28px 0; }
}
