/* ─────────────────────────────────────────────────────────────
   Surf Alarm — landing page
   Theme tokens mirrored 1:1 from apps/mobile/src/shared/theme
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'RocGrotesk';
  src: url('fonts/RocGrotesk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RocGrotesk';
  src: url('fonts/RocGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour tokens (lightColors from mobile theme) */
  --bg-grad-start: #F0FFFA;
  --bg-grad-end:   #FFFFE0;
  --bg-panel:      #E5EAF6;
  --surface:       #ffffff;
  --text:          rgb(51, 77, 102);
  --text-secondary:#8fa1b3;
  --primary:       #007cff;
  --primary-dark:  #0063cc;
  --interactive:   #0063cc;
  --surf-window:   #02bbff;
  --switch-off:    #d3d3d3;
  --border:        rgba(51,77,102,0.16);
  --border-light:  rgba(51,77,102,0.08);
  --dark-8:        rgba(51,77,102,0.08);
  --dark-16:       rgba(51,77,102,0.16);
  --dark-24:       rgba(51,77,102,0.24);
  --dark-48:       rgba(51,77,102,0.48);
  --dark-64:       rgba(51,77,102,0.64);
  --green:         rgb(95,232,31);
  --yellow:        rgb(255,223,63);
  --error:         rgb(255,95,63);

  /* Flat offset shadow — the signature mobile-app card look */
  --shadow-card:   0 4px 0 rgba(51,77,102,0.16);
  --shadow-card-hover: 0 6px 0 rgba(51,77,102,0.20);
  --shadow-blue:   0 4px 0 rgba(0,124,255,0.32);
  --shadow-blue-hover: 0 6px 0 rgba(0,124,255,0.40);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'RocGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-grad-start);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Background ───────────────────────────────────────────── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(2,187,255,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(0,124,255,0.06), transparent 60%),
    linear-gradient(135deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
}
.bg-bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.bubble.b1 { width: 480px; height: 480px; top: -120px; left: -100px; background: rgba(2,187,255,0.45); }
.bubble.b2 { width: 360px; height: 360px; top: 30%; right: -120px; background: rgba(0,124,255,0.35); }
.bubble.b3 { width: 420px; height: 420px; bottom: -160px; left: 10%; background: rgba(95,232,31,0.18); }
.bubble.b4 { width: 280px; height: 280px; bottom: 20%; right: 20%; background: rgba(255,223,63,0.20); }

/* Hero background photo — covers nav + hero, fades out at bottom */
.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130vh;
  background: url('assets/top-page-background.png') center top / cover no-repeat;
  z-index: -1;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 35, 0.28);
}
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(10, 25, 45, 0.38) 55%, var(--bg-grad-start) 100%);
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1200px) / 2));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(240, 255, 250, 0.6);
  border-bottom: 1px solid var(--border-light);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
}
.brand__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav__links a {
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.nav__links a:hover { opacity: 1; }

.btn,
.btn--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-blue);
  text-decoration: none;
}
.btn:hover, .btn--small:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-hover);
}
.btn--small {
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding: 12px 20px; justify-content: space-between; }
}

