/* ── EHBO App page ─────────────────────────────────────────────────────────
   Relies on css/site.css for :root tokens and .container / .btn / .reveal
   ──────────────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.app-page {
  padding-bottom: 96px;
}

.app-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.app-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 10px;
}

.app-section-head p {
  font-size: 15px;
  color: var(--muted, #5b6472);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 80px;
}

.app-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #d61f26);
  margin-bottom: 16px;
}

.app-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text, #14161a);
  margin-bottom: 22px;
}

.app-lead {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--muted, #5b6472);
  margin-bottom: 28px;
  max-width: 520px;
}

.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.app-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: #f0f2f7;
  color: var(--text, #14161a);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border, #e6eaf0);
}

.app-pill--live {
  background: #fff0f0;
  color: var(--accent, #d61f26);
  border-color: #ffd4d4;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Phone mockup ──────────────────────────────────────────────────────── */
.app-hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.phone-stack {
  position: relative;
  width: 280px;
  height: 400px;
}

.float-label {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #14161a);
  box-shadow: 0 6px 20px rgba(20,22,26,.1);
  white-space: nowrap;
  z-index: 10;
  line-height: 1.3;
  max-width: 200px;
  white-space: normal;
}

.float-label--top {
  top: -10px;
  left: -72px;
}

.float-label--bot {
  bottom: -8px;
  right: -64px;
}

.phone-card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  background: #1d3557;
  box-shadow: 0 24px 56px rgba(20,22,26,.24);
  color: #fff;
  font-size: 13px;
}

.phone-card--main {
  width: 264px;
  top: 24px;
  left: 8px;
  z-index: 5;
}

.phone-card--back {
  width: 236px;
  top: 0;
  left: 24px;
  z-index: 3;
  opacity: .68;
  transform: rotate(4deg) translateY(-16px);
  background: #2a4a70;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: rgba(0,0,0,.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.phone-live {
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.phone-notch {
  width: 40px;
  height: 6px;
  background: rgba(255,255,255,.16);
  border-radius: 4px;
}

.phone-body {
  padding: 14px 16px 20px;
}

.phone-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 10px;
}

/* Alert row inside phone */
.phone-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(230,57,70,.18);
  border: 1px solid rgba(230,57,70,.35);
  border-radius: 12px;
  padding: 12px 13px;
}

.phone-alert-dot {
  flex-shrink: 0;
  margin-top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,.3);
  animation: blink 1.2s ease-in-out infinite;
}

.phone-alert strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.phone-alert span {
  font-size: 11px;
  opacity: .7;
}

.phone-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.phone-chips span {
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(230,57,70,.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.phone-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.phone-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.phone-row strong { font-size: 13px; font-weight: 700; }
.phone-row span   { font-size: 11px; opacity: .6; }

/* ── Wie gebruikt de app ───────────────────────────────────────────────── */
.app-roles {
  margin-bottom: 80px;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
}

.role-card strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #14161a);
}

.role-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #5b6472);
  margin: 0;
}

/* ── Features ──────────────────────────────────────────────────────────── */
.app-features {
  margin-bottom: 80px;
}

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

.feature-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 20px;
  padding: 32px 30px;
}

.feature-card--highlight {
  background: #1d3557;
  border-color: #1d3557;
  color: #fff;
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
}

.feature-card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

.feature-card--highlight .feature-card-icon {
  grid-row: span 3;
  font-size: 40px;
  margin-top: 4px;
  margin-bottom: 0;
  align-self: start;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 10px;
}

.feature-card--highlight h3 {
  color: #fff;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted, #5b6472);
  margin: 0;
}

.feature-card--highlight p {
  color: rgba(255,255,255,.75);
}

.feature-tag {
  margin-top: 16px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(230,57,70,.2);
  border: 1px solid rgba(230,57,70,.35);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  grid-column: 2;
}

/* ── Pager / WhatsApp / Hartslagnu vergelijking ────────────────────────── */
.app-compare {
  margin-bottom: 80px;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compare-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-icon {
  font-size: 32px;
  line-height: 1;
}

.compare-card strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #14161a);
}

.compare-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, #5b6472);
  margin: 0;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.app-cta {
  background: #1d3557;
  border-radius: 24px;
  padding: 52px 48px;
}

.app-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.app-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.app-cta p {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255,255,255,.72);
  margin: 0;
  max-width: 540px;
}

.app-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.app-cta .btn.ghost {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  text-align: center;
}

.app-cta .btn.ghost:hover {
  background: rgba(255,255,255,.15);
}

/* ── Foto-slots (placeholders) ─────────────────────────────────────────── */

/* Feature card image slot */
.feat-img-slot {
  width: calc(100% + 60px);
  margin: -32px -30px 20px;
  height: 160px;
  background: #e8ecf2;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

/* Wide scene break */
.app-scene {
  margin-bottom: 80px;
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
  background: #e8ecf2;
}

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

/* Audience card image slot */
.audience-img-slot {
  width: calc(100% + 80px);
  margin: -44px -40px 0;
  height: 200px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  flex-shrink: 0;
}

.audience-card--clients .audience-img-slot {
  background: #e8ecf2;
}

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

/* ── Hoe werkt het ─────────────────────────────────────────────────────── */
.app-howto {
  margin-bottom: 80px;
}

.howto-block {
  margin-bottom: 40px;
}

.howto-block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.howto-block-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent, #d61f26);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Setup flow (3 steps + arrows) */
.howto-setup {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.howto-setup-step {
  flex: 1;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-setup-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent, #d61f26);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.howto-setup-step strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #14161a);
}

.howto-setup-step p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted, #5b6472);
  margin: 0;
}

.howto-setup-arrow {
  padding: 36px 14px 0;
  color: var(--muted, #5b6472);
  font-size: 18px;
  flex-shrink: 0;
}

/* Incident steps 2×3 grid */
.howto-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.howto-step-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 16px;
  padding: 24px 24px 24px 24px;
  position: relative;
}

.howto-step-num {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f2f7;
  color: var(--text, #14161a);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-step-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 12px;
}

.howto-step-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #14161a);
  margin-bottom: 8px;
  padding-right: 32px;
}

.howto-step-card p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted, #5b6472);
  margin: 0;
}

