/* App Features page — matched to reference; header/footer from marketing layout */

.af-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #2563eb;
  font-size: .9rem;
  font-weight: 700;
}

.af-eyebrow i { font-size: .85rem; }

.af-eyebrow--center {
  justify-content: center;
  width: 100%;
}

/* Hero — same height as homepage (.nn-hero__panel = 460px) */
.af-hero {
  position: relative;
  overflow: hidden;
  height: 460px;
  min-height: 460px;
  background: #eaf3ff;
}

.af-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.af-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.af-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(234,243,255,.97) 0%, rgba(234,243,255,.92) 38%, rgba(234,243,255,.45) 62%, rgba(234,243,255,.15) 100%),
    linear-gradient(180deg, rgba(234,243,255,.2) 0%, transparent 40%, rgba(255,255,255,.55) 100%);
}

.af-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.5rem;
  align-items: center;
}

.af-hero__copy {
  max-width: 34rem;
  padding: 1.5rem 0;
}

.af-hero__copy h1 {
  margin: .7rem 0 .75rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #16325c;
}

.af-hero__copy h1 span { color: #14b8a6; }

.af-hero__copy > p {
  margin: 0 0 1.15rem;
  color: #64748b;
  font-size: .98rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 32rem;
}

.af-hero__benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-hero__benefits li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

.af-hero__benefits i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16325c;
  color: #fff;
  font-size: .8rem;
}

.af-hero__benefits span {
  font-size: .78rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.3;
}

.af-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  padding-bottom: .35rem;
}

.af-phone-img {
  width: min(100%, 300px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 22px 40px rgba(15, 36, 68, .28));
}

/* Sections */
.af-section {
  padding: 2.35rem 0;
  background: #fff;
}

.af-section--soft { background: #f5f8fc; }

.af-section__head {
  text-align: left;
  max-width: none;
  margin: 0 0 1.15rem;
}

.af-section__head--left {
  text-align: left;
  max-width: none;
  margin: 0 0 1.15rem;
}

.af-section__head .af-eyebrow {
  margin-bottom: .35rem;
}

.af-section__head h2 {
  margin: .15rem 0 .35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #16325c;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-section__head p {
  margin: 0;
  color: #64748b;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 46rem;
}

/* Modules 4×4 — icon left, title+desc right */
.af-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.af-module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 1.05rem .95rem;
  box-shadow: 0 6px 16px rgba(15, 36, 68, .04);
  min-height: 100%;
}

.af-module__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}

.af-module h3 {
  margin: 0 0 .28rem;
  font-size: .95rem;
  font-weight: 800;
  color: #16325c;
  line-height: 1.3;
}

.af-module p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
  text-align: left;
}

/* Roles */
.af-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.af-role {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 36, 68, .06);
  display: flex;
  flex-direction: column;
}

.af-role__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.af-role__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-role__float {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  background: rgba(255,255,255,.97);
  border-radius: 10px;
  padding: .5rem .7rem;
  box-shadow: 0 8px 18px rgba(15, 36, 68, .15);
  min-width: 8rem;
}

.af-role__float strong {
  display: block;
  font-size: .78rem;
  color: #16325c;
}

.af-role__float span {
  font-size: .7rem;
  color: #64748b;
  font-weight: 600;
}

.af-role__body {
  padding: 1.1rem 1.05rem 1.2rem;
}

.af-role__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: .65rem;
}

.af-role__body h3 {
  margin: 0 0 .35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #16325c;
}

.af-role__body > p {
  margin: 0 0 .85rem;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.5;
  text-align: left;
}

.af-role__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .42rem;
}

.af-role__body li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
}

.af-role__body li i {
  color: #14b8a6;
  margin-top: .15rem;
  font-size: .75rem;
}

/* CTA */
.af-cta-wrap {
  padding: 0 0 3.5rem;
  background: #f5f8fc;
}

