/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow),
    box-shadow var(--transition-slow), padding var(--transition-slow);
}

.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--color-divider);
  padding-block: var(--space-3);
}

[data-theme='dark'] .nav.is-scrolled {
  background: rgba(14, 26, 27, 0.82);
}

.nav__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav__logo img { width: 100%; height: 100%; object-fit: cover; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  padding: var(--space-2) var(--space-1);
  position: relative;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition-interactive), background var(--transition-interactive);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition-interactive), top var(--transition-interactive);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links,
  .nav__actions .btn {
    display: none;
  }
  .nav__toggle { display: flex; }
  .nav__inner { gap: var(--space-4); }
  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    padding: var(--space-2) var(--space-6) var(--space-6);
    border-top: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links li { width: 100%; }
  .nav.is-open .nav__links a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    width: 100%;
    font-size: var(--text-base);
    display: block;
    color: var(--color-text);
  }
  .nav.is-open .nav__links li:last-child a { border-bottom: none; }
  .nav__mobile-cta { display: block !important; }
  .nav__mobile-cta a { padding: var(--space-3) var(--space-6) !important; border-bottom: none !important; color: #fff !important; }
}
@media (min-width: 961px) {
  .nav__mobile-cta { display: none; }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 82, 87, 0.2), 0 8px 24px -8px rgba(15, 82, 87, 0.35);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 82, 87, 0.25), 0 14px 32px -8px rgba(15, 82, 87, 0.4);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-1px);
}

.btn--large { padding: 1.05rem 1.85rem; font-size: var(--text-base); }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--text-xs); }

.btn__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   THEME TOGGLE
============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  padding-block: clamp(7rem, 12vw, 10rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__bg::before {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, var(--color-mint) 0%, transparent 70%);
}

.hero__bg::after {
  width: 600px;
  height: 600px;
  top: 100px;
  right: -200px;
  background: radial-gradient(circle, var(--color-lavender) 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__mockup { margin-inline: auto; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-mint-strong);
  box-shadow: 0 0 0 3px rgba(126, 196, 163, 0.25);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(126, 196, 163, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(126, 196, 163, 0.05); }
}

.hero__title {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 400;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero__subtitle { margin-inline: auto; }
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__badges { justify-content: center; }
}

.hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__badges svg { width: 16px; height: 16px; color: var(--color-primary); }

/* Hero mockup */
.hero__mockup {
  position: relative;
  max-width: 320px;
  width: 100%;
  aspect-ratio: 10 / 20;
}
@media (max-width: 640px) {
  .hero__mockup { max-width: 260px; aspect-ratio: 10 / 19; }
}

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: linear-gradient(155deg, #1a2a2b 0%, #0a1516 100%);
  padding: 12px;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1.5px rgba(255, 255, 255, 0.05) inset,
    0 40px 100px -30px rgba(15, 82, 87, 0.45);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-mint) 0%, var(--color-bg) 40%);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0a1516;
  border-radius: 12px;
  z-index: 5;
}

.phone__status {
  padding: 18px 22px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  padding-top: 40px;
}

.phone__content {
  padding: 8px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.phone__greeting {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0f5257;
}
.phone__greeting small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(15, 82, 87, 0.65);
  letter-spacing: 0;
  margin-top: 2px;
}

.phone__card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 82, 87, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone__card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone__card-icon svg { width: 16px; height: 16px; }

.phone__card-title {
  font-size: 11px;
  font-weight: 600;
  color: #1a2a2b;
  line-height: 1.2;
}
.phone__card-sub {
  font-size: 9.5px;
  color: rgba(26, 42, 43, 0.55);
  margin-top: 1px;
}

.phone__section-title {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 42, 43, 0.5);
  margin-top: 4px;
}

.phone__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone__tile {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(15, 82, 87, 0.06);
}

.phone__tile-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__tile-icon svg { width: 14px; height: 14px; }

.phone__tile-label {
  font-size: 10px;
  font-weight: 600;
  color: #1a2a2b;
  line-height: 1.15;
}

