/* WHAT YOU GET WITH CLAPS — features section */

.features-section {
  background: #ffffff;
}

.features-section .container {
  max-width: 80rem;
}

/* Soft background blobs */
.features-bg-teal {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: rgba(13, 148, 136, 0.05);
  border-radius: 50%;
  filter: blur(100px);
  transform: translate(50%, -50%);
}

.features-bg-purple {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 40%;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 50%;
  filter: blur(100px);
  transform: translate(-50%, 50%);
}

/* Header */
.features-header {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.features-eyebrow-wrap {
  display: inline-block;
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  background: rgba(13, 148, 136, 0.1);
}

.features-section .features-eyebrow-wrap .home-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.features-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  text-align: center;
}

.features-title::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 0.15rem;
  width: 2.25rem;
  height: 1.1rem;
  background:
    linear-gradient(32deg, transparent 46%, #14b8a6 46%, #14b8a6 54%, transparent 54%) 0 0 / 1.4rem 0.18rem no-repeat,
    linear-gradient(8deg, transparent 46%, #14b8a6 46%, #14b8a6 54%, transparent 54%) 0.2rem 0.35rem / 1.6rem 0.18rem no-repeat,
    linear-gradient(-18deg, transparent 46%, #14b8a6 46%, #14b8a6 54%, transparent 54%) 0.45rem 0.7rem / 1.35rem 0.18rem no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.features-claps {
  position: relative;
  display: inline-block;
}

.features-claps::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 0.45rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C30 2, 50 10, 78 4 S110 9, 118 6' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: 0.85;
}

.features-copy {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Main two-column layout */
.features-main {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .features-main {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
  }
}

/* K-12 hero card */
.features-k12-card {
  height: 100%;
}

.features-k12-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 42%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18);
}

.features-k12-dots {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.22) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.features-k12-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 18rem;
  padding: 1.25rem 1rem 0.5rem;
}

.features-k12-image {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
}

.features-grade-label {
  position: absolute;
  right: 0.75rem;
  top: 42%;
  transform: translateY(-50%) rotate(-4deg);
  margin: 0;
  color: #0d9488;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  max-width: 7.5rem;
}

.features-grade-label strong {
  font-weight: 800;
}

.features-grade-label::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2.25rem;
  margin-top: 0.15rem;
  margin-left: 0.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none'%3E%3Cpath d='M4 34 C18 10, 34 8, 58 4' stroke='%230d9488' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M52 4 L58 4 L58 10' stroke='%230d9488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    left center / contain no-repeat;
}

.features-k12-footer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.2);
}

.features-k12-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features-k12-title {
  margin: 0;
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: #0f2744;
}

.features-k12-eyebrow {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.features-k12-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
}

/* Feature grid */
.features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.features-grid-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 8.5rem;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.features-grid-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.18);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.22);
}

.features-card-number {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.55;
}

.features-card-number-teal { color: #0d9488; }
.features-card-number-purple { color: #8b5cf6; }
.features-card-number-coral { color: #f97316; }
.features-card-number-blue { color: #3b82f6; }
.features-card-number-yellow { color: #eab308; }
.features-card-number-pink { color: #ec4899; }

.features-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.features-card-body {
  min-width: 0;
  padding-right: 1.75rem;
}

.features-card-title {
  margin: 0 0 0.35rem;
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f2744;
}

.features-card-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

/* Trust bar */
.features-trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

@media (min-width: 768px) {
  .features-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.75rem;
  }
}

@media (min-width: 1100px) {
  .features-trust-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.features-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.features-trust-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features-trust-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f2744;
}

.features-trust-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 639px) {
  .features-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }

  .features-k12-visual {
    min-height: 15rem;
  }

  .features-grade-label {
    right: 0.5rem;
    font-size: 0.95rem;
  }
}