/* ─── Layout helpers ───────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 56px auto 56px;
}
.section-head .kicker { margin-bottom: 16px; }

/* ─── Typography ───────────────────────────────────────────── */
.display {
  font-family: 'RocGrotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--text);
}
.display--md { font-size: clamp(40px, 6vw, 64px); }
.display--lg { font-size: clamp(56px, 9vw, 112px); }
.ink {
  background: linear-gradient(135deg, var(--primary) 0%, var(--surf-window) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text);
  opacity: 0.78;
  max-width: 520px;
  margin: 0 0 32px;
}
.hero__copy .lede {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  opacity: 0.72;
}
.lede--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
.kicker--inverse {
  background: rgba(0,124,255,0.10);
  color: var(--primary-dark);
  border-color: rgba(0,124,255,0.18);
}
.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,124,255,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,124,255,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(0,124,255,0.10); }
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 370px;
  min-height: calc(100vh - 80px);
  position: relative;
}
.hero__copy {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.hero__copy .display { color: #fff; }
.hero__copy .lede { color: #fff; }

.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.store-row--center { justify-content: center; }

.store-badge {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}
.store-badge img {
  display: block;
  height: 60px;
  width: auto;
}

.hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
}
.hero__meta li { white-space: nowrap; }

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 19;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.hero__visual:hover .phone { transform: rotate(-1deg) translateY(-4px); }
.phone__bezel {
  position: absolute;
  inset: 0;
  background: #1c2532;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 24px 60px -20px rgba(51,77,102,0.45),
    0 0 0 1px rgba(0,0,0,0.08),
    inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  border-radius: 36px;
  padding: 38px 16px 16px;
  overflow: hidden;
}
.phone__statusbar {
  position: absolute;
  top: 12px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.phone__statusbar-right .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
  margin-left: 3px;
  opacity: 0.7;
}
.phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 14px;
}
.phone__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.phone__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--surf-window));
  box-shadow: var(--shadow-card);
}
.phone__country {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 6px 8px;
}

/* AlarmCard — replica of the mobile component */
.alarmcard,
.mini-alarmcard {
  background: var(--surface);
  border: 1px solid var(--dark-16);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.alarmcard--muted { opacity: 0.75; }
.alarmcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alarmcard__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
}
.flag {
  font-size: 13px;
  line-height: 1;
}
.alarmcard__chev {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.65;
}
.alarmcard__headline {
  font-size: 12px;
  margin: 2px 0 8px;
  color: var(--text-secondary);
}
.alarmcard__headline--on {
  color: var(--text);
  font-weight: 600;
}

/* Day timeline strip — 6 days, each a 05:00→21:00 bar with cyan windows */
.daystrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.daystrip__day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.daystrip__label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}
.daystrip__label--strong {
  color: var(--text);
  font-weight: 700;
}
.daystrip__bar {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 4px;
  background: rgba(51,77,102,0.10);
  overflow: hidden;
}
.daystrip__bar--ok  { background: rgba(255,223,63,0.35); }
.daystrip__bar--bad { background: rgba(255,95,63,0.25); }
.win {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--s);
  right: calc(100% - var(--e));
  background: var(--surf-window);
  border-radius: 2px;
}

