/* ── Microsoft-inspired design system ── */

:root {
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --fg: #1a1a1a;
  --fg-secondary: #505050;
  --brand: #0067b8;
  --brand-hover: #005a9e;
  --card-bg: #ffffff;
  --border: #d2d2d2;
  --radius: 8px;
  --muted: #605e5c;
  --text: #323130;
  --danger: #d13438;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout shell ── */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ── Topbar / Navigation ── */

.topbar {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-dashboard .topbar {
  border-bottom: 1px solid #edebe9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
}

.nav a { color: var(--fg); }
.nav a:hover { color: var(--brand); text-decoration: underline; }

.nav-ms-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.nav-ms-signin:hover {
  background: var(--bg-alt);
  border-color: #bbb;
}
.nav-ms-signin svg { flex-shrink: 0; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.topbar-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg-secondary);
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 4px 4px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  color: inherit;
}
.topbar-user-btn:hover {
  background: var(--bg-alt);
  border-color: var(--border, #e1dfdd);
}
.topbar-user.open .topbar-user-btn {
  background: var(--bg-alt);
  border-color: var(--border, #e1dfdd);
}
.topbar-user-label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.topbar-user-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.topbar-user-email {
  font-size: .6875rem;
  color: var(--fg-secondary);
  white-space: nowrap;
}
.topbar-user-avatar:hover,
.topbar-user.open .topbar-user-avatar {
  background: var(--brand);
  color: #fff;
}
.topbar-user-btn:hover .topbar-user-avatar,
.topbar-user.open .topbar-user-btn .topbar-user-avatar {
  background: var(--brand);
  color: #fff;
}

/* User dropdown */
.topbar-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e1dfdd);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1000;
  padding: 16px;
}
.topbar-user.open .topbar-user-dropdown {
  display: block;
}
.topbar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-dropdown-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg-secondary);
  flex-shrink: 0;
}
.topbar-dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-dropdown-email {
  font-size: 12px;
  color: var(--fg-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-dropdown-divider {
  height: 1px;
  background: var(--border, #e1dfdd);
  margin: 12px 0;
  border: none;
}
.topbar-dropdown-signout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: none;
  padding: 8px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--fg-secondary);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s, color .15s;
}
.topbar-dropdown-signout:hover {
  background: var(--bg-alt);
  color: var(--danger, #d13438);
}

/* Subscription badge in topbar */
.topbar-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s;
}
.topbar-sub-badge:hover {
  filter: brightness(0.92);
}
.topbar-sub-active {
  background: #dff6dd;
  color: #107c10;
}
.topbar-sub-inactive {
  background: #fff4ce;
  color: #797673;
}
.topbar-sub-inactive a {
  color: inherit;
  text-decoration: underline;
}

/* ── Dashboard sidebar navigation ── */

.topbar-row-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 28px;
}

.dash-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--fg-secondary);
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
  margin-right: 8px;
  flex-shrink: 0;
}
.dash-sidebar-toggle:hover {
  background: var(--bg-alt);
  color: var(--fg);
}

.dash-layout {
  display: flex;
  min-height: calc(100vh - 49px);
}

.dash-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #edebe9;
  padding: 16px 0;
  position: sticky;
  top: 49px;
  height: calc(100vh - 49px);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none !important;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.dash-sidebar-item svg {
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .15s;
}

.dash-sidebar-item:hover {
  color: var(--fg);
  background: var(--bg-alt);
}
.dash-sidebar-item:hover svg {
  opacity: 1;
}

.dash-sidebar-item.active {
  color: var(--brand);
  font-weight: 600;
  background: rgba(0,103,184,0.06);
}
.dash-sidebar-item.active svg {
  opacity: 1;
}

.dash-main {
  flex: 1;
  min-width: 0;
}

.dash-sidebar-overlay {
  display: none;
}

