/* ==========================================================================
   Triple Aim Healthcare Services — Design System
   ========================================================================== */

:root {
  --color-primary: #1E88E5;
  --color-primary-dark: #1565C0;
  --color-secondary: #2E7D32;
  --color-accent: #42A5F5;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #263238;
  --color-text-muted: #5A6B72;
  --color-border: #E3E9EF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 41, 59, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--color-text);
}

p { margin: 0 0 16px; color: var(--color-text-muted); }

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

img, svg { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(30, 136, 229, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header h2 { font-size: clamp(28px, 4vw, 38px); }
.section-header p { font-size: 17px; }

/* ---------------------------------- Buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: rgba(30, 136, 229, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------------------------- Navbar -------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}
.brand img { width: 34px; height: 34px; }
.brand span.tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 20px; }

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
}
.hero-copy h1 .accent-underline {
  position: relative;
  color: var(--color-primary);
  white-space: nowrap;
}

.hero-copy .lede {
  font-size: 18px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 36px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 32px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--color-text);
}
.hero-features .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-features .check svg { width: 12px; height: 12px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,136,229,0.14), rgba(66,165,245,0.08) 60%, rgba(46,125,50,0.10));
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  z-index: 0;
  animation: blobFloat 10s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 40% 60% / 45% 55% 50% 55%; }
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.hero-card-avatar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.hero-card-avatar .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}
.hero-card-avatar strong { font-family: var(--font-heading); font-size: 15px; }
.hero-card-avatar small { color: var(--color-text-muted); font-size: 13px; }

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(46,125,50,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.hero-card-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-secondary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
}
.hero-card-row .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,136,229,0.1);
  color: var(--color-primary);
  flex-shrink: 0;
}
.hero-card-row .icon svg { width: 17px; height: 17px; }

.hero-float-badge {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.hero-float-badge.top { top: -18px; right: 8%; }
.hero-float-badge.bottom { bottom: -18px; left: 4%; }
.hero-float-badge svg { width: 20px; height: 20px; color: var(--color-secondary); }

.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-strip p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.trust-logos {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-logos span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #94A3B8;
}

/* ---------------------------------- Cards / Grids -------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(30,136,229,0.1);
  color: var(--color-primary);
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon.green { background: rgba(46,125,50,0.1); color: var(--color-secondary); }
.card-icon.sky { background: rgba(66,165,245,0.14); color: var(--color-accent); }

.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ------------------------------- How it works ------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.step {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.step:nth-child(even) .step-num { background: var(--color-secondary); }
.step h4 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13px; margin-bottom: 0; }

.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--color-border) 0 8px, transparent 8px 14px);
  z-index: 0;
}

/* ---------------------------------- Portals -------------------------------- */

.portal-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.portal-emoji {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.portal-emoji svg { width: 30px; height: 30px; }
.portal-card h3 { font-size: 19px; margin-bottom: 14px; }
.portal-card ul { margin-bottom: 24px; flex-grow: 1; }
.portal-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 5px 0;
}
.portal-card li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ------------------------------- Why choose -------------------------------- */

.why-section {
  background: linear-gradient(135deg, #12294A, #1E88E5 130%);
  border-radius: 28px;
  padding: 72px 56px;
  color: #fff;
}
.why-section .section-header h2,
.why-section .section-header p { color: #fff; }
.why-section .section-header p { color: rgba(255,255,255,0.8); }
.why-section .eyebrow { background: rgba(255,255,255,0.15); color: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
}
.why-item .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item .check svg { width: 13px; height: 13px; }

/* ---------------------------------- AI section ------------------------------ */

.ai-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--color-card);
  border-radius: 28px;
  padding: 64px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.ai-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(30,136,229,0.35);
}
.ai-ring.r1 { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.ai-ring.r2 { width: 72%; height: 72%; border-color: rgba(46,125,50,0.3); animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-core {
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.ai-core svg { width: 40%; height: 40%; }

.ai-risk-badges { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.risk-badge {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.risk-badge.green { background: rgba(46,125,50,0.12); color: #2E7D32; }
.risk-badge.yellow { background: rgba(245,166,35,0.15); color: #B7791F; }
.risk-badge.orange { background: rgba(237,108,2,0.14); color: #C2540A; }
.risk-badge.red { background: rgba(211,47,47,0.13); color: #C62828; }

/* ---------------------------------- Partners -------------------------------- */

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.partner-pill {
  padding: 14px 28px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.partner-pill.soon {
  border-style: dashed;
  color: var(--color-accent);
}

/* -------------------------------- Testimonials ------------------------------ */

.testimonial-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.stars { color: #F5A623; font-size: 15px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--color-text);
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 13px; color: var(--color-text-muted); }

/* ---------------------------------- App banner ------------------------------ */

.app-banner {
  background: linear-gradient(120deg, var(--color-secondary), #1B5E20);
  border-radius: 28px;
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.app-banner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 34px); }
.app-banner p { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 460px; }
.app-buttons { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
}
.store-btn small { display: block; font-size: 10.5px; font-weight: 400; opacity: 0.8; }
.store-btn strong { font-size: 14px; }
.qr-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  width: fit-content;
  margin: 0 auto;
}

/* ---------------------------------- Contact -------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h4 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; margin-bottom: 0; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: #0F1E2E;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 16px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }

.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------- Reveal animation ------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Modal (auth) ----------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 46, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--color-bg);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-muted);
}
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal p.sub { font-size: 14px; margin-bottom: 24px; }
.portal-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.portal-choice a {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.portal-choice a:hover { border-color: var(--color-primary); background: rgba(30,136,229,0.05); }
.portal-choice .ic { font-size: 22px; display: block; margin-bottom: 8px; }

/* ---------------------------------- Responsive ------------------------------ */

@media (max-width: 1080px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ai-section .container { grid-template-columns: 1fr; padding: 48px 32px; }
  .app-banner { grid-template-columns: 1fr; text-align: center; }
  .app-banner p { margin-left: auto; margin-right: auto; }
  .app-buttons { justify-content: center; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar .nav-actions .lang-select,
  .navbar .nav-actions > .btn { display: none; }
  .brand .tag { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-6, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-features { grid-template-columns: 1fr; }
  .why-section { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .portal-choice { grid-template-columns: 1fr; }
  .hero-float-badge { display: none; }
  .hero-card { padding: 22px; }
  .ai-section .container { padding: 40px 24px; }
  .why-section { padding: 40px 20px; }
  .app-banner { padding: 40px 24px; }
}

.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .nav-actions {
  margin-top: 14px;
  flex-direction: column;
  align-items: stretch;
}

/* ---------------------------------- Page hero (sub-pages) -------------------- */

.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero .container { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.page-hero .hero-cta { justify-content: center; margin: 0 0 8px; }

/* ---------------------------------- Goals grid (About) ----------------------- */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.goal-item .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(46,125,50,0.12);
  color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* ---------------------------------- Steps (4-up variant) --------------------- */

.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------- Timeline (roadmap) ------------------------ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.timeline-phase {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14.5px;
  line-height: 1.4;
}
.timeline-duration {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 12px; }
.timeline-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.timeline-item li {
  font-size: 13.5px;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 14px;
}
.timeline-item li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------------------------------- Contact form ------------------------------ */

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-success {
  display: none;
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.3);
  color: var(--color-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}
.form-success.show { display: block; }

.portal-card .learn-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
}
.portal-card .learn-more:hover { text-decoration: underline; }

.services-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-primary);
}
.services-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
