/* ============================================
   zaWise Design System - css/style.css
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:wght@400;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --teal-900: #0a3d3d;
  --teal-800: #0d4f4f;
  --teal-700: #136363;
  --teal-600: #1a7a7a;
  --teal-500: #219191;
  --teal-100: #d4f0f0;
  --teal-50: #effafa;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --green-600: #059669;
  --green-100: #d1fae5;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Trust Banner --- */
.trust-banner {
  background: var(--teal-900);
  color: var(--teal-100);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.02em;
}

.trust-banner a {
  color: var(--amber-400);
  text-decoration: underline;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo .za { color: var(--teal-800); }
.logo .wise { color: var(--amber-500); }

.logo-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--teal-100);
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal-50);
  color: var(--teal-700);
  text-decoration: none;
}

/* --- Hamburger --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--amber-500);
  color: var(--gray-900);
  border-color: var(--amber-500);
}

.btn--primary:hover {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--gray-900);
}

.btn--teal {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

.btn--teal:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card a { text-decoration: none; }
.card a:hover { text-decoration: none; }

.card h3 { margin-top: 0.75rem; }
.card p { color: var(--gray-600); font-size: 0.95rem; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover { text-decoration: none; color: inherit; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.card-icon--teal { background: var(--teal-100); color: var(--teal-700); }
.card-icon--amber { background: var(--amber-100); color: var(--amber-600); }
.card-icon--green { background: var(--green-100); color: var(--green-600); }
.card-icon--red { background: var(--red-100); color: var(--red-600); }
.card-icon--orange { background: var(--orange-100); color: var(--orange-600); }

/* --- Alerts --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.alert--info {
  background: var(--teal-50);
  border-color: var(--teal-600);
  color: var(--teal-900);
}

.alert--warn {
  background: var(--amber-50);
  border-color: var(--amber-600);
  color: var(--gray-900);
}

.alert--danger {
  background: var(--red-100);
  border-color: var(--red-600);
  color: var(--gray-900);
}

.alert--success {
  background: var(--green-100);
  border-color: var(--green-600);
  color: var(--gray-900);
}

/* --- Flowchart --- */
.flowchart {
  position: relative;
  padding-left: 2.5rem;
  margin: 1.5rem 0;
}

.flowchart::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--teal-100);
}

.flowchart-step {
  position: relative;
  padding: 1rem 0 1.5rem;
}

.flowchart-step:last-child { padding-bottom: 0; }

.flowchart-num {
  position: absolute;
  left: -2.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--teal-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.flowchart-step h4 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.flowchart-step p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Decision Box --- */
.decision-box {
  border: 2px solid var(--amber-400);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--amber-50);
}

.decision-box h3 {
  color: var(--amber-600);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.decision-node {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--amber-200);
  align-items: flex-start;
}

.decision-node:last-child { border-bottom: none; }

.decision-q {
  font-weight: 600;
  color: var(--gray-800);
  min-width: 50%;
}

.decision-a {
  color: var(--teal-700);
  font-weight: 500;
}

.decision-a a { font-weight: 600; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.3rem;
}

.badge--green { background: var(--green-100); color: var(--green-600); }
.badge--orange { background: var(--orange-100); color: var(--orange-600); }
.badge--red { background: var(--red-100); color: var(--red-600); }
.badge--teal { background: var(--teal-100); color: var(--teal-700); }
.badge--amber { background: var(--amber-100); color: var(--amber-600); }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap thead {
  background: var(--teal-700);
  color: var(--white);
}

.table-wrap th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.table-wrap tbody tr:hover {
  background: var(--gray-50);
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

/* --- FAQ Accordion --- */
.faq-list { margin: 1.5rem 0; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-50); }

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Status Indicator --- */
.status-list { margin: 1.5rem 0; }

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--white);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--green { background: var(--green-600); box-shadow: 0 0 0 3px rgba(5,150,105,0.2); }
.status-dot--amber { background: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.status-dot--red { background: var(--red-600); box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }

.status-label {
  font-weight: 600;
  color: var(--gray-800);
  flex: 1;
}

.status-note {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.status-updated {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- Scam Card --- */
.scam-card {
  background: var(--red-100);
  border: 1px solid var(--red-600);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.scam-card h4 {
  color: var(--red-600);
  margin-bottom: 0.5rem;
}

.scam-preview {
  font-family: 'Courier New', Courier, monospace;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0.75rem 0;
}

.scam-why {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 600;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: '/'; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb .current { color: var(--white); font-weight: 500; }

/* --- Article Meta --- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}

.page-header h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* --- Content Layout --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.content-main { min-width: 0; }

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Sidebar Cards --- */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-100);
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 0;
}

.sidebar-card li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-card li a:hover {
  color: var(--teal-700);
  text-decoration: none;
}

.sidebar-card li:last-child a { border-bottom: none; }

/* --- Hero Section (homepage) --- */
.hero {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 50%, var(--teal-600) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}

.section--gray { background: var(--gray-50); }
.section--white { background: var(--white); }
.section--dark { background: var(--teal-900); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section--dark .card { background: var(--teal-800); border-color: var(--teal-700); }
.section--dark .card h3 { color: var(--white); }
.section--dark .card p { color: var(--teal-100); }

.section h2 {
  margin-bottom: 1.25rem;
}

.section-intro {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* --- Checklist --- */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}

.checklist li:last-child { border-bottom: none; }

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.check-icon--yes { background: var(--green-100); color: var(--green-600); }
.check-icon--no { background: var(--red-100); color: var(--red-600); }

/* --- News article cards --- */
.news-article {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--white);
}

.news-article h3 { margin-bottom: 0.5rem; }

.news-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand .logo {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.35rem; }

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid var(--gray-800);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-disclaimer strong { color: var(--gray-300); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--white); }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-link {
  color: var(--teal-700);
  font-weight: 500;
  text-decoration: underline;
}

.text-link:hover { color: var(--teal-500); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.65rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .section { padding: 2rem 0; }
  .page-header { padding: 2rem 0 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn { text-align: center; justify-content: center; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .decision-node {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  .card { padding: 1.25rem; }
  .table-wrap { font-size: 0.85rem; }
  .table-wrap th, .table-wrap td { padding: 0.6rem 0.75rem; }
}
