/* ========================================
   AltCards — Marketing Site Styles
   ======================================== */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-blue: #ADD8E6;
  --brand-blue-dark: #6FBEDC;
  --bg: #F6FAFD;
  --text-dark: #2F3A44;
  --text-muted: #5A6A78;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --max-w: 1200px;
  --max-w-narrow: 900px;
  --green-accent: #7CB8A0;
  --gold-accent: #D4A06A;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
}
.logo span { color: var(--brand-blue-dark); }

.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color .15s;
}
.nav-links a:hover { color: var(--brand-blue-dark); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); text-decoration: none; }
.btn-primary { background: var(--brand-blue-dark); color: var(--white); }
.btn-primary-sm { padding: 8px 20px; border-radius: 24px; font-size: 14px; }
.btn-outline { background: transparent; border: 2px solid var(--brand-blue-dark); color: var(--brand-blue-dark); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* ── Hero ── */
.hero {
  background: linear-gradient(to bottom, rgba(173,216,230,.55), var(--bg));
  padding: var(--space-xl) var(--space-lg) calc(var(--space-xl) * 1.5);
  text-align: center;
}

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

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(0,0,0,.7);
  margin-bottom: var(--space-lg);
}

.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }

/* ── Template rails ── */
.rails-section {
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--bg);
}
.rails-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.rail {
  margin-bottom: var(--space-xl);
}
.rail-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}
.rail-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  margin-bottom: 2px;
}
.rail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.rail-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  white-space: nowrap;
}
.rail-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 var(--space-sm);
  scrollbar-width: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform .2s;
}
.rail-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}
.rail-card img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e8ecf0;
  display: block;
}
.rail-card-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

/* ── Primary CTA ── */
.primary-cta {
  text-align: center;
  padding: 0 var(--space-lg) var(--space-xl);
  background: var(--bg);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-cta svg { flex-shrink: 0; }

/* ── Section helpers ── */
.section { padding: var(--space-xl) var(--space-lg); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }
.section-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; text-align: center; margin-bottom: var(--space-lg); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: var(--space-xl); max-width: 600px; margin-left: auto; margin-right: auto; }
.bg-light { background: rgba(173,216,230,.15); }
.text-center { text-align: center; }

/* ── How it works — tabs ── */
.hiw-tabs {
  display: flex;
  border-bottom: 2px solid #e8ecf0;
  margin-bottom: var(--space-lg);
}
.hiw-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hiw-tab:hover { color: var(--text-dark); }
.hiw-tab.active { color: var(--brand-blue-dark); border-bottom-color: var(--brand-blue-dark); font-weight: 700; }
.hiw-tab svg { width: 18px; height: 18px; }

.hiw-panel { display: none; }
.hiw-panel.active { display: block; }

.step-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius);
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--brand-blue-dark);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text { font-size: 15px; color: rgba(0,0,0,.8); line-height: 1.4; }

.hiw-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}
.hiw-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(111,190,220,.3);
  transition: width .2s, background .2s;
}
.hiw-dot.active { width: 24px; background: var(--brand-blue-dark); }