.lang-selector { position: relative; }
.lang-trigger {
  border: none;
  background: none;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
}
.lang-dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 4px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px; min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); display: none; z-index: 200;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  border: none; background: transparent; padding: 8px 10px;
  border-radius: 4px; width: 100%; cursor: pointer; font-size: 13px;
  font-family: inherit;
}
.lang-option:hover, .lang-option.active { background: var(--bg-alt); }

/* ── Hero banner (Copilot-style) ── */

.hero-banner {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(180, 160, 255, .45) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 200, 255, .4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(100, 210, 255, .5) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 10%, rgba(255, 200, 200, .3) 0%, transparent 40%),
    linear-gradient(160deg, #f0e6ff 0%, #e0f0ff 30%, #d0f4ff 60%, #c8e8ff 100%);
  color: var(--fg);
  padding: 0 24px;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-banner-text {
  padding: 72px 0;
}

.hero-banner-text h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--fg);
}

.hero-banner-text p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 32px;
  color: var(--fg-secondary);
  max-width: 480px;
}

.hero-audience {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--brand);
  margin: 0 0 14px;
  max-width: none;
}

.hero-subnote {
  font-size: 13px;
  color: var(--fg-secondary);
  margin: 14px 0 0;
  max-width: 480px;
}

.hero-banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
}

.hero-product-frame {
  margin: 0;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -8px rgba(15, 23, 42, 0.18),
    0 30px 60px -20px rgba(15, 23, 42, 0.22);
}
.hero-product-frame .hero-illustration {
  display: block;
  width: 100%;
  max-width: none;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.hero-product-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.hero-product-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-product-dot-r { background: #ff5f57; }
.hero-product-dot-y { background: #febc2e; }
.hero-product-dot-g { background: #28c840; }
.hero-product-url {
  margin-left: 12px;
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-hover); }

.btn-hero {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
}
.btn-hero:hover { background: var(--brand-hover); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: rgba(0,103,184,.06); }

.btn-large { padding: 14px 32px; font-size: 16px; }

/* ── Sections ── */

.section { padding: 64px 24px; }

.section-content {
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  margin: 0 0 12px;
}

.lead {
  color: var(--fg-secondary);
  font-size: 16px;
  margin: 0 auto;
  max-width: 700px;
}

/* ── Trust bar ── */

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 28px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-secondary);
  font-weight: 600;
}

.trust-bar-item svg { color: var(--brand); flex-shrink: 0; }

/* ── Trust promises ── */

.trust-promises {
  padding: 56px 24px;
  background: var(--bg-alt);
}

.trust-promises-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.trust-promises-block {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.trust-promises-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--fg);
}

.trust-promises-title svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-promises-note {
  font-size: 14px;
  color: var(--fg-secondary);
  margin: 0 0 12px;
}

.trust-promises-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-promises-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  padding: 12px 16px;
  background: #fdf2f2;
  border-radius: 8px;
  border: 1px solid #f5c6c6;
}

.trust-promises-list li svg {
  color: var(--danger);
  flex-shrink: 0;
}

.permissions-accordion {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  overflow-x: auto;
}

.permissions-accordion summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  user-select: none;
}

.permissions-accordion summary::-webkit-details-marker { display: none; }
.permissions-accordion summary::marker { content: ""; }

.permissions-accordion summary::after {
  content: "+";
  float: right;
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-secondary);
}

.permissions-accordion[open] summary::after { content: "\2212"; }

.permissions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.permissions-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.permissions-list li code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

.permissions-list li span {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.4;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.permissions-table thead th {
  text-align: left;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.permissions-table tbody td {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  color: var(--fg-secondary);
}

.permissions-table code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}

@media (max-width: 860px) {
  .trust-promises-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .trust-promises-block {
    padding: 24px 20px;
  }
  .trust-promises-title {
    font-size: 16px;
  }
  .trust-promises-list li {
    font-size: 14px;
    padding: 10px 14px;
  }
  .permissions-table {
    font-size: 12px;
  }
  .permissions-table thead th,
  .permissions-table tbody td {
    padding: 6px 10px;
  }
  .permissions-table code {
    font-size: 11px;
    padding: 1px 4px;
  }
  .permissions-list li {
    padding: 8px 12px;
  }
  .permissions-list li code {
    font-size: 11px;
  }
  .permissions-list li span {
    font-size: 11px;
  }
}

/* ── Content cards (Microsoft style) ── */

.ms-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .ms-cards {
    grid-template-columns: 1fr;
  }
}

