/* ===== DPTW3 Shop — Tra cứu thông tin thuốc ===== */

:root {
  /* Teal / Blue-green palette */
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-200: #99F6E4;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --teal-800: #115E59;
  --teal-900: #134E4A;

  /* Emerald accent */
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  /* Cyan */
  --cyan-50: #ECFEFF;
  --cyan-100: #CFFAFE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;

  /* Ink */
  --ink-900: #042F2E;
  --ink-800: #0F3D3A;
  --ink-700: #134E4A;
  --ink-600: #1E5E5A;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50: #F1F5F9;

  /* Surface */
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0F766E 0%, #14B8A6 50%, #10B981 100%);
  --gradient-soft: linear-gradient(135deg, #CCFBF1 0%, #D1FAE5 100%);
  --gradient-hero: linear-gradient(160deg, #F0FDFA 0%, #FFFFFF 40%, #ECFDF5 100%);
  --gradient-card: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 118, 110, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 118, 110, 0.12);
  --shadow-xl: 0 32px 64px rgba(15, 118, 110, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
  flex-shrink: 0;
  overflow: hidden;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand__name span {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 2px;
}

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

.nav a:not(.btn),
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.2s;
  cursor: pointer;
}

.nav a:not(.btn):hover,
.nav__link:hover { color: var(--teal-700); }

/* Nav dropdown (CSS-only, hover) */
.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
  z-index: 200;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: background 0.15s;
}

.nav__dropdown-menu a:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}

.nav__dropdown-menu .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav__dropdown-menu a:hover .ico {
  background: var(--teal-100);
}

.nav__caret {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 2px;
  opacity: 0.5;
}

/* Nav highlight (current page) */
.nav__link.is-active,
.nav a.is-active:not(.btn) {
  color: var(--teal-700);
  font-weight: 700;
}

/* Page role tag (shown in header of role-specific pages) */
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
}

.page-tag--manager {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border-color: var(--emerald-100);
}

.page-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Role switcher banner (in role-specific pages) */
.role-switch {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 24px 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-700);
}

.role-switch .label { color: var(--ink-500); }

.role-switch .switch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  transition: all 0.2s;
  text-decoration: none;
}

.role-switch .switch-link:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
  color: var(--teal-700);
}

/* Role chooser card (entry index) */
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 118, 110, 0.15);
  border-color: var(--teal-400);
}

.role-card[href*="manager"]:hover {
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-400);
}

@media (max-width: 768px) {
  .nav__dropdown-menu { display: none; }
  .role-switch { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-tag { position: static !important; display: inline-flex; margin-bottom: 8px; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}

.btn--ghost {
  background: white;
  color: var(--teal-700);
  border: 1.5px solid var(--teal-200);
}

.btn--ghost:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ============ HERO ============ */

.hero {
  background: var(--gradient-hero);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink-900);
  margin-top: 24px;
  letter-spacing: -0.025em;
}

.hero h1 .accent-teal {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero h1 .accent-emerald {
  color: var(--emerald-600);
  position: relative;
}

.hero__lede {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 540px;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-500);
}

.hero__meta strong {
  color: var(--ink-800);
  font-weight: 700;
}

/* ============ PHONE MOCKUP ============ */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.hero__phone {
  width: 300px;
  height: 600px;
  background: linear-gradient(180deg, #1F2937 0%, #0F172A 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15, 118, 110, 0.1);
  position: relative;
  z-index: 2;
}

.hero__phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0F172A;
  border-radius: 12px;
  z-index: 3;
}

.hero__screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  background: white;
  border-bottom: 1px solid var(--ink-100);
}

.greet {
  padding: 12px 20px 4px;
  font-size: 13px;
  color: var(--ink-500);
}

.hero__screen h3 {
  padding: 0 20px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}

.search-box {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--teal-700);
  font-weight: 600;
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--teal-600);
}

.search-results {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.med-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.med-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.med-info {
  flex: 1;
  min-width: 0;
}

.med-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.med-meta {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.med-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.med-badge.teal { background: var(--teal-100); color: var(--teal-700); }
.med-badge.emerald { background: var(--emerald-100); color: var(--emerald-700); }

.med-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-600);
  white-space: nowrap;
}

.float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  font-size: 13px;
  border: 1px solid var(--ink-100);
}

