/* Oceanbells GH — Apple Human Interface Guidelines */

:root {
  --tint: #0284b8;
  --tint-pressed: #014167;
  --brand-deep: #014167;
  --brand-accent: #f6a402;
  --bg: #fbfbfd;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #ffffff;
  --label: #1d1d1f;
  --label-secondary: #6e6e73;
  --label-tertiary: #86868b;
  --separator: rgba(60, 60, 67, 0.12);
  --fill-quaternary: rgba(116, 116, 128, 0.08);
  --material-thick: rgba(251, 251, 253, 0.82);
  --blur: saturate(180%) blur(20px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 980px;
  --max-width: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 52px;
  --tab-h: 49px;
  --store-action-h: 44px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --label: #f5f5f7;
    --label-secondary: #aeaeb2;
    --label-tertiary: #8e8e93;
    --separator: rgba(84, 84, 88, 0.65);
    --fill-quaternary: rgba(116, 116, 128, 0.18);
    --material-thick: rgba(28, 28, 30, 0.82);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--label);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + var(--space-2));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tint); text-decoration: none; }

.container {
  width: min(100% - var(--space-3), var(--max-width));
  margin-inline: auto;
}

.large-title {
  font-size: clamp(2.125rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--label);
}

.title-1 {
  font-size: clamp(1.625rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--label);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: var(--space-2);
}

.hero-subhead,
.body-secondary {
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--label-secondary);
}

.footnote {
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: var(--label-tertiary);
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--material-thick);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 0.5px solid var(--separator);
}

.nav-bar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  flex: 1;
  min-width: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--label-secondary);
  letter-spacing: -0.016em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--label); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--label);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-menu-btn:active { background: var(--fill-quaternary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.016em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}

.btn:active { transform: scale(0.98); opacity: 0.88; }

.btn-primary { background: var(--tint); color: #fff; }
.btn-secondary { background: var(--fill-quaternary); color: var(--tint); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }

@media (min-width: 768px) {
  .hide-mobile { display: inline-flex; }
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }
}

.hide-mobile { display: none; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.4);
}

.sheet-backdrop[hidden] { display: none; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-1) var(--space-2) calc(var(--space-3) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.4s var(--spring);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 5px;
  margin: 6px auto var(--space-2);
  border-radius: 3px;
  background: var(--separator);
}

.sheet-nav {
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: 17px;
  color: var(--label);
  border-bottom: 0.5px solid var(--separator);
}

.sheet-nav a:last-child {
  border-bottom: none;
  color: var(--tint);
  font-weight: 600;
}

.sheet-nav a:active { background: var(--fill-quaternary); }

.hero { padding: var(--space-5) 0 var(--space-6); }

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

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

.hero-subhead {
  margin-top: var(--space-2);
  max-width: 28rem;
  margin-inline: auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--label-secondary);
  background: var(--fill-quaternary);
  border-radius: var(--radius-pill);
}

.meta-chip svg { color: var(--brand-accent); }

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-4);
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  height: var(--store-action-h);
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.store-badge img {
  height: var(--store-action-h);
  width: auto;
  display: block;
}

.store-action-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--store-action-h);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1;
  color: var(--tint);
  background: var(--fill-quaternary);
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.store-badge:active,
.store-action-web:active {
  transform: scale(0.97);
  opacity: 0.88;
}

@media (min-width: 768px) {
  :root { --store-action-h: 48px; }

  .hero { padding: var(--space-7) 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .hero-text { text-align: left; }
  .hero-subhead { margin-inline: 0; }
  .hero-meta { justify-content: flex-start; }
  .store-row { justify-content: flex-start; }

  .store-badge:hover,
  .store-action-web:hover {
    transform: scale(1.02);
  }
}

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

.iphone {
  position: relative;
  width: 260px;
  padding: 10px;
  background: #1d1d1f;
  border-radius: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 24px 80px rgba(0, 0, 0, 0.18);
}

.iphone-sm {
  width: 200px;
  border-radius: 36px;
  padding: 8px;
}

.iphone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.iphone-sm .iphone-island {
  width: 64px;
  height: 18px;
  top: 14px;
}

.iphone-screen {
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  padding: 52px 14px 18px;
  min-height: 420px;
}

.iphone-sm .iphone-screen {
  border-radius: 28px;
  min-height: 280px;
  padding: 44px 12px 14px;
}

.ui-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
}

.ui-nav img { width: 22px; height: 22px; border-radius: 6px; }

.ui-group {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2);
  border: 0.5px solid var(--separator);
}