.hiw-arrow {
  background: none; border: none;
  font-size: 22px;
  color: var(--brand-blue-dark);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.hiw-arrow:disabled { color: rgba(0,0,0,.12); cursor: default; }

/* ── Page gradient (shared by pricing + how-it-works) ── */
.page-gradient {
  background: linear-gradient(to bottom, #D4EEF7, #F6FAFD 40%);
}

/* ── Pricing (Flutter layout) ── */
.pricing-hero {
  padding: 48px var(--space-lg) 32px;
  text-align: center;
}
.pricing-hero-inner { max-width: 800px; margin: 0 auto; }
.pricing-hero-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: rgba(111,190,220,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pricing-hero-icon svg { width: 40px; height: 40px; }
.pricing-hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.pricing-hero p {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-plans { padding: 0 var(--space-lg) 32px; }
.pricing-plans-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pricing-info-col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.pricing-sub-col { flex: 1; }

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  align-items: flex-start;
}
.info-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(111,190,220,.12);
}
.info-card-icon svg { width: 24px; height: 24px; }
.info-card-content { flex: 1; }
.info-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.info-card-title { font-size: 16px; font-weight: 700; }
.info-card-price { font-size: 18px; font-weight: 800; color: var(--brand-blue-dark); }
.info-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.sub-card {
  padding: 28px;
  background: var(--white);
  border-radius: 24px;
  border: 2px solid var(--brand-blue-dark);
  box-shadow: 0 8px 24px rgba(111,190,220,.3);
  text-align: center;
}
.sub-badge {
  display: inline-block;
  background: var(--brand-blue-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.sub-card h2 { font-size: 22px; font-weight: 800; margin: 16px 0 8px; }
.sub-price { margin-bottom: 24px; }
.sub-price strong { font-size: 36px; font-weight: 800; color: var(--brand-blue-dark); }
.sub-price span { font-size: 16px; color: var(--text-muted); }
.sub-features { text-align: left; margin-bottom: 24px; }
.sub-feature {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; font-size: 15px;
}
.sub-feature svg { width: 20px; height: 20px; flex-shrink: 0; }
.sub-card .btn { width: 100%; text-align: center; }

.pricing-notes { padding: var(--space-lg) var(--space-lg) 48px; }
.pricing-notes-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* ── Quote / breakout ── */
.quote-section {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.quote-section p {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto;
}
.quote-muted {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: var(--space-sm);
}

/* ── Footer / CTA ── */
.footer-cta {
  background: var(--brand-blue);
  padding: calc(var(--space-xl) * 1.5) var(--space-lg);
  text-align: center;
}
.footer-cta h2 { font-size: clamp(20px, 3.5vw, 28px); font-weight: 700; margin-bottom: var(--space-xl); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(47,58,68,.85);
}
.footer-meta {
  font-size: 13px;
  color: rgba(47,58,68,.6);
  margin-top: var(--space-sm);
}
.footer-meta a { color: rgba(47,58,68,.6); text-decoration: underline; }

/* ── How it works page — hero + section groups ── */
.hiw-hero {
  text-align: center;
  padding: 48px var(--space-lg) 0;
  margin-bottom: 48px;
}
.hiw-hero-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: rgba(111,190,220,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hiw-hero-icon svg { width: 48px; height: 48px; }
.hiw-hero h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 800; margin-bottom: 12px; }
.hiw-hero p { font-size: 17px; color: var(--text-muted); }

.hiw-section-group { margin-bottom: var(--space-xl); }
.hiw-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hiw-section-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.hiw-section-header h2 { font-size: 22px; font-weight: 800; }

.hiw-step-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  align-items: flex-start;
}
.hiw-step-num {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.hiw-step-content { flex: 1; }
.hiw-step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.hiw-step-content h3 svg { width: 20px; height: 20px; opacity: .5; }
.hiw-step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0 var(--space-xl);
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #D0D8E0;
}
.section-divider .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(111,190,220,.4);
}

.cta-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  margin-top: var(--space-xl);
}
.cta-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.cta-card p { color: var(--text-muted); margin-bottom: 20px; }

/* ── Legal pages ── */
.legal-page { padding: var(--space-xl) var(--space-lg); }
.legal-inner { max-width: 800px; margin: 0 auto; }
.legal-inner h1 { font-size: 28px; font-weight: 800; margin-bottom: var(--space-sm); }
.legal-inner .updated { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-xl); }
.legal-inner h2 { font-size: 18px; font-weight: 700; margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.legal-inner p, .legal-inner ul { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-md); }
.legal-inner ul { padding-left: 20px; }
.legal-inner li { margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pricing-plans-inner { flex-direction: column; max-width: 480px; margin: 0 auto; }
  .pricing-sub-col { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid rgba(0,0,0,.06); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .menu-toggle { display: block; }
  .trust-bar { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
  .hiw-tab { font-size: 13px; }
  .rail-card { flex: 0 0 140px; }
  .rail-card img { width: 140px; height: 190px; }
}
