/* ── GutterCalc Pro — Landing Page Styles ──────────────────────────── */

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

:root {
  --bg:         #07080d;
  --bg-card:    #0f1118;
  --bg-raised:  #141720;
  --border:     rgba(255,255,255,0.08);
  --border-med: rgba(255,255,255,0.12);
  --accent:     #4f8fff;
  --accent-dim: rgba(79,143,255,0.12);
  --success:    #34d399;
  --warning:    #fbbf24;
  --text:       #e8eaf0;
  --text-sec:   #8a94a8;
  --text-muted: #4a5166;
  --radius:     14px;
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(7,8,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-brand svg { color: var(--accent); }

.nav-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79,143,255,0.3);
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sec);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: #3a76ef; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-primary.large {
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sec);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-med);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 12px;
  border: 1px solid rgba(79,143,255,0.4);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--accent-dim); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 160px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center top, rgba(79,143,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79,143,255,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sec);
  max-width: 600px;
  margin: 0 auto 42px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── STATS BAR ───────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 28px 32px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-value .green { color: var(--success); }
.stat-value .blue  { color: var(--accent); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── SECTION COMMON ──────────────────────────────────────────────── */
.section {
  padding: 96px 32px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.7;
}

/* ── COMPARISON ──────────────────────────────────────────────────── */
.comparison-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 700px) { .comparison-grid { grid-template-columns: 1fr; } }

.comp-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.comp-card.featured {
  border-color: rgba(79,143,255,0.4);
  box-shadow: 0 0 0 1px rgba(79,143,255,0.15), 0 8px 32px rgba(0,0,0,0.4);
}

.comp-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid rgba(79,143,255,0.35);
  padding: 3px 12px;
  border-radius: 20px;
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.comp-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem;
  flex-shrink: 0;
}

.comp-logo.eagle {
  background: rgba(251,191,36,0.1);
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.2);
}

.comp-logo.guttercalc {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(79,143,255,0.25);
}

.comp-name {
  font-size: 1rem;
  font-weight: 700;
}

.comp-name small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.comp-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.comp-price sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  vertical-align: baseline;
  bottom: 0;
}

.comp-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comp-price-note.danger { color: #f87171; }

.comp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sec);
}

.comp-row svg { flex-shrink: 0; }
.comp-row.yes { color: var(--text); }
.comp-row.no  { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }

.check-icon { color: var(--success); }
.x-icon     { color: #f87171; }

/* ── FEATURES ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(79,143,255,0.3); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(79,143,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────── */
.how-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 22px; left: 11%;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

@media (max-width: 800px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } .steps-grid::before { display: none; } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  position: relative;
  text-align: center;
}

.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-med);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── PRICING ─────────────────────────────────────────────────────── */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  color: var(--text-sec);
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(52,211,153,0.15);
  color: var(--success);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(79,143,255,0.5);
  background: linear-gradient(160deg, rgba(79,143,255,0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(79,143,255,0.1);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid rgba(79,143,255,0.4);
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-amount .dollar {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-sec);
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-amount .price {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-amount .per {
  font-size: 0.88rem;
  color: var(--text-sec);
}

.pricing-billed {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-annual-equiv {
  font-size: 0.82rem;
  color: var(--success);
  margin-bottom: 28px;
  font-weight: 600;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-sec);
}

.pricing-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}

.pricing-cta.primary {
  background: var(--accent);
  color: #fff;
}
.pricing-cta.primary:hover { background: #3a76ef; }

.pricing-cta.ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border-med);
}
.pricing-cta.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.pricing-trial-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.pricing-trial-note a { color: var(--text-sec); text-decoration: underline; }

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 800px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.testimonial-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(79,143,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.2s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* ── CTA BANNER ──────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(79,143,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 20px;
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-sec);
}

.footer-brand svg { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-sec); }

/* ── VIDEO SECTION ───────────────────────────────────────────────── */
.video-section {
  padding: 0 32px 72px;
}

.video-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.video-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.video-inner iframe,
.video-inner video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── ANNUAL/MONTHLY TOGGLE LOGIC ─────────────────────────────────── */
.price-monthly { display: block; }
.price-annual  { display: none; }

body.annual .price-monthly { display: none; }
body.annual .price-annual  { display: block; }
