/* Webapplicatie — overzichtelijke layout in lijn met Rekenfeiten / home */

.webapp-page {
  margin-bottom: 56px;
}

/* Intro */
.webapp-hero {
  margin: 0 0 28px;
  padding: 28px 32px 32px;
  background:
    radial-gradient(900px 360px at 100% -30%, rgba(53, 152, 220, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #f5f9fd 0%, #fff 42%, #eef5fb 100%);
  border: 1px solid #dfe8f0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
}

.webapp-hero__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b8fd4;
  margin: 0 0 10px 0;
}

.webapp-hero__title {
  font-size: 26px;
  line-height: 1.28;
  font-weight: 600;
  color: #1f2d3a;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .webapp-hero__title {
    font-size: 30px;
  }
}

.webapp-hero__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 16px;
  line-height: 1.6;
  color: #3d4f5f;
}

/* Doelgroep — tabs */
.webapp-audience {
  margin: 0 0 36px;
  padding: 0;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  overflow: hidden;
}

.webapp-audience__head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf2f6;
}

.webapp-audience__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8a99;
  margin: 0 0 6px 0;
}

.webapp-audience__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.02em;
}

.webapp-tabs {
  margin: 14px 0 0 !important;
  padding: 0 8px !important;
  border-bottom: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webapp-tabs > li {
  float: none !important;
  margin: 0 !important;
}

.webapp-tabs > li > a {
  margin: 0 !important;
  padding: 12px 18px !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #516373 !important;
  background: #f4f8fb !important;
  border: 1px solid #dce6ee !important;
  border-radius: 999px !important;
  border-bottom: 1px solid #dce6ee !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.webapp-tabs > li > a:hover,
.webapp-tabs > li > a:focus {
  background: #eaf3fa !important;
  color: #256fa3 !important;
}

.webapp-tabs > li.active > a,
.webapp-tabs > li.active > a:hover,
.webapp-tabs > li.active > a:focus {
  color: #fff !important;
  background: #3598dc !important;
  border-color: #2e86c8 !important;
  box-shadow: 0 2px 10px rgba(53, 152, 220, 0.35);
}

.webapp-tab-content {
  padding: 24px 26px 28px;
}

.webapp-tab-content .tab-pane > .row {
  align-items: center;
}

.webapp-tab-pane__text {
  font-size: 15px;
  line-height: 1.65;
  color: #3d4f5f;
}

.webapp-tab-pane__text p:last-child {
  margin-bottom: 0;
}

.webapp-actions {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.webapp-actions .btn {
  margin: 0 !important;
}

.webapp-figure {
  margin: 20px 0 0;
  text-align: center;
}

@media (min-width: 992px) {
  .webapp-figure {
    margin: 0;
  }
}

.webapp-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(44, 62, 80, 0.12);
  border: 1px solid #e8eef3;
}

.webapp-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #7a8a99;
  line-height: 1.45;
}

/* Thuis/ouders-tab: compactere screenshot */
#webapp-tab-home .webapp-figure img {
  max-width: min(420px, 100%);
}

/* Diepgaande blokken */
.webapp-insights {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.webapp-block {
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(44, 62, 80, 0.05);
}

.webapp-block__title {
  position: relative;
  margin: 0 0 18px 0;
  padding: 0 0 12px 16px;
  font-size: 21px;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #edf2f6;
}

.webapp-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f0c040 0%, #e8a317 100%);
}

.webapp-block__intro {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #3d4f5f;
}

.webapp-more {
  margin-top: 4px;
}

.webapp-more__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 8px 14px;
  margin: 8px 0 0 -14px;
  font-size: 14px;
  font-weight: 600;
  color: #3598dc;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.webapp-more__summary::-webkit-details-marker,
.webapp-more__summary::marker {
  display: none;
  content: none;
}

.webapp-more__summary::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid #3598dc;
  border-bottom: 2px solid #3598dc;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.webapp-more[open] > .webapp-more__summary::after {
  transform: rotate(-135deg);
}

.webapp-more__summary:hover {
  background: rgba(53, 152, 220, 0.08);
}

.webapp-more__summary:focus {
  outline: none;
}

.webapp-more__summary:focus-visible {
  outline: 2px solid #3598dc;
  outline-offset: 2px;
}

.webapp-more__panel {
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #3d4f5f;
}

.webapp-more__panel p:last-child {
  margin-bottom: 0;
}

.webapp-more__panel ul {
  margin-top: 8px;
}

/* Opgavereeksen — raster */
.webapp-opgaven {
  margin: 18px 0 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 576px) {
  .webapp-opgaven {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .webapp-opgaven {
    grid-template-columns: repeat(4, 1fr);
  }
}

.webapp-opgaven__card {
  padding: 14px 14px 12px;
  background: #fafcfd;
  border: 1px solid #e4ecf2;
  border-radius: 10px;
}

.webapp-opgaven__heading {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3598dc;
}

.webapp-opgaven__card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.webapp-opgaven__card li {
  margin-bottom: 4px;
  font-size: 14px;
  color: #516373;
}

.webapp-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(53, 152, 220, 0.06);
  border-left: 4px solid #3598dc;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3d4f5f;
}