.phone__tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(15, 82, 87, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.phone__tab {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 82, 87, 0.35);
}
.phone__tab svg { width: 18px; height: 18px; }
.phone__tab.is-active {
  background: #0f5257;
  color: #fff;
}

/* Floating cards around phone */
.float-card {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
  animation: float-drift 7s ease-in-out infinite;
  min-width: 180px;
  z-index: 2;
}

.float-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-card__icon svg { width: 16px; height: 16px; }

.float-card__title {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}
.float-card__sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.float-card--1 {
  top: 10%;
  left: -8%;
  animation-delay: 0s;
}
.float-card--2 {
  bottom: 22%;
  right: -12%;
  animation-delay: 1.4s;
}
.float-card--3 {
  bottom: 5%;
  left: -6%;
  animation-delay: 2.8s;
}

@media (max-width: 1100px) {
  .float-card--1 { left: -2%; }
  .float-card--2 { right: -2%; }
  .float-card--3 { left: -2%; }
}
@media (max-width: 640px) {
  .float-card { display: none; }
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   SECTION HEADERS
============================================ */
.section-header {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.section-header--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.section-title em { font-style: italic; color: var(--color-primary); font-weight: 400; }

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 36rem;
  margin-inline: auto;
}
.section-header--left .section-lead { margin-inline: 0; }

/* ============================================
   STATS
============================================ */
.stats {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.stats__label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  letter-spacing: 0.02em;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
}

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats__grid { grid-template-columns: 1fr; }
}

.stat {
  text-align: center;
  padding-block: var(--space-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* ============================================
   FEATURES GRID
============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow),
    border-color var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-highlight);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.feature-card__icon svg { width: 26px; height: 26px; }

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.feature-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-card__list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

