/* KarPing APR product styles. Keep selectors scoped to APR content. */
:root {
  --apr-charcoal: #101317;
  --apr-charcoal-soft: #181d23;
  --apr-gold: #d8af63;
  --apr-gold-bright: #f3cb74;
  --apr-ivory: #f2ece1;
  --apr-paper: #fffdf8;
  --apr-ink: #20242a;
  --apr-muted: #65625d;
  --apr-line: rgba(216, 175, 99, 0.3);
}

.apr-page {
  background: var(--apr-paper);
  color: var(--apr-ink);
}

.apr-page .header .logo img {
  height: 42px;
}

.apr-page .navmenu a[aria-current="page"] {
  color: var(--apr-gold-bright);
}

.apr-main {
  overflow: clip;
}

.apr-section {
  padding: 88px 0;
  position: relative;
}

.apr-section-heading {
  margin: 0 0 16px;
  color: var(--apr-ink);
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.apr-section-intro {
  max-width: 720px;
  margin: 0;
  color: var(--apr-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.apr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--apr-gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apr-kicker::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.apr-hero {
  min-height: 760px;
  padding: 164px 0 96px;
  background:
    radial-gradient(circle at 76% 28%, rgba(216, 175, 99, 0.15), transparent 31%),
    linear-gradient(145deg, #0c0f12 0%, var(--apr-charcoal) 58%, #171b1f 100%);
  color: var(--apr-ivory);
}

.apr-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(216, 175, 99, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(216, 175, 99, 0.035), 0 0 0 136px rgba(216, 175, 99, 0.02);
  content: "";
  pointer-events: none;
}

.apr-hero-copy {
  position: relative;
  z-index: 1;
}

.apr-product-mark {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.apr-product-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.apr-product-mark span {
  color: var(--apr-ivory);
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.apr-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fffaf0;
  font-family: var(--heading-font);
  font-size: clamp(3.3rem, 7.2vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.apr-hero-subtitle {
  margin: 28px 0 14px;
  color: var(--apr-gold-bright);
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 600;
}

.apr-hero-text {
  max-width: 620px;
  margin: 0;
  color: rgba(245, 240, 231, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
}

.apr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.apr-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.apr-button-primary {
  background: linear-gradient(135deg, #f4ce78, #c8953e);
  color: #17130c;
  box-shadow: 0 12px 32px rgba(216, 175, 99, 0.2);
}

.apr-button-primary:hover {
  background: linear-gradient(135deg, #ffe099, #d8af63);
  color: #17130c;
  transform: translateY(-2px);
}

.apr-button-secondary {
  border-color: rgba(245, 240, 231, 0.35);
  color: var(--apr-ivory);
}

.apr-button-secondary:hover {
  border-color: var(--apr-gold);
  color: var(--apr-gold-bright);
}

.apr-endorsement {
  margin: 24px 0 0;
  color: rgba(245, 240, 231, 0.58);
  font-size: 0.88rem;
}

.apr-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.apr-hero-orbit {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 145px;
  height: 145px;
  opacity: 0.2;
}

.apr-phone {
  position: relative;
  width: min(330px, 78vw);
  padding: 10px;
  border: 1px solid rgba(216, 175, 99, 0.55);
  border-radius: 38px;
  background: #07090b;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.48), 0 0 55px rgba(216, 175, 99, 0.1);
}

.apr-phone::before {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: 34%;
  height: 18px;
  border-radius: 0 0 13px 13px;
  background: #080a0c;
  content: "";
  transform: translateX(-50%);
}

.apr-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.apr-how {
  background: var(--apr-ivory);
}

.apr-steps {
  margin-top: 46px;
}

.apr-step {
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(64, 52, 30, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.7);
}

.apr-step-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border: 1px solid var(--apr-gold);
  border-radius: 50%;
  color: #7b571c;
  font-family: var(--heading-font);
  font-weight: 800;
  place-items: center;
}

.apr-step h3 {
  margin-bottom: 12px;
  color: var(--apr-ink);
  font-size: 1.5rem;
}

.apr-step p {
  margin: 0;
  color: var(--apr-muted);
  line-height: 1.7;
}

.apr-gallery-section {
  background: var(--apr-paper);
}

.apr-gallery-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--apr-muted);
  font-size: 0.9rem;
}

.apr-gallery {
  display: grid;
  grid-auto-columns: minmax(230px, 25%);
  grid-auto-flow: column;
  gap: 22px;
  margin-top: 44px;
  padding: 4px 4px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--apr-gold) rgba(16, 19, 23, 0.1);
  scrollbar-width: thin;
}

.apr-shot-card {
  scroll-snap-align: start;
}

.apr-shot-frame {
  padding: 8px;
  border: 1px solid rgba(16, 19, 23, 0.15);
  border-radius: 28px;
  background: #111418;
  box-shadow: 0 20px 42px rgba(24, 25, 27, 0.12);
}

.apr-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.apr-shot-card h3 {
  margin: 20px 4px 0;
  color: var(--apr-ink);
  font-size: 1.04rem;
  font-weight: 750;
}

.apr-details {
  background: var(--apr-ivory);
}

.apr-example-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.apr-example-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #4e4a44;
  font-weight: 600;
}

.apr-example-list i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(130, 91, 28, 0.28);
  border-radius: 50%;
  color: #825b1c;
  place-items: center;
}

.apr-detail-visuals {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}

.apr-detail-shot {
  width: min(260px, 48%);
  padding: 7px;
  border-radius: 26px;
  background: #111418;
  box-shadow: 0 24px 52px rgba(33, 27, 17, 0.2);
}

.apr-detail-shot:first-child {
  z-index: 1;
  margin-right: -25px;
  transform: translateY(-28px) rotate(-3deg);
}

.apr-detail-shot:last-child {
  transform: rotate(3deg);
}

.apr-detail-shot img {
  width: 100%;
  height: auto;
  border-radius: 19px;
}

.apr-trust {
  background: var(--apr-charcoal);
  color: var(--apr-ivory);
}

.apr-trust-card {
  position: relative;
  padding: 46px;
  border: 1px solid var(--apr-line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(216, 175, 99, 0.08), rgba(255, 255, 255, 0.025));
}

.apr-trust-card::before {
  display: block;
  margin-bottom: 28px;
  color: var(--apr-gold-bright);
  content: "\F3E8";
  font-family: "bootstrap-icons";
  font-size: 2rem;
}

.apr-trust .apr-section-heading {
  max-width: 760px;
  color: #fffaf0;
}

.apr-trust p {
  max-width: 890px;
  margin: 0;
  color: rgba(245, 240, 231, 0.76);
  font-size: 1.08rem;
  line-height: 1.8;
}

.apr-final {
  padding: 100px 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(216, 175, 99, 0.23), transparent 44%),
    var(--apr-charcoal);
  color: var(--apr-ivory);
  text-align: center;
}

.apr-final-mark {
  width: 86px;
  height: 86px;
  margin-bottom: 25px;
  object-fit: contain;
}

.apr-final h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.apr-final p {
  max-width: 620px;
  margin: 20px auto 28px;
  color: rgba(245, 240, 231, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.apr-platform-note {
  display: block;
  margin-top: 18px;
  color: rgba(245, 240, 231, 0.56);
  font-size: 0.85rem;
}

.apr-footer-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}

.apr-footer-product-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.apr-footer-product-links a:hover {
  color: var(--apr-gold-bright);
}

/* Homepage APR band: intentionally separate from enterprise implementation cards. */
.apr-promo {
  padding: 74px 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 175, 99, 0.18), transparent 30%),
    var(--apr-charcoal);
  color: var(--apr-ivory);
}

.apr-promo-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.apr-promo-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.apr-promo h2 {
  margin: 0 0 9px;
  color: #fffaf0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
}

.apr-promo p {
  margin: 0;
  color: rgba(245, 240, 231, 0.76);
  font-size: 1.02rem;
}

.apr-promo .apr-button {
  white-space: nowrap;
}

.apr-page a:focus-visible,
.apr-promo a:focus-visible,
.apr-gallery:focus-visible {
  outline: 3px solid #ffd77e;
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .apr-hero {
    padding-top: 138px;
  }

  .apr-gallery {
    grid-auto-columns: minmax(235px, 36%);
  }
}

@media (max-width: 991px) {
  .apr-section {
    padding: 72px 0;
  }

  .apr-hero {
    min-height: auto;
  }

  .apr-hero-visual {
    margin-top: 54px;
  }

  .apr-detail-visuals {
    margin-top: 45px;
  }

  .apr-promo-inner {
    grid-template-columns: auto 1fr;
  }

  .apr-promo .apr-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .apr-section {
    padding: 60px 0;
  }

  .apr-hero {
    padding: 122px 0 66px;
  }

  .apr-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.6rem);
  }

  .apr-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .apr-button {
    width: 100%;
  }

  .apr-phone {
    width: min(290px, 76vw);
  }

  .apr-gallery {
    grid-auto-columns: minmax(218px, 75%);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
  }

  .apr-detail-visuals {
    min-height: 430px;
  }

  .apr-trust-card {
    padding: 28px;
  }

  .apr-promo {
    padding: 58px 0;
  }

  .apr-promo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .apr-promo-icon {
    width: 90px;
    height: 90px;
    margin: auto;
  }

  .apr-promo .apr-button {
    grid-column: 1;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .apr-gallery {
    grid-auto-columns: 82%;
  }

  .apr-detail-shot {
    width: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apr-page *,
  .apr-page *::before,
  .apr-page *::after,
  .apr-promo *,
  .apr-promo *::before,
  .apr-promo *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
