/* =========================================================
   Nurse Tasker Marketing Site — Design System
   ========================================================= */

:root {
  /* Color: light theme, matching the real Nurse Tasker app's clinical-teal brand */
  --bg: #ffffff;
  --bg-alt: #f5f7f7;
  --bg-tint: #e3f5f2;
  --surface: #ffffff;
  --border: #e5e9e8;
  --border-strong: #d5dbda;

  --text: #101c22;
  --text-muted: #5a6b6c;
  --text-faint: #8a9899;

  --primary: #0f8577;
  --primary-dark: #0c6d61;
  --primary-darker: #094f46;
  --primary-light: #e3f5f2;
  --accent: #e8a13d;
  --accent-dark: #b97914;
  --accent-light: #fbf0dc;
  --success: #1a9d6c;
  --success-dark: #147a54;
  --success-light: #e1f6ec;
  --warn: #d64545;
  --warn-light: #fbe6e6;

  --grad-primary: linear-gradient(135deg, #0f8577 0%, #0c6d9e 100%);
  --grad-soft: linear-gradient(135deg, #e3f5f2 0%, #f4f9fb 100%);
  --grad-dark: linear-gradient(135deg, #101a26 0%, #1b2a3d 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.14);
  --shadow-primary: 0 16px 32px rgba(15, 133, 119, 0.28);

  --container: 1240px;
  --container-narrow: 860px;

  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

section {
  position: relative;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-head p {
  font-size: 1.1rem;
}

.section-head.align-left {
  margin: 0 0 56px;
  text-align: left;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 133, 119, 0.36);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

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

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

.btn-white {
  background: #fff;
  color: var(--primary-darker);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-block {
  width: 100%;
}

.btn:hover svg.icon-arrow {
  transform: translateX(3px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Slim utility bar above the main nav row, desktop only - same two-tier structure as the
   reference site's header (a contact/utility strip sitting above the logo+nav+CTA row). Collapses
   away once scrolled so the sticky header doesn't stay tall forever. */
.topbar {
  background: var(--grad-dark);
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.3s var(--ease);
}

.site-header.scrolled .topbar {
  max-height: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.topbar-inner a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.topbar-inner a:hover {
  color: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-left svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.header-main {
  padding: 18px 0;
  transition: padding 0.3s var(--ease);
}

.site-header.scrolled .header-main {
  padding: 12px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.header-inner .brand {
  justify-self: start;
}

.header-inner .main-nav {
  justify-self: center;
}

.header-inner .header-actions {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

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

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown > a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.dropdown-panel a:hover {
  background: var(--bg-alt);
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 17px;
  height: 17px;
}

.dropdown-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.dropdown-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 220px 0 120px;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 133, 119, 0.16), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 161, 61, 0.14), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  font-weight: 800;
}

.hero-lede {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 12px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

/* Hero product mockup */
.hero-visual {
  margin-top: 76px;
  position: relative;
  z-index: 1;
}

.app-window {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.app-window-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.app-window-bar .url-pill {
  margin-left: 14px;
  flex: 1;
  max-width: 320px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
}

.app-window-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}

.app-sidebar {
  background: var(--grad-dark);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-sidebar .app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 22px;
  padding: 0 8px;
}

.app-sidebar .app-logo span.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-primary);
  flex-shrink: 0;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.app-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.app-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-main {
  padding: 26px 28px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
}

.app-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-main-head h4 {
  margin: 0;
  font-size: 1.05rem;
}

.app-main-head .pill-btn {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  color: #fff;
}

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

.mock-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-faint);
}

.mock-cell.head {
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.7rem;
}

.mock-cell.time {
  color: var(--text-faint);
  background: transparent;
  border: none;
  font-weight: 600;
}

.mock-cell.task {
  justify-content: flex-start;
  padding: 0 8px;
  font-weight: 600;
  color: var(--primary-darker);
  background: var(--primary-light);
  border-color: #cdeae5;
  gap: 6px;
}

.mock-cell.task.done {
  background: var(--success-light);
  color: var(--success-dark);
  border-color: #c7ecdb;
  text-decoration: line-through;
  text-decoration-color: rgba(20, 122, 84, 0.4);
}

.mock-cell.task.warn {
  background: var(--warn-light);
  color: var(--warn);
  border-color: #f3c9c9;
}

.mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Bed/room header cell in the planner grid mock - real app labels each column "Room N - Bed N" in
   a rotating set of colors with small avatar/gear badges underneath. */
.mock-cell.head {
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  min-height: 44px;
}

.mock-cell.head .room-label {
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1.2;
  text-align: center;
}

.mock-cell.head .room-label.c1 { color: #c23b3b; }
.mock-cell.head .room-label.c2 { color: var(--success-dark); }
.mock-cell.head .room-label.c3 { color: #7c4dbd; }
.mock-cell.head .room-label.c4 { color: var(--accent-dark); }

.mock-badge-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-dark);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-gear {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-gear svg {
  width: 9px;
  height: 9px;
}

/* Current-hour row tint, matching the real grid's amber "now" highlight */
.mock-cell.now-row {
  background: var(--accent-light);
}

.mock-cell.time.now-row {
  color: var(--accent-dark);
  font-weight: 800;
}

.now-pill {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 800;
  color: #fff;
  background: var(--warn);
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
  vertical-align: middle;
}

/* Mini home-dashboard cards - reused for the Administration feature row, mirroring the real
   app's Home page 3-card layout (Shift Planner / Bed Board / Administration). */
.mini-dash-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-dash-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
}

.mini-dash-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
}

.mini-dash-icon svg {
  width: 20px;
  height: 20px;
}

.mini-dash-card:nth-child(2) .mini-dash-icon { background: var(--success-light); color: var(--success-dark); }
.mini-dash-card:nth-child(3) .mini-dash-icon { background: var(--accent-light); color: var(--accent-dark); }

.mini-dash-text {
  flex: 1;
  min-width: 0;
}

.mini-dash-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.mini-dash-text span {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.mini-dash-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--warn-light);
  color: var(--warn);
  white-space: nowrap;
}

/* Paper vs. digital comparison card - used in the "no more paper" feature row */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare-col {
  border-radius: var(--radius-md);
  padding: 20px 18px;
  border: 1px solid var(--border);
}

.compare-col.bad {
  background: var(--warn-light);
  border-color: #f3c9c9;
}

.compare-col.good {
  background: var(--primary-light);
  border-color: #cdeae5;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.compare-col.bad .compare-head { color: var(--warn); }
.compare-col.good .compare-head { color: var(--primary-darker); }

.compare-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.compare-list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-col.bad .compare-list svg { color: var(--warn); }
.compare-col.good .compare-list svg { color: var(--primary); }

.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  animation: floaty 5s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 8%;
  left: -3%;
  animation-delay: 0.2s;
}

.hero-float-card.card-2 {
  bottom: 10%;
  right: -4%;
  animation-delay: 0.9s;
}

.hero-float-card .float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card .float-icon svg {
  width: 19px;
  height: 19px;
}

.hero-float-card.card-1 .float-icon {
  background: var(--success-light);
  color: var(--success-dark);
}

.hero-float-card.card-2 .float-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.hero-float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-float-card span {
  color: var(--text-faint);
  font-size: 0.76rem;
}

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

/* ---------- Feature rows (alternating) ---------- */
.feature-rows {
  padding: 140px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 140px;
}

.feature-row.reverse .row-visual {
  order: 2;
}

.feature-row.reverse .row-copy {
  order: 1;
}

.row-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

.row-copy p {
  font-size: 1.06rem;
}

.feature-checklist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.feature-checklist svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--success-dark);
  background: var(--success-light);
  border-radius: 50%;
  padding: 4px;
}

.row-copy .btn {
  margin-top: 30px;
}

.row-visual {
  position: relative;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  position: relative;
  z-index: 1;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 200px;
  height: 200px;
  background: var(--grad-soft);
  border-radius: 50%;
  z-index: -1;
}

/* Bed board mock - mirrors the real app's ward header bar + bed cards */
.bedboard-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ward-bar {
  background: var(--grad-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ward-bar .ward-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
}

.ward-bar .ward-name svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.ward-bar .coverage-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ward-bar .coverage-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(214, 69, 69, 0.9);
  color: #fff;
}

.bed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg-alt);
}

.bed-card .bed-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bed-card .bed-id {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.bed-card .bed-shield {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--warn-light);
  color: var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bed-card .bed-shield svg {
  width: 11px;
  height: 11px;
}

.bed-card .bed-patient-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.bed-card .bed-patient-field {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.bed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.bed-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.bed-assign-btn {
  width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  padding: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-faint);
  text-align: center;
  background: #fff;
}

/* Mobile/offline mock */
.mobile-mock-wrap {
  display: flex;
  justify-content: center;
}

.mobile-mock {
  width: 240px;
  border-radius: 32px;
  border: 8px solid #101a26;
  background: #101a26;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mobile-mock-screen {
  background: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
}

.mobile-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
}

.mobile-offline-badge {
  margin: 10px 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--warn);
  background: var(--warn-light);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.mobile-offline-badge svg {
  width: 12px;
  height: 12px;
}

.mobile-task-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-task {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-task .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}

.mobile-task.done .check {
  background: var(--accent);
  border-color: var(--accent);
}

.mobile-task span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-task.done span {
  color: var(--text-faint);
  text-decoration: line-through;
}

/* ---------- Feature grid ---------- */
.feature-grid-section {
  padding: 140px 0;
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card:nth-child(2) .feature-icon { background: var(--success-light); color: var(--success-dark); }
.feature-card:nth-child(3) .feature-icon { background: var(--accent-light); color: var(--accent-dark); }
.feature-card:nth-child(5) .feature-icon { background: var(--success-light); color: var(--success-dark); }
.feature-card:nth-child(6) .feature-icon { background: var(--accent-light); color: var(--accent-dark); }
.feature-card:nth-child(8) .feature-icon { background: var(--success-light); color: var(--success-dark); }
.feature-card:nth-child(9) .feature-icon { background: var(--accent-light); color: var(--accent-dark); }
.feature-card:nth-child(11) .feature-icon { background: var(--success-light); color: var(--success-dark); }
.feature-card:nth-child(12) .feature-icon { background: var(--accent-light); color: var(--accent-dark); }

.feature-card h4 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- How it works ---------- */
.how-it-works {
  padding: 140px 0;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 10px, transparent 10px 20px);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-primary);
}

.step-card h4 {
  font-size: 1.15rem;
}

.step-card p {
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Stats band ---------- */
.stats-band {
  padding: 90px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(15, 133, 119, 0.35), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(232, 161, 61, 0.3), transparent 45%);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 140px 0;
  background: var(--bg-alt);
}

.pricing-footnote {
  max-width: var(--container-narrow);
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.price-card.featured {
  background: var(--grad-dark);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.price-card.featured .price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card.featured h3,
.price-card.featured .price-desc,
.price-card.featured .price-amount {
  color: #fff;
}

.price-card.featured .price-desc { color: rgba(255,255,255,0.6); }
.price-card.featured .price-period { color: rgba(255,255,255,0.5); }

.price-card.featured .feature-checklist li {
  color: rgba(255, 255, 255, 0.85);
}

.price-card.featured .feature-checklist svg {
  color: #101a26;
  background: var(--accent);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
}

.price-amount sup {
  font-size: 1.2rem;
  font-weight: 700;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 26px;
}

.price-card .feature-checklist {
  margin: 4px 0 28px;
  flex: 1;
}

.price-card .feature-checklist li {
  font-size: 0.9rem;
  font-weight: 500;
}

.price-card .feature-checklist svg {
  width: 19px;
  height: 19px;
  padding: 3px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 140px 0;
}

.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 26px 24px;
}

.faq-answer-inner p {
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 100px 0;
}

.cta-banner-inner {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.18), transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(255,255,255,0.14), transparent 45%);
}

