/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:       #1A3A5C;
  --color-primary-dim:   rgba(26, 58, 92, 0.08);
  --color-accent:        #E8B84B;
  --color-green:         #30A46C;
  --color-bg:            #F8F9FA;
  --color-surface:       #FFFFFF;
  --color-text:          #1C1C1E;
  --color-muted:         #6E6E73;
  --color-border:        #D1D1D6;
  --color-soon:          #AEAEB2;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);

  --max-w: 1200px;
  --gap:   clamp(1rem, 5vw, 2.5rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.section-intro p {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--color-muted);
}

.section-intro--light h2 { color: #fff; }
.section-intro--light p  { color: rgba(255,255,255,0.75); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 249, 250, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}

.header-logo__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--primary:hover { opacity: 0.85; }

.btn--sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}

/* ============================================================
   STORE BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  border: 1px solid transparent;
  cursor: pointer;
}

.badge--appstore {
  background: #000;
  color: #fff;
}

.badge--appstore:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.badge--play {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.badge--disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.badge--lg {
  padding: 13px 24px;
}

.badge--soon {
  display: inline-block;
  background-color: var(--color-soon);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: none;
  cursor: default;
  pointer-events: none;
}

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

.badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge__eyebrow {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.badge__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   APP ICON
   ============================================================ */
.header-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}

.app-icon--lg {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 26px;
}

.app-icon--sm {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

/* ============================================================
   DEVICE DISPLAY WRAPPER
   ============================================================ */
.device-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* ============================================================
   DEVICE SWITCHER (segmented control)
   ============================================================ */
.device-switcher {
  display: inline-flex;
  background-color: rgba(120, 120, 128, 0.12);
  border-radius: 100px;
  padding: 3px;
}

.device-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.3125rem 0.875rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.device-switcher__btn.is-active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
}

.device-switcher__btn:not(.is-active):hover {
  color: var(--color-text);
}

/* ============================================================
   DEVICE VIEW
   ============================================================ */
.device-view {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Override UA stylesheet — display:flex would otherwise beat [hidden] */
.device-view[hidden] {
  display: none;
}

/* ============================================================
   IPHONE MOCKUP
   ============================================================ */
.iphone-mockup {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.iphone-mockup__shell {
  position: relative;
  background: linear-gradient(160deg, #2C2C2E 0%, #1C1C1E 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 30px 80px rgba(0,0,0,0.38),
    0 8px 24px rgba(0,0,0,0.22);
  width: min(175px, 52vw);
  border-radius: 40px;
  padding: 9px 10px 22px;
}

/* Volume buttons — left side */
.iphone-mockup__shell::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 90px;
  width: 3px;
  height: 32px;
  background: #3A3A3C;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 42px 0 0 #3A3A3C;
}

/* Power button — right side */
.iphone-mockup__shell::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 100px;
  width: 2px;
  height: 52px;
  background: #3A3A3C;
  border-radius: 0 2px 2px 0;
}


.iphone-mockup__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

.iphone-mockup__screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.iphone-mockup__home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 4px;
  background: rgba(255,255,255,0.32);
  border-radius: 100px;
}

/* ============================================================
   IPAD MOCKUP
   ============================================================ */
.ipad-mockup {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.ipad-mockup__shell {
  position: relative;
  background: linear-gradient(160deg, #2C2C2E 0%, #1C1C1E 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 30px 80px rgba(0,0,0,0.38),
    0 8px 24px rgba(0,0,0,0.22);
}

.ipad-mockup--portrait .ipad-mockup__shell {
  width: min(280px, 80vw);
  border-radius: 20px;
  padding: 20px 14px;
}

.ipad-mockup--landscape .ipad-mockup__shell {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  padding: 14px 20px;
}

.ipad-mockup__camera {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3A3A3C;
}

.ipad-mockup--portrait .ipad-mockup__camera {
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.ipad-mockup--landscape .ipad-mockup__camera {
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.ipad-mockup__screen {
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

.ipad-mockup__screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(3rem, 9vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.hero-heading {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 1.125rem;
  letter-spacing: -0.025em;
}

.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-markets {
  font-size: 0.875rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.875rem;
}

.hero-markets__countries {
  display: inline-flex;
  gap: 0.875rem;
}

.market {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.hero-device {
  display: flex;
  justify-content: center;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background-color: var(--color-bg);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.about-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary-dim);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4375rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   MODULES
   ============================================================ */
.modules {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.modules-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* details / summary */
details.module {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

details.module[open] {
  box-shadow: var(--shadow-md);
}

.module__header {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

/* Remove default disclosure arrow */
.module__header::-webkit-details-marker { display: none; }
.module__header::marker              { display: none; content: ""; }

.module__header:hover {
  background-color: var(--color-bg);
}

.module__header--static {
  cursor: default;
}

.module__header--static:hover {
  background-color: transparent;
}

.module__icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.module__title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.module__count {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.module__chevron {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

details.module[open] .module__chevron {
  transform: rotate(180deg);
}

.module__topics {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1875rem 1rem;
}

.module__topics li {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.25rem 0 0.25rem 0.875rem;
  position: relative;
}

.module__topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */
.coming-soon {
  background-color: var(--color-primary);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.module--upcoming {
  border: 1px solid rgba(255,255,255,0.14);
  background-color: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.module--upcoming .module__title {
  color: rgba(255,255,255,0.75);
}

.module--upcoming .module__icon {
  color: rgba(255,255,255,0.45);
}

.module--upcoming .module__topics {
  border-top-color: rgba(255,255,255,0.1);
}

.module--upcoming .module__topics li {
  color: rgba(255,255,255,0.45);
}

.module--upcoming .module__topics li::before {
  background-color: rgba(255,255,255,0.25);
}

.coming-soon-android {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

.coming-soon-android p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
}

/* Adjust play badge colours inside dark section */
.coming-soon .badge--play {
  background-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download-cta {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block-start: clamp(4rem, 10vw, 7rem);
  padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.download-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.download-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.download-cta p {
  font-size: 1rem;
  color: var(--color-muted);
}

.contact-note {
  font-size: 0.9375rem;
  margin-top: 2.5rem;
}

.contact-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-note a:hover {
  opacity: 0.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
}

.footer-brand__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.footer-markets__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.footer-markets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

.footer-markets__list li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal p + p {
  margin-top: 0.25rem;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   RESPONSIVE — TABLET 640px+
   ============================================================ */
@media (min-width: 640px) {
  .footer-markets__list {
    gap: 0.375rem 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 5rem);
  }

  .ipad-mockup--portrait .ipad-mockup__shell {
    width: min(380px, 45vw);
  }

  .iphone-mockup__shell {
    width: min(225px, 27vw);
  }

  .hero-device {
    justify-content: flex-end;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .modules-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }

  .footer-legal {
    grid-column: auto;
    text-align: right;
  }
}