/* Icon color variants */
.tint-teal    { background: var(--color-primary-highlight); color: var(--color-primary); }
.tint-mint    { background: var(--color-mint); color: #1a5c40; }
.tint-blue    { background: var(--color-blue); color: #234668; }
.tint-lavender{ background: var(--color-lavender); color: #4a3b6b; }
.tint-gold    { background: var(--color-gold-soft); color: #7a5416; }
.tint-coral   { background: #fadfd9; color: #a83e2c; }

[data-theme='dark'] .tint-teal    { background: #163e42; color: var(--color-primary); }
[data-theme='dark'] .tint-mint    { background: #1e3a30; color: #a5dcc1; }
[data-theme='dark'] .tint-blue    { background: #22384c; color: #a5c3dc; }
[data-theme='dark'] .tint-lavender{ background: #2f2b45; color: #c7bce4; }
[data-theme='dark'] .tint-gold    { background: #3a2f18; color: var(--color-gold); }
[data-theme='dark'] .tint-coral   { background: #3d2620; color: #e8a99a; }

/* Phone mockup always shows its own light-mode UI regardless of page theme */
[data-theme='dark'] .phone .tint-teal    { background: #d3e3e0; color: #0f5257; }
[data-theme='dark'] .phone .tint-mint    { background: #c9e7d8; color: #1a5c40; }
[data-theme='dark'] .phone .tint-blue    { background: #b8d0e6; color: #234668; }
[data-theme='dark'] .phone .tint-lavender{ background: #dcd4ec; color: #4a3b6b; }
[data-theme='dark'] .phone .tint-gold    { background: #f0dcae; color: #7a5416; }
[data-theme='dark'] .phone .tint-coral   { background: #fadfd9; color: #a83e2c; }

/* ============================================
   ASSIGNMENT DASHBOARD
============================================ */
.assign-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .assign-wrap { grid-template-columns: 1fr; } }

.assign-text .checklist {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Dashboard mockup */
.dashboard {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.dashboard__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dashboard__pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-mint);
  color: #1a5c40;
}
[data-theme='dark'] .dashboard__pill { background: #1e3a30; color: #a5dcc1; }

.assign-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.assign-row + .assign-row { margin-top: var(--space-2); }

.assign-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assign-row__icon svg { width: 20px; height: 20px; }

.assign-row__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.assign-row__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.progress {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.progress__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.progress__label strong { color: var(--color-text); font-weight: 600; }
.progress__bar {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-mint-strong));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge svg { width: 12px; height: 12px; }
.badge--success { background: var(--color-mint); color: #1a5c40; border-color: transparent; }
.badge--warning { background: var(--color-gold-soft); color: #7a5416; border-color: transparent; }
[data-theme='dark'] .badge--success { background: #1e3a30; color: #a5dcc1; }
[data-theme='dark'] .badge--warning { background: #3a2f18; color: var(--color-gold); }

/* ============================================
   HOSPITAL GUIDE
============================================ */
.hospital-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hospital-wrap { grid-template-columns: 1fr; }
  .hospital-wrap .hospital-visual { order: -1; }
}

.hospital-visual {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
}

.hospital-header {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-4);
}
.hospital-header__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hospital-header__logo svg { width: 24px; height: 24px; }
.hospital-header__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}
.hospital-header__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--color-text);
}
.rating svg { width: 12px; height: 12px; color: var(--color-gold); fill: currentColor; }

.tip {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  font-size: var(--text-xs);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}
.tip strong {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.review {
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}
.review__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.review__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-lavender-strong), var(--color-blue-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.review__name {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
}
.review__meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-primary);
  font-weight: 600;
}
.review__verified svg { width: 10px; height: 10px; }
.review__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================
   COMPARISON
============================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
}

.compare-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}
.compare-card--without {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
.compare-card--with {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.compare-card--with::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.compare-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: var(--space-2);
}
.compare-card--with .compare-card__label { color: var(--color-mint); opacity: 1; }
.compare-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: inherit;
}
.compare-card--with .compare-card__title { color: #fff; }

.compare-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.compare-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.03);
}
.compare-card--with .compare-list li {
  background: rgba(255, 255, 255, 0.08);
}
.compare-list svg { width: 18px; height: 18px; flex-shrink: 0; }
.compare-card--without svg { color: var(--color-text-faint); }
.compare-card--with svg { color: var(--color-mint-strong); }

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--color-text);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  margin-top: auto;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-lavender-strong), var(--color-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial__name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
}
.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.testimonial__placeholder-note {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  align-self: flex-start;
}

/* ============================================
   PRICING
============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.plan--featured {
  border: 1.5px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
@media (max-width: 900px) { .plan--featured { transform: none; } }

.plan__ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.plan__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}
.plan__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-primary);
}
.plan__price small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}
.plan__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.plan__list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FAQ
============================================ */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--color-primary-highlight);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--color-primary);
}
.faq-item p {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ============================================
   CTA
============================================ */
.cta {
  padding: clamp(3rem, 8vw, 6rem);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #0f5257 0%, #1a7378 60%, #29a2a8 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(220, 212, 236, 0.3), transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(201, 231, 216, 0.25), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 20ch;
  margin-inline: auto;
}
.cta__title em { font-style: italic; color: var(--color-mint); }
.cta__lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta__buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
}
.cta .btn--primary:hover {
  background: var(--color-mint);
  color: var(--color-primary);
}
.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ============================================
   ABOUT / MISSION
============================================ */
.mission {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.mission__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--color-text);
  margin-block: var(--space-6) var(--space-4);
}
.mission__quote em { font-style: italic; color: var(--color-primary); }

/* ============================================
   COMMUNITY / SAFETY LISTS
============================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-8);
  margin-top: var(--space-8);
  max-width: 780px;
}
@media (max-width: 600px) { .list-grid { grid-template-columns: 1fr; } }

.list-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.list-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-item__icon svg { width: 20px; height: 20px; }
.list-item__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 2px;
}
.list-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ============================================
   FOOTER
============================================ */
.footer {
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 24rem;
}
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer__list a:hover { color: var(--color-primary); }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer__social {
  display: flex;
  gap: var(--space-3);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.footer__social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-surface);
}
.footer__social svg { width: 16px; height: 16px; }
