/* Anvil — anvilhealth.app */
:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --accent: #FF6B00;
  --accent-dim: rgba(255, 107, 0, 0.15);
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-tertiary: #666;
  --border: #222;
  --radius: 16px;
  --max-width: 720px;
  --max-width-wide: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 84px; /* clears the fixed floating header */
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — floating glass pill, fixed on scroll */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
}
.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(18, 18, 18, 0.70);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.site-header .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-header .logo span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-links { display: flex; gap: 24px; }
.header-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s;
}
.header-links a:hover { color: var(--text-primary); text-decoration: none; }
.site-header .header-cta img { height: 36px; display: block; }

/* App Store badge (shared) */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.15s;
}
.app-store-badge:hover { opacity: 0.85; }
.app-store-badge img { height: 52px; }

/* Phone screenshots (shared) */
.screenshot { display: flex; justify-content: center; }
.screenshot img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* Hero */
.hero {
  padding: 40px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-copy h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-copy .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

/* Trust line */
.trust {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 16px 0 8px;
}

/* Feature rows */
.feature-rows { padding: 48px 0; }
.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 40px 0;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .feature-text { flex: 1; }
.feature-row .screenshot { flex: 0 0 300px; }
.feature-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
}

/* How it works */
.how { padding: 40px 0 56px; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 0, 0.30);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 16px 0;
}

/* Final CTA */
.cta {
  text-align: center;
  padding: 56px 0 72px;
}
.cta h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Legal pages */
.legal {
  padding: 48px 0 80px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal .last-updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}
.legal ul {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
  padding-left: 24px;
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text-primary); }
.legal a { color: var(--accent); }

/* Responsive */
@media (max-width: 760px) {
  .hero { padding: 24px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy .tagline { margin-left: auto; margin-right: auto; }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    padding: 32px 0;
  }
  .feature-row .feature-text { order: 2; }
  .feature-row .screenshot { order: 1; flex-basis: auto; }
  .feature-text p { margin-left: auto; margin-right: auto; }

  .steps { grid-template-columns: 1fr; }
  .step-num { margin-left: auto; margin-right: auto; }
  .step-card { text-align: center; }
}

@media (max-width: 600px) {
  .hero-copy h1 { font-size: 30px; }
  .feature-text h2 { font-size: 24px; }
  /* keep the floating pill compact: logo + App Store button only */
  .header-links { display: none; }
}