.af-cta {
  background: linear-gradient(110deg, #0b1b33 0%, #16325c 55%, #1e4d8c 100%);
  border-radius: 18px;
  color: #fff;
  padding: 1.85rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}

.af-cta::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background:
    radial-gradient(ellipse 28% 90% at 15% 100%, rgba(255,255,255,.12), transparent),
    radial-gradient(ellipse 25% 80% at 45% 100%, rgba(255,255,255,.1), transparent),
    radial-gradient(ellipse 30% 95% at 80% 100%, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

.af-cta__brand,
.af-cta__copy,
.af-cta__btn { position: relative; z-index: 1; }

.af-cta__copy h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.af-cta__copy p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  line-height: 1.55;
  font-weight: 500;
}

.af-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
}

.af-cta__btn:hover { background: #16a34a; color: #fff; }

/* Pricing */
.af-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.af-price {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.35rem;
  box-shadow: 0 8px 22px rgba(15, 36, 68, .05);
  display: flex;
  flex-direction: column;
}

.af-price--featured {
  border-color: #2563eb;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .16);
  transform: translateY(-4px);
}

.af-price__badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: #2563eb;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .28rem .55rem;
  border-radius: 999px;
}

.af-price h3 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #16325c;
}

.af-price__tag {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: .9rem;
  font-weight: 500;
}

.af-price__amt {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1.1rem;
}

.af-price__amt strong {
  font-size: 2rem;
  font-weight: 800;
  color: #16325c;
  letter-spacing: -.03em;
}

.af-price__amt span {
  color: #64748b;
  font-weight: 600;
  font-size: .9rem;
}

.af-price ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .55rem;
  flex: 1;
}

.af-price li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 600;
  color: #334155;
}

.af-price li i { color: #14b8a6; margin-top: .15rem; }

.af-compare-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.af-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.af-compare th,
.af-compare td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  font-size: .9rem;
}

.af-compare th {
  background: #f8fafc;
  color: #16325c;
  font-weight: 800;
}

.af-compare td:first-child {
  color: #334155;
  font-weight: 650;
}

.af-compare td {
  color: #64748b;
  font-weight: 600;
}

.af-compare i { color: #14b8a6; }

/* NRI split — compact height */
.af-nri {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.af-nri__slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  min-height: 260px;
  max-height: 280px;
}

.af-nri__slides {
  position: relative;
  height: 100%;
  min-height: 260px;
  max-height: 280px;
}

.af-nri__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.af-nri__slide.is-active { opacity: 1; z-index: 1; }

.af-nri__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-nri__dots {
  position: absolute;
  left: 50%;
  bottom: .75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: .4rem;
}

.af-nri__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
}

.af-nri__dots button.is-active { background: #fff; }

.af-nri__features {
  display: grid;
  gap: .65rem;
  align-content: start;
}

.af-nri__features article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: .7rem .85rem;
}

.af-nri__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
}

.af-nri__features h3 {
  margin: 0 0 .2rem;
  font-size: .95rem;
  font-weight: 800;
  color: #16325c;
}

.af-nri__features p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  line-height: 1.45;
  text-align: left;
}

.af-price__note {
  margin: -.35rem 0 1rem;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .af-modules { grid-template-columns: repeat(2, 1fr); }
  .af-roles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .af-hero {
    height: auto;
    min-height: 460px;
  }
  .af-hero__inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 1.25rem;
    align-items: start;
  }
  .af-hero__visual {
    order: -1;
    height: auto;
    padding: 0;
  }
  .af-phone-img {
    max-height: 280px;
    width: min(100%, 220px);
  }
  .af-hero__benefits { grid-template-columns: repeat(2, 1fr); }
  .af-cta { grid-template-columns: 1fr; }
  .af-pricing,
  .af-nri { grid-template-columns: 1fr; }
  .af-price--featured { transform: none; }
}

@media (max-width: 560px) {
  .af-modules,
  .af-roles,
  .af-hero__benefits,
  .af-pricing { grid-template-columns: 1fr; }
  .af-section { padding: 2rem 0; }
  .af-section__head h2 { white-space: normal; }
  .af-nri { max-height: none; }
  .af-nri__slider,
  .af-nri__slides { min-height: 200px; max-height: 220px; }
}
