/* Atlantic marketing — only what Bootstrap doesn’t ship:
   skip link, Apple system font stack, phone screenshot aspect ratio. */

:root {
  --atl-aspect-phone: 216.67%; /* 9 : 19.5 portrait */
  --atl-ios-radius: 0.75rem;
  --atl-ios-radius-lg: 1rem;
  --atl-tone-1: linear-gradient(135deg, rgba(10, 132, 255, 0.18) 0%, rgba(94, 92, 230, 0.16) 100%);
  --atl-tone-2: linear-gradient(135deg, rgba(48, 209, 88, 0.18) 0%, rgba(100, 210, 255, 0.14) 100%);
  --atl-tone-3: linear-gradient(135deg, rgba(255, 159, 10, 0.18) 0%, rgba(255, 55, 95, 0.14) 100%);
  --atl-tone-4: linear-gradient(135deg, rgba(191, 90, 242, 0.18) 0%, rgba(10, 132, 255, 0.14) 100%);
}

/* —— Safe horizontal insets on notched devices —— */

html {
  scroll-padding-top: 0.5rem;
}

.site-body {
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.site-main {
  max-width: 100%;
}

/* Narrow readable column on large screens; full-bleed feel on phone */
.site-sheet {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0));
}

@media (min-width: 992px) {
  .site-sheet {
    padding-left: 0;
    padding-right: 0;
  }
}

/* iOS-style grouped list */
.ios-group {
  border-radius: var(--atl-ios-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bs-border-color-translucent);
  background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .ios-group {
  border-color: rgba(255, 255, 255, 0.12);
}

.ios-row {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.ios-row:last-child {
  border-bottom: 0;
}

.ios-row-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  margin-bottom: 0.2rem;
}

.ios-row-desc {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Tappable row navigation (home teaser → features) */
a.ios-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

a.ios-row-link:last-child {
  border-bottom: 0;
}

a.ios-row-link:hover {
  background-color: var(--bs-secondary-bg);
}

a.ios-row-link .chevron {
  float: right;
  opacity: 0.35;
  font-weight: 600;
}

/* Large “navigation title” on app-style subpages */
.ios-nav-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--bs-emphasis-color);
}

@media (min-width: 768px) {
  .ios-nav-title {
    font-size: 2rem;
  }
}

