﻿/* Tests: tests/AMMN.Portal.E2E/ServicePageTests.cs */
/* Docs:  docs/dev/SERVICE.md */

/* ================================================================
   SERVICE PAGE â€” Styles unique to the service template.
   Shared sections (nav, partners, FAQ, CTA, footer) are in landing.css.
   ================================================================ */

/* ----------------------------------------------------------------
   PARTNERS SECTION (service override of landing's .section_2)
   ---------------------------------------------------------------- */
/* Override landing .section_2 on service page — no oval overlap */
.sec-homepage ~ .section_2 {
margin-top: 0;
padding-top: 40px;
clip-path: none;
z-index: 0;
}

.section_2imgs > img,
.section_2imgs_service > img {
width: 200px;
height: 120px;
object-fit: contain;
flex-shrink: 0;
display: inline-block;
}

.section_2imgs,
.section_2imgs_service {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 40px;
overflow: hidden;
}

/* ----------------------------------------------------------------
   1. HERO SECTION
   ---------------------------------------------------------------- */
.sec-homepage {
width: 100%;
min-height: 100vh;
display: flex;
margin-top: 0;
padding-top: 0;
}

.homepage {
width: 100%;
min-height: 100vh;
background-size: cover;
background-position: 0 20%;
background-repeat: no-repeat;
position: relative;
z-index: 1;
display: flex;
align-items: end;
}

.blur-section {
position: relative;
width: 100%;
padding: 80px 80px;
height: 400px;
display: flex;
align-items: end;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--text) 38%, var(--text) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, var(--text) 38%, var(--text) 100%);
}

.text-section {
width: 100%;
}

.textrow {
display: flex;
justify-content: space-between;
align-items: center;
}

.leftside {
max-width: 650px;
}

.text-section h1 {
color: rgba(255,255,255,0.93);
font-size: 40px;
line-height: 1.15;
margin-bottom: 14px;
font-weight: 500;
}

.text-section p {
color: rgba(255,255,255,0.93);
font-size: 16px;
line-height: 24px;
}

.right-side {
display: flex;
gap: 14px;
align-self: end;
}

.hero-btn-primary {
padding: 20px 48px;
min-height: 60px;
min-width: 240px;
border-radius: 999px;
border: none;
background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
/* White, NOT --brand-primary-contrast: this is a GRADIENT that ends on
   --brand-primary-hover (#0a7a70, a dark teal). The contrast token is for a FLAT brand fill —
   on this button's dark end it would measure about 1.8:1, where white measures about 5.3:1. */
color: #fff;
box-shadow: var(--shadow-md);
font-size: 19px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.hero-btn-primary:hover {
transform: translateY(-2px) scale(1.03);
box-shadow: var(--shadow-lg);
background: var(--brand-primary-hover);
}

/* Arrow icon inside primary button */
.hero-btn-arrow {
transition: transform 0.3s ease;
flex-shrink: 0;
}
[dir="rtl"] .hero-btn-arrow {
transform: scaleX(-1);
}
.hero-btn-primary:hover .hero-btn-arrow {
transform: translateX(4px);
}
[dir="rtl"] .hero-btn-primary:hover .hero-btn-arrow {
transform: scaleX(-1) translateX(4px);
}

/* Pulse glow — draws attention on page load */
.hero-btn-pulse {
animation: hero-glow 2.2s ease-in-out infinite;
}
@keyframes hero-glow {
0%, 100% { box-shadow: 0 0 12px 2px color-mix(in srgb, var(--brand-primary) 40%, transparent); }
50%      { box-shadow: 0 0 28px 10px color-mix(in srgb, var(--brand-primary) 55%, transparent); }
}
.hero-btn-pulse:hover {
animation: none;
}

/* Loading state — replaces text with spinner during navigation */
.hero-btn-primary--loading {
pointer-events: none;
opacity: 0.85;
animation: none;
}

.hero-btn-spinner {
width: 22px;
height: 22px;
border: 3px solid color-mix(in srgb, var(--n0) 40%, transparent);
border-top-color: var(--n0);
border-radius: 50%;
animation: pending-spin 0.6s linear infinite;
}

.hero-btn-secondary {
position: relative;
padding: 16px 24px;
min-height: 52px;
border-radius: 999px;
border: none;
background: linear-gradient(135deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.15) 100%);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
box-shadow: var(--shadow-lg);
color: #fff;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
transform: translateY(-2px);
background: linear-gradient(135deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.25) 100%);
}