/* FAB (just decorative inside phone) */
.fab {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Floating notification — peeks at top-right of phone, minimal overlap */
.float-notif {
  position: absolute;
  top: 9%;
  right: -16%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  width: 280px;
  transform: rotate(2deg);
  animation: float 5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-6px); }
}
.float-notif__icon img,
.notif__icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.float-notif__body,
.notif__body {
  flex: 1;
  min-width: 0;
}
.float-notif__head,
.notif__head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 2px;
  color: var(--text-secondary);
}
.float-notif__head strong,
.notif__head strong {
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.float-notif__title,
.notif__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.float-notif__sub,
.notif__sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* FAB hint — arrow + label pointing at the + button */
.fab-hint {
  position: absolute;
  bottom: -50px;
  right: 400px;
  width: min(340px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
  padding-right: 60px;
}
.fab-hint__arrow {
  width: 120px;
  height: auto;
  transform: scaleY(-1);
  opacity: 1;
  filter: invert(1) brightness(10);
}
.fab-hint__text {
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin: 0 30px 0 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero-photo {
    height: 150vh;
    min-height: 1200px;
    background-position: 12% top;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0 80px;
    min-height: auto;
    gap: 40px;
  }
  .hero__copy { margin: 0 auto; }
  .hero__copy .display {
    font-size: clamp(72px, 19vw, 90px);
    margin-bottom: 48px;
  }
  .hero__copy .lede {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 40px;
  }
  .lede { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; margin-bottom: 80px; }
  .hero-store-row { display: none; }
  .hero__meta { justify-content: center; }

  /* Push notification: absolute, peeks at top-right of phone */
  .float-notif {
    position: absolute;
    top: 0px;
    right: 0;
    left: auto;
    bottom: auto;
    width: 220px;
    transform: rotate(2deg);
  }
  @keyframes float {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50%      { transform: rotate(2deg) translateY(-6px); }
  }

  /* FAB hint: below showcase, arrow points up toward it */
  .fab-hint {
    position: static;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-top: 24px;
    pointer-events: none;
  }
  .fab-hint__text {
    order: 0;
    font-size: 22px;
    margin: 0;
    color: var(--text);
  }
  .fab-hint__arrow {
    order: -1;
    width: 80px;
    transform: scaleY(-1);
    filter: none;
    opacity: 0.75;
  }
}

/* ─── FEATURES ─────────────────────────────────────────────── */
.features {
  padding: 100px 0;
}
.features .section-head {
  margin-top: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.feature__visual {
  height: 185px;
  flex-shrink: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.feature h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text);
  opacity: 0.72;
  font-size: 18px;
  line-height: 1.6;
}

.mini-alarmcard {
  width: 100%;
  margin-bottom: 0;
}

/* Conditions grid */
.cond-grid {
  width: 100%;
  display: grid;
  gap: 8px;
}
.cond-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 13px;
}
.cond-label {
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.cond-pill {
  background: rgba(0,99,204,0.10);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.cond-pill--bright {
  background: rgba(2,187,255,0.18);
  color: var(--primary-dark);
}
.tide-stages { display: flex; gap: 4px; }
.tide-cell {
  background: rgba(51,77,102,0.08);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.tide-cell--on {
  background: var(--interactive);
  color: #fff;
}

/* Notification stack */
.notif-stack { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.notif {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.notif--ghost { opacity: 0.55; transform: scale(0.96); }

/* ── AlarmSettings mockup (as-*) — mirrors headerless simplified layout */
.as-grid {
  width: 100%;
  background: rgba(51,77,102,0.08);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.as-cond {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.as-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-align: center;
}
.as-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.as-compass {
  position: relative;
  width: 34px;
  height: 34px;
}
.as-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.as-dot--on  { background: var(--text); }
.as-dot--mid { background: rgba(51,77,102,0.45); }
.as-dot--off { background: rgba(51,77,102,0.15); }
.as-tide { display: flex; gap: 4px; }
.as-tide-col { display: flex; flex-direction: column; gap: 2px; }
.as-tide-cell { width: 18px; height: 8px; border-radius: 2px; }
.as-tide-cell--on  { background: rgba(51,77,102,0.64); }
.as-tide-cell--off { background: rgba(51,77,102,0.08); }

/* ── DayForecastCard mockup (dfc-*) — mirrors HourStrip + timeslot row */
.dfc-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.dfc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.dfc-bar {
  display: flex;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(2,187,255,0.25);
}
.dfc-seg { flex: 1; }
.dfc-seg--on  { background: var(--surf-window); }
.dfc-seg--off { background: rgba(51,77,102,0.12); }
.dfc-time-labels {
  position: relative;
  height: 20px;
  margin-top: 4px;
}
.dfc-time-lbl {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: var(--surf-window);
}
.dfc-divider {
  height: 1px;
  background: var(--border-light);
  margin: 12px 0;
}
.dfc-timeslot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dfc-timeslot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dfc-timeslot-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.dfc-timeslot-conds {
  font-size: 11px;
  color: var(--text-secondary);
}
.dfc-arrow {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1;
}

/* ── DayForecastCard conditions row (replaces plain timeslot text) */
.dfc-conds {
  display: flex;
  align-items: center;
}
.dfc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.dfc-col--tide { flex: 0 0 auto; }
.dfc-col-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.dfc-col-body {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.dfc-col-body--tide { align-items: center; }
.dfc-col-dir {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.dfc-col-arr {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
}
.dfc-col-vals {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.dfc-col-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.dfc-col-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.dfc-col-num small {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 1px;
}
.dfc-col-uline {
  height: 3px;
  border-radius: 1.5px;
}
.dfc-col-dir .dfc-col-uline { width: 13px; }
.dfc-col-val .dfc-col-uline { width: 20px; }
.dfc-col-uline--g {
  background: var(--green);
  box-shadow: 0 2px 6px rgba(95,232,31,0.45);
}
.dfc-col-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border-light);
  margin: 0 10px;
  flex-shrink: 0;
}
.dfc-tide-seq { display: flex; gap: 2px; }
.dfc-tide-stack { display: flex; flex-direction: column; gap: 2px; }
.dfc-tcell {
  width: 36px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.dfc-tcell svg { display: block; }
.dfc-tcell--on  { background: var(--dark-64); }
.dfc-tcell--off { background: var(--dark-8); }
.dfc-chev {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1;
  margin-left: 6px;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; }
  .features { padding: 60px 0; }
}

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials {
  padding: 60px 0 100px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.testimonial__stars {
  font-size: 22px;
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.testimonial__quote {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.72;
}
.testimonial__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.testimonial__avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.testimonial__name {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

@media (max-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 40px 0 60px; }
}

/* ─── PRICING ──────────────────────────────────────────────── */
.pricing { padding: 60px 0 100px; }

.pricing-card {
  background: linear-gradient(160deg, var(--text) 0%, #2a3f55 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(51,77,102,0.5);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(2,187,255,0.4), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,124,255,0.3), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-card .kicker { position: relative; z-index: 1; margin-bottom: 16px; }
.pricing-card .display {
  color: #fff;
  position: relative;
  z-index: 1;
}
.pricing-card .lede {
  color: rgba(255,255,255,0.78);
  position: relative;
  z-index: 1;
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 56px auto 40px;
  text-align: left;
}
.plan {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.plan--pro {
  background: rgba(2,187,255,0.18);
  border-color: rgba(2,187,255,0.35);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: rgb(95, 232, 31);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-card);
}
.plan__name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 6px;
}
.plan__price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.plan__price small {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.65;
}
.plan__feat {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.plan__feat li {
  position: relative;
  padding: 4px 0 4px 22px;
  opacity: 0.88;
}
.plan__feat li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--surf-window);
  font-weight: 700;
}

.pricing-card .store-row { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .pricing-card { padding: 40px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ─── FINAL CTA ────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 100px 0 80px;
}
.cta-final .lede {
  margin-bottom: 32px;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border-light);
  padding: 40px max(24px, calc((100vw - 1200px) / 2));
  margin-top: 40px;
}
.foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.foot__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.foot__nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.foot__nav a {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.foot__nav a:hover { opacity: 1; }
.foot__copy {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ─── Interactive demo ─────────────────────────────────────── */

/* Demo-mode phone screen: content injected by JS, no hardcoded padding */
.phone__screen { padding: 0; }

/* Stack demo-label above phone in column, keep centred */
.hero__visual { flex-direction: column; gap: 0; }

/* Scrollable content area below status bar */
.phone__content {
  position: absolute;
  top: 38px;
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity 0.14s ease;
}
.phone__content::-webkit-scrollbar { display: none; }

/* FAB sits on top of the content layer */
#demo-fab { z-index: 10; }

/* Avatar as a tappable button */
button.phone__avatar { border: none; cursor: pointer; }

/* Demo label above the phone */
.demo-label {
  text-align: center;
  margin-bottom: 14px;
}
.demo-label .kicker { font-size: 12px; cursor: default; }

/* Nav dots below phone */
.demo-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.demo-dot {
  height: 6px; width: 6px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.2;
  transition: width 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.demo-dot.active {
  width: 18px;
  border-radius: 3px;
  opacity: 1;
  background: var(--primary);
}

/* Float-notif: transition already in the rule above */

/* ── Shared sub-screen header */
.sub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  margin-bottom: 14px;
  padding-top: 2px;
}
.sub-back {
  position: absolute;
  left: 0;
  top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}
.sub-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.sub-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── demo-nav cursor */
.demo-nav { cursor: pointer; }
.demo-nav:active { opacity: 0.75; }

/* ── Simple forecast (fc-*) */
.fc-alarm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--dark-16);
  border-radius: var(--r-lg);
  padding: 11px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 600;
}
.fc-day-card {
  background: var(--surface);
  border: 1px solid var(--dark-16);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.fc-day-card--dim { opacity: 0.6; }
.fc-day-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.fc-surf-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,124,255,0.10);
  padding: 2px 7px;
  border-radius: 999px;
}
.fc-drill-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 400;
}
.fc-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(51,77,102,0.10);
  margin-bottom: 8px;
  overflow: hidden;
}
.fc-bar .win { border-radius: 4px; }
.fc-meta { display: flex; gap: 12px; }
.fc-val { display: flex; flex-direction: column; gap: 3px; }
.fc-val span { font-size: 11px; color: var(--text-secondary); }
.fc-val strong { color: var(--text); font-size: 11px; }
.fc-vbar { height: 3px; border-radius: 2px; min-width: 28px; }
.fc-vbar--green  { background: var(--green); }
.fc-vbar--yellow { background: var(--yellow); }
.fc-vbar--red    { background: var(--error); }
.fc-vbar--gray   { background: rgba(51,77,102,0.14); }
.fc-chev-right {
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1;
}
.fc-win-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

/* ── Detailed forecast (dh-*) */
.dh-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.dh-scroll::-webkit-scrollbar { display: none; }
.dh-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: max-content;
}
.dh-row {
  display: flex;
  gap: 2px;
}
.dh-time {
  width: 34px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  padding-bottom: 3px;
}
.dh-time--on { color: var(--primary); }
.dh-cell {
  width: 34px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
}
.dh-cell--green { background: var(--green); }
.dh-cell--gray  { background: rgba(51,77,102,0.10); }
.dh-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 10px 0 4px;
}
.dh-section-label--grid {
  margin: 6px 0 2px;
}
.dh-tide-wrap {
  position: relative;
  height: 68px;
  margin-bottom: 10px;
}
.dh-tide-svg {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.dh-tide-lbl {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.8);
  padding: 1px 3px;
  border-radius: 3px;
  pointer-events: none;
  line-height: 1.3;
}
.dh-footer {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  margin: 6px 0 0;
}

/* ── Map screen (map-*) */
.map-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d2e3e 0%, #18455a 45%, #0d2e3e 100%);
  border-radius: 36px;
  overflow: hidden;
}
.map-search {
  position: absolute;
  top: 20px; left: 10px; right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--r-lg);
  padding: 9px 12px;
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.map-back {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.map-search-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
/* Land mass — full height, right half, coast diagonal left-to-right */
.map-land {
  position: absolute;
  top: 0;
  right: -5%;
  width: 48%;
  height: 100%;
  background: rgba(34,70,50,0.5);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 18% 100%, 2% 65%, 10% 30%);
}
/* Thin sandy beach strip tracing the coastline */
.map-coast {
  position: absolute;
  top: 0;
  right: -5%;
  width: 48%;
  height: 100%;
  background: rgba(220,190,100,0.7);
  clip-path: polygon(25% 0%, 30% 0%, 15% 30%, 7% 65%, 23% 100%, 18% 100%, 2% 65%, 10% 30%);
  pointer-events: none;
}
/* Spot group: label + yellow beach pin side by side */
.map-spot-grp {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  z-index: 4;
  transition: opacity 0.12s ease;
}
.map-spot-grp:active { opacity: 0.75; }
.map-spot-lbl {
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-md);
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  white-space: nowrap;
}
.map-beach-pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5d442;
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
  flex-shrink: 0;
}
.map-cluster {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  z-index: 4;
  cursor: pointer;
}
.map-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Alarm form (af-*) */
.af-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 20px 0 8px;
}
.af-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.af-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 11px 12px;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.af-row span { color: var(--text-secondary); font-weight: 600; font-size: 12px; }
.af-row strong { color: var(--text); }
.af-model-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.af-model-row span { font-size: 11px; color: var(--text-secondary); flex: 1; line-height: 1.4; }
.af-model-row strong { font-size: 13px; color: var(--text); white-space: nowrap; }
.af-slider-row { margin-bottom: 22px; }
.af-slider-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
}
.af-slider-meta span { color: var(--text-secondary); }
.af-slider-meta strong { color: var(--text); }
.af-slider-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(51,77,102,0.15);
}
.af-slider-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 3px;
  background: var(--primary);
}
.af-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-blue);
}
.af-toggle {
  width: 42px; height: 24px;
  border-radius: 12px;
  background: var(--switch-off);
  position: relative;
  flex-shrink: 0;
}
.af-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left 0.2s;
}
.af-toggle--on { background: var(--primary); }
.af-toggle--on::after { left: 21px; }
/* Scrollable content wrapper — leaves room for sticky save button */
.af-body { padding-bottom: 64px; }

