:root {
  --ink: #101728;
  --ink-soft: #3c465c;
  --paper: #f6f7fb;
  --card: #ffffff;
  --line: #e2e5ee;
  --accent: #5b5bf7;
  --accent-2: #17c3b2;
  --accent-3: #ff8a5b;
  --shadow: 0 2px 10px rgba(16, 23, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 23, 40, 0.10);

  /* Matches cwaJPODmitel/cwaJPODzoom's header.site exactly, so the title bar and pin-gate
     are pixel-identical across all three JPOD apps. */
  --brand-dark: #184f95;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--brand-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-lg);
}
.top-bar__inner {
  padding: 14px 20px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: 44px; border-radius: 50%; flex-shrink: 0; }
.brand h1 { margin: 0; font-size: 1.5rem; }

/* ---------- Standard title-bar icon buttons (Home / Back / Settings / Profile) ────────
   Same icon set/markup/behavior as the other JPOD apps, colors adapted to this app's own
   dark-gradient header instead of copying its CSS variables wholesale. */
.title-actions { display: flex; align-items: center; gap: 6px; position: relative; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn svg { width: 18px; height: 18px; fill: #fff; }
.title-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.2); margin: 0 4px; }

.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 300px;
  z-index: 30;
}
.dropdown-menu-custom.show { display: block; }
.dropdown-menu-custom .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem 0.2rem;
}
.dropdown-menu-custom .item {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.87rem;
  cursor: pointer;
}
.dropdown-menu-custom .item:hover { background: var(--paper); }
.dropdown-menu-custom a.item { display: block; text-decoration: none; color: inherit; }

/* ---------- Page tabs (site nav) — sits on the page below the title bar, not inside it,
   so the title bar stays a plain brand+icons strip like every other JPOD app. ---------- */
.tab-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab-strip a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-strip a:hover { color: var(--ink); }
.tab-strip a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Layout helpers ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }

.hero {
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: #eef0ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: 2rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 720px; margin: 0; }

h2.section-title {
  font-size: 1.35rem;
  margin: 44px 0 18px;
  padding-top: 2px;
}
h2.section-title:first-of-type { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.feature-card h3 { display: flex; align-items: center; gap: 8px; }
.feature-card p { color: var(--ink-soft); margin: 8px 0 0; font-size: 0.94rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef0ff;
  color: var(--accent);
  margin-right: 6px;
}
.tag.green { background: #e5faf5; color: #0f9d84; }
.tag.orange { background: #fff1ea; color: #c25c2c; }
.tag.grey { background: #eef0f4; color: var(--ink-soft); }

.price-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  margin-top: 10px;
}

/* ---------- Steps / roadmap ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 26px 52px;
  border-left: 2px solid var(--line);
  margin-left: 20px;
}
.steps li:last-child { border-left: 2px solid transparent; padding-bottom: 4px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.steps li h3 { margin-bottom: 4px; }
.steps li p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.steps li .step-tools { margin-top: 8px; }

/* ---------- Tables ---------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.compare th { background: #f0f1f8; font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--accent);
  background: #f4f4ff;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 0.93rem;
}
.callout.warn { border-left-color: var(--accent-3); background: #fff6f0; }

/* ---------- Checklist ---------- */
ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  background: #fff;
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .tab-strip { gap: 2px; }
}

/* ---------- PIN gate (Login page) ---------- */
/* Sits in the normal page flow under the title bar now, like cwaJPODmitel/cwaJPODzoom's own
   login gate - not a separate full-page dark-gradient design anymore (Login.cshtml uses the
   shared _Layout now, same as every other page). */
.pin-gate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 340px;
  margin: 80px auto;
  text-align: center;
}

.pin-gate h2 { margin: 0 0 20px; font-size: 1.5rem; font-weight: 700; color: var(--ink); }

.pin-gate input {
  width: 100%;
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
  box-sizing: border-box;
}
.pin-gate input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.pin-gate button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.pin-gate button:hover { filter: brightness(1.1); }

.pin-error { color: #c23; font-size: 0.85rem; min-height: 1.2em; margin: 10px 0 0; }