/* ----------------------------------------------------------------
   2. SME / WHY CHOOSE US SECTION (horizontal scroll cards)
   ---------------------------------------------------------------- */
.sme-section {
overflow-x: hidden;
background: var(--n10);
padding: 40px 0 0;
}

.sme-header {
margin: 0 0 20px 80px;
overflow: hidden;
}

[dir="rtl"] .sme-header {
margin: 0 80px 20px 0;
}

.sme-header h2 {
font-size: 36px;
font-weight: 500;
margin: 0;
color: var(--n800);
line-height: 48px;
letter-spacing: -1.08px;
}

.sme-header p {
margin-top: 20px;
font-weight: 400;
font-size: 16px;
color: var(--n500);
line-height: 24px;
letter-spacing: -0.08px;
}

.sme-progress {
max-width: 90vw;
margin: 0 80px;
height: 3px;
background: var(--n30);
border-radius: 999px;
position: relative;
}

.sme-progress-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0%;
background: var(--n700);
border-radius: 999px;
}

.sme-viewport {
width: 100%;
overflow-x: auto;
overflow-y: hidden;
padding: 30px 0;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}

.sme-viewport::-webkit-scrollbar {
display: none;
}

.sme-track {
display: flex;
gap: 28px;
padding: 0 80px;
}

.sme-card {
flex: 0 0 390px;
background: var(--n0);
border-radius: 16px;
padding: 24px;
display: flex;
flex-direction: column;
gap: 11px;
overflow: hidden;
}

.sme-icon-wrapper {
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.sme-card img {
width: 56px;
height: 56px;
object-fit: contain;
flex-shrink: 0;
transition: transform 0.3s ease;
}

.sme-card:hover img {
transform: scale(1.08);
}

.sme-card h4 {
margin: 0;
font-size: 18px;
font-weight: 500;
color: var(--n900);
flex-shrink: 0;
line-height: 32px;
letter-spacing: -0.18px;
}

.sme-card p {
margin: 0;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.08px;
color: var(--n800);
flex-grow: 1;
overflow: hidden;
}

/* ----------------------------------------------------------------
   3. COVERAGE STACK (stacked cards — cycled via hover-nav buttons)
   ---------------------------------------------------------------- */
.stack-section {
background: var(--n10);
position: relative;
}

.stack-layout {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 80px;
height: 100vh;
padding: 0 40px;
}

.left-content {
width: 45%;
margin-left: 10px;
}

.left-content h2 {
font-size: 36px;
font-weight: 500;
line-height: 48px;
letter-spacing: -1.08px;
color: var(--n800);
padding-bottom: 10px;
margin-bottom: 16px;
}

.left-content p {
font-size: 16px;
font-weight: 400;
color: var(--n500);
line-height: 24px;
letter-spacing: -0.08px;
margin-bottom: 20px;
max-width: 530px;
}

.left-content button {
padding: 20px 24px;
min-height: 52px;
width: 143px;
border-radius: 99px;
margin-top: 30px;
text-align: center;
border: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: var(--brand-blue);
color: var(--n0);
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 1px 6px 16px rgba(0,0,0,0.08);
}

.left-content button:hover {
background: var(--brand-blue-hover);
transform: translateY(-2px);
box-shadow: 1px 6px 20px rgba(0,0,0,0.12);
}

.stack-section1 {
position: relative;
width: 50%;
height: 520px;
display: flex;
align-items: center;
justify-content: center;
}

.blue-card {
position: absolute;
width: 430px;
height: 469px;
border-radius: 16px;
padding: 0;
overflow: hidden;
background: linear-gradient(135deg, #dee8ff 0%, #5b8ef5 50%, var(--brand-blue) 100%);
box-shadow: 0 15px 28px rgba(0,0,0,0.16);
transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
opacity: 0;
transform: scale(0.95) rotate(6deg);
}

.blue-card.active {
opacity: 1;
transform: scale(1) rotate(0deg);
z-index: 100;
}

.blue-card.tilt-right {
opacity: 1;
transform: scale(0.95) rotate(6deg) translate(15px, -10px);
z-index: 99;
}

.blue-card.tilt-left {
opacity: 1;
transform: scale(0.95) rotate(-6deg) translate(-15px, -10px);
z-index: 98;
}

/* Hover-nav buttons replace the removed wheel-scroll behaviour —
   visible only while the user hovers or focuses the stack section. */
.stack-nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: var(--n900, #111);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
z-index: 200;
padding: 0;
}

.stack-nav-btn:hover {
background: rgba(255, 255, 255, 0.6);
}

.stack-nav-btn--prev { left: 12px; }
.stack-nav-btn--next { right: 12px; }

.stack-section1:hover .stack-nav-btn,
.stack-section1:focus-within .stack-nav-btn {
opacity: 1;
}

.blue-card::before {
content: "";
position: absolute;
inset: 0;
backdrop-filter: blur(75px);
-webkit-backdrop-filter: blur(75px);
background: rgba(255,255,255,0.01);
border-radius: 12px;
z-index: 1;
}

.icon-container {
position: absolute;
top: -20px;
right: -10px;
width: 200px;
height: 200px;
z-index: 3;
pointer-events: none;
}

.icon-container img {
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0.5;
filter: brightness(0) invert(1);
transform: rotate(-15deg);
}

.blue-card-text {
position: absolute;
bottom: 24px;
left: 32px;
right: 32px;
z-index: 2;
display: flex;
flex-direction: column;
gap: 8px;
}

.blue-card h3 {
font-size: 24px;
font-weight: 500;
line-height: 32px;
letter-spacing: -0.48px;
color: #fff;
margin: 0;
}

.blue-card p {
font-size: 16px;
font-weight: 400;
line-height: 24px;
letter-spacing: -0.08px;
color: var(--n40);
margin: 0;
}

/* ----------------------------------------------------------------
   ERROR RECOVERY (AppErrorBoundary)
   ---------------------------------------------------------------- */
.ammn-error-recovery {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
padding: 40px 20px;
}

.ammn-error-recovery__card {
max-width: 520px;
width: 100%;
background: var(--surface, var(--n0));
border: 1px solid var(--n100, rgba(0, 0, 0, 0.08));
border-radius: 16px;
padding: 40px 32px;
text-align: center;
box-shadow: var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.06));
}