/* Detail cards */
.howto-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.howto-detail-card {
  background: #f7f9fc;
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howto-detail-icon {
  font-size: 26px;
  line-height: 1;
}

.howto-detail-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #14161a);
  margin: 0;
}

.howto-detail-card > p {
  font-size: 13px;
  color: var(--muted, #5b6472);
  margin: 0;
  line-height: 1.65;
}

.howto-detail-note {
  font-size: 12px;
  color: var(--muted, #5b6472);
  font-style: italic;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border, #e6eaf0);
}

/* Status list */
.howto-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-status-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text, #14161a);
  line-height: 1.4;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--active { background: #22c55e; }
.status-dot--rest   { background: #f59e0b; }
.status-dot--busy   { background: #e63946; }
.status-dot--off    { background: #94a3b8; }

/* Notification list */
.howto-notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.howto-notif-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text, #14161a);
  line-height: 1.4;
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
  min-width: 34px;
}

.notif-badge--max  { background: #fee2e2; color: #dc2626; }
.notif-badge--high { background: #fef3c7; color: #d97706; }
.notif-badge--def  { background: #f0f2f7; color: #64748b; }

/* Plain list */
.howto-plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.howto-plain-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text, #14161a);
  line-height: 1.5;
}

.howto-plain-list li::before {
  content: "\2014";
  color: var(--muted, #5b6472);
  flex-shrink: 0;
}

/* ── Inzetgebieden ─────────────────────────────────────────────────────── */
.app-scenarios {
  margin-bottom: 80px;
}

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

.scenario-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scenario-card--mce {
  border-color: #1d3557;
}

.scenario-img-slot {
  height: 220px;
  background: #e8ecf2;
  overflow: hidden;
  flex-shrink: 0;
}

.scenario-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.scenario-card:hover .scenario-img-slot img {
  transform: scale(1.03);
}

.scenario-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: #1d3557;
  color: #fff;
  width: fit-content;
}

.scenario-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #14161a);
  margin: 0;
}

.scenario-body p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted, #5b6472);
  margin: 0;
}

/* ── Voor wie (audiences) ──────────────────────────────────────────────── */
.app-audiences {
  margin-bottom: 80px;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.audience-card {
  border-radius: 24px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audience-card--teams {
  background: #1d3557;
}

.audience-card--clients {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6eaf0);
}

.audience-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  width: fit-content;
}

.audience-card--teams .audience-eyebrow {
  background: rgba(230,57,70,.2);
  color: #fca5a5;
}

.audience-card--clients .audience-eyebrow {
  background: #eef4ff;
  color: #1d5fa8;
}

.audience-card h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.audience-card--teams h2 { color: #fff; }
.audience-card--clients h2 { color: var(--text, #14161a); }

.audience-card > p {
  font-size: 14px;
  line-height: 1.78;
  margin: 0;
}

.audience-card--teams > p { color: rgba(255,255,255,.72); }
.audience-card--clients > p { color: var(--muted, #5b6472); }

.audience-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.audience-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.audience-check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
  margin-top: 1px;
}

.audience-card--teams .audience-check-list li { color: rgba(255,255,255,.88); }
.audience-card--teams .audience-check-list li::before { color: #4ade80; }
.audience-card--clients .audience-check-list li { color: var(--text, #14161a); }
.audience-card--clients .audience-check-list li::before { color: #22c55e; }

.audience-card .btn {
  margin-top: 6px;
  align-self: flex-start;
}

.audience-card--clients .btn.ghost {
  border: 1px solid var(--border, #e6eaf0);
  color: var(--text, #14161a);
}

.audience-card--clients .btn.ghost:hover {
  background: #f5f7fa;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .role-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .howto-setup {
    flex-direction: column;
  }

  .howto-setup-arrow {
    padding: 0 0 0 24px;
    transform: rotate(90deg);
    align-self: flex-start;
  }

  .howto-steps {
    grid-template-columns: 1fr;
  }

  .howto-details {
    grid-template-columns: 1fr;
  }

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

  .audience-card {
    padding: 36px 28px;
  }

  .audience-img-slot {
    width: calc(100% + 56px);
    margin: -36px -28px 0;
  }

  .feat-img-slot {
    width: calc(100% + 48px);
    margin: -24px -24px 16px;
  }
}

@media (max-width: 900px) {
  .app-hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 40px;
  }

  .phone-stack {
    width: 100%;
    max-width: 300px;
    height: 360px;
  }

  .float-label { display: none; }

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

  .feature-card--highlight {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature-card--highlight .feature-card-icon {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .feature-tag {
    grid-column: 1;
  }

  .compare-cards {
    grid-template-columns: 1fr;
  }

  .app-cta {
    padding: 36px 28px;
  }

  .app-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .role-cards {
    grid-template-columns: 1fr;
  }

  .app-hero-copy h1 {
    font-size: 1.9rem;
  }
}