.float-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--gradient-soft);
}

.float-card .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--ink-500);
}

.float-card .text strong {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.float-card--top { top: 60px; left: -10px; }
.float-card--bottom { bottom: 80px; right: -10px; }

/* ============ SECTIONS ============ */

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__head h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.section__head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ============ FEATURES ============ */

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

.feature {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.feature:hover::before { opacity: 1; }

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature--teal .feature__icon {
  background: var(--teal-100);
}

.feature--emerald .feature__icon {
  background: var(--emerald-100);
}

.feature h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ============ WHY ============ */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.why__list li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why__list strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.why__list span {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.6;
}

.dashboard-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.dashboard-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.dashboard-card h4 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
  padding: 0 8px;
}

.bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: opacity 0.3s;
}

.bar.teal { background: var(--teal-500); }
.bar.emerald { background: var(--emerald-500); }

.legend {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
}

.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============ STATS ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 32px 16px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.stat .num {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 500;
}

/* ============ FAQ ============ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s;
  cursor: pointer;
}

.faq details:hover { border-color: var(--teal-200); }

.faq details[open] {
  border-color: var(--teal-300, var(--teal-200));
  box-shadow: var(--shadow-sm);
}

.faq summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-600);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ============ CTA FINAL ============ */

.cta-final {
  text-align: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 72px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-final h2 {
  position: relative;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final p {
  position: relative;
  margin-top: 16px;
  font-size: 17px;
  opacity: 0.9;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__buttons {
  position: relative;
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-final .btn--primary {
  background: white;
  color: var(--teal-700);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-final .btn--primary:hover {
  background: var(--teal-50);
  color: var(--teal-800);
}

.cta-final .btn--ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

.cta-final .btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.cta-final small {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.85;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink-900);
  color: var(--ink-200);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-300);
  max-width: 320px;
}

.footer__col h5 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--ink-300);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--teal-400); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-400);
}

/* ============ POLICY/GUIDE PAGES ============ */

.policy-page {
  background: var(--bg-alt);
  min-height: 100vh;
  padding: 64px 0 96px;
}

.policy-page__inner {
  max-width: 860px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 64px 64px;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 24px;
  transition: gap 0.2s;
}

.back:hover { gap: 10px; }

.policy-page__inner h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.policy-page__inner .meta {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}

.policy-page__inner h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  padding-top: 8px;
}

.policy-page__inner h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-800);
}

.policy-page__inner p {
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.75;
}

.policy-page__inner ul,
.policy-page__inner ol {
  margin: 12px 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-page__inner ul li,
.policy-page__inner ol li {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.7;
  position: relative;
  padding-left: 4px;
}

.policy-page__inner ul li::marker {
  color: var(--teal-500);
  font-weight: 700;
}

.policy-page__inner ol li::marker {
  color: var(--teal-700);
  font-weight: 700;
}

.policy-page__inner strong {
  color: var(--ink-900);
  font-weight: 700;
}

.policy-page__inner a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: var(--teal-300, var(--teal-200));
  text-underline-offset: 3px;
}

.policy-page__inner a:hover {
  color: var(--teal-800);
}

/* ============ GUIDE LAYOUT ============ */

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.guide-toc {
  position: sticky;
  top: 96px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px;
  align-self: flex-start;
}

.guide-toc h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.guide-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  counter-reset: toc;
}

.guide-toc ol li {
  list-style: none;
  counter-increment: toc;
}

.guide-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-600);
  margin-right: 8px;
  display: inline-block;
}

.guide-toc ol a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1.3;
}

.guide-toc ol a:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}

.guide-content {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  box-shadow: var(--shadow-sm);
}

.guide-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.guide-content .meta {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}

.guide-content h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  padding-top: 16px;
  scroll-margin-top: 96px;
}

.guide-content h2:first-of-type {
  margin-top: 16px;
}

.guide-content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-800);
}

.guide-content p {
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.75;
}

.guide-content ul,
.guide-content ol {
  margin: 12px 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-content ul li,
.guide-content ol li {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.7;
}

.guide-content ul li::marker {
  color: var(--teal-500);
  font-weight: 700;
}

.guide-content ol li::marker {
  color: var(--teal-700);
  font-weight: 700;
}

.guide-content strong {
  color: var(--ink-900);
  font-weight: 700;
}

.step-card {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-card .step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.step-card .step-body {
  flex: 1;
}

.step-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.step-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.6;
}

.callout {
  background: var(--emerald-50);
  border-left: 4px solid var(--emerald-500);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-800);
  line-height: 1.6;
}