.ui-row { padding: 10px 14px; }

.ui-row-split {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.ui-label {
  display: block;
  font-size: 12px;
  color: var(--label-tertiary);
  margin-bottom: 2px;
}

.ui-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--label);
}

.ui-separator {
  height: 0.5px;
  background: var(--separator);
  margin-left: 14px;
}

.ui-button {
  width: 100%;
  min-height: 44px;
  margin-top: var(--space-1);
  border: none;
  border-radius: var(--radius-md);
  background: var(--tint);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
}

.ui-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--label-secondary);
}

.mini-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.mini-ui strong { font-size: 17px; font-weight: 600; color: var(--label); }
.mini-ui span { font-size: 13px; color: var(--label-secondary); }

.section { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-secondary); }

.section-head {
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-head .body-secondary {
  margin-top: var(--space-1);
  max-width: 32rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-head { text-align: left; }
  .section-head .body-secondary { margin-inline: 0; }
}

.inset-group {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--separator);
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 14px var(--space-2);
  border-bottom: 0.5px solid var(--separator);
}

.list-row-last { border-bottom: none; }

.list-content h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--label);
  margin-bottom: 2px;
}

.list-content p {
  font-size: 15px;
  line-height: 1.33337;
  letter-spacing: -0.016em;
  color: var(--label-secondary);
}

.symbol {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
}

.symbol svg { width: 18px; height: 18px; }

.symbol-blue { background: var(--tint); }
.symbol-teal { background: #30b0c7; }
.symbol-orange { background: var(--brand-accent); }
.symbol-indigo { background: #5856d6; }
.symbol-green { background: #34c759; }
.symbol-gray { background: #8e8e93; }

@media (min-width: 768px) {
  .inset-group { display: grid; grid-template-columns: 1fr 1fr; }
  .list-row:nth-child(odd) { border-right: 0.5px solid var(--separator); }
  .list-row:nth-last-child(-n+2) { border-bottom: none; }
}

@media (min-width: 1024px) {
  .inset-group { grid-template-columns: repeat(3, 1fr); }
  .list-row { border-right: 0.5px solid var(--separator); }
  .list-row:nth-child(3n) { border-right: none; }
  .list-row:nth-last-child(-n+3) { border-bottom: none; }
}

.carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-1) max(var(--space-2), env(safe-area-inset-right)) var(--space-2) max(var(--space-2), env(safe-area-inset-left));
  margin: 0 calc(-1 * var(--space-2));
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.carousel-item figcaption {
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--label-secondary);
}

@media (min-width: 768px) {
  .carousel {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

.cta-section { padding-bottom: var(--space-7); }

.cta-panel {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  border: 0.5px solid var(--separator);
}

.cta-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 14px;
}

.cta-panel .body-secondary { margin-top: var(--space-1); }
.cta-panel .store-row { margin-top: var(--space-3); }

.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-3);
  font-size: 15px;
  font-weight: 400;
  color: var(--tint);
}

.link-chevron:active { opacity: 0.6; }

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--material-thick);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 0.5px solid var(--separator);
  transform: translateY(100%);
  transition: transform 0.35s var(--spring);
}

.tab-bar.visible { transform: translateY(0); }

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--label-tertiary);
  font-size: 10px;
  font-weight: 500;
}

.tab-item svg { width: 24px; height: 24px; }
.tab-item-active { color: var(--tint); }
.tab-item:active { opacity: 0.6; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tab-bar { display: none; }
}

.site-footer {
  padding: var(--space-4) 0 calc(var(--space-4) + var(--safe-bottom));
  border-top: 0.5px solid var(--separator);
  background: var(--bg-secondary);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
}

.footer-nav a {
  font-size: 12px;
  color: var(--label-secondary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover { color: var(--tint); }

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  right: max(var(--space-2), env(safe-area-inset-right));
  bottom: calc(var(--tab-h) + var(--safe-bottom) + var(--space-2));
  z-index: 130;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(37, 211, 102, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab:active {
  transform: scale(0.94);
}

@media (min-width: 768px) {
  .whatsapp-fab {
    bottom: calc(var(--safe-bottom) + var(--space-3));
    right: calc(var(--space-3) + env(safe-area-inset-right, 0px));
  }

  .whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow:
      0 6px 16px rgba(37, 211, 102, 0.4),
      0 12px 32px rgba(0, 0, 0, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab:hover { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  .whatsapp-fab {
    box-shadow:
      0 4px 12px rgba(37, 211, 102, 0.25),
      0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 2px;
}
