@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:         #0F172A;
  --navy-800:     #1E293B;
  --navy-700:     #334155;
  --accent:       #2563EB;
  --accent-dark:  #1D4ED8;
  --accent-dim:   #EFF6FF;
  --indigo:       #6366F1;
  --indigo-dim:   #EEF2FF;
  --success:      #10B981;
  --success-bg:   #ECFDF5;
  --warning:      #F59E0B;
  --warning-bg:   #FFFBEB;
  --danger:       #EF4444;
  --danger-bg:    #FEF2F2;
  --text:         #334155;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --border:       #E2E8F0;
  --surface:      #FFFFFF;
  --bg:           #F8FAFC;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:       0 4px 12px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.06);
}

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

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

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--navy); }
h1 { font-size: 1.625rem; margin-bottom: 0.5em; }
h2 { font-size: 1.25rem;  margin-bottom: 0.5em; }
h3 { font-size: 1rem;     margin-bottom: 0.4em; }
p  { margin-bottom: 1em;  color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent-dark); }

button, .btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s, opacity 0.15s;
  white-space: nowrap;
  line-height: 1.4;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); box-shadow: var(--shadow-sm); }
button.secondary, .btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
button.secondary:hover { background: var(--bg); box-shadow: var(--shadow-sm); }

/* Coming-soon state — non-clickable, greyed out */
.btn-coming-soon {
  cursor: default;
  opacity: 0.65;
}
.btn-coming-soon:hover { background: var(--accent); box-shadow: none; transform: none; }
.landing-btn-primary.btn-coming-soon:hover { background: var(--accent); }
.landing-btn-secondary.btn-coming-soon:hover { background: rgba(255,255,255,0.08); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
thead { background: var(--bg); }
th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.badge-pro { background: var(--indigo-dim); color: var(--indigo); }

/* ── Utilities ── */
.text-muted    { color: var(--text-muted) !important; }
.text-accent   { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-center   { text-align: center; }
.w-full { width: 100%; }

/* ── Landing Page ── */
.landing-page { min-height: 100vh; background: var(--bg); }

.landing-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 24px;
  background: var(--accent-dim);
  border-bottom: 1px solid #BFDBFE;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.landing-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 64px 24px 72px;
}
.landing-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.landing-logo { display: flex; justify-content: center; margin-bottom: 40px; }
.landing-headline {
  font-size: 2rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.25;
  margin-bottom: 20px;
}
.landing-subheadline {
  font-size: 1.0625rem;
  color: #94A3B8;
  line-height: 1.75;
  margin-bottom: 36px;
}
.landing-hero-mission {
  max-width: 580px;
  margin: 0 auto 36px;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}
.landing-hero-mission p {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.7;
  margin: 0 0 12px;
}
.landing-hero-mission p:last-child { margin-bottom: 0; }
.landing-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.landing-btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
}
.landing-btn-primary:hover { background: var(--accent-dark); }
.landing-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #E2E8F0;
  border-color: rgba(255,255,255,0.15);
  padding: 12px 28px;
  font-size: 1rem;
}
.landing-btn-secondary:hover { background: rgba(255,255,255,0.14); }
.landing-hero-note { font-size: 0.8125rem; color: #64748B; }

.landing-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}
.landing-section { margin-bottom: 56px; }
.landing-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.landing-section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 32px;
  text-align: left;
}
.landing-audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.landing-audience-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.landing-audience-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.landing-audience-card ul {
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 2;
  list-style: disc;
  color: var(--text-muted);
}

.landing-provinces { display: flex; gap: 16px; flex-wrap: wrap; }
.landing-province-group {
  flex: 1;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.landing-province-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.landing-province-list { display: flex; flex-direction: column; gap: 8px; }
.landing-province-item { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.landing-province-code { font-weight: 700; color: var(--navy); width: 28px; flex-shrink: 0; }
.landing-province-name { flex: 1; color: var(--text-muted); }
.landing-province-rate { font-weight: 600; color: var(--accent); font-size: 0.875rem; }

.landing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.landing-plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.landing-plan-card-pro { border-color: var(--accent); }
.landing-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1;
}
.landing-plan-price span { font-size: 0.9375rem; font-weight: 400; color: var(--text-muted); margin-left: 2px; }

.plan-features { list-style: none; margin: 12px 0 20px; padding: 0; }
.plan-features li { padding: 4px 0; color: var(--text-muted); font-size: 0.9375rem; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }

.landing-faq {
  max-width: 680px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.landing-faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.landing-faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Guide / Legal Page ── */
.guide-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 48px 24px;
}
.guide-container {
  max-width: 760px;
  margin: 0 auto;
}
.guide-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.guide-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.guide-section { margin-bottom: 44px; }
.guide-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.guide-section h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.guide-section p { color: var(--text-muted); line-height: 1.75; }
.guide-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.guide-section ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.guide-section ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* Guide steps */
.guide-steps { display: flex; flex-direction: column; gap: 20px; }
.guide-step {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Feature cards */
.guide-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.guide-feature-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
.guide-feature-card h3 { font-size: 0.9375rem; margin-bottom: 8px; }
.guide-feature-card p  { font-size: 0.875rem; margin-bottom: 0; }

/* Plan table */
.guide-plan-table { overflow-x: auto; }

/* Tips */
.guide-tips { display: flex; flex-direction: column; gap: 16px; }
.guide-tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.guide-tip strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 0.9375rem; }
.guide-tip p { font-size: 0.875rem; margin-bottom: 0; }
.guide-tip ul, .guide-tip ol { padding-left: 20px; margin-top: 6px; margin-bottom: 8px; }
.guide-tip ul li, .guide-tip ol li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 4px; }
.guide-tip ul { list-style: disc; }
.guide-tip ol { list-style: decimal; }

/* Guide / legal footer */
.guide-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.guide-footer p { font-size: 0.875rem; }
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.legal-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}
.legal-links a:hover { color: var(--accent); }
.legal-links span { color: var(--border); font-size: 0.8125rem; }

/* Prose — legal page text */
.prose .guide-section p,
.prose .guide-section ul li {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.prose .guide-section ul li::before { content: "–"; }

.guide-copyright {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Code example block (guide page) */
.code-example {
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .landing-headline { font-size: 1.5rem; }
  .landing-audience-grid { grid-template-columns: 1fr 1fr; }
  .landing-province-group { min-width: 100%; }
  .guide-step { flex-direction: column; gap: 12px; }
}
