:root {
  /* Highloop parent palette — shared across Highloop product sites */
  --hl-accent:  #C9D6FF;
  --hl-bg:      #F5F7FB;
  --hl-card:    #FFFFFF;
  --hl-text:    #161A2E;
  --hl-muted:   #5A6378;
  --hl-border:  #E2E6F1;

  /* Strata brand tokens. Source of truth: ios/Strata/Theme/StrataTheme.swift.
     Keep these in sync with the app — --strata mirrors `accent` (darkened for
     AA on white), --strata-ink mirrors the app-icon navy, and the .pro-tag
     gold gradient below mirrors `proGoldLight`/`proGoldDark`. */
  --strata:     #2E76D6;   /* Strata signature blue, darkened for AA on white */
  --strata-dark:#16447F;
  --strata-tint:#E4EEFB;
  --strata-soft:#F1F7FE;
  --strata-ink: #0B1B33;   /* deep navy from the app icon */

  --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(--strata-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--strata); }

.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;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(11, 27, 51, 0.25);
}
header .brand {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--strata-ink);
}
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(--strata-ink); }

/* Typography */
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 8px; color: var(--strata-ink); }
h2 { font-size: 22px; margin: 32px 0 8px; color: var(--strata-ink); }
h3 { font-size: 17px; margin: 20px 0 4px; color: var(--strata-ink); }
.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(--strata);
  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(--strata-ink);
}
tr:last-child td { border-bottom: none; }

/* 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(--strata-ink); font-size: 14px; margin-bottom: 2px; }
.feature .desc { font-size: 13px; color: var(--hl-muted); }

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

/* Policy / legal pages */
.policy-meta {
  color: var(--hl-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

/* 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(--strata);
}
.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(--strata-ink);
  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(--strata);
  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(--strata-ink);
  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(--strata);
  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(46, 118, 214, 0.3);
}
.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;
}

/* "NEW" tag for feature highlights */
.new-tag {
  color: var(--strata);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-left: 4px;
}
/* "PRO" tag for paywalled features */
.pro-tag {
  display: inline-block;
  color: var(--strata-ink);
  background: linear-gradient(180deg, #F5C85D, #D39A39);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 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(--strata);
  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: #FAFBFD; }
body.marketing .container { max-width: 1040px; padding: 32px 32px 96px; }

body.marketing header .brand { color: var(--strata-ink); }
body.marketing header nav a:hover { color: var(--strata); }
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: 600px; }
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:
    radial-gradient(120% 90% at 85% 0%, rgba(46,118,214,0.10), transparent 60%),
    linear-gradient(180deg, var(--strata-soft) 0%, #FAFBFD 100%);
  border-radius: 28px;
  padding: 44px 36px;
  margin: 16px 0 32px;
  border: 1px solid var(--hl-border);
}
.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) — dark to echo the app */
.phone {
  width: 288px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1A2336 0%, #0A0F1A 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 24px 60px rgba(11, 27, 51, 0.30),
    0 8px 18px rgba(11, 27, 51, 0.14);
}
.phone-screen {
  background: #090E1A;
  color: #E8EBF3;
  border-radius: 28px;
  padding: 40px 14px 18px;
  position: relative;
  min-height: 500px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #0A0F1A;
  border-radius: 0 0 14px 14px;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; color: #8992A8;
  padding: 0 10px 14px;
}
.phone-eyebrow {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #545E71; font-weight: 700; padding: 0 6px 2px;
}
.phone-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: #E8EBF3; padding: 0 6px 12px;
}
/* verdict banner */
.phone-verdict {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(250,146,59,0.12); border: 1px solid rgba(250,146,59,0.30);
  border-radius: 12px; padding: 10px 11px; margin: 0 4px 12px;
}
.phone-verdict .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #FA923B;
  margin-top: 5px; flex: none; box-shadow: 0 0 10px #FA923B;
}
.phone-verdict .vt { font-size: 12.5px; font-weight: 700; color: #E8EBF3; }
.phone-verdict .vs { font-size: 11px; color: #8992A8; margin-top: 2px; line-height: 1.35; }
/* conditions tiles */
.phone-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 4px 14px;
}
.phone-tile {
  background: #131725; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 11px; padding: 9px 8px; display: flex; flex-direction: column; gap: 3px;
}
.phone-tile .k { font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; color: #545E71; font-weight: 700; }
.phone-tile .v { font-size: 13px; font-weight: 800; }
.tone-ok { color: #49DD80; } .tone-watch { color: #FA923B; } .tone-bad { color: #EE4444; } .tone-snow { color: #8ECAFF; }
.phone-cta {
  margin: 4px 4px 0;
  background: linear-gradient(180deg, #C9543B, #A6422D);
  color: white; text-align: center;
  padding: 12px; border-radius: 13px;
  font-weight: 800; font-size: 13px;
}

/* 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: var(--strata-tint); color: var(--strata-dark);
  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.blue { background: linear-gradient(180deg, var(--strata-soft) 0%, #E8F2FF 100%); }
.band > h2:first-child { margin-top: 0; }

/* 3-tile brand-promise strip */
.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(--strata-tint); color: var(--strata-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(--strata-ink); 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(46, 118, 214, 0.18);
}
body.marketing .cta:hover { box-shadow: 0 4px 14px rgba(46, 118, 214, 0.28); }
body.marketing .cta.secondary { box-shadow: none; }
body.marketing .cta { vertical-align: middle; }
body.marketing .cta-fineprint { margin-top: 12px; }
body.marketing .price-card { padding: 22px 24px; }

/* App Store download badge */
.app-store-badge {
  display: inline-block;
  margin: 8px 8px 0 0;
  vertical-align: middle;
  line-height: 0;
  transition: opacity 0.15s ease;
}
.app-store-badge img { height: 48px; width: auto; display: block; }
.app-store-badge:hover { opacity: 0.85; }

/* 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: 420px; }
  .band { padding: 24px 18px; margin: 28px 0; }
}