.cta-banner-inner h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 560px;
  margin: 0 auto 16px;
}

.cta-banner-inner p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-banner-inner .hero-cta-row {
  position: relative;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grad-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 90px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  max-width: 300px;
  margin: 18px 0 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* App store badges - plain custom buttons (not the official Apple/Google artwork), used
   wherever we point to the mobile app listings. */
.store-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  color: #fff;
  flex-shrink: 0;
}

.store-badge .store-badge-text {
  line-height: 1.2;
}

.store-badge .store-badge-text small {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
}

.store-badge .store-badge-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

/* Light variant for use on white backgrounds (e.g. inside the mobile feature row) */
.store-badge.light {
  background: var(--surface);
  border-color: var(--border-strong);
}

.store-badge.light svg { color: var(--text); }
.store-badge.light .store-badge-text strong { color: var(--text); }
.store-badge.light .store-badge-text small { color: var(--text-faint); }

.footer-col h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .topbar,
  .main-nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .feature-row,
  .feature-row.reverse .row-visual,
  .feature-row.reverse .row-copy {
    order: initial;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row + .feature-row {
    margin-top: 90px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .steps-row::before {
    display: none;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .price-card.featured {
    order: -1;
  }

  .hero-float-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero { padding: 150px 0 80px; }
  .feature-grid-section,
  .feature-rows,
  .how-it-works,
  .pricing,
  .faq { padding: 90px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .app-window-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .mock-grid { grid-template-columns: 50px repeat(3, 1fr); }
  .cta-banner-inner { padding: 52px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.mobile-nav.open {
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 84vw);
  background: #fff;
  padding: 26px 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav-panel a {
  padding: 14px 6px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-panel .btn {
  margin-top: 18px;
}

.no-scroll {
  overflow: hidden;
}

/* =========================================================
   Sub-pages: compact hero, contact, documentation, legal prose
   ========================================================= */

.page-hero {
  padding: 200px 0 76px;
  background: var(--bg-alt);
  text-align: center;
}

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

.page-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

.page-hero .updated-badge {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Contact page ---------- */
.contact-section {
  padding: 100px 0 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.contact-form-card > p {
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 16px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--success-light);
  color: var(--success-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.form-success.show { display: flex; }

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--warn-light);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.form-error.show { display: flex; }

.form-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 21px; height: 21px; }

.contact-info-card:nth-child(2) .contact-info-icon { background: var(--success-light); color: var(--success-dark); }
.contact-info-card:nth-child(3) .contact-info-icon { background: var(--accent-light); color: var(--accent-dark); }

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-info-card a.contact-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
}

/* ---------- Documentation page ---------- */
.docs-section {
  padding: 80px 0 140px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-sidebar-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.docs-sidebar a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.docs-sidebar a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.docs-content section {
  margin-bottom: 56px;
  scroll-margin-top: 110px;
}

.docs-content h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.docs-content .docs-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-content .docs-icon svg { width: 18px; height: 18px; }

.docs-content h3 {
  font-size: 1.05rem;
  margin-top: 24px;
}

.docs-content p,
.docs-content li {
  font-size: 0.98rem;
}

.docs-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 1em;
  padding-left: 0;
}

.docs-content ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}

.docs-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.docs-callout {
  display: flex;
  gap: 12px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.docs-callout svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.docs-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--primary-darker);
}

/* ---------- Legal pages (Privacy / Terms / Cookies) ---------- */
.legal-section {
  padding: 80px 0 140px;
}

.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 48px;
}

.legal-toc h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-toc li a {
  color: var(--text-muted);
}

.legal-toc li a:before {
  content: counter(toc) ". ";
  color: var(--primary);
  font-weight: 700;
}

.legal-toc li a:hover {
  color: var(--primary);
}

.legal-content section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.legal-content h3 {
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 1.2em;
}

.legal-content ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-content strong { color: var(--text); }

.legal-content a { color: var(--primary); font-weight: 600; }

/* ---------- Sub-page responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-hero { padding: 160px 0 60px; }
  .contact-section,
  .docs-section,
  .legal-section { padding: 60px 0 90px; }
  .contact-form-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
}
