/* ==========================================================================
   AMABE APP Landing Page
   ========================================================================== */

:root {
  --primary: #002f5f;
  --primary-dark: #001f3f;
  --accent: #ff4b00;
  --white: #ffffff;
  --bg: #f7f8fa;
  --text: #102a43;
  --muted: #667085;
  --border: #eaecf0;
  --shadow-sm: 0 4px 16px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 42, 67, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1280px;
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(255, 75, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 38rem;
}

.lead--light {
  color: rgba(255, 255, 255, 0.78);
}

.text-center {
  text-align: center;
}

.text-center .lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--light {
  color: #ffb087;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 760px);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 47, 95, 0.2);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--store {
  background: var(--primary);
  color: var(--white);
  border-radius: 14px;
  padding: 0.7rem 1.15rem;
  min-width: 168px;
  justify-content: flex-start;
}

.btn--store:hover {
  background: var(--primary-dark);
}

.btn--store-light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--store-light:hover {
  background: #f2f4f7;
}

.btn__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.btn__store-text small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.8;
}

.btn__store-text strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.btn__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: block;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
  background: rgba(0, 47, 95, 0.05);
}

.header__cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open[hidden] {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 420px;
  margin: 0 auto;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.mobile-menu__list a:hover {
  background: var(--bg);
}

.mobile-menu__list .btn {
  margin-top: 0.75rem;
  width: 100%;
}

/* Hero
   ========================================================================== */

.hero {
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 75, 0, 0.08), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(0, 47, 95, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.blob--navy {
  width: 280px;
  height: 280px;
  background: rgba(0, 47, 95, 0.18);
  top: 10%;
  right: 8%;
}

.blob--orange {
  width: 220px;
  height: 220px;
  background: rgba(255, 75, 0, 0.16);
  bottom: 8%;
  left: 5%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__availability {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* Phone mockup
   ========================================================================== */

.phone {
  position: relative;
  width: min(100%, 290px);
}

.phone--lg {
  width: min(100%, 320px);
}

.phone--sm {
  width: min(100%, 210px);
}

.phone--shot {
  width: 100%;
}

.phone__frame {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1a3a5c, #001f3f);
  box-shadow:
    0 24px 60px rgba(0, 31, 63, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone__frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.phone__frame img {
  width: 100%;
  border-radius: 26px;
  background: #0b1c2c;
  aspect-ratio: 390 / 844;
  object-fit: cover;
}

.phone--float {
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* About
   ========================================================================== */

.about {
  background: var(--white);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.highlight-card {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-card h3 {
  margin-bottom: 0.4rem;
}

/* Features
   ========================================================================== */

.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(0, 47, 95, 0.06);
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.45rem;
}

/* Experience
   ========================================================================== */

.experience {
  background: var(--bg);
}

.experience__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.experience__visual {
  display: flex;
  justify-content: center;
}

.experience-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.experience-list li {
  padding-left: 1.15rem;
  border-left: 3px solid var(--accent);
}

.experience-list h3 {
  margin-bottom: 0.25rem;
}

/* Screenshots / Carousel
   ========================================================================== */

.screenshots {
  background: var(--white);
  overflow: hidden;
}

.carousel {
  position: relative;
}

.carousel__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel__btn:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.carousel__viewport {
  overflow: hidden;
  cursor: grab;
  outline: none;
}

.carousel__viewport.is-dragging {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}

.carousel__slide {
  flex: 0 0 calc((100% - 3.75rem) / 4);
  min-width: 0;
}

.shot {
  text-align: center;
}

.shot figcaption {
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel__dot[aria-selected="true"] {
  width: 24px;
  background: var(--primary);
}

/* Download
   ========================================================================== */

.download {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 75, 0, 0.18), transparent 30%),
    linear-gradient(135deg, #001f3f 0%, #002f5f 55%, #001628 100%);
  color: var(--white);
}

.download h2 {
  color: var(--white);
}

.download__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.download__qr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qr-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.qr-card img {
  width: min(100%, 220px);
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-card figcaption {
  margin-top: 0.85rem;
  color: var(--primary);
  font-weight: 800;
}

/* FAQ
   ========================================================================== */

.faq {
  background: var(--bg);
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion__item h3 {
  margin: 0;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion__icon::before {
  inset: 8px 0 auto;
  height: 2px;
}

.accordion__icon::after {
  inset: 0 auto 0 8px;
  width: 2px;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  opacity: 0;
  transform: scaleY(0);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.accordion__panel[hidden] {
  display: none !important;
}

.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.2rem;
  color: var(--muted);
}

.accordion__panel.is-open > p {
  padding-bottom: 1.15rem;
}

/* Final CTA
   ========================================================================== */

.final-cta {
  background: var(--white);
}

.final-cta__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 75, 0, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff, #f7f8fa);
}

.final-cta__visual {
  display: flex;
  justify-content: center;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent FOUC on first paint for critical hero blocks */
.hero .reveal {
  opacity: 1;
  transform: none;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__grid,
  .experience__grid,
  .download__grid,
  .final-cta__grid {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .experience__content,
  .download__content,
  .final-cta__content {
    text-align: center;
  }

  .hero__content .lead,
  .experience__content .lead,
  .download__content .lead,
  .final-cta__content .lead {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .experience-list li {
    text-align: left;
  }

  .feature-grid,
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel__slide {
    flex-basis: calc((100% - 2.5rem) / 3);
  }
}

@media (max-width: 768px) {
  .nav,
  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .carousel__slide {
    flex-basis: calc(100% / 1.2 - 0.6rem);
  }

  .download__qr {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .btn--store {
    width: 100%;
  }

  .store-buttons {
    flex-direction: column;
  }

  .phone,
  .phone--lg {
    width: min(100%, 260px);
  }

  .qr-card {
    padding: 1rem;
  }
}

/* Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone--float {
    animation: none;
  }
}