.ms-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.ms-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.ms-card-media {
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-card-media svg {
  color: var(--brand);
  filter: drop-shadow(0 2px 4px rgba(0,103,184,.15));
}

.ms-card-media-schedule {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}
.ms-card-media-schedule svg { color: #0078d4; }

.ms-card-media-findings {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}
.ms-card-media-findings svg { color: #c27803; }

.ms-card-media-reports {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
}
.ms-card-media-reports svg { color: #047857; }

.ms-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ms-card-body h3 { margin: 0; font-size: 18px; font-weight: 600; }
.ms-card-body p { margin: 0; color: var(--fg-secondary); font-size: 14px; }

.ms-card-body .btn-outline {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  font-size: 14px;
}

/* ── Steps ── */

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  text-align: center;
  flex: 1;
  max-width: 300px;
  padding: 0 24px;
  position: relative;
}

.step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.step-icon-signin { background: #deecf9; color: #0078d4; }
.step-icon-scan   { background: #dff6dd; color: #107c10; }
.step-icon-report { background: #e8dff7; color: #8764b8; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  padding-top: 48px;
  color: var(--fg-secondary);
  opacity: 0.25;
}

.step-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step-item p { color: var(--fg-secondary); font-size: 14px; margin: 0; line-height: 1.6; }

@media (max-width: 860px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step-item { max-width: 400px; width: 100%; }
  .step-connector {
    padding-top: 0;
    width: auto;
    height: 24px;
    transform: rotate(90deg);
  }
}

/* ── Pricing ── */

.pricing-single {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 44px 40px;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.pricing-card-featured {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(0,103,184,.08);
}

.pricing-card-label { font-size: 13px; font-weight: 600; margin: 0 0 20px; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; }
.pricing-card-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 4px; }
.pricing-amount { font-size: 52px; font-weight: 700; letter-spacing: -1.5px; color: var(--fg); line-height: 1; }
.pricing-currency { font-size: 14px; font-weight: 500; color: var(--fg-secondary); }
.pricing-card-billing { font-size: 13px; color: var(--fg-secondary); margin: 0 0 12px; }
.pricing-card-vatnote { font-size: 12px; color: var(--muted, #6b7280); margin: 0 0 18px; line-height: 1.4; }
.pricing-card-perks { font-size: 13px; color: var(--fg-secondary); margin: 0 0 28px; line-height: 1.5; }
.pay-cta-vat { font-size: 12px; color: var(--fg-secondary); opacity: 0.85; margin: 6px 0 18px; line-height: 1.4; }
.pricing-card-cta-intent { font-size: 14px; font-weight: 600; color: var(--fg); margin: 0 0 10px; text-align: center; }

.scan-paywall-notice,
.scan-free-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 24px 44px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.scan-paywall-notice + .card-body,
.scan-free-notice + .card-body { padding-top: 8px !important; }
.scan-paywall-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.scan-paywall-notice strong { color: #7c2d12; }
.scan-paywall-notice a {
  color: #9a3412;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
  white-space: nowrap;
}
.scan-free-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.scan-free-notice strong { color: #064e3b; }
.scan-paywall-notice svg,
.scan-free-notice svg { flex-shrink: 0; margin-top: 1px; }

.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 24px; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}

.pricing-features li svg { flex-shrink: 0; }

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3cd;
  color: #856404;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 0 20px;
}

.pricing-card-original {
  font-size: 16px;
  color: var(--fg-secondary);
  margin: 0 0 2px;
}

.pricing-card-original s {
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,.35);
}

.pricing-note { margin-top: 24px; color: var(--fg-secondary); font-size: 13px; }

/* ── FAQ ── */

.faq-list { max-width: 720px; margin-top: 24px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: none;
  border-radius: 0;
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-secondary);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--fg-secondary);
  font-size: 14px;
}

.faq-permissions {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.faq-permissions li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--fg-secondary);
}

.faq-permissions code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}

/* ── Demo email section ── */

.demo-email-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.demo-email-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fg-primary);
}