.ammn-error-recovery__icon {
color: var(--landing-accent-dark, #1f2a44);
margin-bottom: 16px;
}

.ammn-error-recovery__card h2 {
margin: 0 0 8px;
font-size: 22px;
font-weight: 600;
color: var(--text, #1a1a2e);
}

.ammn-error-recovery__card p {
margin: 0 0 24px;
font-size: 15px;
line-height: 22px;
color: var(--text-muted, #555);
}

.ammn-error-recovery__actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}

.ammn-error-recovery__btn {
padding: 12px 22px;
border-radius: 999px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
border: 1px solid transparent;
transition: transform 0.2s ease, background 0.2s ease;
}

.ammn-error-recovery__btn--primary {
background: var(--brand-blue, #1860ff);
color: #fff;
}

.ammn-error-recovery__btn--primary:hover {
transform: translateY(-1px);
}

.ammn-error-recovery__btn--ghost {
background: transparent;
color: var(--text, #1a1a2e);
border-color: var(--n100, rgba(0, 0, 0, 0.15));
}

.ammn-error-recovery__btn--ghost:hover {
background: var(--n10, rgba(0, 0, 0, 0.04));
}

/* ----------------------------------------------------------------
   CAROUSEL HOVER ARROWS (Partners, WhyChooseUs, CoverageStack)
   ---------------------------------------------------------------- */
.carousel-arrows-wrap {
position: relative;

/* This wrapper is injected by initCarouselArrows AROUND a marquee whose .scroll-track is
   `width: fit-content` — 6140px for the 14 partner logos, duplicated. Its parent (.inside) is a
   flex container, and a flex item defaults to `min-width: auto`, i.e. "never shrink below your
   content". So without these three lines the wrapper grew to 6140px, .section_2imgs inherited it
   through `width: 100%`, and the row overflowed its column: pushed off-screen at one end with
   dead space at the other (measured at 1600px: section width 6140, left -4540, content ending
   677px short of the right edge).

   Constraining the wrapper is all that is needed — .section_2imgs already carries the
   `overflow: hidden` that clips the long track, and it starts working again the moment the
   wrapper is the width of the column rather than the width of its contents. Deliberately NOT
   `overflow: hidden` here: .carousel-arrow is absolutely positioned against this wrapper. */
width: 100%;
min-width: 0;
max-width: 100%;
}

.carousel-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: var(--n900, #111);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
z-index: 5;
padding: 0;
}

.carousel-arrow:hover {
background: rgba(255, 255, 255, 0.6);
}

.carousel-arrow--prev { left: 12px; }
.carousel-arrow--next { right: 12px; }

/* Why-Choose-Us carousel arrows. landing-init.js injects these into a
   .sme-arrow-wrap around the .sme-viewport on every .sme-section (the service
   pages' WhyChooseUsSection is static, so its own initCarouselArrows never runs
   — these are the reliable nav). Centered on the cards row, visible on both
   desktop and mobile. */

.carousel-arrows-wrap:hover .carousel-arrow,
.carousel-arrows-wrap:focus-within .carousel-arrow {
opacity: 1;
}

[data-theme="dark"] .carousel-arrow {
background: rgba(30, 30, 30, 0.45);
border-color: rgba(255, 255, 255, 0.18);
color: var(--n0, #fff);
}

[data-theme="dark"] .carousel-arrow:hover {
background: rgba(30, 30, 30, 0.7);
}

/* ----------------------------------------------------------------
   4. APP SECTION
   ---------------------------------------------------------------- */

/* Disabled store badges (footer pre-launch state) — uniform size across all 3 */

/* ----------------------------------------------------------------
   5. BENEFITS GRID
   ---------------------------------------------------------------- */
.benefits-grid1 {
width: 100%;
background: #0F0F0F;
}

.benefits-section {
  background: linear-gradient(180deg, #232222 0%, #0F0F0F 100%);
color: var(--n0);
text-align: center;
padding: 80px 34px 80px 40px;
font-size: 16px;
font-weight: 500;
line-height: 48px;
margin-bottom: 0;
}

.benefits-heading h2 {
color: var(--n0);
font-size: 32px;
font-weight: 500;
line-height: 48px;
}

.benefits-heading .icon-wrapper {
display: inline-block;
margin: 0 12px;
}

.benefits-heading .icon-wrapper img {
width: 30px;
height: 30px;
display: inline-block;
vertical-align: middle;
}

.benefits-heading p {
color: color-mix(in srgb, var(--n0) 75%, transparent);
font-size: 14px;
font-weight: 400;
line-height: 22px;
}

.benefits-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 23px;
width: 100%;
padding: 0 10px 200px 0;
max-width: 1400px;
margin: 20px auto;
}

.benefit-card {
background: color-mix(in srgb, var(--n0) 4%, transparent);
border-radius: 16px;
padding: 40px 32px;
transition: all 0.3s ease;
grid-column: span 2;
width: 100%;
}

/* 5-card layout: cards 4-5 centered in second row */
.benefits-grid .benefit-card:nth-child(4):nth-last-child(2) {
grid-column: 2 / span 2;
}

.benefits-grid .benefit-card:nth-child(5):last-child {
grid-column: 4 / span 2;
}

/* 8-card layout: cards 7-8 span 3 each */
.benefits-grid .benefit-card:nth-child(7):nth-last-child(2) {
grid-column: span 3;
}

.benefits-grid .benefit-card:nth-child(8):last-child {
grid-column: span 3;
}

.benefit-icon {
position: relative;
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-icon img {
width: 36px;
height: 36px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
transition: all 0.3s ease;
}

.icon-hover {
opacity: 0;
visibility: hidden;
}

.icon-default {
opacity: 1;
visibility: visible;
}

.benefit-card:hover .icon-default {
opacity: 0;
visibility: hidden;
}

.benefit-card:hover .icon-hover {
opacity: 1;
visibility: visible;
}

.benefit-card:hover .benefit-icon {
  box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
font-size: 24px;
font-weight: 500;
min-height: 32px;
max-width: 310px;
margin-bottom: 16px;
text-align: start;
line-height: 36px;
color: var(--n0);
}

.benefit-card p {
font-size: 16px;
line-height: 24px;
font-weight: 300;
color: color-mix(in srgb, var(--n0) 75%, transparent);
text-align: start;
}

/* ----------------------------------------------------------------
   6. SERVICE-PAGE NAV OVERRIDE
   The service page uses position: fixed for the topbar (overlaps hero).
   landing.css uses position: sticky. We override here.
   ---------------------------------------------------------------- */
.service-page .topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: transparent;
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 1024px
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sec-homepage {
height: 100vh;
  }

  .blur-section {
height: auto;
padding: 60px 40px;
  }

  .textrow {
gap: 32px;
  }

  .leftside {
max-width: 100%;
  }

  .text-section h1 {
font-size: 32px;
  }

  .text-section p {
font-size: 15px;
line-height: 22px;
  }

  .sme-viewport {
width: 90vw;
  }

  .sme-card {
flex: 0 0 340px;
  }

  .stack-layout {
flex-direction: column;
gap: 40px;
padding: 0 40px;
  }

  .left-content {
width: 100%;
position: relative;
top: auto;
margin-bottom: 0;
margin-left: 0;
  }

  .left-content p {
max-width: 100%;
  }

  .stack-section1 {
width: 100%;
padding: 20px 0;
  }

  .blue-card {
width: 100%;
max-width: 430px;
margin: 0 auto 40px;
left: 0;
  }

  .benefits-grid {
grid-template-columns: repeat(4, 1fr);
  }

  .benefit-card {
grid-column: span 2;
  }

  .benefits-grid .benefit-card:nth-child(7),
  .benefits-grid .benefit-card:nth-child(8) {
grid-column: span 2;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .sec-homepage ~ .section_2 {
padding-top: 20px;
  }

  .homepage {
background-position: center top;
  }

  .blur-section {
padding: 40px 24px;
height: auto;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--text) 10%, var(--text) 100%);
    mask-image: linear-gradient(180deg, transparent 0%, var(--text) 10%, var(--text) 100%);
  }

  .textrow {
flex-direction: column;
align-items: flex-start;
gap: 24px;
  }

  .right-side {
width: 100%;
justify-content: flex-start;
gap: 12px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
width: auto;
padding: 16px 22px;
font-size: 15px;
  }

  .text-section h1 {
font-size: 26px;
line-height: 1.25;
  }

  .text-section p {
font-size: 14px;
line-height: 21px;
  }

  .sme-header {
margin-left: 24px;
  }

  .sme-progress {
margin: 0 24px;
  }

  .sme-card {
flex: 0 0 280px;
  }

  .stack-layout {
padding: 0 24px;
  }

  .benefits-section {
padding: 50px 24px 0;
  }

  .benefits-heading h2 {
font-size: 28px;
line-height: 36px;
  }

  .benefits-grid {
grid-template-columns: 1fr !important;
gap: 20px;
  }

  .benefit-card {
padding: 32px 24px;
  }

  /* Force every card into the single column — overrides the desktop 5-card
     and 8-card nth-child rules (lines 999-1014) which have higher specificity. */
  .benefits-grid > .benefit-card,
  .benefits-grid .benefit-card:nth-child(4):nth-last-child(2),
  .benefits-grid .benefit-card:nth-child(5):last-child,
  .benefits-grid .benefit-card:nth-child(7):nth-last-child(2),
  .benefits-grid .benefit-card:nth-child(8):last-child,
  .benefits-grid .benefit-card:nth-child(7),
  .benefits-grid .benefit-card:nth-child(8) {
grid-column: 1 / -1 !important;
  }

  .benefit-card h3 {
font-size: 20px;
  }

  .benefit-card p {
font-size: 14px;
  }

  /* Why-Choose-Us — real button arrows injected by JS, mobile-only */
  .sme-section {
    position: relative !important;
  }

  /* Coverage stack — smaller cards, properly centered, arrows in a bottom row */
  .stack-section1 {
    height: 420px !important;
  }

  .blue-card {
    width: calc(100% - 40px) !important;
    max-width: 320px !important;
    height: 360px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: 0 !important;
  }

  .stack-nav-btn {
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #111 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    z-index: 200 !important;
  }

  /* Dark mode: --n900 flips light, so the SVG (stroke=currentColor) would
     vanish on the white pill. Force a dark icon color. */
  [data-theme="dark"] .stack-nav-btn {
    color: #111 !important;
  }

  .stack-nav-btn--prev {
    left: calc(50% - 50px) !important;
    right: auto !important;
  }

  .stack-nav-btn--next {
    right: auto !important;
    left: calc(50% + 10px) !important;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .blur-section {
padding: 32px 18px;
  }

  .right-side {
flex-direction: column;
width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
width: 100%;
text-align: center;
  }

  .sme-header {
margin-left: 18px;
  }

  .sme-progress {
margin: 0 18px;
  }

  .sme-track {
padding-left: 1rem;
  }
}

/* ----------------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------------- */
[data-theme="dark"] .sec-homepage ~ .section_2 {
background-color: var(--bg);
}

[data-theme="dark"] .sme-section {
background: var(--n10);
}

[data-theme="dark"] .sme-card {
background: var(--surface);
}

[data-theme="dark"] .benefits-section {
background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

[data-theme="dark"] .benefit-card {
background: #2a2a2a;
border: 1px solid #3a3a3a;
}

[data-theme="dark"] .benefit-card h3 {
color: #fff;
}

[data-theme="dark"] .benefit-card p {
color: rgba(255,255,255,0.65);
}

[data-theme="dark"] .benefits-heading h2 {
color: #fff;
}

[data-theme="dark"] .benefits-heading p {
color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .left-content h2 {
color: var(--n900);
}

[data-theme="dark"] .left-content p {
color: var(--n300);
}

[data-theme="dark"] .left-content button {
background: var(--brand-blue-light);
}

[data-theme="dark"] .left-content button:hover {
background: var(--brand-blue);
}

[data-theme="dark"] .blue-card {
background: linear-gradient(135deg, #1a2744 0%, #1e3a6e 50%, #2554a8 100%);
box-shadow: 0 15px 28px rgba(0,0,0,0.4);
}

[data-theme="dark"] .blue-card h3 {
color: #fff;
}

[data-theme="dark"] .blue-card p {
color: rgba(255,255,255,0.7);
}

/* ── Feedback FAB ──────────────────────────────────────────────────────────
   Logical properties throughout (inset-inline-end, margin-inline), so the button
   sits on the reading-end corner in both directions without a mirrored rule. */
.ammn-feedback-fab {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-end: 20px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #1f4e79;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.ammn-feedback-fab:hover { background: #16385a; }
.ammn-feedback-fab__icon { font-size: 16px; line-height: 1; }

.ammn-feedback-panel {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-end: 20px;
    z-index: 1200;
    inline-size: min(360px, calc(100vw - 40px));
    max-block-size: min(70vh, 560px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.ammn-feedback-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: 12px;
    font-weight: 600;
}

.ammn-feedback-panel__close {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.ammn-feedback-q { margin-block-end: 14px; }
.ammn-feedback-q__text { display: block; margin-block-end: 6px; font-size: 13px; color: #333; }

.ammn-feedback-rating { display: flex; gap: 4px; }
.ammn-feedback-rating button {
    border: 0; background: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: #ccc; padding: 0;
}
.ammn-feedback-rating button.is-on { color: #f5a623; }

.ammn-feedback-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ammn-feedback-choices button {
    padding: 6px 10px; border: 1px solid #d5d5d5; border-radius: 999px;
    background: #fff; font-size: 12px; cursor: pointer;
}
.ammn-feedback-choices button.is-on { border-color: #1f4e79; background: #eaf2f9; color: #1f4e79; }

.ammn-feedback-text {
    inline-size: 100%; padding: 8px; border: 1px solid #d5d5d5;
    border-radius: 8px; font-family: inherit; font-size: 13px; resize: vertical;
}

.ammn-feedback-panel__foot {
    display: flex; justify-content: flex-end; gap: 8px; margin-block-start: 8px;
}
.ammn-feedback-skip {
    border: 0; background: none; color: #666; font-size: 13px; cursor: pointer; padding: 8px 12px;
}
.ammn-feedback-send {
    border: 0; border-radius: 8px; background: #1f4e79; color: #fff;
    font-size: 13px; padding: 8px 16px; cursor: pointer;
}
.ammn-feedback-send:disabled { opacity: .6; cursor: default; }

@media (prefers-reduced-motion: reduce) {
    .ammn-feedback-fab { transition: none; }
}
