/* =========================================================
   Clinic — Landing page
   Editorial / clinical / dense
   ========================================================= */

:root {
  /* Brand (tweakable) */
  --brand-navy: #0d2a44;
  --brand-navy-deep: #061a2d;
  --brand-accent: #16b6cf;          /* cyan in logo gradient */
  --brand-accent-2: #6cba3e;        /* green CTA */
  --brand-glow: #2dd3e8;

  /* Neutrals */
  --paper: #ffffff;
  --canvas: #f5f7fa;
  --canvas-2: #eef2f6;
  --ink: #0a2540;
  --ink-2: #3d556f;
  --ink-3: #6b7f95;
  --line: #dde4ec;
  --line-soft: #ebf0f5;

  /* Risk colors (from product) */
  --risk-low: #2f9e44;
  --risk-mod: #d97706;
  --risk-high: #d4351c;
  --risk-crit: #b91c1c;

  /* Density (tweakable) */
  --row-h: 44px;
  --pad: 16px;

  /* Type */
  --f-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --f-sans: "Geist", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 10px;
  --radius-lg: 14px;
}

[data-density="compact"] {
  --row-h: 36px;
  --pad: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   Layout primitives
   ========================================================= */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.col { display: flex; flex-direction: column; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 500;
}

.divider { height: 1px; background: var(--line-soft); width: 100%; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-left { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }

.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-2) 100%);
  color: white;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  display: grid; place-items: center;
  line-height: 1;
  padding-bottom: 2px;
  box-shadow: 0 4px 12px -4px rgba(22, 182, 207, 0.5);
}
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
  white-space: nowrap;
}
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--canvas); }
.btn-outline { background: white; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-primary {
  background: var(--brand-navy);
  color: white;
}
.btn-primary:hover { background: var(--brand-navy-deep); }
.btn-accent {
  background: var(--brand-accent-2);
  color: white;
  font-weight: 600;
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }

.kbd {
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--canvas-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  line-height: 1;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 64px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 182, 207, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Subtle grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 42, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 42, 68, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 12px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: 0 1px 0 rgba(13, 42, 68, 0.03);
}
.hero-tag b { color: var(--ink); font-weight: 600; }
.hero-tag-pill {
  background: var(--brand-navy);
  color: white;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

.hero-h1 {
  font-family: var(--f-sans);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 920px;
}
.hero-h1 em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-ctas .meta { color: var(--ink-3); font-size: 12px; margin-left: 10px; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat {
  padding: 20px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.hero-stat .lbl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   Product preview (interactive)
   ========================================================= */
.preview-section {
  padding: 24px 0 80px;
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}
.preview-shell {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--brand-navy);
  padding: 8px;
  box-shadow:
    0 1px 2px rgba(13, 42, 68, 0.1),
    0 20px 50px -20px rgba(13, 42, 68, 0.4),
    0 40px 100px -40px rgba(13, 42, 68, 0.3);
  position: relative;
}
.preview-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 12px 10px;
  color: rgba(255,255,255,0.7);
  font-family: var(--f-mono);
  font-size: 11px;
}
.preview-titlebar .dots { display: flex; gap: 6px; }
.preview-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.preview-titlebar .url {
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.preview-frame {
  border-radius: 8px;
  background: var(--canvas);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 640px;
  border: 1px solid rgba(0,0,0,0.1);
}

.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 0 0;
  flex-wrap: wrap;
}
.preview-tab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: all .12s;
}
.preview-tab:hover { color: var(--ink); }
.preview-tab.active {
  color: var(--brand-navy);
  background: white;
  border-color: var(--line);
  font-weight: 600;
}

/* App chrome (inside preview-frame) */
.app-side {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  font-size: 12px;
  overflow-y: auto;
}
.app-brand {
  padding: 0 16px 14px;
  display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.app-brand .mk {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
  display: grid; place-items: center;
  color: white;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.app-brand .nm { color: white; font-weight: 600; font-size: 14px; line-height: 1.1; }
.app-brand .sb { color: rgba(255,255,255,0.5); font-size: 10px; }

.app-section-label {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 14px 16px 6px;
  font-weight: 600;
}
.app-nav-item {
  padding: 7px 16px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background .12s;
  position: relative;
}
.app-nav-item:hover { background: rgba(255,255,255,0.04); color: white; }
.app-nav-item.active {
  background: rgba(22, 182, 207, 0.1);
  color: white;
}
.app-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--brand-accent);
}
.app-nav-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; }

.app-main {
  background: var(--canvas);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.app-topbar {
  height: 48px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}
.app-topbar .ttl { font-weight: 600; font-size: 15px; color: var(--ink); }
.app-topbar .user {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-2);
}
.app-topbar .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-accent);
  color: white;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}