.demo-email-desc { color: var(--fg-secondary); margin: 0 0 28px; line-height: 1.7; font-size: 16px; }

.demo-email-form { display: flex; flex-direction: column; gap: 12px; }

.demo-email-input-group {
  display: flex;
  gap: 8px;
}

.demo-email-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg-primary);
  outline: none;
  transition: border-color 0.15s;
}
.demo-email-input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.15);
}

.demo-email-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
}

.demo-email-msg {
  font-size: 13px;
  min-height: 20px;
  text-align: left;
}
.demo-email-msg.success { color: #107c10; }
.demo-email-msg.error { color: #d13438; }

/* ── Final CTA ── */

.section-cta {
  text-align: center;
  background: var(--bg-alt);
  padding: 80px 24px;
}

.final-cta-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  margin: 0 0 12px;
}

.final-cta-sub {
  color: var(--fg-secondary);
  margin: 0 0 28px;
  font-size: 16px;
}

/* ── Footer ── */

.footer {
  padding: 32px 24px;
  color: var(--fg-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-company {
  font-weight: 600;
  color: var(--fg);
}

.footer-contact a {
  color: var(--brand);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
}

/* ── Static pages (Security, Privacy, Terms) ── */

.static-page {
  padding: 64px 24px 80px;
}

.static-page-content {
  max-width: 760px;
  margin: 0 auto;
}

.static-page-content h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  margin: 0 0 12px;
}

.static-page-lead {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin: 0 0 40px;
}

.static-page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.static-page-content p,
.static-page-content li {
  color: var(--fg-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.static-page-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.static-page-content a {
  color: var(--brand);
}

/* ── Trust grid (Security page) ── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.trust-grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.trust-grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #deecf9;
  color: var(--brand);
  margin-bottom: 16px;
}

.trust-grid-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.trust-grid-card p {
  margin: 0;
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.trust-permissions-section {
  margin-top: 48px;
}

.trust-permissions-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}

.trust-permissions-section > p {
  margin: 0 0 20px;
}

.permissions-table-standalone {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* ── Dashboard pages (keep working) ── */

.page-wide {
  padding: 0 0 80px;
  background: #faf9f8;
}

/* ── Dashboard sub-page shared styles ── */

.dashboard-content {
  background: #faf9f8;
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.card {
  background: var(--card-bg);
  border: 1px solid #edebe9;
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #edebe9;
}

.card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.card-body {
  padding: 20px 24px;
}

/* ── Topbar cancel notice (inline in header row) ── */
.topbar-cancel-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 5px 6px 5px 10px;
    border-radius: 6px;
    background: #fff4ce;
    border: 1px solid #ffe082;
    font-size: 12px;
    color: #6d4c00;
    white-space: nowrap;
}
.topbar-cancel-notice svg {
    flex-shrink: 0;
    color: #a67c00;
}
.topbar-cancel-text {
    color: #6d4c00;
}
.topbar-cancel-text strong {
    font-weight: 600;
}
.topbar-cancel-link {
    padding: 4px 12px;
    border-radius: 4px;
    background: #a67c00;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.topbar-cancel-link:hover {
    background: #8a6800;
    color: #fff !important;
}
@media (max-width: 860px) {
    .topbar-cancel-notice {
        display: none;
    }
}

/* ── Product preview sections (Security Overview / Compliance Posture) ── */
.preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.preview-row-reverse .preview-text { order: 2; }
.preview-row-reverse .preview-visual { order: 1; }
.preview-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 12px;
}
.preview-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
}
.preview-checklist strong { font-weight: 600; }
.sev-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.sev-critical { background: #dc2626; }
.sev-high     { background: #ea580c; }
.sev-medium   { background: #eab308; }
.sev-low      { background: #6b7280; }
.preview-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.preview-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

/* Framework badges */
.framework-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}
.fw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.2px;
}
.fw-iso27001 { background: rgba(59,130,246,0.10); color: #3b82f6; border-color: rgba(59,130,246,0.25); }
.fw-iso27002 { background: rgba(14,165,233,0.10); color: #0ea5e9; border-color: rgba(14,165,233,0.25); }
.fw-nis2     { background: rgba(168,85,247,0.10); color: #a855f7; border-color: rgba(168,85,247,0.25); }
.fw-cis      { background: rgba(249,115,22,0.10); color: #f97316; border-color: rgba(249,115,22,0.25); }
.fw-soc2     { background: rgba(20,184,166,0.10); color: #14b8a6; border-color: rgba(20,184,166,0.25); }
.fw-gdpr     { background: rgba(234,179,8,0.10);  color: #b45309; border-color: rgba(234,179,8,0.30); }
.fw-nistcsf  { background: rgba(239,68,68,0.10);  color: #ef4444; border-color: rgba(239,68,68,0.25); }

@media (max-width: 860px) {
  .preview-row { grid-template-columns: 1fr; gap: 28px; }
  .preview-row-reverse .preview-text { order: 2; }
  .preview-row-reverse .preview-visual { order: 1; }
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .hero-banner { min-height: auto; }
  .hero-banner-inner { grid-template-columns: 1fr; }
  .hero-banner-visual { display: none; }
  .hero-banner-text { padding: 56px 0; }
  .hero-banner-text h1 { font-size: 30px; }

  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 24px;
  }

  .trust-bar-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .demo-email-input-group { flex-direction: column; }

  .pricing-grid { max-width: 100%; }
}

/* Sidebar collapses to mobile drawer at 860px */
@media (max-width: 860px) {
  .topbar-user-label { display: none; }
  .topbar-user-btn { padding: 0; border-color: transparent; background: none; }
  .topbar-user-btn:hover { background: none; border-color: transparent; }
  .topbar-user.open .topbar-user-btn { background: none; border-color: transparent; }
  .dash-sidebar-toggle {
    display: flex;
  }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform .2s ease;
    padding-top: 16px;
    box-shadow: none;
  }
  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .dash-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 299;
    display: none;
  }
  .dash-sidebar-overlay.open {
    display: block;
  }
}

@media (max-width: 600px) {
  .topbar-row-brand { padding: 10px 16px; }
  .section { padding: 48px 16px; }
  .hero-banner { padding: 0 16px; }
  .hero-banner-text h1 { font-size: 28px; }
  .nav { gap: 12px; }
  .trust-bar { padding: 16px; gap: 10px; }
  .topbar-sub-badge { display: none !important; }
  .brand-name { font-size: 15px; }
  .topbar-user-dropdown { min-width: 220px; right: -8px; }
}

@media (max-width: 380px) {
  .trust-bar { grid-template-columns: 1fr; }
}

/* -- Subscription banner (global, used in _Layout dashboard) -- */
.sub-banner {
  background: #fff4ce;
  border-bottom: 1px solid #f0e6b8;
}
.sub-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sub-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sub-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(196,150,0,0.12);
  color: #996600;
}
.sub-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6b4c00;
  line-height: 1.3;
}
.sub-banner-text {
  display: block;
  font-size: 13px;
  color: #8a6d00;
  line-height: 1.4;
}
.sub-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 4px;
  background: #0078d4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sub-banner-btn:hover {
  background: #005a9e;
  color: #fff;
}
@media (max-width: 600px) {
  .sub-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 12px;
  }
  .sub-banner-btn { width: 100%; justify-content: center; }
}

