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

:root {
  --brand: #c80205;
  --brand-dark: #a30104;
  --brand-light: #fce9e9;
  --brand-glow: rgba(200, 2, 5, 0.15);
  /* Legacy variable names (same red values) */
  --teal: #c80205;
  --teal-dark: #a30104;
  --teal-light: #fce9e9;
  --teal-glow: rgba(200, 2, 5, 0.15);
  --ink: #0f1419;
  --ink-soft: #3d4a54;
  --muted: #5e5a5a;
  --border: #e8e4e4;
  --surface: #ffffff;
  --bg: #faf8f8;
  --bg-alt: #f5f0f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 20px 60px rgba(15, 20, 25, 0.1);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1140px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 769px) {
  .site-header .nav-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .site-header .menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}
.logo:hover { color: var(--ink); }

.site-header .logo {
  max-width: min(200px, 42vw);
}

.logo-brand {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo-footer {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .logo-brand { height: 30px; }
  .site-header .logo { max-width: min(160px, 48vw); }
  .logo-footer { height: 36px; }
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-main a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-main a:hover { color: var(--brand); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(200, 2, 5, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-outline-light {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.5rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust i { color: var(--brand); }

.hero-visual {
  position: relative;
}

.dashboard-mock {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock-bar span:first-child { background: #ff6b6b; }
.mock-bar span:nth-child(2) { background: #ffd93d; }
.mock-bar span:nth-child(3) { background: #6bcb77; }

.mock-body { padding: 1.5rem; }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mock-stat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.mock-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand);
}
.mock-stat span { font-size: 0.7rem; color: var(--muted); }

.mock-chart {
  height: 120px;
  background: linear-gradient(180deg, var(--brand-light) 0%, transparent 100%);
  border-radius: var(--radius);
  position: relative;
  margin-bottom: 1rem;
}
.mock-chart::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23c80205' fill-opacity='0.3' d='M0 80 L0 50 L50 45 L100 55 L150 30 L200 40 L250 20 L300 35 L350 15 L400 25 L400 80 Z'/%3E%3Cpath fill='none' stroke='%23c80205' stroke-width='2' d='M0 50 L50 45 L100 55 L150 30 L200 40 L250 20 L300 35 L350 15 L400 25'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.mock-row {
  display: flex;
  gap: 0.5rem;
}
.mock-pill {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}
.mock-pill.active { background: var(--brand); width: 40%; flex: none; }

/* Sections */
section { padding: 5rem 0; }
section.alt { background: var(--bg); }

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.section-header p { color: var(--muted); font-size: 1.0625rem; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.feature-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9375rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.875rem; color: var(--muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  padding-top: 0.75rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 100%;
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.pricing-card.free-plan {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--surface) 40%);
}

.price-top {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.price-amount small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.price-period {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.plan-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-grow: 0;
}

.plan-features {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  list-style: none;
  flex: 1 1 auto;
}
.plan-features li {
  font-size: 0.875rem;
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.plan-features i {
  color: var(--brand);
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.pricing-card .btn { width: 100%; margin-top: auto; }

/* Comparison band */
.compare-band {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.compare-band h2 { color: #fff; margin-bottom: 1rem; }
.compare-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* FAQ */
.faq-list {
  max-width: 44rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-question i {
  color: var(--brand);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 40rem;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* CTA */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--brand) !important;
}
.cta-section .btn-primary:hover {
  background: var(--brand-light);
  color: var(--brand-dark) !important;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
  display: inline-block;
  max-width: 100%;
}
.footer-brand .logo--footer:hover { opacity: 0.92; }
.footer-brand p { max-width: 20rem; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.65); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* SEO content page */
.seo-hero {
  padding: 3rem 0;
  background: var(--bg);
}
.seo-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.seo-content { padding: 3rem 0 5rem; }
.seo-content .prose { max-width: 42rem; }
.seo-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}
.seo-content p { margin-bottom: 1rem; }
.seo-content ul {
  margin: 0 0 1rem 1.25rem;
}
.seo-content li { margin-bottom: 0.5rem; }

/* Legal pages */
.legal-page { padding: 3rem 0 5rem; }
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { margin-bottom: 0.75rem; }
.legal-page ul { margin-left: 1.25rem; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-wrap {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--surface);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-top: 1px solid var(--border);
  }
  .nav-wrap.open { transform: translateX(0); }

  .nav-wrap .nav-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .nav-wrap .nav-actions {
    flex-direction: column;
    width: 100%;
  }
  .nav-wrap .btn { width: 100%; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Brand red overrides (merged — host does not support ?v= query on static files) */
.btn-primary {
  background-color: #c80205;
  box-shadow: 0 4px 14px rgba(200, 2, 5, 0.2);
}
.btn-primary:hover {
  background-color: #a30104;
  box-shadow: 0 6px 20px rgba(200, 2, 5, 0.35);
}
.hero h1 em { color: #c80205; }
.hero-badge {
  background-color: #fce9e9;
  color: #a30104;
}
.hero-trust i,
.mock-stat strong,
.faq-question i,
.plan-features i { color: #c80205; }
.mock-pill.active { background-color: #c80205; }
.feature-icon {
  background-color: #fce9e9;
  color: #c80205;
}
.step-num { background-color: #c80205; }
.pricing-card.featured { border-color: #c80205; box-shadow: 0 0 0 1px #c80205, var(--shadow-lg); }
.pricing-card.featured::before { background-color: #c80205; }
.pricing-card.free-plan {
  border-color: #c80205;
  background: linear-gradient(180deg, #fce9e9 0%, var(--surface) 40%);
}
.cta-section {
  background: linear-gradient(135deg, #c80205 0%, #a30104 100%);
}