.callout strong { color: var(--emerald-700); }

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}

@media (max-width: 768px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .site-header__inner { height: 64px; }
  .brand__name { font-size: 15px; }
  .brand__name span { font-size: 10px; }

  .hero { padding: 48px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 36px; }
  .hero__lede { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__visual { min-height: 460px; transform: scale(0.85); }

  .section { padding: 64px 0; }
  .section__head h2 { font-size: 30px; }
  .features { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat .num { font-size: 36px; }
  .stat .label { font-size: 13px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .policy-page { padding: 32px 0 64px; }
  .policy-page__inner { padding: 32px 24px; }
  .policy-page__inner h1 { font-size: 28px; }
  .guide-content { padding: 32px 24px; }
  .guide-content h1 { font-size: 28px; }
  .guide-content h2 { font-size: 20px; }
  .cta-final { padding: 48px 24px; }
  .cta-final h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .container { padding: 0 16px; }
  .float-card { display: none; }
  .hero__phone { width: 260px; height: 520px; }
  .stat .num { font-size: 30px; }
}

/* ============ DPTW3 MANAGER — CRM SPECIFIC ============ */

/* (Manager-specific classes retained for shared design system inheritance) */

/* Reuse .hero__phone / .hero__screen / .app-bar as base; override content for CRM */

/* CRM phone: greeting + KPI row + activity list */
.crm-greet {
  padding: 14px 20px 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.crm-greet strong { color: var(--ink-900); font-weight: 700; }
.crm-greet-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 14px;
}
.crm-greet-row h3 {
  padding: 0; font-size: 17px; font-weight: 700; color: var(--ink-900);
}
.crm-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
}

.kpi-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 0 14px 12px;
}
.kpi-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 10px 12px;
}
.kpi-card.kpi--teal { background: var(--teal-50); border-color: var(--teal-200); }
.kpi-card.kpi--emerald { background: var(--emerald-50); border-color: var(--emerald-100); }
.kpi-label {
  font-size: 10px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 18px; font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-delta {
  margin-top: 4px;
  font-size: 10px; font-weight: 600;
  color: var(--emerald-600);
  display: inline-flex; align-items: center; gap: 2px;
}
.kpi-delta.down { color: #DC2626; }

.section-title {
  padding: 4px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.section-title a { font-size: 10px; color: var(--teal-600); text-transform: none; letter-spacing: 0; }

.activity-list {
  padding: 0 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; overflow-y: auto;
}
.activity-item {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.activity-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: white; flex-shrink: 0;
}
.activity-avatar.a1 { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.activity-avatar.a2 { background: linear-gradient(135deg, #10B981, #34D399); }
.activity-avatar.a3 { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.activity-avatar.a4 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.activity-body { flex: 1; min-width: 0; }
.activity-name {
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-meta {
  font-size: 10px; color: var(--ink-500);
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.activity-tag {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}
.activity-tag.teal { background: var(--teal-100); color: var(--teal-700); }
.activity-tag.emerald { background: var(--emerald-100); color: var(--emerald-700); }
.activity-tag.amber { background: #FEF3C7; color: #B45309; }
.activity-amount {
  font-size: 11.5px; font-weight: 800;
  color: var(--emerald-600);
  white-space: nowrap;
}

.float-card--manager { top: 60px; left: -10px; }
.float-card--pipeline { bottom: 80px; right: -10px; }

/* ============ DASHBOARD VISUAL (CRM) ============ */

.dashboard-card .kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.dashboard-card .kpi-tile {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 12px;
  padding: 12px 14px;
}
.dashboard-card .kpi-tile--emerald {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}
.dashboard-card .kpi-tile-label {
  font-size: 11px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dashboard-card .kpi-tile-value {
  font-size: 22px; font-weight: 800;
  color: var(--ink-900);
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.dashboard-card .kpi-tile-delta {
  font-size: 11px; font-weight: 700;
  color: var(--emerald-600);
  margin-top: 2px;
}

/* Pipeline / funnel */
.pipeline {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.pipeline-label {
  color: var(--ink-700); font-weight: 600;
}
.pipeline-bar {
  height: 10px; background: var(--ink-100);
  border-radius: 999px; overflow: hidden;
}
.pipeline-fill {
  height: 100%; border-radius: 999px;
  background: var(--gradient-primary);
}
.pipeline-fill.emerald { background: var(--gradient-primary); }
.pipeline-value {
  text-align: right; font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

/* Top customer list in dashboard */
.top-customers {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.top-customer-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ink-50);
  font-size: 13px;
}
.top-customer-row .rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--gradient-primary);
  color: white; font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.top-customer-row .name {
  font-weight: 700; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-customer-row .orders {
  color: var(--ink-500); font-size: 12px;
}
.top-customer-row .rev {
  font-weight: 800; color: var(--emerald-600);
  font-variant-numeric: tabular-nums;
}

/* ============ FEATURES — 4 COL, ADAPTED FOR CRM ============ */
/* Reuse existing .features / .feature classes; add small variant for customer/orders */
.feature--mint {
  background: var(--gradient-soft);
}

/* ============ WORKFLOW / HOW IT WORKS ============ */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: wf;
}
.workflow-step {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  counter-increment: wf;
}
.workflow-step::before {
  content: counter(wf, decimal-leading-zero);
  position: absolute; top: 20px; right: 24px;
  font-size: 32px; font-weight: 800;
  color: var(--teal-100);
  letter-spacing: -0.04em;
  line-height: 1;
}
.workflow-step .ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.workflow-step h3 {
  font-size: 17px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.workflow-step p {
  font-size: 14px; color: var(--ink-500);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .workflow { grid-template-columns: 1fr; }
}

/* ============ CRM-FOCUSED STAT TILES (LARGER) ============ */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-tile {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.3s;
}
.stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}
.stat-tile .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.stat-tile--emerald .ico { background: var(--emerald-50); }
.stat-tile--cyan .ico { background: var(--cyan-50); }
.stat-tile .body { flex: 1; }
.stat-tile .num {
  font-size: 30px; font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-tile .label {
  margin-top: 4px;
  font-size: 14px; color: var(--ink-500); font-weight: 500;
}
.stat-tile .delta {
  font-size: 12px; font-weight: 700;
  color: var(--emerald-600);
  margin-top: 4px;
}
@media (max-width: 1024px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .stat-tiles { grid-template-columns: 1fr; }
}

/* ============ CRM HERO EYEBROW VARIANT ============ */
.hero__eyebrow--manager {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
  color: var(--emerald-700);
}
.hero__eyebrow--manager .dot {
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
}

/* ============ DPTW3 SALE — DMS SPECIFIC ============ */

/* Phone screen: visit schedule */
.dms-date {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dms-date strong {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 2px;
}
.dms-progress {
  margin: 0 16px 12px;
  padding: 10px 12px;
  background: var(--gradient-soft);
  border-radius: 12px;
  border: 1px solid var(--teal-200);
}
.dms-progress-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 6px;
}
.dms-progress-row span:last-child { color: var(--emerald-600); }
.dms-progress-bar {
  height: 6px;
  background: white;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--teal-100);
}
.dms-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
  width: 42%;
}

.dms-visit-list {
  padding: 0 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; overflow-y: auto;
}
.dms-visit {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.dms-visit--next {
  border-color: var(--teal-400);
  background: var(--teal-50);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.dms-visit--done { opacity: 0.65; }
.dms-visit-pin {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  border: 1px solid var(--ink-100);
}
.dms-visit--next .dms-visit-pin {
  background: var(--gradient-primary);
  color: white; border-color: transparent;
}
.dms-visit--done .dms-visit-pin {
  background: var(--emerald-500);
  color: white; border-color: transparent;
}
.dms-visit-body { flex: 1; min-width: 0; }
.dms-visit-name {
  font-size: 12px; font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dms-visit-addr {
  font-size: 10px; color: var(--ink-500);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dms-visit-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px;
}
.dms-visit-dist {
  font-size: 9.5px; font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-50);
  padding: 1px 6px; border-radius: 4px;
}
.dms-visit-status {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}
.dms-visit-status.done { background: var(--emerald-100); color: var(--emerald-700); }
.dms-visit-status.next { background: var(--teal-100); color: var(--teal-700); }
.dms-visit-status.pending { background: var(--ink-100); color: var(--ink-500); }

.dms-bottom-cta {
  margin: 0 14px 14px;
  padding: 11px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.float-card--offline { top: 60px; left: -10px; }
.float-card--gps { bottom: 80px; right: -10px; }

/* Why section: route map mockup */
.route-map {
  position: relative;
  height: 220px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--teal-100);
}
.route-map::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.route-stop {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: var(--teal-700);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
}
.route-stop.done {
  background: var(--emerald-500); border-color: var(--emerald-500);
  color: white;
}
.route-stop.current {
  background: var(--gradient-primary); border-color: white;
  color: white;
  animation: pulse-stop 1.5s infinite;
}
@keyframes pulse-stop {
  0%, 100% { box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2), 0 0 0 0 rgba(20, 184, 166, 0.5); }
  50% { box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2), 0 0 0 8px rgba(20, 184, 166, 0); }
}
.route-stop.s1 { top: 12%; left: 4%; }
.route-stop.s2 { top: 4%; left: 30%; }
.route-stop.s3 { top: 35%; left: 38%; }
.route-stop.s4 { top: 22%; left: 62%; }
.route-stop.s5 { top: 60%; left: 80%; }

.route-legend {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; gap: 14px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-700);
  backdrop-filter: blur(4px);
  flex-wrap: wrap;
}
.route-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.route-legend i.done { background: var(--emerald-500); }
.route-legend i.current { background: var(--gradient-primary); }
.route-legend i.next { background: white; border: 2px solid var(--teal-500); }

/* ============ ROLE TABS (TDV vs Manager) ============ */

.role-tabs {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.role-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-tabs__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.role-tabs__nav label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  border-radius: calc(var(--radius-lg) - 6px);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  user-select: none;
  min-height: 88px;
}

.role-tabs__nav label .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.role-tabs__nav label .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.role-tabs__nav label .sub {
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
}

#tab-tdv:checked ~ .role-tabs__nav label[for="tab-tdv"],
#tab-manager:checked ~ .role-tabs__nav label[for="tab-manager"] {
  background: var(--gradient-primary);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

#tab-tdv:checked ~ .role-tabs__nav label[for="tab-tdv"] .ico,
#tab-manager:checked ~ .role-tabs__nav label[for="tab-manager"] .ico {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

#tab-tdv:checked ~ .role-tabs__nav label[for="tab-tdv"] .title,
#tab-manager:checked ~ .role-tabs__nav label[for="tab-manager"] .title {
  color: white;
}

#tab-tdv:checked ~ .role-tabs__nav label[for="tab-tdv"] .sub,
#tab-manager:checked ~ .role-tabs__nav label[for="tab-manager"] .sub {
  color: rgba(255, 255, 255, 0.85);
}

.role-tabs__panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#tab-tdv:checked ~ .role-tabs__panel[data-panel="tdv"],
#tab-manager:checked ~ .role-tabs__panel[data-panel="manager"] {
  display: block;
}

.role-panel__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.role-panel__intro h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.role-panel__intro h3 .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-panel__intro p {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.6;
}

.role-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.role-feature {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}

.role-feature:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.role-feature__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.role-feature--emerald .role-feature__ico { background: var(--emerald-50); }

.role-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.role-feature p {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.55;
}

.role-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .role-tabs__nav label { min-height: 76px; padding: 12px 8px; }
  .role-tabs__nav label .ico { width: 32px; height: 32px; font-size: 18px; }
  .role-tabs__nav label .title { font-size: 13.5px; }
  .role-tabs__nav label .sub { font-size: 11.5px; }
  .role-features { grid-template-columns: 1fr; }
  .role-panel__intro h3 { font-size: 22px; }
}

/* Persona banner on policy/guide pages */
.persona-banner {
  background: var(--gradient-soft);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.persona-banner__ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.persona-banner__body { flex: 1; }
.persona-banner__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.persona-banner__desc {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
}
.persona-banner__desc strong { color: var(--teal-800); font-weight: 700; }

.role-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.role-divider::before,
.role-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-100);
}
.role-divider .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--teal-50);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
