/* ── Snag Assistant — Blueprint palette ── */
:root {
  --navy:   #1A3C5E;
  --amber:  #F28C38;
  --cream:  #F5F0E8;
  --light:  #EBF2F8;
  --mid:    #A8C4DC;
  --dark:   #0F2438;
  --text:   #2C3E50;
  --muted:  #5D7A8A;
  --white:  #FFFFFF;
  --border: #D4E4F0;
  --success:#1B5E42;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(26,60,94,0.10);
  --shadow-lg: 0 8px 40px rgba(26,60,94,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: var(--navy); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  height: 64px; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.nav-logo-text span { color: var(--amber); }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--muted); font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { background: var(--amber); color: var(--white) !important; padding: 8px 20px; border-radius: var(--radius); font-weight: 600 !important; transition: background 0.15s !important; }
.nav-cta:hover { background: #d97a28 !important; text-decoration: none !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-menu { display: none; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; margin-left: auto; }
  .nav-mobile-menu.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px; z-index: 99;
  }
  .nav-mobile-menu a { padding: 12px 0; color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--border); text-decoration: none; }
  .nav-mobile-menu a:last-child { border-bottom: none; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #22527A 100%);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--amber); }
.hero p { font-size: 1.15rem; color: var(--mid); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-sub { font-size: 0.85rem !important; color: var(--mid) !important; margin: 0 !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-primary:hover { background: #d97a28; border-color: #d97a28; text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--dark); border-color: var(--dark); text-decoration: none; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; padding: 32px 20px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--light); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px; font-size: 28px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.step-connector { display: none; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--light); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; align-items: start; }
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--navy); border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; white-space: nowrap; letter-spacing: 0.05em;
}
.pricing-tier { font-size: 0.8rem; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.pricing-price .amount { font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-price .period { color: var(--muted); font-size: 0.9rem; }
.pricing-zar { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.pricing-features li.no::before { content: '✗'; color: var(--border); }
.trial-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.enterprise-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; margin-top: 24px;
  color: var(--white);
}
.enterprise-card h3 { color: var(--white); margin-bottom: 12px; }
.enterprise-card p { color: var(--mid); margin-bottom: 24px; }

/* ── TRIAL BANNER ── */
.trial-banner {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 32px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.trial-banner-icon { font-size: 36px; flex-shrink: 0; }
.trial-banner h3 { margin-bottom: 4px; font-size: 1.1rem; }
.trial-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.trial-banner .btn { margin-left: auto; flex-shrink: 0; }

/* ── TESTIMONIALS / SOCIAL PROOF ── */
.testimonials { background: var(--light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.testimonial {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
}
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 20px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.82rem; color: var(--muted); }

/* ── CTA SECTION ── */
.cta-section { background: var(--navy); color: var(--white); text-align: center; padding: 80px 0; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: var(--mid); font-size: 1.1rem; margin-bottom: 36px; }

/* ── FOOTER ── */
footer { background: var(--dark); color: var(--mid); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col a { display: block; color: var(--mid); font-size: 0.88rem; margin-bottom: 10px; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; font-size: 0.82rem; }
.footer-bottom a { color: var(--mid); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ── LEGAL PAGES ── */
.legal-content { padding: 60px 0 80px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 48px; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-content ul, .legal-content ol { margin: 0 0 1rem 24px; }
.legal-content li { margin-bottom: 6px; font-size: 0.95rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.legal-content th { background: var(--light); padding: 10px 14px; text-align: left; border: 1px solid var(--border); color: var(--navy); }
.legal-content td { padding: 10px 14px; border: 1px solid var(--border); }

/* ── SIGNUP FORM ── */
.signup-section { background: var(--light); min-height: 100vh; display: flex; align-items: center; padding: 60px 0; }
.signup-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; width: 100%; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; color: var(--text);
  transition: border-color 0.15s; outline: none; background: var(--white);
}
.form-input:focus { border-color: var(--navy); }
.form-input.error { border-color: #E24B4A; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: #E24B4A; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.plan-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-label {
  display: block; padding: 12px 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; text-align: center;
  transition: all 0.15s;
}
.plan-label:hover { border-color: var(--navy); }
.plan-option input:checked + .plan-label { border-color: var(--navy); background: var(--light); }
.plan-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); display: block; }
.plan-price { font-size: 0.82rem; color: var(--muted); display: block; }
.divider-text { text-align: center; position: relative; margin: 24px 0; font-size: 0.85rem; color: var(--muted); }
.divider-text::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider-text span { position: relative; background: var(--white); padding: 0 12px; }
.country-note { background: var(--light); border-radius: var(--radius); padding: 12px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.country-note strong { color: var(--navy); }
.logo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: border-color 0.15s; position: relative;
}
.logo-upload-area:hover { border-color: var(--navy); }
.logo-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.logo-preview { max-width: 200px; max-height: 80px; margin: 12px auto 0; display: none; }
.logo-preview.visible { display: block; }
.steps-indicator { display: flex; gap: 0; margin-bottom: 36px; }
.step-ind { flex: 1; height: 4px; background: var(--border); transition: background 0.3s; }
.step-ind.active { background: var(--amber); }
.step-ind.done { background: var(--navy); }
.form-section { display: none; }
.form-section.active { display: block; }
.form-section-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.form-section-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }

/* ── UTILS ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-amber { color: var(--amber); }
.text-navy { color: var(--navy); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.pill-amber { background: #FEF0E0; color: #9A5A10; }
.pill-navy { background: var(--light); color: var(--navy); }
.pill-green { background: #E6F3EE; color: var(--success); }