.app-body {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

/* Dashboard tiles */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dash-tile {
  background: white;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-accent);
  display: flex; flex-direction: column; gap: 4px;
}
.dash-tile.green { border-left-color: var(--brand-accent-2); }
.dash-tile.amber { border-left-color: var(--risk-mod); }
.dash-tile.red { border-left-color: var(--risk-high); }
.dash-tile .label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.dash-tile .value {
  font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1;
  font-feature-settings: "tnum";
  margin-top: 2px;
}
.dash-tile .sub { font-size: 11px; color: var(--ink-3); }

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.dash-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.dash-card-h {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.dash-card-h .tiny {
  font-size: 11px; color: var(--ink-3); font-weight: 400;
}

/* App tables */
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: white;
}
.app-table th {
  background: var(--brand-navy);
  color: white;
  text-align: left;
  padding: 10px 14px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.app-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
.app-table tbody tr:hover { background: var(--canvas); }
.app-table .num { font-family: var(--f-mono); font-feature-settings: "tnum"; }

.pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill.cyan { background: rgba(22, 182, 207, 0.12); color: #0f7d92; }
.pill.green { background: rgba(108, 186, 62, 0.12); color: #3f7920; }
.pill.amber { background: rgba(217, 119, 6, 0.12); color: #9a5a07; }
.pill.red { background: rgba(212, 53, 28, 0.12); color: #8c2412; }
.pill.gray { background: var(--canvas-2); color: var(--ink-2); }
.pill.navy { background: var(--brand-navy); color: white; }

.risk-low { color: var(--risk-low); font-weight: 600; }
.risk-mod { color: var(--risk-mod); font-weight: 600; }
.risk-high { color: var(--risk-high); font-weight: 600; }
.risk-crit { color: var(--risk-crit); font-weight: 700; }

.app-actions {
  display: flex; gap: 6px;
}
.app-btn {
  height: 28px; padding: 0 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.app-btn.primary { background: var(--brand-navy); color: white; border-color: var(--brand-navy); }
.app-btn.cyan { background: var(--brand-accent); color: white; border-color: var(--brand-accent); }
.app-btn.green { background: var(--brand-accent-2); color: white; border-color: var(--brand-accent-2); font-weight: 600; }
.app-btn.icon { padding: 0; width: 28px; justify-content: center; }

.app-search {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  background: white;
  color: var(--ink);
  width: 320px;
}

.risk-bars { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.risk-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.risk-bar { height: 8px; background: var(--canvas-2); border-radius: 100px; overflow: hidden; }
.risk-bar .fill { height: 100%; border-radius: 100px; }

/* Test cards */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.test-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.test-card .code {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--brand-accent);
  font-weight: 600;
  letter-spacing: .02em;
}
.test-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.test-card .desc {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.test-card .meta {
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  margin-top: auto;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

/* Calendar */
.cal-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cal-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.cal-h .nav-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--brand-navy);
  color: white;
  border: none;
  display: inline-grid; place-items: center;
  font-size: 12px;
}
.cal-h .range { font-size: 14px; font-weight: 600; }
.cal-grid {
  display: grid;
  grid-template-columns: 36px repeat(7, 1fr);
  font-size: 10.5px;
}
.cal-cell {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  min-height: 28px;
  position: relative;
}
.cal-head {
  background: var(--canvas);
  font-weight: 600;
  padding: 6px 8px;
  color: var(--ink-2);
  font-family: var(--f-mono);
  letter-spacing: .04em;
}
.cal-time {
  padding: 4px 6px;
  color: var(--ink-3);
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
}
.cal-today { background: rgba(22, 182, 207, 0.04); }
.cal-event {
  position: absolute;
  left: 2px; right: 2px;
  background: var(--brand-navy);
  color: white;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 9.5px;
  line-height: 1.15;
  overflow: hidden;
  border-left: 2px solid var(--brand-accent);
}
.cal-event.green { border-left-color: var(--brand-accent-2); }
.cal-event b { display: block; font-weight: 500; font-size: 9px; opacity: 0.7; }

/* Diagnostics catalog */
.diag-bar {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 12px;
}

/* Login screen */
.login-frame {
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
}
.login-left {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-navy) 60%, var(--brand-accent-2) 130%);
  padding: 36px;
  color: white;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-left::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}
.login-left .mk-big {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic;
  font-size: 36px;
  line-height: 1; padding-bottom: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.2);
}
.login-left h2 {
  font-family: var(--f-sans);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.login-left h2 em { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.login-left .desc { font-size: 13px; opacity: 0.85; max-width: 280px; line-height: 1.5; }
.login-left .chips { margin-top: auto; display: flex; gap: 8px; }
.login-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  backdrop-filter: blur(10px);
}
.login-chip b { display: block; font-size: 18px; font-weight: 600; font-family: var(--f-display); font-style: italic; }
.login-right {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.login-right .ttl {
  font-family: var(--f-display); font-style: italic;
  font-size: 38px; line-height: 1; color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.login-right .sb { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.login-input {
  height: 38px; border-radius: 7px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 13px;
  background: white;
  margin-top: 10px;
  width: 100%;
}
.login-btn {
  height: 38px;
  background: var(--brand-accent);
  color: white;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 14px;
  width: 100%;
}

/* Form/portal acceso */
.portal-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-accent);
  border-radius: 8px;
  overflow: hidden;
}
.portal-card-h {
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.portal-card-h .h-l { font-weight: 600; color: var(--brand-navy); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.portal-card-b { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.portal-card-b label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--ink-2); }
.portal-card-b input {
  height: 34px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 10px; font-size: 12px; background: white;
}
.portal-card-f {
  padding: 0 16px 14px;
  font-size: 11px;
  color: var(--ink-2);
}
.portal-card-f b { color: var(--brand-navy); }

/* =========================================================
   Feature grid
   ========================================================= */
section.section { padding: 100px 0; }
.section-h {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-h .eyebrow { display: block; margin-bottom: 14px; }
.section-h h2 {
  font-family: var(--f-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.section-h h2 em { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.section-h p {
  font-size: 17px; color: var(--ink-2); margin: 0;
  line-height: 1.5;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.feature {
  background: white;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  position: relative;
}
.feature .icn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 182, 207, 0.12), rgba(108, 186, 62, 0.08));
  color: var(--brand-navy);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.feature .ftags {
  margin-top: auto;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ftag {
  font-family: var(--f-mono);
  font-size: 10px;
  background: var(--canvas);
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: .04em;
}

/* =========================================================
   Big screenshot showcase with split content
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.split-left h3 {
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
  line-height: 1.1;
}
.split-left h3 em { font-family: var(--f-display); font-style: italic; }
.split-left p {
  font-size: 14.5px; color: var(--ink-2); margin: 0 0 24px;
  line-height: 1.55;
}
.split-left ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.split-left li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}
.split-left li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-accent-2); }
.split-left li b { font-weight: 600; }

/* =========================================================
   Workflow / steps
   ========================================================= */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: white;
  position: relative;
}
.step-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--brand-accent);
  letter-spacing: -0.04em;
}
.step h4 { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.step p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* =========================================================
   Spec rail (dense)
   ========================================================= */
.spec-section {
  background: var(--brand-navy);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.spec-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(22, 182, 207, 0.15), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(108, 186, 62, 0.08), transparent 50%);
  pointer-events: none;
}
.spec-inner { position: relative; }
.spec-h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.spec-h h2 {
  font-family: var(--f-sans);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: white;
}
.spec-h h2 em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-accent);
}
.spec-h p { color: rgba(255,255,255,0.7); margin: 0; font-size: 15px; line-height: 1.5; }
.spec-h .eyebrow { color: var(--brand-accent); margin-bottom: 16px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.spec-cell {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 6px;
}
.spec-cell .k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
.spec-cell .v {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  font-feature-settings: "tnum";
}
.spec-cell .d { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.plan.featured {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: white;
  position: relative;
}
.plan.featured .plan-name,
.plan.featured .price-amount,
.plan.featured h4 { color: white; }
.plan-name { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plan.featured .plan-name { color: var(--brand-accent); }
.plan h4 { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price-amount {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}
.price-amount-sm { font-size: 36px; }
.price-suffix { font-size: 13px; color: var(--ink-3); }
.plan.featured .price-suffix { color: rgba(255,255,255,0.7); }
.plan-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.plan.featured .plan-desc { color: rgba(255,255,255,0.75); }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-features li {
  font-size: 13px;
  display: flex; gap: 8px;
  align-items: flex-start;
}
.plan-features li svg { color: var(--brand-accent-2); flex-shrink: 0; margin-top: 3px; }
.plan.featured .plan-features li svg { color: var(--brand-accent); }
.plan-cta {
  height: 40px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600; font-size: 13px;
  border: 1px solid var(--brand-navy);
  background: white;
  color: var(--brand-navy);
}
.plan.featured .plan-cta { background: var(--brand-accent-2); border-color: var(--brand-accent-2); color: white; }
.plan-badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--f-mono); font-size: 10px;
  background: var(--brand-accent);
  color: var(--brand-navy);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .1em;
  font-weight: 600;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(22, 182, 207, 0.08), transparent 70%),
    var(--paper);
  border-top: 1px solid var(--line-soft);
}
.final-cta h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 800px; margin-inline: auto;
}
.final-cta h2 em { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.final-cta p { color: var(--ink-2); font-size: 18px; margin: 0 auto 32px; max-width: 540px; line-height: 1.5; }
.final-cta .ctas { display: inline-flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h5 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: white; margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); margin-bottom: 8px; font-size: 12.5px; }
.footer-col a:hover { color: white; }
.footer-bot {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
}

/* =========================================================
   Density adjustments (compact)
   ========================================================= */
[data-density="compact"] .app-body { padding: 12px; }
[data-density="compact"] .dash-tile { padding: 10px 12px; }
[data-density="compact"] .dash-tile .value { font-size: 22px; }
[data-density="compact"] .app-table th,
[data-density="compact"] .app-table td { padding: 6px 12px; }
[data-density="compact"] .app-topbar { height: 40px; }
[data-density="compact"] .app-nav-item { padding: 5px 14px; }

/* Misc */
.dot-sep::before { content: "·"; margin: 0 8px; color: var(--ink-3); }
