/* Aqua Trio: Fish Sort — tide nav, slot deck, reef mosaic bubbles */

:root {
  --foam: #f4fbfe;
  --foam-deep: #dff3fa;
  --aqua: #2ec5e8;
  --aqua-deep: #1496c4;
  --reef: #0e6e8c;
  --sun: #ffc93d;
  --sun-dark: #e5a822;
  --ink: #163d4d;
  --muted: #4d7282;
  --cloud: #ffffff;
  --shadow: 0 18px 42px rgba(20, 150, 196, 0.16);
  --radius: 1.2rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cloud);
}

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

.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% -5%, rgba(46, 197, 232, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(255, 201, 61, 0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(46, 197, 232, 0.08), transparent 40%),
    linear-gradient(180deg, var(--foam) 0%, var(--foam-deep) 100%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg,
.btn i {
  width: 1.2rem;
  height: 1.2rem;
}

.btn--sun {
  background: linear-gradient(180deg, #ffe07a 0%, var(--sun) 100%);
  color: var(--ink);
  box-shadow: 0 7px 0 var(--sun-dark), 0 12px 28px rgba(255, 201, 61, 0.4);
}

.btn--sun:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 var(--sun-dark), 0 16px 32px rgba(255, 201, 61, 0.48);
}

.btn--foam {
  background: rgba(255, 255, 255, 0.9);
  color: var(--aqua-deep);
  border: 2px solid rgba(46, 197, 232, 0.45);
  box-shadow: 0 6px 18px rgba(20, 150, 196, 0.12);
}

.btn--foam:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

.btn--xl {
  padding: 1rem 1.6rem;
  font-size: 1.02rem;
}

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

/* Tide navigation */
.tide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.tide-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.tide-nav__bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tide-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.tide-nav__brand img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(46, 197, 232, 0.35);
}

.tide-nav__links {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.tide-nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.tide-nav__links a:hover {
  color: var(--aqua-deep);
}

.tide-nav__bubble {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--cloud), var(--aqua));
  opacity: 0.85;
}

.tide-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.tide-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 2px solid rgba(46, 197, 232, 0.45);
  border-radius: 0.65rem;
  background: var(--cloud);
  cursor: pointer;
}

.tide-nav__burger span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--aqua-deep);
  border-radius: 2px;
}

.tide-nav__wave {
  display: block;
  width: 100%;
  height: 18px;
  margin-top: -2px;
}

.nav-sheet {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 1.25rem;
  background: var(--cloud);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--foam-deep);
}

/* Hero */
.hero__banner {
  max-width: 68rem;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}

.hero__banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--cloud);
}

.hero__shoal {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero__kicker {
  font-weight: 700;
  color: var(--aqua-deep);
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--aqua-deep), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero__lead--soft {
  font-size: 0.98rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero__phone {
  position: relative;
  margin: 0;
  max-width: min(16.5rem, 88vw);
  margin-inline: auto;
}

.hero__phone img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1.5rem;
  object-fit: contain;
  box-shadow: var(--shadow);
  border: 4px solid var(--cloud);
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(46, 197, 232, 0.35);
  z-index: 0;
  animation: float-ring 6s ease-in-out infinite;
}

.hero__ring--a {
  width: 88%;
  height: 88%;
  top: 6%;
  left: 6%;
}

.hero__ring--b {
  width: 104%;
  height: 104%;
  top: -2%;
  left: -2%;
  animation-delay: -2s;
  border-color: rgba(255, 201, 61, 0.35);
}

@keyframes float-ring {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--aqua-deep);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  margin: 0;
  font-weight: 800;
}

.section-head h2 span {
  color: var(--sun-dark);
}

.section-head__lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Slot deck features */
.slot-deck {
  padding: 0.5rem 0 3rem;
}

.slot-deck__tray {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0 1.25rem;
}

.slot-deck__tray span {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  border: 3px dashed rgba(46, 197, 232, 0.5);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 2px 8px rgba(20, 150, 196, 0.08);
}

.slot-deck__grid {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
}

.bubble-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border: 2px solid rgba(46, 197, 232, 0.25);
  box-shadow: 0 12px 28px rgba(20, 150, 196, 0.08);
}

.bubble-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--foam-deep), var(--cloud));
  color: var(--aqua-deep);
  margin-bottom: 0.7rem;
}

.bubble-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bubble-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.bubble-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Bubble strip — equal-width screenshots */
.bubble-strip {
  padding: 1rem 0 3.5rem;
}

.bubble-strip__dock {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.75rem 0 0.5rem;
  position: relative;
}

.bubble-strip__dock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--aqua) 15%, var(--aqua) 85%, transparent);
  opacity: 0.45;
}

.bubble-strip__track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.35rem 1.25rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--aqua) var(--foam-deep);
}

.bubble-strip__track:focus-visible {
  outline: 2px solid var(--aqua-deep);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.bubble-shot {
  flex: 0 0 min(11.25rem, 74vw);
  margin: 0;
  scroll-snap-align: center;
}

.bubble-shot__frame {
  padding: 0.4rem;
  border-radius: 1.35rem;
  background: linear-gradient(165deg, var(--cloud), var(--foam-deep));
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bubble-shot:hover .bubble-shot__frame {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 150, 196, 0.2);
}

.bubble-shot__frame img {
  width: 100%;
  border-radius: 1rem;
  object-fit: contain;
  aspect-ratio: 1080 / 1920;
  background: #0a2a38;
}

.bubble-shot figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--aqua-deep);
}

/* Download */
.download {
  padding: 0 1.25rem 3.5rem;
}

.download__shell {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.25rem 1.65rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2.5rem 2.5rem 1.25rem 1.25rem;
  border: 2px solid rgba(46, 197, 232, 0.3);
  box-shadow: var(--shadow);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 1rem;
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  margin: 0 0 0.65rem;
  font-weight: 800;
}

.download__lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer {
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  border-top: 2px solid rgba(46, 197, 232, 0.2);
}

.footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.footer__brand img {
  border-radius: 0.45rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--aqua-deep);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 61, 77, 0.5);
}

.modal__panel {
  position: relative;
  max-width: 22rem;
  width: 100%;
  padding: 2rem 1.65rem;
  background: var(--cloud);
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 150, 196, 0.25);
  border: 2px solid rgba(46, 197, 232, 0.4);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--foam);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua-deep);
}

.modal__fish {
  width: 2.75rem;
  height: 1.75rem;
  margin: 0 auto 1rem;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, var(--sun), #f5a623);
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
  font-weight: 800;
}

.modal__panel p {
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
}

@media (min-width: 640px) {
  .slot-deck__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .tide-nav__links {
    display: flex;
  }

  .tide-nav__actions {
    margin-left: 0;
  }

  .tide-nav__burger {
    display: none;
  }

  .nav-sheet {
    display: none !important;
  }

  .hero__shoal {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero__phone {
    margin-inline: 0;
    justify-self: end;
  }

  .bubble-strip__track {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: visible;
    gap: 1.15rem;
    padding-inline: 1.5rem;
  }

  .bubble-shot {
    flex: 0 0 11.5rem;
  }

  .download__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .slot-deck__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .hero__ring {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