/* Save button: transparent container, inner pill floats at bottom */
.af-save {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px 16px;
  background: rgba(240,255,250,0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}
.af-save-btn {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  pointer-events: none;
}

/* ── Alarm form flex shell — keeps save button pinned at bottom */
.phone__content:has(.af-screen) {
  padding: 0;
  overflow-y: hidden;
}
.af-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.af-screen .af-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 80px;
  scrollbar-width: none;
}
.af-screen .af-body::-webkit-scrollbar { display: none; }
.af-screen .af-save {
  position: static;
  flex-shrink: 0;
}

/* ── Alarm form v2 extras (af2-*) */
.af2-tabs {
  display: flex;
  background: rgba(51,77,102,0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin: 32px 0 4px;
}
.af2-tab {
  flex: 1;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 5px 0;
  cursor: pointer;
}
.af2-tab--active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Direction section wrapper (swell / wind) */
.af2-dir-section { margin-top: 4px; }
.af2-compass-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
/* Circular mini ocean-map background for direction pickers */
.af2-compass-map {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(160deg, #0d2e3e 0%, #18455a 45%, #0d2e3e 100%);
  position: relative;
  overflow: hidden;
}
.af2-compass-land {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 70%;
  background: rgba(34,70,50,0.5);
  clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 20% 100%);
}
.af2-compass-coast {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 70%;
  background: rgba(220,190,100,0.65);
  clip-path: polygon(28% 0%, 33% 0%, 25% 100%, 20% 100%);
  pointer-events: none;
}
.af2-compass-svg {
  position: absolute;
  top: 0; left: 0;
  width: 140px; height: 140px;
}
.af2-dir-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
/* Wind legend */
.af2-wind-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.af2-wind-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
}
/* Wind speed steppers */
.af2-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 14px;
}
.af2-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 9px 12px;
  box-shadow: var(--shadow-card);
}
.af2-stepper-info { display: flex; flex-direction: column; gap: 1px; }
.af2-stepper-label { font-size: 12px; font-weight: 700; color: var(--text); }
.af2-stepper-sub { font-size: 10px; color: var(--text-secondary); }
.af2-stepper-ctrl { display: flex; align-items: center; gap: 8px; }
.af2-stepper-val {
  font-size: 12px; font-weight: 700; color: var(--text);
  min-width: 54px; text-align: center;
}
.af2-stepper-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(51,77,102,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  flex-shrink: 0;
}
.af2-hint {
  font-size: 10px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.af2-tide-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.af2-tide-row { display: flex; gap: 5px; }
.af2-tide-cell {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(51,77,102,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.af2-tide-cell--on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 0 rgba(0,124,255,0.28);
}

/* ── Settings (st-*) */
.st-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 12px 0 5px;
}
.st-value-row {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0 8px;
}
.st-pro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  margin: 6px 0 10px;
  box-shadow: var(--shadow-card);
}
.st-pro-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.st-pro-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}
.st-pro-body {
  margin: 0 0 9px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.st-pro-btn {
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-blue);
}
.st-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
}
.st-row:last-child { border-bottom: none; }
.st-row--danger { color: var(--error); }
.st-chev { color: var(--text-secondary); font-weight: 400; }
.st-value { color: var(--text-secondary); font-weight: 400; font-size: 13px; }

/* ─── LEGAL PAGES ──────────────────────────────────────────── */
.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 100px;
}
.legal-title {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.legal-meta {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 56px;
}
.legal-section {
  margin-bottom: 48px;
}
.legal-body h2 {
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
}
.legal-body p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--primary-dark); }
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 340px;
}
.legal-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(51,77,102,0.05);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ─── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble, .float-notif, .kicker__dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