/* Touch-friendly primary actions */
.btn-ios-lg {
  min-height: 2.75rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Sticky site header: full bar stays above page content while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

@media (min-width: 992px) {
  .site-header-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}

/* App Store badge (nav) — compact black “Download on the App Store” */
.app-store-nav-link {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  flex-shrink: 0;
  text-decoration: none;
}

.app-store-nav-link:hover {
  opacity: 0.9;
}

.app-store-nav-link:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.app-store-nav-badge {
  display: block;
  height: 28px;
  width: auto;
  vertical-align: middle;
}

.app-store-badge-switch {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.app-store-badge-switch .badge-light,
.app-store-badge-switch .badge-dark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.app-store-badge-switch .badge-light {
  display: none;
}

[data-bs-theme="dark"] .app-store-badge-switch .badge-dark {
  display: none;
}

[data-bs-theme="dark"] .app-store-badge-switch .badge-light {
  display: block;
}

.app-store-cta-link {
  display: inline-block;
  border-radius: 12px;
  line-height: 0;
}

.app-store-cta-link .badge-light,
.app-store-cta-link .badge-dark {
  height: 52px;
}

.app-store-footer-link .badge-light,
.app-store-footer-link .badge-dark {
  height: 40px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgb(20, 33, 56) 0%,
    rgb(33, 48, 82) 100%
  );
}

.hero-banner .site-sheet {
  position: relative;
  z-index: 1;
}

.hero-bg-emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-emoji {
  position: absolute;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  opacity: 0.12;
  filter: saturate(0.45) brightness(1.18);
}

.hero-bg-emoji.e1 { top: 12%; left: 6%; }
.hero-bg-emoji.e2 { top: 24%; left: 21%; }
.hero-bg-emoji.e3 { top: 10%; left: 41%; }
.hero-bg-emoji.e4 { top: 30%; left: 56%; }
.hero-bg-emoji.e5 { top: 18%; left: 75%; }
.hero-bg-emoji.e6 { top: 12%; left: 90%; }
.hero-bg-emoji.e7 { top: 56%; left: 10%; }
.hero-bg-emoji.e8 { top: 70%; left: 28%; }
.hero-bg-emoji.e9 { top: 64%; left: 46%; }
.hero-bg-emoji.e10 { top: 76%; left: 63%; }
.hero-bg-emoji.e11 { top: 60%; left: 80%; }
.hero-bg-emoji.e12 { top: 78%; left: 92%; }

.hero-banner .ios-nav-title {
  color: #fff;
}

.hero-banner .text-secondary {
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-banner .btn-outline-secondary {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-banner .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header-theme {
  line-height: 1;
}

.site-header .navbar-nav .nav-link {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

@media (min-width: 992px) {
  .site-header .navbar-nav .nav-link {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    system-ui,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1080;
  padding: 0.5rem 1rem;
  background: var(--bs-body-color);
  color: var(--bs-body-bg);
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}

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

.ratio-atl-phone {
  --bs-aspect-ratio: var(--atl-aspect-phone);
}

/* Screenshot gallery — home / features captions */
.atl-screen-figure {
  width: 100%;
  max-width: 260px;
}

.atl-screen-caption {
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: left;
  margin-top: 0.5rem;
  padding-left: 0.125rem;
  padding-right: 0.125rem;
}

.atl-screen-caption code {
  font-size: 0.7rem;
  word-break: break-word;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  align-items: center;
}

.showcase-row .atl-screen-figure {
  margin: 0;
  justify-self: start;
}

.showcase-row > div {
  min-width: 0;
  text-align: left;
}

.showcase-row--reverse {
  grid-template-columns: 1fr minmax(120px, 180px);
}

.showcase-row--reverse .atl-screen-figure {
  order: 2;
  justify-self: end;
}

.showcase-row--reverse > div {
  order: 1;
}

.showcase-tone {
  border-radius: 0.85rem;
}

.ios-group .showcase-tone + .showcase-tone {
  margin-top: 0.75rem;
}

.showcase-tone-1 {
  background: var(--atl-tone-1);
}

.showcase-tone-2 {
  background: var(--atl-tone-2);
}

.showcase-tone-3 {
  background: var(--atl-tone-3);
}

.showcase-tone-4 {
  background: var(--atl-tone-4);
}

#screens .ios-group {
  border: 0;
  background: transparent;
}

.atl-shot-shell {
  max-width: 180px;
  border-radius: 1.2rem;
  overflow: hidden;
}

.atl-shot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

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

.hero-shot-shell {
  width: min(100%, 300px);
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 575.98px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .showcase-row--reverse .atl-screen-figure,
  .showcase-row--reverse > div {
    order: initial;
  }
}

#theme-toggle .theme-toggle-icon {
  font-size: 1.125rem;
  line-height: 1;
}

/* App icon — iOS-style squircle; works in nav, hero, footer */
.app-icon {
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 22%;
}

.app-icon--nav {
  width: 32px;
  height: 32px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.site-header-brand {
  text-decoration: none;
}

.site-header-brand:hover {
  text-decoration: none;
}

.app-icon--hero {
  width: 88px;
  height: 88px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.app-icon--footer {
  width: 28px;
  height: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .app-icon--nav,
[data-bs-theme="dark"] .app-icon--hero,
[data-bs-theme="dark"] .app-icon--footer {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* —— Motion (Apple-like: soft fade-rise on scroll; hero on first paint) —— */
/* Scroll-hide only when html.js-reveal is set (inline script) so no-JS users are not stuck invisible. */

.reveal {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    transition-delay: 0s;
  }

  .hero-enter > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes atl-hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-enter > * {
    animation: atl-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero-enter > *:nth-child(1) {
    animation-delay: 0.04s;
  }

  .hero-enter > *:nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero-enter > *:nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-enter > *:nth-child(4) {
    animation-delay: 0.22s;
  }

  .hero-enter > *:nth-child(5) {
    animation-delay: 0.28s;
  }
}
