@font-face {
  font-family: "Jockey One";
  src: url("/static/fonts/JockeyOne-Regular.woff2") format("woff2"),
       url("/static/fonts/JockeyOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/BarlowCondensed-Regular.woff2") format("woff2"),
       url("/static/fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"),
       url("/static/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ecf4f4;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #dff0ee;
  --text: #082229;
  --muted: #4f6770;
  --line: rgba(8, 34, 41, 0.12);
  --accent: #0f7c82;
  --accent-strong: #0a5b60;
  --accent-soft: rgba(15, 124, 130, 0.12);
  --danger: #b44732;
  --success: #2f7f57;
  --shadow: 0 24px 72px rgba(8, 34, 41, 0.08);
  --display-font: Georgia, "Times New Roman", serif;
  --spot-display-font: "Jockey One", Georgia, "Times New Roman", serif;
  --data-font: "Barlow Condensed", "Trebuchet MS", sans-serif;
  --body-font: "Segoe UI", "Trebuchet MS", sans-serif;
}

body[data-sport="surf"] {
  --accent: #0f7c82;
  --accent-strong: #0a5b60;
  --accent-soft: rgba(15, 124, 130, 0.12);
}

body[data-sport="kitesurf"] {
  --accent: #0d8fa4;
  --accent-strong: #0b6070;
  --accent-soft: rgba(13, 143, 164, 0.14);
}

body[data-sport="windsurf"] {
  --accent: #117d88;
  --accent-strong: #0b5460;
  --accent-soft: rgba(17, 125, 136, 0.14);
}

body[data-sport="vela"] {
  --accent: #1f5f7d;
  --accent-strong: #143b50;
  --accent-soft: rgba(31, 95, 125, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 14% -4%, rgba(18, 159, 180, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(223, 170, 99, 0.18), transparent 26%),
    radial-gradient(circle at 52% 56%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(180deg, #f9fcfd 0%, #eef5f5 48%, #edf3ef 100%);
  color: var(--text);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(138, 233, 245, 0.2), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(8, 74, 95, 0.08), transparent 30%);
}
body::after {
  z-index: -1;
  opacity: 0.55;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 30%),
    repeating-linear-gradient(120deg, rgba(8, 34, 41, 0.014) 0 1px, transparent 1px 28px);
}
html {
  scroll-behavior: smooth;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display-font);
  letter-spacing: -0.03em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  border-radius: 14px;
}
button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #14979f);
  color: white;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 124, 130, 0.16);
}
button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 0.85rem 1rem;
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 2rem;
  background:
    linear-gradient(180deg, rgba(252, 254, 254, 0.9), rgba(246, 250, 251, 0.78)),
    radial-gradient(circle at 10% 50%, rgba(10, 129, 149, 0.08), transparent 30%);
  backdrop-filter: blur(16px) saturate(135%);
  border-bottom: 1px solid rgba(8, 34, 41, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(4.5rem, 5vw, 5.25rem);
}
.brand-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--spot-display-font);
  font-size: clamp(1.28rem, 1.5vw, 1.55rem);
  letter-spacing: -0.04em;
  color: #123040;
}
.brand-tag {
  font-family: var(--data-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 48, 64, 0.64);
}
.brand-mark picture,
.home-logo picture {
  display: block;
}
.brand-mark img,
.home-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.wave-icon, .home-wave {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.wave-icon { width: 1.5rem; height: 1.5rem; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 0;
}
.floating-back-button {
  position: fixed;
  top: 6.35rem;
  left: 1.75rem;
  z-index: 19;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  border: 1px solid rgba(16, 38, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #20404d;
  box-shadow: 0 18px 42px rgba(16, 38, 51, 0.14);
  backdrop-filter: blur(18px) saturate(138%);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}
.floating-back-button svg {
  width: 1.4rem;
  height: 1.4rem;
}
.floating-back-button:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--accent-strong);
  border-color: rgba(15, 124, 130, 0.18);
  box-shadow: 0 22px 48px rgba(16, 38, 51, 0.18);
  transform: translateY(-2px);
}
.floating-back-button:focus-visible {
  outline: 3px solid rgba(15, 124, 130, 0.2);
  outline-offset: 3px;
}
@media (max-width: 1023px) {
  .floating-back-button {
    display: none;
  }
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(40rem, 58vh);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 78% 16%, rgba(112, 228, 242, 0.18), transparent 24%),
    radial-gradient(circle at 58% 76%, rgba(223, 170, 99, 0.08), transparent 22%);
}
.panel, .auth-card, .spot-tile, .feed-item, .hero-panel, .detail-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.panel, .hero-panel, .detail-hero {
  padding: 1.5rem;
}
.hero-panel, .detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.hero-actions, .stack-actions, .tile-meta, .detail-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-list, .feed-list {
  display: grid;
  gap: 0.9rem;
}
.spot-card, .spot-tile {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
}
.spot-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.spot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  background: var(--panel-strong);
}
.score-chip.large {
  min-width: 5rem;
  min-height: 5rem;
  font-size: 1.5rem;
}
.score-excelente { background: rgba(47, 127, 87, 0.18); color: var(--success); }
.score-bom { background: rgba(19, 124, 127, 0.16); color: var(--accent-strong); }
.score-regular { background: rgba(241, 178, 74, 0.2); color: #9c6500; }
.score-ruim, .score-empty { background: rgba(180, 71, 50, 0.16); color: var(--danger); }
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--panel-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pill.accent { background: rgba(19, 124, 127, 0.16); color: var(--accent-strong); }
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.lead, .muted, .spot-card span, .feed-item span, .spot-tile span {
  color: var(--muted);
}
.flash {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
}
.flash-success { background: rgba(47, 127, 87, 0.14); color: var(--success); }
.flash-info { background: rgba(19, 124, 127, 0.14); color: var(--accent-strong); }
.flash-error { background: rgba(180, 71, 50, 0.14); color: var(--danger); }
.flash-warning { background: rgba(217, 138, 35, 0.14); color: #d97706; }

.analysis-overview-card-suggestion {
  border: 1px dashed rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.07);
}
.auth-shell {
  min-height: calc(100vh - 7rem);
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(100%, 460px);
  padding: 2rem;
}
.development-card {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}
.development-logo {
  width: min(100%, 15rem);
  height: auto;
}
.home-hero {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  align-content: start;
  text-align: left;
  padding: 2.5rem;
  margin-bottom: 0;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(15, 124, 130, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72));
}
.home-logo {
  width: min(100%, 15.5rem);
  display: block;
}
.home-wave {
  width: 4.5rem;
  height: 4.5rem;
}
.hero-copy {
  display: grid;
  gap: 0.6rem;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}
.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
.hero-status {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.status-card,
.insight-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 124, 130, 0.1);
}
.status-label,
.insight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.home-search {
  width: min(100%, 760px);
  display: grid;
  gap: 0.7rem;
}
.home-combobox {
  position: relative;
  z-index: 1;
}

.home-combobox:focus-within,
.home-combobox.open {
  z-index: 40;
}
.home-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}
.combobox-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  display: none;
  max-height: 18rem;
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.995);
  box-shadow: 0 28px 60px rgba(8, 34, 41, 0.16);
  backdrop-filter: blur(14px);
  z-index: 60;
}
.home-combobox.open .combobox-menu {
  display: grid;
  gap: 0.35rem;
}
.combobox-option {
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}
.combobox-option-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}
.combobox-option-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.combobox-option-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}
.combobox-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.combobox-grade-image {
  display: block;
  width: 3.4rem;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(8, 34, 41, 0.12));
}
.combobox-option:hover,
.combobox-option.active {
  border-color: var(--line);
  background: var(--accent-soft);
}
.combobox-empty {
  display: none;
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
}
.home-combobox.empty .combobox-empty {
  display: block;
}
.dashboard-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(236, 244, 244, 0.66);
  backdrop-filter: blur(8px);
}
.dashboard-loading[hidden] {
  display: none;
}
.dashboard-loading-card {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  min-width: min(100%, 20rem);
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 124, 130, 0.12);
  box-shadow: 0 24px 64px rgba(8, 34, 41, 0.12);
}
.dashboard-loading-card strong,
.dashboard-loading-card span {
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dashboard-loading-card span {
  color: var(--muted);
  font-size: 0.82rem;
}
.dashboard-loading-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid rgba(15, 124, 130, 0.16);
  border-top-color: var(--accent);
  animation: dashboardSpin 0.8s linear infinite;
}
@keyframes dashboardSpin {
  to {
    transform: rotate(360deg);
  }
}
.graph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0;
}
.graph-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.graph-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.range-chart {
  position: relative;
  height: 2.5rem;
  margin-bottom: 0.35rem;
}
.range-track,
.range-band {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.6rem;
  border-radius: 999px;
}
.range-track {
  left: 0;
  right: 0;
  background: rgba(17, 33, 45, 0.08);
}
.range-band {
  background: linear-gradient(90deg, rgba(19, 124, 127, 0.22), rgba(19, 124, 127, 0.48));
}
.range-marker {
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(19, 124, 127, 0.16);
  transform: translate(-50%, -50%);
}
.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}
.empty-graph {
  padding: 1rem 0;
  color: var(--muted);
}
.graph-panel {
  margin-bottom: 1.5rem;
}
.spot-map-panel {
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(72, 191, 227, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 252, 0.92));
}
.spot-map-app {
  display: grid;
  gap: 1rem;
}
.spot-map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.spot-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.spot-map-tab {
  padding: 0.68rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 130, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  box-shadow: none;
  font-family: var(--data-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spot-map-tab:hover,
.spot-map-tab.is-active {
  background: linear-gradient(135deg, var(--accent), #14979f);
  color: white;
}
.spot-map-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--accent-strong);
}
.spot-map-play {
  min-width: 5.8rem;
}
.spot-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(270px, 0.9fr);
  gap: 1.1rem;
}
.spot-map-stage {
  position: relative;
  min-height: 470px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(15, 124, 130, 0.12);
  background:
    radial-gradient(circle at top, rgba(72, 191, 227, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(239, 247, 250, 0.92), rgba(225, 238, 244, 0.94));
  box-shadow: 0 24px 54px rgba(8, 34, 41, 0.1);
}
.spot-map-canvas {
  min-height: 470px;
}
.spot-map-canvas .maplibregl-canvas {
  filter: saturate(0.92);
}
.spot-map-canvas .maplibregl-ctrl-group {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 124, 130, 0.12);
  box-shadow: 0 12px 30px rgba(8, 34, 41, 0.14);
  background: rgba(255, 255, 255, 0.92);
}
.spot-map-canvas .maplibregl-ctrl button {
  width: 34px;
  height: 34px;
}
.spot-map-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.45rem;
  width: 5rem;
  padding: 0.75rem 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 124, 130, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(8, 34, 41, 0.1);
}
.spot-map-legend-scale {
  width: 1rem;
  min-height: 11rem;
  border-radius: 999px;
  background: var(--legend-gradient, linear-gradient(180deg, var(--legend-start), var(--legend-end)));
  justify-self: center;
}
.spot-map-legend-title {
  font-family: var(--data-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.spot-map-legend-values {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  color: var(--ink);
  font-family: var(--data-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spot-map-legend-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.spot-map-side {
  display: grid;
  gap: 0.95rem;
}
.spot-map-side-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 124, 130, 0.1);
}
.spot-map-side-card strong {
  font-family: var(--data-font);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.spot-map-signal-card {
  gap: 0.8rem;
}
.spot-map-radial {
  display: grid;
  place-items: center;
  min-height: 13rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(237, 248, 250, 0.94), rgba(245, 250, 252, 0.92));
  border: 1px solid rgba(15, 124, 130, 0.08);
}
.spot-map-signal-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}
.spot-map-signal-ring {
  fill: none;
  stroke: rgba(15, 124, 130, 0.14);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
}
.spot-map-signal-ring.inner {
  stroke-dasharray: none;
}
.spot-map-signal-axis {
  stroke: rgba(15, 124, 130, 0.12);
  stroke-width: 1;
}
.spot-map-signal-label {
  font-family: var(--data-font);
  font-size: 0.78rem;
  fill: var(--muted);
}
.spot-map-signal-swell-band {
  fill: rgba(33, 188, 199, 0.14);
}
.spot-map-signal-swell-line {
  stroke: #14979f;
  stroke-width: 4;
  stroke-linecap: round;
}
.spot-map-signal-swell-tip {
  fill: #14979f;
  stroke: white;
  stroke-width: 2;
}
.spot-map-signal-wind-line {
  stroke: #f97316;
  stroke-width: 3;
  stroke-linecap: round;
}
.spot-map-signal-wind-tip {
  fill: #f97316;
  stroke: white;
  stroke-width: 2;
}
.spot-map-signal-core {
  fill: #0f2940;
}
.spot-map-signal-core-label,
.spot-map-signal-core-sub {
  font-family: var(--data-font);
  text-transform: uppercase;
  fill: white;
  letter-spacing: 0.06em;
}
.spot-map-signal-core-label {
  font-size: 0.72rem;
}
.spot-map-signal-core-sub {
  font-size: 0.62rem;
}
.spot-map-signal-meta {
  display: grid;
  gap: 0.35rem;
  font-family: var(--data-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.spot-map-timeline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}
.spot-map-frame-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78px, 1fr);
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.spot-map-step {
  width: 3rem;
  padding-left: 0;
  padding-right: 0;
}
.spot-map-frame {
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 124, 130, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.spot-map-frame:hover,
.spot-map-frame.is-active {
  transform: translateY(-1px);
  border-color: rgba(20, 151, 159, 0.35);
  background: linear-gradient(180deg, rgba(20, 151, 159, 0.14), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 28px rgba(8, 34, 41, 0.08);
}
.spot-map-frame-day {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spot-map-frame-hour {
  font-family: var(--data-font);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.spot-map-popup {
  display: grid;
  gap: 0.25rem;
  min-width: 12rem;
}
.spot-map-popup strong,
.spot-map-popup span {
  font-family: var(--data-font);
}
.spot-map-popup p {
  margin: 0;
  color: var(--muted);
}
.spot-map-canvas .maplibregl-compact {
  margin: 0 0 0.55rem 0.55rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  border: 1px solid rgba(15, 124, 130, 0.12);
}
.spot-map-panel {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 252, 0.95));
}
.spot-map-app {
  gap: 0;
}
.spot-map-shell-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.35rem;
  background: #143967;
  color: white;
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spot-map-shell-caret {
  font-size: 0.9rem;
}
.spot-map-shell-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem 0.5rem;
}
.spot-map-shell-intro {
  display: grid;
  gap: 0.4rem;
}
.spot-map-shell-intro h3 {
  margin: 0;
}
.spot-map-shell-note {
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  align-self: center;
}
.spot-map-chip {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  background: rgba(15, 124, 130, 0.1);
  color: var(--accent-strong);
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spot-map-view-modes {
  display: inline-flex;
  gap: 0.2rem;
}
.spot-map-view-mode,
.spot-map-tab {
  padding: 0.55rem 0.82rem;
  border-radius: 0;
  border: 1px solid rgba(16, 36, 66, 0.18);
  background: #f3f3ef;
  color: #102542;
  font-family: var(--data-font);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}
.spot-map-view-mode.is-active,
.spot-map-tab.is-active,
.spot-map-tab:hover {
  background: #0f7c82;
  border-color: #0f7c82;
  color: white;
}
.spot-map-tabs {
  padding: 0 1.35rem 0.6rem;
  gap: 0.18rem;
  border-bottom: 1px solid rgba(16, 36, 66, 0.16);
}
.spot-map-variable-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 1.35rem 0.95rem;
}
.spot-map-variable-title strong {
  font-family: var(--data-font);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.spot-map-variable-title span {
  font-family: var(--data-font);
  color: var(--muted);
}
.spot-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 74px minmax(250px, 0.88fr);
  gap: 0.9rem;
  padding: 0 1.35rem 1rem;
  align-items: stretch;
}
.spot-map-stage {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(16, 36, 66, 0.18);
  border-radius: 0;
  background: #ecf2f5;
  overflow: hidden;
  box-shadow: none;
}
.spot-map-stage-region {
  min-height: 390px;
}
.spot-map-stage-zoom {
  min-height: 390px;
}
.spot-map-canvas {
  min-height: 390px;
}
.spot-map-canvas .maplibregl-canvas {
  filter: none;
}
.spot-map-canvas .maplibregl-ctrl-group {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}
.spot-map-canvas .maplibregl-ctrl button {
  width: 30px;
  height: 30px;
}
.spot-map-legend {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  padding: 0.25rem 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: stretch;
  gap: 0.45rem;
}
.spot-map-legend-title {
  grid-column: 1 / -1;
  align-self: start;
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  font-size: 0.82rem;
}
.spot-map-legend-scale {
  min-height: 320px;
  width: 18px;
  border-radius: 0;
  border: 1px solid rgba(16, 36, 66, 0.16);
  background: var(--legend-gradient, linear-gradient(180deg, #14979f, #48bfe3));
}
.spot-map-legend-ticks {
  display: grid;
  align-content: space-between;
  padding: 0.2rem 0;
  font-family: var(--data-font);
  font-size: 0.88rem;
  color: #102542;
}
.spot-map-legend-ticks span {
  line-height: 1;
}
.spot-map-mode-label {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.22rem 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 36, 66, 0.12);
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spot-map-frame-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  padding: 0.28rem 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 36, 66, 0.14);
  font-family: var(--data-font);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.spot-map-spectral-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: start end;
  padding: 0.9rem;
  opacity: 1;
  pointer-events: none;
}
.spot-map-spectral-card {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 298px);
  padding: 0.8rem 0.9rem 0.6rem;
  background: rgba(10, 26, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 48px rgba(8, 34, 41, 0.22);
}
.spot-map-spectral-header,
.spot-map-spectral-components {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}
.spot-map-spectral-kicker,
.spot-map-spectral-energy,
.spot-map-spectral-component {
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spot-map-spectral-kicker,
.spot-map-spectral-energy {
  color: white;
  font-size: 0.82rem;
}
.spot-map-spectral-energy {
  color: #ffe082;
}
.spot-map-spectral-primary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.spot-map-spectral-value,
.spot-map-spectral-unit {
  font-family: var(--data-font);
  color: white;
  text-transform: uppercase;
}
.spot-map-spectral-value {
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}
.spot-map-spectral-unit {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
.spot-map-spectral-component {
  padding: 0.18rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.72rem;
}
.spot-map-spectral-component.is-swell {
  border-left: 3px solid #59d7ff;
}
.spot-map-spectral-component.is-wind {
  border-left: 3px solid #f78c6b;
}
.spot-map-spectral-svg {
  width: 100%;
  height: auto;
}
.spot-map-spectral-ring,
.spot-map-spectral-axis {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}
.spot-map-spectral-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.spot-map-spectral-swell-line,
.spot-map-spectral-wind-line {
  stroke-linecap: round;
  stroke-width: 3;
}
.spot-map-spectral-swell-line {
  stroke: #fcee58;
}
.spot-map-spectral-wind-line {
  stroke: #f78c6b;
}
.spot-map-spectral-swell-dot {
  fill: #fcee58;
  stroke: #17324d;
  stroke-width: 1.8;
}
.spot-map-spectral-wind-dot {
  fill: #f78c6b;
  stroke: #17324d;
  stroke-width: 1.8;
}
.spot-map-spectral-label,
.spot-map-spectral-readout,
.spot-map-spectral-sub {
  font-family: var(--data-font);
  fill: white;
}
.spot-map-spectral-label {
  font-size: 0.82rem;
}
.spot-map-spectral-readout {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.spot-map-spectral-sub {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.spot-map-spectral-core {
  fill: rgba(255, 255, 255, 0.82);
}
.spot-map-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0 1.35rem 1rem;
}
.spot-map-insight {
  display: grid;
  gap: 0.34rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(16, 36, 66, 0.12);
  background: rgba(255, 255, 255, 0.88);
}
.spot-map-insight strong {
  font-family: var(--data-font);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.spot-map-timeline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0 1.35rem 1.35rem;
}
.spot-map-frame-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 0.1rem;
  overflow-x: auto;
  background: #d3d5d8;
  border: 1px solid rgba(16, 36, 66, 0.16);
}
.spot-map-frame {
  display: grid;
  gap: 0.08rem;
  padding: 0.5rem 0.45rem;
  border: 0;
  border-right: 1px solid rgba(16, 36, 66, 0.12);
  background: transparent;
  color: #102542;
}
.spot-map-frame.is-active {
  background: #143967;
  color: white;
}
.spot-map-frame-hour,
.spot-map-frame-day {
  font-family: var(--data-font);
}
.spot-map-frame-hour {
  font-size: 0.95rem;
}
.spot-map-frame-day {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.spot-map-step,
.spot-map-play {
  border-radius: 0;
  min-width: 3.15rem;
}
.spot-map-popup {
  min-width: 11.5rem;
}
.spot-map-canvas .maplibregl-compact {
  margin: 0 0 0.45rem 0.45rem;
  border-radius: 0;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
}
.live-forecast-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-width: 0;
  overflow: hidden;
}
.live-forecast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.report-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}
.report-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}
.report-card-label,
.report-card-value,
.report-card-meta {
  font-family: var(--data-font);
}
.report-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.report-card-value {
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}
.report-card-meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.forecast-strip-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.forecast-strip-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.forecast-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.forecast-strip-head strong,
.forecast-strip-head span,
.forecast-strip-day,
.forecast-strip-value,
.forecast-strip-meta,
.forecast-strip-time {
  font-family: var(--data-font);
}
.forecast-strip-head strong {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.forecast-strip-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-gutter: stable both-edges;
}
.forecast-strip-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46px;
  align-items: end;
  gap: 0;
  width: max-content;
  min-width: 100%;
  background:
    linear-gradient(180deg, rgba(10, 54, 84, 0.62), rgba(10, 54, 84, 0.62)),
    linear-gradient(180deg, rgba(88, 171, 193, 0.3), rgba(88, 171, 193, 0.3));
  border: 1px solid rgba(16, 36, 66, 0.14);
}
.forecast-strip-column {
  display: grid;
  grid-template-rows: 1.1rem 130px auto auto auto;
  align-items: end;
  min-height: 13rem;
  min-width: 46px;
  padding: 0.15rem 0.25rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.forecast-strip-column.is-day-break {
  border-left: 2px solid rgba(16, 36, 66, 0.28);
}
.forecast-strip-column.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.forecast-strip-day {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.forecast-strip-bar-wrap {
  position: relative;
  height: 130px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.forecast-strip-bar-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  top: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.forecast-strip-bar {
  width: 22px;
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: var(--strip-color);
  box-shadow: inset 0 -10px 16px rgba(255, 255, 255, 0.08);
}
.forecast-strip-value,
.forecast-strip-meta,
.forecast-strip-time {
  display: block;
  text-align: center;
}
.forecast-strip-value {
  margin-top: 0.35rem;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.forecast-strip-meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  min-height: 1.8rem;
}
.forecast-strip-time {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.timeline-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}
.timeline-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.15rem;
}
.timeline-band {
  fill: rgba(20, 151, 159, 0.1);
}
.timeline-guide,
.timeline-line,
.timeline-point,
.timeline-x-label,
.timeline-day-label,
.timeline-y-label {
  vector-effect: non-scaling-stroke;
}
.timeline-guide {
  stroke: rgba(8, 34, 41, 0.1);
  stroke-width: 1;
}
.timeline-area {
  fill: var(--chart-soft);
  stroke: none;
}
.timeline-line {
  fill: none;
  stroke: var(--chart-color);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.timeline-point {
  fill: white;
  stroke: var(--chart-color);
  stroke-width: 2;
  transition: r 160ms ease, stroke-width 160ms ease, fill 160ms ease;
}
.timeline-point.is-active {
  fill: #102542;
  stroke: white;
  stroke-width: 3;
}
.timeline-x-label,
.timeline-day-label,
.timeline-y-label {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--data-font);
}
.live-forecast-table-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.forecast-table-scroll {
  overflow: auto;
  max-height: 34rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}
.forecast-hourly-table {
  min-width: 900px;
  font-size: 0.86rem;
  line-height: 1.2;
}
.forecast-hourly-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(245, 250, 252, 0.98);
}
.forecast-hourly-table th,
.forecast-hourly-table td {
  font-family: var(--data-font);
  white-space: nowrap;
  text-align: center;
  padding: 0.45rem 0.55rem;
}
.forecast-hourly-table th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56707f;
  border-bottom: 1px solid rgba(16, 38, 51, 0.08);
}
.forecast-hourly-table td:first-child,
.forecast-hourly-table td:nth-child(2) {
  color: #284456;
  font-weight: 600;
}
.forecast-hourly-table tbody tr:nth-child(odd) {
  background: rgba(15, 124, 130, 0.04);
}
.forecast-hourly-table tbody tr.is-active,
.forecast-hourly-table tbody tr.is-active:nth-child(odd) {
  background: rgba(10, 129, 149, 0.12);
}
.forecast-hourly-table tbody tr {
  transition: background-color 160ms ease;
}
.history-chart {
  width: 100%;
  height: auto;
}
.history-axis,
.history-line,
.history-marker,
.history-value,
.history-label,
.history-bound {
  vector-effect: non-scaling-stroke;
}
.history-axis {
  stroke: rgba(17, 33, 45, 0.18);
  stroke-width: 1.5;
}
.history-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.history-marker {
  fill: white;
  stroke: var(--accent);
  stroke-width: 2;
}
.history-value,
.history-label,
.history-bound {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--data-font);
}
.condition-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.15rem;
}
.spot-analysis-side {
  grid-area: side;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
}
.spot-analysis-score-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  min-height: 7.6rem;
  padding: 1.3rem 1.45rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 251, 0.92));
  border: 1px solid rgba(15, 124, 130, 0.12);
  border-left: 4px solid var(--accent);
}
.spot-analysis-rating {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  justify-self: end;
}
.spot-analysis-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spot-analysis-grade-image {
  display: block;
  width: 7.6rem;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(8, 34, 41, 0.1));
}
.spot-analysis-score-copy {
  display: grid;
  gap: 0.2rem;
}
.spot-analysis-score-kicker {
  font-family: var(--data-font);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spot-analysis-score-line {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.spot-analysis-score-value {
  font-family: var(--spot-display-font);
  font-size: clamp(3rem, 5vw, 4.2rem);
  letter-spacing: 0.03em;
  line-height: 0.88;
  color: #071f28;
}
.spot-analysis-score-unit {
  font-family: var(--data-font);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.spot-analysis-rating-label {
  font-family: var(--data-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}
.condition-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.48rem 0.74rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 124, 130, 0.1);
  box-shadow: 0 8px 18px rgba(8, 34, 41, 0.05);
  color: #173240;
  cursor: help;
}
.condition-pill-label,
.condition-pill-value {
  font-family: var(--data-font);
}
.condition-pill-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
  color: var(--muted);
}
.condition-pill-value {
  font-size: 0.86rem;
  line-height: 1;
  text-transform: uppercase;
}
.condition-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(260px, 82vw);
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  background: rgba(16, 38, 51, 0.96);
  color: white;
  font-family: var(--body-font);
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 16px 34px rgba(8, 34, 41, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 12;
}
.condition-pill::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: calc(100% + 2px);
  width: 12px;
  height: 12px;
  background: rgba(16, 38, 51, 0.96);
  transform: translateY(-6px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 11;
}
.condition-pill:hover::after,
.condition-pill:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.condition-pill:hover::before,
.condition-pill:focus-visible::before {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}
.rating-label {
  font-weight: 700;
}
.nearby-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  height: 100%;
}
.nearby-panel-head {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}
.nearby-panel-head h2 {
  margin: 0;
}
.home-hero-summary {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 124, 130, 0.12);
}
.home-hero-summary strong {
  font-size: 1.35rem;
}
.home-hero-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nearby-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.crowd-feed-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 124, 130, 0.12);
}
.crowd-feed-summary {
  margin: 0;
  color: var(--muted);
}
.crowd-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.crowd-action-grid {
  display: grid;
  gap: 0.6rem;
}
.nearby-filter-form {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  width: 100%;
}
.nearby-select-wrap,
.nearby-limit-wrap {
  display: grid;
  gap: 0.45rem;
}
.nearby-filter-label,
.nearby-limit-head span {
  font-family: var(--data-font);
}
.nearby-filter-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nearby-select-wrap select {
  min-height: 3rem;
  padding-right: 2.8rem;
  border-radius: 18px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #57707f 50%),
    linear-gradient(135deg, #57707f 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% - 3px),
    calc(100% - 0.95rem) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.nearby-limit-wrap[hidden] {
  display: none !important;
}
.nearby-limit-wrap {
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid rgba(16, 38, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nearby-limit-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.nearby-limit-current {
  color: #102542;
  font-family: var(--data-font);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}
.nearby-limit-slider {
  position: relative;
  padding-top: 3.5rem;
}
.nearby-limit-bubble {
  position: absolute;
  top: 0;
  left: var(--nearby-range-left, var(--nearby-range-progress, 50%));
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f9fcfd, #e9f1f4);
  border: 1px solid rgba(16, 38, 51, 0.1);
  box-shadow: 0 12px 24px rgba(16, 38, 51, 0.1);
  color: #102542;
  pointer-events: none;
}
.nearby-limit-bubble strong,
.nearby-limit-bubble small {
  display: block;
  font-family: var(--data-font);
  line-height: 1;
}
.nearby-limit-bubble strong {
  font-size: 1.15rem;
}
.nearby-limit-bubble small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nearby-limit-slider input {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
}
.nearby-limit-slider input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 129, 149, 0.18), rgba(10, 129, 149, 0.42));
}
.nearby-limit-slider input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 129, 149, 0.18), rgba(10, 129, 149, 0.42));
}
.nearby-limit-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 999px;
  background: #0a8195;
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(10, 129, 149, 0.18);
  cursor: pointer;
}
.nearby-limit-slider input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0a8195;
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(10, 129, 149, 0.18);
  cursor: pointer;
}
.nearby-limit-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.nearby-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 124, 130, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.nearby-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 124, 130, 0.18);
  box-shadow: 0 16px 32px rgba(8, 34, 41, 0.08);
}
.nearby-copy {
  display: grid;
  gap: 0.22rem;
}
.nearby-copy strong {
  line-height: 1.05;
}
.nearby-meta {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}
.nearby-score {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background: rgba(10, 129, 149, 0.08);
  border: 1px solid rgba(10, 129, 149, 0.12);
  color: var(--accent-strong);
  font-family: var(--data-font);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nearby-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nearby-grade-image {
  display: block;
  width: 4.5rem;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(8, 34, 41, 0.14));
  animation: nearbyBadgeFloat 2.2s ease-in-out infinite;
}
.nearby-distance {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--panel-strong);
  font-weight: 700;
  color: var(--accent-strong);
}
@keyframes nearbyBadgeFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.96;
  }
  50% {
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
  }
}
.spot-analysis {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 250, 249, 0.86)),
    radial-gradient(circle at top right, rgba(15, 124, 130, 0.12), transparent 32%);
  padding: 2rem;
  scroll-margin-top: 6rem;
}
.spot-detail-anchor-wrap {
  position: relative;
}
.spot-back-arrow {
  position: absolute;
  left: -4.9rem;
  top: 2.6rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 124, 130, 0.12);
  box-shadow: 0 18px 36px rgba(8, 34, 41, 0.12);
  color: var(--accent-strong);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.spot-back-arrow:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 124, 130, 0.24);
}
.spot-back-arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.spot-analysis h2 {
  font-family: var(--spot-display-font);
  font-size: clamp(3.1rem, 8vw, 5.1rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
}
.detail-hero.spot-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.92fr);
  grid-template-areas:
    "main side"
    "overview overview";
  gap: 1.35rem 1.6rem;
  align-items: start;
}
.spot-analysis .eyebrow,
.spot-analysis .pill,
.spot-analysis .rating-label,
.spot-analysis .graph-head strong,
.spot-analysis .graph-head span,
.spot-analysis .range-scale,
.spot-analysis .muted,
.spot-analysis .insight-label {
  font-family: var(--data-font);
}
.spot-grade-motto {
  margin: -0.35rem 0 0;
  font-family: var(--data-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.spot-analysis-main {
  grid-area: main;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-width: 0;
}
.spot-analysis-copy {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.spot-analysis .condition-strip {
  grid-column: auto;
  padding-top: 0;
  justify-content: flex-start;
}
.spot-analysis-location {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.08rem;
  color: #344a54;
}
.analysis-overview-grid {
  grid-area: overview;
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.analysis-overview-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 10rem;
  padding: 1.1rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 124, 130, 0.1);
  box-shadow: 0 16px 32px rgba(8, 34, 41, 0.05);
}
.analysis-overview-card.is-window {
  background:
    radial-gradient(circle at top right, rgba(28, 163, 179, 0.2), transparent 42%),
    linear-gradient(180deg, #07202d 0%, #0a2d3e 100%);
  border-color: rgba(16, 196, 214, 0.16);
  color: white;
  box-shadow: 0 20px 38px rgba(8, 34, 41, 0.14);
}
.analysis-overview-card.is-window .analysis-overview-value.is-window {
  margin-top: 0.15rem;
}
.analysis-overview-label,
.analysis-overview-meta,
.analysis-overview-value {
  font-family: var(--data-font);
}
.analysis-overview-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.9rem;
}
.analysis-overview-direction {
  display: flex;
  align-items: center;
  min-height: auto;
}
.analysis-overview-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.analysis-overview-value {
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.analysis-overview-value.is-window {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 0.95;
}
.analysis-overview-meta {
  color: #4d6470;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
.analysis-overview-card.is-window .analysis-overview-label,
.analysis-overview-card.is-window .analysis-overview-meta,
.analysis-overview-card.is-window .analysis-overview-value {
  color: white;
}
.analysis-overview-card.is-window .analysis-overview-meta {
  color: rgba(233, 246, 247, 0.82);
}
.analysis-alignment-card {
  border-width: 2px;
}
.analysis-alignment-good {
  border-color: rgba(34, 139, 34, 0.55);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.analysis-alignment-ok {
  border-color: rgba(132, 204, 22, 0.5);
  background: linear-gradient(180deg, rgba(236, 252, 203, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.analysis-alignment-neutral {
  border-color: rgba(148, 163, 184, 0.5);
}
.analysis-alignment-warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.analysis-alignment-bad {
  border-color: rgba(220, 38, 38, 0.55);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.analysis-peak-card {
  border-color: rgba(15, 124, 130, 0.4);
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
}
/* Practical-read verdict chip on wind/swell/tide cards.
   Keeps the eye's first stop on "is this a go?" rather than the raw numbers. */
.analysis-overview-verdict {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 124, 130, 0.1);
  color: #0f7c82;
  font-family: var(--data-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  width: fit-content;
}
.analysis-overview-direction-dial {
  width: 92px;
  height: 92px;
}
.analysis-overview-direction-ring {
  fill: none;
  stroke: rgba(16, 36, 66, 0.14);
  stroke-dasharray: 5 5;
}
.analysis-overview-direction-ring.is-inner {
  stroke: rgba(16, 36, 66, 0.1);
}
.analysis-overview-direction-label {
  fill: #6f8390;
  font-size: 0.6rem;
  font-family: var(--data-font);
}
.analysis-overview-direction-line {
  stroke: currentColor;
  stroke-width: 5.4;
  stroke-linecap: round;
}
.analysis-overview-direction-head {
  fill: currentColor;
}
.analysis-overview-direction-core {
  fill: #102542;
}
.analysis-overview-direction-dial.is-swell {
  color: #1ba5d6;
}
.analysis-overview-direction-dial.is-wind {
  color: #f08b59;
}
.spot-analysis .condition-pill {
  padding: 0.62rem 0.92rem;
  background: rgba(255, 255, 255, 0.92);
}
.spot-analysis .insight-card strong {
  font-family: var(--data-font);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
}
.spot-analysis .graph-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 251, 0.86));
}
.spot-analysis .graph-head strong {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spot-analysis .range-scale {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.spot-analysis .graph-panel {
  margin-bottom: 0;
}
.spot-analysis .timeline-card strong,
.spot-analysis .timeline-card span {
  font-family: var(--data-font);
}
.stack-form, .inline-comment-form, .filter-grid {
  display: grid;
  gap: 0.9rem;
}
.filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-header, .tile-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.inline-form { display: inline-flex; }
[hidden] {
  display: none !important;
}
.ghost-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}
.ghost-button:hover, .secondary-button:hover {
  background: var(--accent-soft);
}
a.ghost-button[href*="/premium"],
a.secondary-button[href*="/premium"],
a.ghost-button[data-purchase-trigger],
a.secondary-button[data-purchase-trigger] {
  background:
    linear-gradient(135deg, rgba(223, 170, 99, 0.22), rgba(255, 255, 255, 0.96));
  color: #8a5916;
  border-color: rgba(210, 153, 74, 0.34);
  box-shadow: 0 16px 28px rgba(210, 153, 74, 0.14);
}
a.ghost-button[href*="/premium"]:hover,
a.secondary-button[href*="/premium"]:hover,
a.ghost-button[data-purchase-trigger]:hover,
a.secondary-button[data-purchase-trigger]:hover {
  background:
    linear-gradient(135deg, rgba(223, 170, 99, 0.3), rgba(255, 255, 255, 0.98));
  color: #71450f;
  border-color: rgba(210, 153, 74, 0.44);
}
.detail-list {
  display: grid;
  gap: 0.75rem;
}
.detail-list dt {
  margin: 0;
  font-family: var(--data-font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  font-family: var(--data-font);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  font-family: var(--data-font);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  font-family: var(--data-font);
  font-size: 1rem;
}
.spot-page {
  display: grid;
  gap: 1.5rem;
}
.spot-page .grid {
  margin-bottom: 0;
}
.spot-section {
  position: relative;
  overflow: hidden;
}
.spot-section h2 {
  margin-bottom: 0.9rem;
}
.spot-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(15, 124, 130, 0.8), rgba(241, 178, 74, 0.7));
  opacity: 0.7;
}
.spot-section h2,
.spot-section .feed-item strong,
.spot-section button {
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spot-section .feed-item span {
  font-family: var(--data-font);
}
.spot-alert-actions {
  gap: 0.6rem;
}
.spot-section-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 38, 51, 0.08);
}
.spot-section-actions .inline-form,
.spot-section-actions .inline-form button {
  width: 100%;
}
.spot-secondary-grid {
  align-items: start;
}
.spot-secondary-grid .spot-section {
  height: 100%;
}
.comment-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
}
.empty-state {
  color: var(--muted);
  margin: 0;
}
.admin-log {
  max-height: 420px;
  overflow: auto;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .two-columns, .filter-grid, .home-search-line, .graph-grid, .insight-metrics, .hero-status, .dashboard-top, .timeline-grid, .analysis-overview-grid, .spot-map-layout, .spot-map-grid, .spot-map-insights, .report-cards-grid, .forecast-strip-panels, .spot-secondary-grid {
    grid-template-columns: 1fr;
  }
  .site-header, .hero-panel, .detail-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .spot-map-shell-head,
  .spot-map-variable-title,
  .spot-map-timeline {
    grid-template-columns: 1fr;
    display: grid;
  }
  .spot-map-legend {
    grid-template-columns: 18px 1fr;
    min-height: auto;
  }
  .spot-map-legend-scale {
    min-height: 180px;
  }
  .spot-map-frame-strip {
    grid-auto-columns: minmax(90px, 1fr);
  }
  .spot-back-arrow {
    left: 1rem;
    top: -1rem;
  }
  .page-shell {
    padding: 1rem;
  }
}

.spot-map-panel {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  border: 1px solid rgba(8, 34, 41, 0.08);
}
.spot-atlas {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem;
}
.spot-atlas-head,
.spot-atlas-panel-head,
.spot-atlas-controls,
.spot-atlas-tabs,
.spot-atlas-timeline,
.spot-atlas-timeline-meta,
.spot-atlas-legend-head,
.spot-atlas-flow-grid,
.spot-atlas-readout {
  font-family: var(--data-font);
}
.spot-atlas-head {
  display: flex;
  gap: 1rem;
  align-items: start;
}
.spot-atlas-copy h3 {
  margin: 0.35rem 0 0.2rem;
  color: #082229;
}
.spot-atlas-copy p {
  margin: 0;
  color: #4f6770;
}
.spot-atlas-chip {
  display: inline-flex;
  padding: 0.24rem 0.55rem;
  background: rgba(15, 124, 130, 0.08);
  border: 1px solid rgba(15, 124, 130, 0.20);
  color: #0f7c82;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  border-radius: 4px;
}
.spot-atlas-controls {
  display: grid;
  gap: 0.7rem;
}
.spot-atlas-metrics {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  left: 0.85rem;
  width: min(132px, calc(100% - 1.7rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
  align-content: start;
  pointer-events: auto;
}
.spot-atlas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.spot-atlas-tab {
  border: 1px solid rgba(8, 34, 41, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #4f6770;
  padding: 0.62rem 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 150ms, background 150ms, color 150ms, box-shadow 150ms, transform 150ms;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.spot-atlas-tab:hover {
  border-color: rgba(15, 124, 130, 0.35);
  color: #082229;
  background: rgba(241, 247, 248, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
.spot-atlas-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.10), rgba(241, 247, 248, 0.96));
  color: #0f7c82;
  border-color: rgba(15, 124, 130, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 12px rgba(15, 124, 130, 0.10);
}
.spot-atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.82fr);
  gap: 1rem;
  align-items: stretch;
}
.spot-atlas-readout-shell,
.spot-atlas-readout {
  display: grid;
  gap: 0.85rem;
}
.spot-atlas-panel-region,
.spot-atlas-readout-shell,
.spot-atlas-panel-readout {
  height: 100%;
}
.spot-atlas-readout-shell {
  align-self: stretch;
}
.spot-atlas-region-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 114px;
  gap: 0.75rem;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
}
.spot-atlas-panel,
.spot-atlas-legend,
.spot-atlas-value-card,
.spot-atlas-direction-card {
  border: 1px solid rgba(8, 34, 41, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}
.spot-atlas-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}
.spot-atlas-panel-region,
.spot-atlas-panel-readout {
  grid-template-rows: auto 1fr;
}
.spot-atlas-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}
.spot-atlas-kicker,
.spot-atlas-panel-note,
.spot-atlas-value-kicker,
.spot-atlas-metric-card span,
.spot-atlas-legend-head span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}
.spot-atlas-kicker,
.spot-atlas-value-kicker,
.spot-atlas-legend-head span {
  color: #0f7c82;
}
.spot-atlas-panel-note {
  color: #4f6770;
}
.spot-atlas-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(8, 34, 41, 0.12);
  background: #d9eaec;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(8, 34, 41, 0.06), 0 24px 60px rgba(0, 0, 0, 0.10);
}
.spot-atlas-map {
  min-height: inherit;
}
.spot-atlas-map-label-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.spot-atlas-map-label {
  position: absolute;
  font-family: var(--data-font);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #082229;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.98),
    0 0 4px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0.88;
}
.spot-atlas-map-label.is-selected {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f7c82;
  opacity: 1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.98),
    0 0 5px rgba(255, 255, 255, 0.95);
}
.spot-atlas-map-label.is-hidden {
  display: none;
}

/* Map spot popup — light glassmorphism */
/* Hover tooltip (small, no close btn) */
.spot-atlas-hover-popup .maplibregl-popup-content {
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(8, 34, 41, 0.12);
  border: 1px solid rgba(8, 34, 41, 0.12);
  pointer-events: none;
}
.spot-atlas-hover-popup .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.96);
}
.spot-atlas-hover-tip {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #082229;
  white-space: nowrap;
  font-family: var(--data-font, monospace);
  letter-spacing: 0.02em;
}

.spot-atlas-popup .maplibregl-popup-content {
  border-radius: 16px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(8, 34, 41, 0.10);
  border: 1px solid rgba(8, 34, 41, 0.10);
  min-width: 210px;
  max-width: 260px;
  overflow: hidden;
}
.spot-atlas-popup .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.96);
}
.spot-atlas-popup .maplibregl-popup-close-button {
  color: rgba(8, 34, 41, 0.40);
  font-size: 1.1rem;
  right: 6px;
  top: 5px;
  line-height: 1;
  padding: 4px 6px;
  background: transparent;
  border-radius: 6px;
}
.spot-atlas-popup .maplibregl-popup-close-button:hover {
  color: #082229;
  background: rgba(15, 124, 130, 0.10);
}
.spot-atlas-popup-body {
  padding: 0.88rem 1rem 0.72rem;
}
.spot-atlas-point-coords {
  font-family: var(--data-font, monospace);
  font-size: 0.7rem;
  color: rgba(79, 103, 112, 0.65);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  text-align: center;
}
.spot-atlas-popup-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.spot-atlas-popup-info {
  flex: 1 1 0;
  min-width: 0;
}
.spot-atlas-popup-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #082229;
  margin: 0 0 0.18rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-atlas-popup-location {
  font-size: 0.73rem;
  color: rgba(79, 103, 112, 0.80);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-atlas-popup-score-ring {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--score-bg, rgba(100,116,139,0.14));
  border: 2px solid var(--score-color, #64748b);
  box-shadow: 0 0 12px var(--score-color, #64748b);
  gap: 0.06rem;
}
.spot-atlas-popup-score-num {
  font-family: var(--data-font, monospace);
  font-weight: 800;
  font-size: 1.0rem;
  line-height: 1;
  color: var(--score-color, #64748b);
}
.spot-atlas-popup-score-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--score-color, #64748b);
  text-transform: uppercase;
  opacity: 0.85;
}
.spot-atlas-popup-divider {
  height: 1px;
  background: rgba(8, 34, 41, 0.08);
  margin-bottom: 0.7rem;
}
.spot-atlas-popup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.55rem;
  font-size: 0.75rem;
}
.spot-atlas-popup-metric {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.spot-atlas-popup-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.65rem;
  color: rgba(79, 103, 112, 0.72);
  line-height: 1;
}
.spot-atlas-popup-metric-value {
  font-family: var(--data-font, monospace);
  font-weight: 700;
  font-size: 1.06rem;
  color: #082229;
  line-height: 1.1;
}
.spot-atlas-popup-metric-sub {
  font-size: 0.68rem;
  color: rgba(79, 103, 112, 0.72);
  line-height: 1.15;
}
.spot-atlas-popup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.52rem 0.9rem;
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.08), rgba(15, 124, 130, 0.05));
  border-top: 1px solid rgba(8, 34, 41, 0.08);
  color: #0f7c82;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.spot-atlas-popup-link:hover {
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.14), rgba(15, 124, 130, 0.10));
  color: #0a5b60;
}
.spot-atlas-popup-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.spot-atlas-badge {
  position: absolute;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 34, 41, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--data-font);
  font-size: 0.74rem;
  color: #0f7c82;
  border-radius: 6px;
}
.spot-atlas-badge {
  right: 0.75rem;
  bottom: 0.75rem;
}
.spot-atlas-map .maplibregl-canvas {
  filter: none;
  cursor: default !important;
}
.spot-atlas-map .maplibregl-canvas-container,
.spot-atlas-map .maplibregl-canvas-container.maplibregl-interactive,
.spot-atlas-map .maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer {
  cursor: default !important;
}
.spot-atlas-map .maplibregl-compact,
.spot-atlas-map .maplibregl-ctrl-attrib {
  margin: 0 0 0.45rem 0.45rem;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  background: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.66rem;
  color: rgba(79, 103, 112, 0.75) !important;
  border: 1px solid rgba(8, 34, 41, 0.10) !important;
}
.spot-atlas-map .maplibregl-ctrl-attrib a {
  color: rgba(79, 103, 112, 0.75) !important;
}
.spot-atlas-value-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-left: 6px solid var(--atlas-accent, #0f7c82);
}
.spot-atlas-value-card strong {
  font-family: var(--data-font);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #082229;
}
.spot-atlas-value-meta {
  color: #4f6770;
}
.spot-atlas-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.spot-atlas-metric-card {
  display: grid;
  gap: 0.12rem;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(8, 34, 41, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  min-height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  color: #082229;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--data-font);
}
.spot-atlas-metric-card:hover {
  transform: translateY(-1px);
  background: rgba(241, 247, 248, 0.96);
  border-color: rgba(15, 124, 130, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}
.spot-atlas-metric-card:focus-visible {
  outline: 2px solid rgba(15, 124, 130, 0.35);
  outline-offset: 2px;
}
.spot-atlas-metric-card span {
  color: rgba(79, 103, 112, 0.80);
}
.spot-atlas-metric-card strong {
  font-family: var(--data-font);
  font-size: 0.96rem;
  color: #082229;
  line-height: 1.05;
}
.spot-atlas-metric-card small {
  font-size: 0.68rem;
  line-height: 1.08;
  color: rgba(79, 103, 112, 0.65);
}
.spot-atlas-metric-card.is-active {
  border-color: rgba(15, 124, 130, 0.38);
  background: linear-gradient(180deg, rgba(15, 124, 130, 0.08), rgba(241, 247, 248, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 0 16px rgba(15, 124, 130, 0.08);
}
.spot-atlas-metric-card.is-active span {
  color: #0f7c82;
}
.spot-atlas-metric-card small,
.spot-atlas-direction-copy p,
.spot-atlas-direction-copy small {
  color: rgba(79, 103, 112, 0.70);
}
.spot-atlas-direction-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
}
.spot-atlas-direction-copy {
  display: grid;
  gap: 0.22rem;
}
.spot-atlas-direction-copy strong {
  font-family: var(--data-font);
  font-size: 1rem;
  color: #082229;
}
.spot-atlas-panel-readout {
  align-content: start;
}
.spot-atlas-readout {
  display: grid;
  gap: 0.85rem;
}
.spot-atlas-active-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(8, 34, 41, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-left: 6px solid var(--atlas-accent, #0f7c82);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}
.spot-atlas-active-copy,
.spot-atlas-active-meta {
  display: grid;
  gap: 0.12rem;
}
.spot-atlas-active-copy strong {
  font-family: var(--data-font);
  font-size: 2rem;
  color: #082229;
  letter-spacing: 0.03em;
}
.spot-atlas-active-meta span {
  font-family: var(--data-font);
  color: #082229;
  font-size: 0.98rem;
}
.spot-atlas-active-meta small {
  color: #4f6770;
}
.spot-atlas-flow-grid {
  display: grid;
  gap: 0.65rem;
}
.spot-atlas-arrow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(8, 34, 41, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.90);
}
.spot-atlas-arrow-card.is-swell {
  box-shadow: inset 0 0 0 1px rgba(15, 124, 130, 0.08), 0 8px 20px rgba(0, 0, 0, 0.06);
}
.spot-atlas-arrow-card.is-wind {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.10), 0 8px 20px rgba(0, 0, 0, 0.06);
}
.spot-atlas-arrow-visual {
  display: grid;
  place-items: center;
}
.spot-atlas-arrow-copy {
  display: grid;
  gap: 0.12rem;
}
.spot-atlas-arrow-copy span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #4f6770;
}
.spot-atlas-arrow-copy strong {
  font-family: var(--data-font);
  font-size: 1.22rem;
  color: #082229;
}
.spot-atlas-arrow-copy small {
  color: rgba(79, 103, 112, 0.72);
  line-height: 1.2;
}
/* Support grid — water temp + rain mini cards */
.spot-atlas-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.spot-atlas-support-card {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(8, 34, 41, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}
.spot-atlas-support-card span {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.65rem;
  color: rgba(79, 103, 112, 0.72);
}
.spot-atlas-support-card strong {
  font-family: var(--data-font);
  font-size: 1.0rem;
  color: #082229;
  line-height: 1.1;
}

/* Direction foot */
.spot-atlas-direction-foot {
  display: block;
  font-size: 0.66rem;
  color: rgba(79, 103, 112, 0.55);
  text-align: center;
  padding-top: 0.2rem;
}

/* MapLibre navigation controls — light theme */
.spot-atlas-map .maplibregl-ctrl-group {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(8, 34, 41, 0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px);
}
.spot-atlas-map .maplibregl-ctrl-group button {
  background: transparent !important;
  border-bottom-color: rgba(8, 34, 41, 0.08) !important;
}
.spot-atlas-map .maplibregl-ctrl-group button:hover {
  background: rgba(15, 124, 130, 0.08) !important;
}
.spot-atlas-map .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(8, 34, 41, 0.08) !important;
}
.spot-atlas-map .maplibregl-ctrl-icon {
  filter: invert(0) opacity(0.7);
}
.spot-atlas-map .maplibregl-ctrl-icon:hover {
  filter: invert(0) opacity(1);
}

.spot-atlas-direction-dial {
  width: 92px;
  height: 92px;
}
.spot-atlas-direction-dial-ring {
  fill: none;
  stroke: rgba(8, 34, 41, 0.15);
  stroke-dasharray: 5 5;
}
.spot-atlas-direction-dial-ring.is-inner {
  stroke: rgba(8, 34, 41, 0.08);
}
.spot-atlas-direction-dial-label {
  fill: rgba(79, 103, 112, 0.72);
  font-size: 0.62rem;
  font-family: var(--data-font);
}
.spot-atlas-direction-dial-line {
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
}
.spot-atlas-direction-dial-head {
  fill: currentColor;
}
.spot-atlas-direction-dial-core {
  fill: #082229;
}
.spot-atlas-direction-dial.is-swell {
  color: #0f7c82;
}
.spot-atlas-direction-dial.is-wind {
  color: #fbbf24;
}
.spot-atlas-legend {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
}
.spot-atlas-legend-side {
  align-content: stretch;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  height: 100%;
}
.spot-atlas-legend-head {
  display: grid;
  gap: 0.12rem;
}
.spot-atlas-legend-bar {
  min-height: 14px;
  border-radius: 999px;
  background: var(--legend-gradient, linear-gradient(90deg, #0d5f8d, #79d1f6));
}
.spot-atlas-legend-bar.is-vertical {
  width: 16px;
  min-height: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--legend-gradient, linear-gradient(180deg, #08364f, #d9f0ff));
}
.spot-atlas-legend-scale {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
}
.spot-atlas-legend-values {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--data-font);
  color: #082229;
}
.spot-atlas-legend-values.is-vertical {
  display: grid;
  align-content: space-between;
  justify-items: start;
  min-height: 100%;
  height: 100%;
  gap: 0;
}
/* ── Wind speed color legend (Windy-style overlay on map) ────────────── */
.spot-atlas-wind-legend {
  position: absolute;
  bottom: 3.0rem;
  left: 0.75rem;
  z-index: 3;
  display: grid;
  gap: 0.22rem;
  padding: 0.55rem 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 34, 41, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  min-width: 130px;
}
.spot-atlas-wind-legend[hidden] {
  display: none;
}
.spot-atlas-wind-legend-title {
  font-family: var(--data-font);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(79, 103, 112, 0.72);
  margin-bottom: 0.18rem;
}
.spot-atlas-wind-legend-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--wind-legend-gradient,
    linear-gradient(90deg, #0072bc, #00b2dc, #38bdf8, #52b694, #d9ed92, #f8961e, #d62828));
}
.spot-atlas-wind-legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-family: var(--data-font);
  color: rgba(8, 34, 41, 0.65);
  letter-spacing: 0.01em;
}

.spot-atlas-timeline {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(8, 34, 41, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0.75rem;
  z-index: 4;
}
.spot-atlas-timeline-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 112px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f6770;
}
.spot-atlas-timeline-meta strong {
  color: #082229;
  font-size: 0.95rem;
}
.spot-atlas-timeline-meta small {
  font-family: var(--data-font);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #0f7c82;
}
.spot-atlas-timeline-button {
  min-width: 2.9rem;
  min-height: 2.8rem;
  border-radius: 18px;
}
.spot-atlas-frame-strip {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0 0.25rem;
  scrollbar-gutter: stable;
}
.spot-atlas-frame-strip::-webkit-scrollbar {
  height: 8px;
}
.spot-atlas-frame-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 124, 130, 0.22);
  border-radius: 999px;
}
.spot-atlas-frame-strip::-webkit-scrollbar-track {
  background: rgba(8, 34, 41, 0.06);
  border-radius: 999px;
}
.spot-atlas-frame-rail {
  position: relative;
  min-height: 7rem;
  padding-top: 1.45rem;
  padding-bottom: 2rem;
}
.spot-atlas-frame-summary {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
  pointer-events: none;
}
.spot-atlas-frame-summary-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(79, 103, 112, 0.60);
}
.spot-atlas-frame-summary-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.spot-atlas-frame-summary-item {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 34, 41, 0.12);
  background: rgba(255, 255, 255, 0.90);
  font-family: var(--data-font);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: rgba(79, 103, 112, 0.80);
}
.spot-atlas-frame-summary-item.is-best {
  color: #34d399;
}
.spot-atlas-frame-summary-item.is-worst {
  color: #f87171;
}
.spot-atlas-frame-score-svg {
  position: absolute;
  inset: 1.45rem 0 auto;
  width: 100%;
  height: 4rem;
  overflow: visible;
}
.spot-atlas-frame-score-baseline {
  stroke: rgba(8, 34, 41, 0.12);
  stroke-width: 1.5;
}
.spot-atlas-frame-score-area {
  fill: rgba(15, 124, 130, 0.08);
}
.spot-atlas-frame-score-line {
  fill: none;
  stroke: #0f7c82;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spot-atlas-frame-points {
  position: absolute;
  inset: 0;
}
.spot-atlas-frame-point {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 4.4rem;
  height: 100%;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #082229;
  cursor: pointer;
  appearance: none;
  text-transform: none;
  letter-spacing: normal;
  z-index: 1;
}
.spot-atlas-frame-point.is-near-start .spot-atlas-frame-status {
  left: 0;
  transform: none;
}
.spot-atlas-frame-point.is-near-end .spot-atlas-frame-status {
  left: auto;
  right: 0;
  transform: none;
}
.spot-atlas-frame-point:hover,
.spot-atlas-frame-point:focus-visible,
.spot-atlas-frame-point.is-active,
.spot-atlas-frame-point[aria-current="true"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #082229;
  transform: translateX(-50%) !important;
}
.spot-atlas-frame-point::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--frame-y) + 0.55rem);
  bottom: 1.6rem;
  width: 1px;
  background: rgba(8, 34, 41, 0.10);
  transform: translateX(-50%);
}
.spot-atlas-frame-status {
  position: absolute;
  left: 50%;
  top: clamp(0.1rem, calc(var(--frame-y) - 1.35rem), 999px);
  transform: translateX(-50%);
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 34, 41, 0.12);
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--data-font);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(79, 103, 112, 0.80);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.spot-atlas-frame-point.is-best .spot-atlas-frame-status {
  color: #34d399;
}
.spot-atlas-frame-point.is-worst .spot-atlas-frame-status {
  color: #f87171;
}
.spot-atlas-frame-marker {
  position: absolute;
  left: 50%;
  top: var(--frame-y);
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 999px;
  border: 2px solid rgba(15, 124, 130, 0.45);
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.spot-atlas-frame-point[data-frame-score-tone="best"] .spot-atlas-frame-marker {
  border-color: #34d399;
  background: rgba(34, 197, 94, 0.12);
}
.spot-atlas-frame-point[data-frame-score-tone="worst"] .spot-atlas-frame-marker {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
.spot-atlas-frame-point.is-best .spot-atlas-frame-marker {
  border-color: #34d399;
  background: rgba(34, 197, 94, 0.12);
}
.spot-atlas-frame-point.is-worst .spot-atlas-frame-marker {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
.spot-atlas-frame-point:hover .spot-atlas-frame-marker,
.spot-atlas-frame-point:focus-visible .spot-atlas-frame-marker {
  transform: translate(-50%, -50%) scale(1.12);
}
.spot-atlas-frame-point.is-active .spot-atlas-frame-marker {
  width: 1.08rem;
  height: 1.08rem;
  border-width: 3px;
  border-color: #0f7c82;
  background: #0f7c82;
  box-shadow: 0 0 0 5px rgba(15, 124, 130, 0.20), 0 0 14px rgba(15, 124, 130, 0.30);
  z-index: 2;
}
.spot-atlas-frame-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  gap: 0.04rem;
  justify-items: center;
  width: 100%;
  color: #4f6770;
}
.spot-atlas-frame-label strong,
.spot-atlas-frame-label small {
  font-family: var(--data-font);
}
.spot-atlas-frame-label strong {
  font-size: 0.88rem;
  color: #082229;
}
.spot-atlas-frame-label small {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spot-atlas-frame-point.is-active .spot-atlas-frame-label strong {
  color: #0f7c82;
}
.spot-atlas-frame-point.is-active .spot-atlas-frame-label small {
  color: #0f7c82;
}
.spot-atlas-frame-point:focus-visible {
  outline: none;
}
.spot-atlas-frame-point:focus-visible .spot-atlas-frame-marker {
  box-shadow: 0 0 0 5px rgba(15, 124, 130, 0.20);
}

/* ── Fullscreen map mode ──────────────────────────────────────────────────
 *
 * Full chain that must propagate height from viewport → MapLibre canvas:
 *
 *   .spot-atlas            (position:fixed; flex-col)
 *     .spot-atlas-layout   (grid; flex:1 → row gets grid-template-rows:1fr)
 *       .spot-atlas-panel-region  (flex-col)
 *         .spot-atlas-panel-head  (auto)
 *         .spot-atlas-region-body (grid; flex:1 → row gets grid-template-rows:1fr)
 *           .spot-atlas-stage     (min-height overridden to 0 so it can shrink/grow)
 *             .spot-atlas-map     (height:100% → MapLibre canvas fills stage)
 *
 * Every intermediate grid needs grid-template-rows:1fr so its single row
 * fills the container instead of sizing to content (the default "auto").
 */
.spot-atlas.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow: hidden;
  background: #f0f7f8;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* Reclaim vertical space — title/description not needed in fullscreen */
.spot-atlas.is-fullscreen .spot-atlas-head {
  display: none;
}
/* Grid holding the two columns (map | readout) fills remaining flex height.
   grid-template-rows:1fr forces the single row to fill the container. */
.spot-atlas.is-fullscreen .spot-atlas-layout {
  flex: 1;
  min-height: 0;
  grid-template-rows: 1fr;
}
/* Map column becomes a flex-col so panel-head stays fixed and region-body grows */
.spot-atlas.is-fullscreen .spot-atlas-panel-region {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* region-body is a grid (map | legend-side); flex:1 lets it fill panel-region,
   grid-template-rows:1fr makes its single row fill the grid height. */
.spot-atlas.is-fullscreen .spot-atlas-region-body {
  flex: 1;
  min-height: 0;
  grid-template-rows: 1fr;
}
/* Stage: override the 560 px floor so it grows to fill region-body's grid cell */
.spot-atlas.is-fullscreen .spot-atlas-stage {
  min-height: 0;
}
/* MapLibre mount point must have an explicit height for the canvas to render */
.spot-atlas.is-fullscreen .spot-atlas-map {
  min-height: 0;
  height: 100%;
}

/* Particle canvas overlay — must be below MapLibre popup layer */
.spot-atlas-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* ── Active layers indicator (top-right corner of map) ───────────────── */
.spot-atlas-layers {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  pointer-events: none;
}
.spot-atlas-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem 0.22rem 0.42rem;
  border-radius: 999px;
  font-family: var(--data-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid rgba(8, 34, 41, 0.14);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(79, 103, 112, 0.65);
  transition: color 200ms, border-color 200ms, background 200ms;
}
.spot-atlas-layer-pill[data-layers-active="1"] {
  color: #0f7c82;
  border-color: rgba(15, 124, 130, 0.42);
  background: rgba(15, 124, 130, 0.10);
}
.spot-atlas-layer-pill svg {
  flex-shrink: 0;
  opacity: 0.75;
}
.spot-atlas-layer-pill[data-layers-active="1"] svg {
  opacity: 1;
}

/* Wave threshold alert control */
.spot-atlas-threshold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem 0.22rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(8, 34, 41, 0.14);
  pointer-events: all;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.spot-atlas-threshold.is-active {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.10);
}
.spot-atlas-threshold-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--data-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(79, 103, 112, 0.65);
  cursor: pointer;
  white-space: nowrap;
}
.spot-atlas-threshold.is-active .spot-atlas-threshold-label {
  color: #f59e0b;
}
.spot-atlas-threshold-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: rgba(15, 124, 130, 0.20);
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}
.spot-atlas-threshold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(79, 103, 112, 0.65);
  cursor: pointer;
  transition: background 150ms;
}
.spot-atlas-threshold.is-active .spot-atlas-threshold-slider::-webkit-slider-thumb {
  background: #f59e0b;
}
.spot-atlas-threshold-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(79, 103, 112, 0.65);
  cursor: pointer;
}

/* Override ghost-button for light atlas context */
.spot-atlas .ghost-button,
.spot-atlas .spot-atlas-timeline-button {
  color: rgba(79, 103, 112, 0.85);
  border-color: rgba(8, 34, 41, 0.14);
  background: rgba(255, 255, 255, 0.80);
}
.spot-atlas .ghost-button:hover,
.spot-atlas .spot-atlas-timeline-button:hover {
  color: #082229;
  border-color: rgba(15, 124, 130, 0.35);
  background: rgba(15, 124, 130, 0.08);
}

/* Fullscreen button */
.spot-atlas-fullscreen-btn {
  font-size: 1.1rem;
  min-width: 2.4rem;
  padding: 0.4rem 0.6rem;
}

/* Satellite toggle button */
.spot-atlas-satellite-btn {
  font-size: 1rem;
  min-width: 2.4rem;
  padding: 0.38rem 0.58rem;
}
.spot-atlas-satellite-btn.is-active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
}

/* Best-window pulse animation on timeline */
@keyframes best-frame-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.spot-atlas-frame-point.is-best .spot-atlas-frame-marker {
  animation: best-frame-pulse 2s ease-in-out infinite;
}

@media (max-width: 900px) {
  .spot-atlas-head,
  .spot-atlas-panel-head,
  .spot-atlas-controls,
  .spot-atlas-layout,
  .spot-atlas-direction-card,
  .spot-atlas-timeline {
    grid-template-columns: 1fr;
    display: grid;
  }
  .spot-atlas-metric-grid,
  .spot-atlas-region-body,
  .spot-atlas-readout {
    grid-template-columns: 1fr;
  }
  .spot-atlas-metrics {
    width: min(148px, calc(100% - 1.4rem));
  }
  .spot-atlas-stage {
    min-height: 340px;
  }
  .spot-atlas-legend-bar.is-vertical,
  .spot-atlas-legend-values.is-vertical {
    min-height: 180px;
  }
  .spot-atlas-timeline {
    position: static;
    top: auto;
  }
  .spot-atlas-frame-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .spot-atlas-frame-summary-items {
    justify-content: flex-start;
  }
}

/* UX/UI refactor layer */
:root {
  --bg: #eef4f6;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #eef6f8;
  --text: #102633;
  --muted: #627784;
  --line: rgba(16, 38, 51, 0.1);
  --line-strong: rgba(16, 38, 51, 0.18);
  --accent: #0a8195;
  --accent-strong: #075d72;
  --accent-soft: rgba(10, 129, 149, 0.1);
  --accent-warm: #dfaa63;
  --danger: #b34c3b;
  --success: #2e8361;
  --shadow: 0 18px 48px rgba(16, 38, 51, 0.08);
  --shadow-strong: 0 24px 64px rgba(16, 38, 51, 0.12);
  --display-font: "Jockey One", Georgia, serif;
  --body-font: "Segoe UI", "Trebuchet MS", sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(10, 129, 149, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(223, 170, 99, 0.12), transparent 20%),
    linear-gradient(180deg, #f7fafb 0%, #eef4f6 32%, #e9f0f2 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 55%);
}

h1, h2, h3 {
  color: #102633;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.55;
}

a {
  transition: color 160ms ease, opacity 160ms ease;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
select,
textarea {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button {
  background: linear-gradient(135deg, var(--accent), #14a0b6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(10, 129, 149, 0.18);
  font-family: var(--data-font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

button:hover {
  background: linear-gradient(135deg, var(--accent-strong), #0a8195);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(10, 129, 149, 0.14);
}

input,
select,
textarea {
  border-radius: 16px;
  border-color: rgba(16, 38, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #83939d;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(10, 129, 149, 0.34);
  background: white;
}

.site-header {
  padding: 0.78rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(252, 254, 254, 0.92), rgba(247, 251, 252, 0.82)),
    radial-gradient(circle at 12% 50%, rgba(10, 129, 149, 0.08), transparent 30%);
  border-bottom: 1px solid rgba(16, 38, 51, 0.08);
  box-shadow:
    0 14px 38px rgba(16, 38, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand {
  gap: 0.85rem;
  max-width: none;
}

.brand-mark {
  width: clamp(4.4rem, 4.8vw, 5rem);
}

.site-nav {
  gap: 0.55rem;
}

.site-nav a,
.site-nav .ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-family: var(--data-font);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #274351;
}

.site-nav a:hover,
.site-nav .ghost-button:hover {
  background: rgba(10, 129, 149, 0.08);
  color: var(--accent-strong);
}

/* ── Language Switcher Dropdown ──────────────────────────────── */
.language-switcher {
  position: relative;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(8, 34, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(16, 38, 51, 0.07);
  font-family: var(--data-font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(39, 67, 81, 0.85);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.language-switcher__button:hover {
  background: #fff;
  border-color: rgba(15, 124, 130, 0.3);
  box-shadow: 0 2px 8px rgba(16, 38, 51, 0.1);
  color: rgba(39, 67, 81, 0.85);
}

.language-switcher__button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.language-switcher__button.is-open {
  background: #fff;
  border-color: rgba(15, 124, 130, 0.38);
}

.language-switcher__globe {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent-strong);
}

.language-switcher__chevron {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.language-switcher__button.is-open .language-switcher__chevron {
  transform: rotate(180deg);
}

.language-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 230px;
  padding: 0.5rem;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 8px 32px rgba(16, 38, 51, 0.14), 0 2px 8px rgba(16, 38, 51, 0.07);
  z-index: 9999;
}

@media (max-width: 920px) {
  .language-switcher {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
  }
}

@media (max-width: 720px) {
  .language-switcher {
    right: 1rem;
  }
}

.language-switcher__menu.is-open {
  display: block;
  animation: lang-menu-in 160ms ease;
}

@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.language-switcher__heading {
  margin: 0;
  padding: 0.5rem 0.75rem 0.35rem;
  font-family: var(--data-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(39, 67, 81, 0.48);
}

.language-switcher__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  font-family: var(--body-font);
  font-size: 0.92rem;
  color: rgba(39, 67, 81, 0.85);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.language-switcher__option:hover {
  background: rgba(10, 129, 149, 0.07);
  color: var(--accent-strong);
}

.language-switcher__option.is-active {
  background: rgba(15, 124, 130, 0.1);
  color: #0a5560;
  font-weight: 500;
}

.language-switcher__check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent-strong);
}

.page-shell {
  max-width: 1320px;
  padding: 1.6rem 1.6rem 2.4rem;
}

.panel,
.auth-card,
.spot-tile,
.feed-item,
.hero-panel,
.detail-hero {
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(16, 38, 51, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel,
.hero-panel,
.detail-hero {
  padding: 1.3rem;
}

.hero-panel,
.detail-hero {
  gap: 1.4rem;
  align-items: flex-start;
}

.section-header {
  margin-bottom: 0.9rem;
}

.section-header h1,
.section-header h2,
.section-header h3 {
  margin-top: 0.2rem;
}

.eyebrow {
  color: var(--accent-strong);
  letter-spacing: 0.14em;
}

.lead,
.muted,
.spot-card span,
.feed-item span,
.spot-tile span {
  color: var(--muted);
}

.pill {
  padding: 0.36rem 0.74rem;
  background: rgba(10, 129, 149, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(10, 129, 149, 0.08);
}

.pill.accent {
  background: rgba(223, 170, 99, 0.16);
  color: #80592e;
  border-color: rgba(223, 170, 99, 0.2);
}

.score-chip {
  background: linear-gradient(180deg, #f2f6f7, #e7eff1);
  color: #173240;
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.flash {
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(16, 38, 51, 0.05);
}

.flash-success {
  border-color: rgba(46, 131, 97, 0.14);
}

.flash-info {
  border-color: rgba(10, 129, 149, 0.14);
}

.flash-error {
  border-color: rgba(179, 76, 59, 0.14);
}

.auth-shell {
  min-height: calc(100vh - 6rem);
}

.auth-card {
  width: min(100%, 500px);
  padding: 2.1rem;
  background:
    radial-gradient(circle at top right, rgba(10, 129, 149, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 251, 0.94));
}

.stack-form,
.inline-comment-form,
.filter-grid {
  gap: 0.85rem;
}

.home-hero {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 3;
  padding: 2.1rem;
  gap: 1rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(130, 229, 241, 0.26), transparent 30%),
    radial-gradient(circle at 14% 2%, rgba(10, 129, 149, 0.1), transparent 24%),
    radial-gradient(circle at 14% 100%, rgba(223, 170, 99, 0.1), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 251, 0.92) 58%, rgba(239, 247, 248, 0.94));
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 34%);
}

.home-logo {
  width: min(100%, 15.5rem);
}

.hero-copy {
  gap: 0.45rem;
}

.hero-copy .lead {
  max-width: 40rem;
}

.home-search {
  width: 100%;
  position: relative;
  z-index: 4;
  gap: 0.45rem;
}

.home-search label {
  font-family: var(--data-font);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.home-search-line input {
  min-height: 3.35rem;
  padding-inline: 1.1rem;
  font-size: 1rem;
  color: var(--text);
  caret-color: #000000;
  cursor: default;
  -webkit-text-fill-color: var(--text);
  appearance: none;
  color-scheme: light;
}

.home-search-line input:hover,
.home-search-line input:focus,
.home-search-line input:focus-visible {
  caret-color: #000000;
  cursor: default;
}

.home-search-line input::-webkit-search-decoration,
.home-search-line input::-webkit-search-cancel-button,
.home-search-line input::-webkit-search-results-button,
.home-search-line input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.combobox-menu {
  border-radius: 18px;
  border-color: rgba(16, 38, 51, 0.1);
  box-shadow: var(--shadow-strong);
  z-index: 40;
}

.combobox-option {
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  box-shadow: none;
}

.combobox-option:hover,
.combobox-option.active {
  background: rgba(10, 129, 149, 0.08);
  border-color: rgba(10, 129, 149, 0.12);
}

.hero-status {
  gap: 0.75rem;
}

.status-card,
.insight-card,
.report-card,
.forecast-strip-card,
.spot-map-insight {
  border-radius: 18px;
  border: 1px solid rgba(16, 38, 51, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(16, 38, 51, 0.05);
}

.status-card strong,
.insight-card strong {
  font-family: var(--data-font);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.nearby-panel {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

.nearby-list {
  display: grid;
  gap: 0.7rem;
}

.nearby-card,
.spot-card,
.spot-tile,
.feed-item {
  border-radius: 18px;
  border: 1px solid rgba(16, 38, 51, 0.08);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nearby-card:hover,
.spot-card:hover,
.spot-tile:hover,
.feed-item:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 129, 149, 0.18);
  box-shadow: 0 14px 32px rgba(16, 38, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.tile-topline,
.tile-meta {
  align-items: center;
}

.graph-card {
  border-radius: 20px;
  border-color: rgba(16, 38, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(16, 38, 51, 0.06);
}

.graph-head strong {
  font-size: 1.05rem;
}

.range-track {
  background: rgba(16, 38, 51, 0.08);
}

.range-band {
  background: linear-gradient(90deg, rgba(10, 129, 149, 0.2), rgba(10, 129, 149, 0.48));
}

.range-marker {
  background: linear-gradient(180deg, #0a8195, #14a0b6);
  box-shadow: 0 0 0 2px rgba(10, 129, 149, 0.12);
}

.filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.filter-grid button {
  min-height: 3.15rem;
}

.ghost-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #294451;
  border: 1px solid rgba(16, 38, 51, 0.12);
  box-shadow: none;
}

.ghost-button:hover,
.secondary-button:hover {
  background: rgba(10, 129, 149, 0.08);
  color: var(--accent-strong);
  border-color: rgba(10, 129, 149, 0.18);
}

.inline-form button {
  min-height: 2.8rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.data-table thead {
  background: rgba(10, 129, 149, 0.08);
}

.data-table th {
  font-family: var(--data-font);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(16, 38, 51, 0.08);
}

.detail-list {
  display: grid;
  gap: 0.7rem;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(16, 38, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-list dt {
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  color: var(--text);
}

.forecast-strip-card,
.live-forecast-panel,
.report-card {
  border-color: rgba(16, 38, 51, 0.08);
}

.forecast-strip-head strong,
.report-card-value {
  color: #173240;
}

.spot-map-panel {
  border-radius: 26px;
  border-color: rgba(16, 38, 51, 0.08);
  box-shadow: var(--shadow-strong);
}

.spot-atlas-panel,
.spot-atlas-legend,
.spot-atlas-value-card,
.spot-atlas-direction-card {
  border-color: rgba(8, 34, 41, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.dashboard-loading {
  background: rgba(238, 244, 246, 0.7);
}

.dashboard-loading-card {
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
}

@media (max-width: 1100px) {
  .dashboard-top {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero.spot-analysis {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "side"
      "overview";
  }

  .analysis-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand-mark {
    width: clamp(3.85rem, 20vw, 4.5rem);
  }

  .brand-copy {
    gap: 0.08rem;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .home-logo {
    width: min(100%, 12.75rem);
  }

  .page-shell {
    padding: 1rem 1rem 1.8rem;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav a,
  .site-nav .ghost-button {
    min-height: 2.45rem;
    padding: 0.5rem 0.72rem;
    font-size: 0.86rem;
  }

  .hero-status,
  .insight-metrics,
  .graph-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .nearby-filter-form {
    grid-template-columns: 1fr;
  }

  .nearby-limit-bubble {
    width: 3.6rem;
    height: 3.6rem;
  }

  .auth-card,
  .home-hero,
  .nearby-panel,
  .panel,
  .detail-hero {
    padding: 1rem;
  }

  .detail-hero.spot-analysis {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side"
      "overview";
  }

  .condition-strip,
  .analysis-overview-grid {
    grid-template-columns: 1fr;
  }

  .spot-analysis-score-panel {
    grid-template-columns: 1fr;
  }

  .spot-analysis-rating {
    justify-self: start;
  }

  .spot-analysis-rating-copy {
    text-align: left;
  }

  .condition-strip {
    display: flex;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.marketing-hero,
.premium-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(120, 235, 247, 0.22), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(17, 115, 122, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 247, 0.9));
}

.marketing-hero::before,
.premium-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -42% 42%;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 152, 165, 0.18), transparent 68%);
  pointer-events: none;
}

.marketing-copy,
.premium-copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.marketing-copy h1,
.premium-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.4rem);
  max-width: 12ch;
  line-height: 0.96;
}

.marketing-copy .lead,
.premium-copy .lead {
  max-width: 58ch;
  font-size: 1.02rem;
}

.marketing-actions,
.premium-actions,
.premium-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.marketing-button,
.premium-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f7c82, #14979f);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 124, 130, 0.18);
}

.marketing-button:hover,
.premium-cta-link:hover {
  background: linear-gradient(135deg, #0a5b60, #0f7c82);
  color: #ffffff;
}

.marketing-visual,
.premium-benefits {
  position: relative;
  z-index: 1;
}

.marketing-visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: clamp(0.4rem, 2vw, 1rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(7, 85, 102, 0.12), transparent 48%);
}

.marketing-visual img {
  width: min(100%, 31rem);
}

.marketing-visual-stack {
  min-height: 24rem;
  align-items: end;
}

.marketing-visual-photo {
  width: min(100%, 34rem);
  height: clamp(18rem, 32vw, 26rem);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 44px rgba(7, 55, 66, 0.18);
}

.marketing-visual-product {
  width: min(82%, 28rem);
  margin-top: -6.4rem;
  margin-left: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 20px 38px rgba(6, 47, 56, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.44);
}

.marketing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.marketing-card,
.premium-benefits,
.premium-inline-callout {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 247, 0.88));
}

.marketing-card {
  display: grid;
  gap: 0.7rem;
  min-height: 14rem;
}

.marketing-card::after,
.premium-benefits::after,
.premium-inline-callout::after {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 124, 130, 0.12), transparent 70%);
  pointer-events: none;
}

.home-landing {
  display: grid;
  gap: 1rem;
}

.home-landing-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.8vw, 2.25rem);
  min-height: clamp(36rem, 56vw, 48rem);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.86), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(245, 224, 141, 0.26), transparent 22%),
    linear-gradient(135deg, rgba(235, 244, 247, 0.98), rgba(213, 233, 238, 0.92) 52%, rgba(193, 224, 230, 0.9));
}

.home-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(242, 248, 250, 0.96) 0%, rgba(242, 248, 250, 0.9) 28%, rgba(242, 248, 250, 0.5) 48%, rgba(242, 248, 250, 0.08) 70%, rgba(242, 248, 250, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.home-landing-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% 36%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 152, 165, 0.16), transparent 68%);
  pointer-events: none;
}

.home-landing-copy,
.home-banner-copy {
  position: relative;
  z-index: 2;
}

.home-landing-copy {
  display: grid;
  align-content: center;
  gap: 0.95rem;
  max-width: 34rem;
  padding: clamp(0.25rem, 1vw, 0.8rem);
}

.home-landing-copy h1 {
  max-width: 8ch;
  font-size: clamp(3.3rem, 6.2vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.home-landing-copy .lead {
  max-width: 29rem;
  font-size: clamp(1.02rem, 1.8vw, 1.34rem);
  color: #3a5661;
}

.home-landing-actions {
  margin-top: 0.25rem;
}

.home-inline-link {
  width: fit-content;
  color: #294451;
  text-decoration: underline;
  text-decoration-color: rgba(10, 129, 149, 0.24);
  text-underline-offset: 0.24rem;
}

.home-inline-link:hover {
  color: var(--accent-strong);
  text-decoration-color: rgba(10, 129, 149, 0.44);
}

.home-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.home-hero-metric {
  display: grid;
  gap: 0.15rem;
  min-width: 9.9rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px rgba(16, 38, 51, 0.08);
  backdrop-filter: blur(14px);
}

.home-hero-metric strong {
  font-family: var(--data-font);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.home-hero-metric span {
  font-size: 0.82rem;
  color: var(--muted);
}

.home-landing-scene,
.home-banner-visual {
  position: relative;
  min-height: 100%;
}

.home-landing-scene {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.home-landing-wave,
.home-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-landing-wave {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  filter: saturate(1.02) contrast(1.02);
}

.home-landing-overlay {
  position: relative;
  z-index: 2;
  width: min(74%, 33rem);
  margin: auto 0 1.2rem auto;
  padding: 0.9rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(247, 251, 252, 0.72);
  box-shadow:
    0 30px 54px rgba(10, 39, 52, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.home-landing-overlay img,
.home-dashboard-image,
.home-phone-screen {
  display: block;
  width: 100%;
}

.home-landing-overlay img {
  border-radius: 22px;
}

.home-overview-grid,
.home-feature-grid,
.home-banner {
  display: grid;
  gap: 1rem;
}

.home-overview-grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: stretch;
}

.home-spotlight-card,
.home-dashboard-panel,
.home-feature-card,
.home-banner {
  position: relative;
  overflow: hidden;
}

.home-spotlight-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.45rem, 2.8vw, 2rem);
  background:
    radial-gradient(circle at 92% 22%, rgba(144, 221, 234, 0.34), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 249, 0.9));
}

.home-spotlight-card h2,
.home-dashboard-panel h2,
.home-banner-copy h2 {
  line-height: 0.96;
}

.home-spotlight-card h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
}

.home-spotlight-card .muted,
.home-dashboard-panel .muted,
.home-banner-copy .muted {
  font-size: 1.02rem;
}

.home-spotlight-points {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-spotlight-points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
}

.home-spotlight-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f7c82, #2eb3be);
  box-shadow: 0 0 0 4px rgba(15, 124, 130, 0.12);
}

.home-dashboard-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.05rem, 2vw, 1.4rem);
  background:
    radial-gradient(circle at 88% 20%, rgba(155, 231, 241, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(229, 241, 244, 0.88));
}

.home-dashboard-panel::after,
.home-feature-card::after,
.home-banner::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 129, 149, 0.12), transparent 68%);
  pointer-events: none;
}

.home-dashboard-top {
  display: grid;
  gap: 0.5rem;
  max-width: 29rem;
}

.home-dashboard-top h2 {
  max-width: 12ch;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.home-dashboard-browser {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 38, 51, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.home-dashboard-browser span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.home-dashboard-browser span:nth-child(1) {
  background: #86d7e3;
}

.home-dashboard-browser span:nth-child(2) {
  background: #cde9ef;
}

.home-dashboard-browser span:nth-child(3) {
  background: #0f7c82;
}

.home-dashboard-image {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  box-shadow: 0 24px 42px rgba(10, 39, 52, 0.16);
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 14.5rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 246, 248, 0.9));
}

.home-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f7c82, #2aa8b3);
  color: #ffffff;
  font-family: var(--data-font);
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  box-shadow: 0 14px 24px rgba(15, 124, 130, 0.2);
}

.home-feature-card h2 {
  max-width: 12ch;
  font-size: clamp(1.56rem, 2.4vw, 2rem);
  line-height: 0.98;
}

.home-banner {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
  background:
    radial-gradient(circle at 14% 22%, rgba(200, 241, 247, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(239, 247, 248, 0.98), rgba(223, 239, 243, 0.92));
}

.home-banner-copy {
  display: grid;
  gap: 0.95rem;
  max-width: 33rem;
}

.home-banner-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.05rem, 4vw, 3.3rem);
}

.home-banner-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 23rem;
}

.home-banner-photo {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

.home-phone-shell {
  position: relative;
  z-index: 2;
  width: min(44%, 18rem);
  margin: 1rem 1.45rem 0 auto;
  padding: 0.65rem 0.55rem 0.9rem;
  border-radius: 40px;
  background: linear-gradient(180deg, #182c35, #0f1f27);
  box-shadow: 0 24px 48px rgba(10, 39, 52, 0.22);
}

.home-phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.9rem;
  border-radius: 0 0 12px 12px;
  background: #08131a;
}

.home-phone-screen {
  margin-top: 0.6rem;
  border-radius: 30px;
}

.premium-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.premium-benefits {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.premium-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.premium-inline-callout {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border: 1px solid rgba(15, 124, 130, 0.14);
  border-radius: 22px;
}

.premium-link {
  min-height: 3rem;
}

@media (max-width: 980px) {
  .marketing-hero,
  .premium-hero,
  .marketing-grid {
    grid-template-columns: 1fr;
  }

  .marketing-copy h1,
  .premium-copy h1 {
    max-width: 14ch;
  }

  .marketing-visual {
    order: -1;
  }

  .marketing-visual-product {
    width: min(78%, 24rem);
    margin-top: -5rem;
  }

  .home-landing-hero,
  .home-overview-grid,
  .home-feature-grid,
  .home-banner {
    grid-template-columns: 1fr;
  }

  .home-landing-hero {
    min-height: 0;
  }

  .home-landing-copy,
  .home-banner-copy {
    max-width: none;
  }

  .home-landing-scene {
    min-height: 28rem;
  }

  .home-landing-overlay {
    width: min(86%, 30rem);
    margin: auto 0.9rem 0.9rem auto;
  }

  .home-spotlight-card h2,
  .home-dashboard-top h2,
  .home-banner-copy h2 {
    max-width: none;
  }

  .home-banner-visual {
    min-height: 19rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .marketing-hero,
  .premium-hero {
    padding: 1.1rem;
  }

  .marketing-actions,
  .premium-actions,
  .premium-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-button,
  .premium-cta-link,
  .premium-link {
    width: 100%;
  }

  .home-landing,
  .home-overview-grid,
  .home-feature-grid {
    gap: 0.9rem;
  }

  .home-landing-hero,
  .home-spotlight-card,
  .home-dashboard-panel,
  .home-feature-card,
  .home-banner {
    padding: 1rem;
  }

  .home-landing-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .home-landing-copy .lead {
    max-width: none;
    font-size: 1rem;
  }

  .home-hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-metric {
    min-width: 0;
    border-radius: 22px;
  }

  .home-landing-scene {
    min-height: 22rem;
  }

  .home-landing-overlay {
    width: calc(100% - 1rem);
    margin: auto 0.5rem 0.5rem auto;
    padding: 0.7rem;
  }

  .home-phone-shell {
    width: min(58%, 15rem);
    margin-right: 0.8rem;
  }
}

.premium-page {
  display: grid;
  gap: 1.5rem;
}

.premium-sales-hero {
  align-items: stretch;
}

.premium-sublead,
.premium-cta-note,
.premium-account-note,
.premium-stage-note,
.premium-pending-state p,
.premium-pending-meta small {
  color: var(--muted);
}

.premium-cta-note,
.premium-account-note {
  margin: 0;
}

.premium-disabled-cta {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(16, 38, 51, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.premium-disabled-cta-block {
  width: 100%;
  justify-content: center;
}

.premium-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.premium-trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 38, 51, 0.08);
  font-size: 0.82rem;
  color: var(--accent-strong);
}

.premium-stage {
  position: relative;
  z-index: 1;
  display: grid;
}

.premium-stage-card {
  display: grid;
  gap: 1rem;
  height: 100%;
  padding: 1.2rem;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(115, 191, 255, 0.82), rgba(255, 255, 255, 0.94) 58%, rgba(234, 243, 247, 0.96)),
    radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.8), transparent 26%);
  border: 1px solid rgba(16, 38, 51, 0.08);
  box-shadow: 0 22px 44px rgba(16, 38, 51, 0.12);
}

.premium-stage-kicker,
.premium-feature-badge,
.premium-plan-tag,
.premium-pending-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-family: var(--data-font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.premium-stage-media {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  padding: 1rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(160deg, rgba(8, 52, 70, 0.14), rgba(255, 255, 255, 0.12));
}

.premium-stage-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 32px rgba(6, 49, 66, 0.16));
}

.premium-stage-float {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  min-width: 12rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(16, 38, 51, 0.14);
}

.premium-stage-float span,
.premium-stage-float small,
.premium-stage-stat span,
.premium-plan-card small,
.premium-testimonial-card span,
.premium-pending-meta span {
  color: var(--muted);
}

.premium-stage-stats,
.premium-flow-steps,
.premium-plan-grid,
.premium-testimonial-grid {
  display: grid;
  gap: 1rem;
}

.premium-stage-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-stage-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-stage-stat strong,
.premium-plan-price strong {
  font-family: var(--data-font);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.premium-problem-grid,
.premium-feature-grid {
  display: grid;
  gap: 1rem;
}

.premium-problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-problem-card,
.premium-feature-card,
.premium-testimonial-card,
.premium-pending-state,
.premium-pending-meta {
  display: grid;
  gap: 0.7rem;
}

.premium-problem-card-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 249, 0.92));
}

.premium-problem-card-dark {
  color: #f5fbff;
  background:
    radial-gradient(circle at 84% 22%, rgba(53, 194, 214, 0.12), transparent 28%),
    linear-gradient(160deg, #031723, #072739 66%, #0b3348);
  border-color: rgba(120, 209, 223, 0.12);
}

.premium-problem-card-dark p,
.premium-problem-card-dark li,
.premium-problem-card-dark .eyebrow {
  color: rgba(240, 248, 252, 0.86);
}

.premium-bullet-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
}

.premium-section {
  display: grid;
  gap: 1rem;
}

.premium-section-centered,
.premium-section-copy-centered {
  justify-items: center;
  text-align: center;
}

.premium-section-copy {
  display: grid;
  gap: 0.45rem;
}

.premium-section-copy h2,
.premium-flow-copy h2 {
  margin: 0;
}

.premium-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-feature-card {
  min-height: 12.5rem;
}

.premium-feature-badge {
  background: rgba(15, 124, 130, 0.08);
}

.premium-flow-strip {
  display: grid;
  gap: 1.2rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(120, 235, 247, 0.2), transparent 20%),
    linear-gradient(135deg, rgba(8, 32, 44, 0.98), rgba(10, 48, 66, 0.98));
  color: #f7fbff;
}

.premium-flow-copy .eyebrow,
.premium-flow-step span,
.premium-flow-step p {
  color: rgba(237, 246, 250, 0.82);
}

.premium-flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-flow-step {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 216, 224, 0.12);
}

.premium-pricing-stage {
  display: grid;
  place-items: center;
}

.premium-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-plan-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
  padding-top: 2.2rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(6, 32, 45, 0.98), rgba(6, 32, 45, 0.98)) top / 100% 8.8rem no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 249, 0.92));
}

.premium-plan-card h3,
.premium-plan-card .eyebrow {
  color: #ffffff;
}

.premium-plan-card .premium-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  color: #102633;
}

.premium-plan-card .premium-bullet-list {
  margin-top: 0.3rem;
}

.premium-plan-card .premium-bullet-list li {
  color: var(--text);
}

.premium-plan-card .premium-plan-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(22, 145, 156, 0.16), rgba(22, 145, 156, 0.04));
}

.premium-plan-card-mini {
  padding-top: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 249, 0.92));
}

.premium-plan-card-mini h3,
.premium-plan-card-mini .eyebrow {
  color: var(--text);
}

.premium-plan-card-mini .premium-plan-price {
  color: var(--text);
}

.premium-plan-cta {
  width: 100%;
}

.premium-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-testimonial-card {
  min-height: 13rem;
}

.premium-faq-section {
  display: grid;
  gap: 1rem;
}

.premium-faq-list {
  display: grid;
  gap: 0.8rem;
}

.premium-faq-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.premium-faq-item summary::-webkit-details-marker {
  display: none;
}

.premium-faq-item p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.premium-pending {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.premium-pending-copy,
.premium-pending-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.premium-pending-state,
.premium-pending-meta {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-pending-meta {
  background: rgba(15, 124, 130, 0.06);
}

.premium-page-alerts .premium-stage-card {
  background:
    linear-gradient(160deg, rgba(214, 240, 255, 0.98), rgba(255, 255, 255, 0.96) 62%, rgba(237, 247, 251, 0.98)),
    radial-gradient(circle at 82% 18%, rgba(120, 210, 255, 0.24), transparent 24%);
}

.premium-page-crowd .premium-stage-card {
  background:
    linear-gradient(160deg, rgba(9, 35, 48, 0.98), rgba(17, 63, 82, 0.94) 64%, rgba(232, 245, 247, 0.94)),
    radial-gradient(circle at 86% 14%, rgba(122, 234, 244, 0.18), transparent 24%);
}

.premium-page-crowd .premium-stage-card,
.premium-page-crowd .premium-stage-card .premium-stage-note,
.premium-page-crowd .premium-stage-card .premium-stage-stat span,
.premium-page-crowd .premium-stage-card .premium-stage-float span,
.premium-page-crowd .premium-stage-card .premium-stage-float small {
  color: #eef8fb;
}

.premium-page-crowd .premium-stage-stat,
.premium-page-crowd .premium-stage-float {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 232, 238, 0.14);
}

@media (max-width: 980px) {
  .premium-problem-grid,
  .premium-feature-grid,
  .premium-flow-steps,
  .premium-plan-grid,
  .premium-testimonial-grid,
  .premium-pending {
    grid-template-columns: 1fr;
  }

  .premium-stage-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .premium-trust-list,
  .premium-actions {
    width: 100%;
  }

  .premium-disabled-cta,
  .premium-stage-float,
  .premium-plan-cta {
    width: 100%;
  }

  .premium-stage-media {
    min-height: 14rem;
  }
}

.premium-page {
  display: grid;
  gap: 1.5rem;
}

.premium-master-hero,
.premium-proof-band {
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
}

.premium-master-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 84% 16%, rgba(130, 229, 241, 0.22), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(10, 129, 149, 0.07), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 250, 0.94));
}

.premium-master-copy,
.premium-master-visual,
.premium-master-section,
.premium-section-head,
.premium-account-box,
.premium-proof-copy,
.premium-pricing-zone {
  display: grid;
  gap: 0.9rem;
}

.premium-master-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.94;
}

.premium-master-sublead {
  max-width: 62ch;
}

.premium-account-box {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-account-box strong {
  font-family: var(--data-font);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.premium-hero-photo-card,
.premium-proof-media {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.premium-hero-photo-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(202, 230, 243, 0.92), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(16, 38, 51, 0.08);
  box-shadow: 0 26px 40px rgba(16, 38, 51, 0.12);
}

.premium-hero-photo-card img,
.premium-proof-media img,
.premium-tool-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.premium-hero-photo-card img {
  aspect-ratio: 4 / 3.2;
}

.premium-hero-floating-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  min-width: 14rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 28px rgba(16, 38, 51, 0.18);
}

.premium-hero-floating-card small,
.premium-hero-floating-card span,
.premium-plan-card small,
.premium-testimonial-card span,
.premium-faq-item p,
.purchase-modal-note span {
  color: var(--muted);
}

.premium-hero-floating-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.premium-hero-floating-stats strong {
  display: block;
}

.premium-master-section {
  gap: 1rem;
}

.premium-section-head h2,
.premium-proof-copy h2 {
  margin: 0;
}

/* Fix: proof-band has a dark gradient; the global h1,h2,h3{color:#102633}
   rule overrides the white inherited from .premium-proof-copy. */
.premium-proof-copy h2 {
  color: inherit;
}

.premium-section-head-centered {
  justify-items: center;
  text-align: center;
}

.premium-value-grid,
.premium-tools-grid,
.premium-proof-stats,
.premium-testimonial-grid,
.purchase-form-grid {
  display: grid;
  gap: 1rem;
}

.premium-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-value-card,
.premium-testimonial-card {
  min-height: 12rem;
}

.premium-tools-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.premium-tool-card {
  min-height: 16rem;
}

.premium-tool-card-dark {
  grid-column: span 5;
  color: #f4fbff;
  background:
    radial-gradient(circle at 84% 22%, rgba(80, 212, 230, 0.12), transparent 24%),
    linear-gradient(160deg, #051927, #0a2f45);
}

.premium-tool-card-dark p,
.premium-tool-card-dark .eyebrow {
  color: rgba(240, 248, 252, 0.84);
}

.premium-tool-card-photo {
  grid-column: span 3;
  overflow: hidden;
  padding: 0;
}

.premium-tool-card-photo img {
  min-height: 16rem;
}

.premium-tool-card-accent {
  grid-column: span 4;
  background:
    linear-gradient(150deg, rgba(18, 134, 174, 0.96), rgba(12, 115, 150, 0.9));
  color: #ffffff;
}

.premium-tool-card-accent .eyebrow,
.premium-tool-card-accent li {
  color: rgba(247, 252, 255, 0.88);
}

.premium-tool-card-light {
  grid-column: span 8;
  background: rgba(255, 255, 255, 0.92);
}

.premium-flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.premium-flow-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(10, 129, 149, 0.08);
  font-size: 0.8rem;
  color: var(--accent-strong);
}

.premium-proof-band {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  padding: 0;
  background:
    linear-gradient(140deg, rgba(4, 20, 32, 0.98), rgba(5, 37, 53, 0.96));
}

body[data-sport="kitesurf"] .premium-master-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(242, 150, 53, 0.18), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(10, 129, 149, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 250, 0.94));
}

body[data-sport="kitesurf"] .premium-proof-band {
  background:
    linear-gradient(140deg, rgba(5, 24, 38, 0.98), rgba(6, 66, 84, 0.96));
}

body[data-sport="windsurf"] .premium-master-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(163, 214, 74, 0.18), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(8, 106, 123, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 248, 0.94));
}

body[data-sport="windsurf"] .premium-proof-band {
  background:
    linear-gradient(140deg, rgba(6, 24, 34, 0.98), rgba(12, 82, 85, 0.96));
}

body[data-sport="vela"] .premium-master-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(223, 170, 99, 0.18), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(19, 57, 91, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 250, 0.94));
}

body[data-sport="vela"] .premium-proof-band {
  background:
    linear-gradient(140deg, rgba(7, 21, 35, 0.98), rgba(18, 51, 77, 0.96));
}

.premium-proof-media {
  min-height: 100%;
}

.premium-proof-copy {
  align-content: center;
  padding: clamp(1.3rem, 3vw, 2rem);
  color: #f5fbff;
}

.premium-proof-copy p {
  color: rgba(240, 248, 252, 0.82);
}

.premium-proof-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-proof-stats div {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(181, 225, 231, 0.16);
}

.premium-proof-stats strong {
  font-family: var(--data-font);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.premium-proof-stats span {
  color: rgba(240, 248, 252, 0.72);
}

.premium-compare-section {
  display: grid;
  gap: 1rem;
}

.premium-compare-table {
  display: grid;
  gap: 0.7rem;
  overflow-x: auto;
}

.premium-compare-row {
  min-width: 42rem;
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(2, minmax(220px, 1fr));
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-compare-row-head {
  min-width: 42rem;
  padding: 0 0.15rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-compare-feature {
  font-weight: 700;
  color: var(--text);
}

/* Compare table cell states */
[data-cell-type="blocked"] {
  color: var(--muted);
  opacity: 0.55;
  font-size: 1.1rem;
  line-height: 1;
}

[data-cell-type="included"] {
  color: var(--accent-strong);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

[data-cell-type="included"]::before {
  content: "✓";
  font-weight: 700;
  font-size: 1em;
}

.premium-pricing-zone {
  place-items: center;
}

.premium-plan-card-featured {
  width: min(100%, 24rem);
}

.premium-plan-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-top: 2.1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(5, 28, 41, 0.98), rgba(8, 61, 82, 0.96)) top / 100% 7.8rem no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 249, 0.94));
  box-shadow: 0 18px 38px rgba(16, 38, 51, 0.12);
}

.premium-plan-card .eyebrow,
.premium-plan-card h3 {
  color: #ffffff;
}

.premium-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.premium-plan-price strong {
  font-family: var(--data-font);
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #102633;
}

.premium-plan-price span {
  color: var(--muted);
  padding-bottom: 0.2rem;
}

.premium-plan-tag,
.premium-feature-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: var(--data-font);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-plan-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.premium-feature-badge {
  background: rgba(10, 129, 149, 0.08);
  color: var(--accent-strong);
}

.premium-bullet-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}

.premium-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-testimonial-card {
  gap: 0.7rem;
}

.premium-faq-section {
  display: grid;
  gap: 1rem;
}

.premium-faq-list {
  display: grid;
  gap: 0.8rem;
}

.premium-faq-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 38, 51, 0.08);
}

.premium-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.premium-faq-item summary::-webkit-details-marker {
  display: none;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.purchase-modal[hidden] {
  display: none;
}

.purchase-modal-static {
  z-index: 95;
}

.purchase-modal-static .purchase-modal-backdrop {
  cursor: default;
}

.purchase-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 27, 0.58);
  backdrop-filter: blur(10px);
}

.purchase-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 26px;
}

.purchase-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(16, 38, 51, 0.06);
  color: var(--text);
}

.purchase-form,
.purchase-modal-head {
  display: grid;
  gap: 0.85rem;
}

.purchase-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-form small[data-field-error] {
  min-height: 1rem;
  color: #b33d34;
}

.purchase-form input[aria-invalid="true"] {
  border-color: rgba(179, 61, 52, 0.42);
  box-shadow: 0 0 0 3px rgba(179, 61, 52, 0.08);
}

.purchase-modal-note {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(10, 129, 149, 0.06);
  border: 1px solid rgba(10, 129, 149, 0.1);
}

.purchase-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.crowd-safety-note {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(16, 38, 51, 0.04);
  border: 1px solid rgba(16, 38, 51, 0.06);
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .premium-master-hero,
  .premium-proof-band,
  .premium-value-grid,
  .premium-testimonial-grid,
  .purchase-form-grid {
    grid-template-columns: 1fr;
  }

  .premium-plan-grid.is-duo {
    grid-template-columns: 1fr;
  }

  .premium-tools-grid {
    grid-template-columns: 1fr;
  }

  .premium-tool-card-dark,
  .premium-tool-card-photo,
  .premium-tool-card-accent,
  .premium-tool-card-light {
    grid-column: auto;
  }

  .premium-proof-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .premium-master-copy h1 {
    max-width: 10ch;
  }

  .premium-hero-floating-card,
  .purchase-modal-actions {
    width: 100%;
  }

  .premium-hero-floating-stats {
    grid-template-columns: 1fr;
  }

  .purchase-modal-dialog {
    padding: 1rem;
  }
}

/* Home reference rebuild */
.page-home {
  background:
    radial-gradient(circle at 12% 0%, rgba(132, 214, 229, 0.2), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(247, 228, 158, 0.2), transparent 16%),
    linear-gradient(180deg, #f8fbfc 0%, #edf5f7 45%, #e8f0f3 100%);
}

.page-home::after {
  opacity: 0.24;
}

.page-home .site-header {
  padding: 0.95rem 2rem 0.8rem;
  background: linear-gradient(180deg, rgba(252, 254, 254, 0.94), rgba(248, 251, 252, 0.76));
  border-bottom: 1px solid rgba(16, 38, 51, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
}

.page-home .site-header-inner {
  width: min(100%, 1480px);
}

.page-home .page-shell {
  max-width: 1490px;
  padding: 0.4rem 1.6rem 2.4rem;
}

.page-home .brand {
  gap: 0.7rem;
}

.page-home .brand-mark {
  width: 4.55rem;
}

.page-home .brand-name {
  font-family: var(--data-font);
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #133240;
}

.page-home .site-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.page-home .site-nav-home > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: var(--body-font);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #294654;
}

.page-home .site-nav-home > a:hover {
  background: transparent;
  color: #173746;
}

.home-reference {
  display: grid;
  gap: 1.45rem;
}

.home-stage,
.home-download {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 34px;
  border-color: rgba(16, 38, 51, 0.05);
  box-shadow: 0 34px 82px rgba(16, 38, 51, 0.08);
}

.home-stage {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, rgba(232, 243, 247, 0.98), rgba(219, 234, 239, 0.94));
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(238, 247, 249, 0.96) 0%, rgba(238, 247, 249, 0.92) 18%, rgba(238, 247, 249, 0.76) 32%, rgba(238, 247, 249, 0.3) 52%, rgba(238, 247, 249, 0.02) 68%),
    radial-gradient(circle at 18% 86%, rgba(145, 223, 236, 0.18), transparent 22%);
  pointer-events: none;
}

.home-stage-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 51rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.home-stage-copy,
.home-stage-spotlight,
.home-stage-preview,
.home-stage-cards,
.home-download-copy,
.home-download-phone {
  position: relative;
  z-index: 2;
}

.home-stage-copy {
  max-width: 39rem;
  padding: 6.4rem 0 0 3.7rem;
}

.home-stage-copy h1,
.home-stage-spotlight h2,
.home-stage-card h2,
.home-download-copy h2,
.home-product-heading h3,
.home-phone-heading h3 {
  font-family: var(--data-font);
  font-weight: 600;
  letter-spacing: -0.065em;
  color: #0b2433;
}

.home-stage-copy h1 {
  max-width: 6.2ch;
  font-size: clamp(4.6rem, 7vw, 6.25rem);
  line-height: 0.9;
}

.home-stage-copy .lead {
  max-width: 31rem;
  margin-top: 1.55rem;
  font-size: 1.18rem;
  line-height: 1.56;
  color: #3d5b67;
}

.home-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.85rem;
}

.home-stage-cta {
  min-height: 4rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--body-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(15, 124, 130, 0.18);
}

.home-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.95rem;
  padding: 0.88rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 28px rgba(16, 38, 51, 0.07);
  backdrop-filter: blur(12px);
  color: #27495a;
  font-family: var(--body-font);
  font-size: 1.08rem;
  font-weight: 600;
}

.home-chip-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #1f7f8e;
}

.home-chip-icon svg,
.home-card-icon svg,
.home-product-icon-chip svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-stage-spotlight {
  width: min(calc(100% - 42rem), 42rem);
  min-height: 16rem;
  margin: 3.4rem 0 0 3.7rem;
  padding: 2.5rem 2.35rem 2.15rem;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 249, 0.92));
  box-shadow: 0 18px 42px rgba(16, 38, 51, 0.06);
}

.home-stage-spotlight .eyebrow,
.home-stage-card .eyebrow {
  font-family: var(--data-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-stage-spotlight h2 {
  max-width: 11ch;
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.96;
}

.home-stage-spotlight .muted {
  max-width: 28rem;
  margin-top: 1.6rem;
  font-size: 1.11rem;
  line-height: 1.58;
  color: #476570;
}

.home-stage-preview {
  position: absolute;
  right: 3.5rem;
  bottom: 25.5rem;
  width: min(42%, 36rem);
}

.home-product-shell {
  padding: 0.95rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(251, 253, 254, 0.96), rgba(236, 246, 248, 0.93));
  box-shadow:
    0 36px 60px rgba(16, 38, 51, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.home-product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem 0.85rem;
}

.home-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-weight: 700;
  color: #123646;
}

.home-product-brand img,
.home-phone-topline img {
  width: 1.65rem;
  height: auto;
}

.home-product-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  color: #5b7580;
}

.home-product-nav button {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(25, 92, 116, 0.1);
  box-shadow: none;
}

.home-product-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem 0.9rem;
}

.home-product-tabs span,
.home-product-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4e6a75;
  font-size: 0.72rem;
  border: 1px solid rgba(16, 38, 51, 0.05);
}

.home-product-tabs .is-active {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
}

.home-product-icon-chip {
  width: 2.1rem;
  padding: 0;
  margin-left: auto;
  color: #31505d;
}

.home-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.8rem;
  gap: 1rem;
  padding: 1.05rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 38, 51, 0.05);
}

.home-product-kicker,
.home-phone-kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8798a0;
}

.home-product-heading,
.home-phone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.home-product-heading h3,
.home-phone-heading h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.94;
}

.home-product-heading span,
.home-phone-heading span {
  color: #92a841;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-product-stats,
.home-phone-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #143545;
  font-size: 1.12rem;
  font-weight: 700;
}

.home-product-note {
  margin: 0.75rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #7b8f98;
}

.home-product-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.home-product-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 38, 51, 0.06);
  font-size: 0.72rem;
  color: #55717c;
}

.home-product-actions .is-primary {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
  border-color: transparent;
}

.home-product-footer {
  margin: 0.95rem 0 0;
  font-size: 0.65rem;
  color: #91a0a8;
}

.home-product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  border-radius: 18px;
}

.home-stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.8rem 3.7rem 2.3rem;
  margin-top: 1.4rem;
}

.home-stage-card {
  min-height: 16.3rem;
  padding: 1.9rem 1.7rem 1.65rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 249, 0.92));
  box-shadow: 0 16px 40px rgba(16, 38, 51, 0.05);
}

.home-card-icon {
  display: inline-flex;
  width: 2.9rem;
  height: 2.9rem;
  color: #1491a2;
}

.home-stage-card .eyebrow {
  margin-top: 1rem;
}

.home-stage-card h2 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  line-height: 0.95;
}

.home-stage-card .muted {
  max-width: 17ch;
  margin-top: 1.35rem;
  font-size: 1.04rem;
  line-height: 1.55;
  color: #4a6974;
}

.home-download {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  align-items: end;
  min-height: 20rem;
  background:
    radial-gradient(circle at 16% 24%, rgba(214, 243, 246, 0.42), transparent 18%),
    linear-gradient(180deg, rgba(233, 245, 247, 0.98), rgba(217, 236, 240, 0.94));
}

.home-download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(233, 245, 247, 0.97) 0%, rgba(233, 245, 247, 0.94) 34%, rgba(233, 245, 247, 0.56) 52%, rgba(233, 245, 247, 0) 74%);
  pointer-events: none;
}

.home-download-water {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-download-copy {
  padding: 2.4rem 0 2.3rem 3.7rem;
  max-width: 38rem;
}

.home-download-copy h2 {
  max-width: 12.5ch;
  font-size: clamp(2.5rem, 4vw, 3.55rem);
  line-height: 0.98;
  color: #1c5062;
}

.home-download-subtitle {
  margin-top: 0.2rem;
  font-size: 1.7rem;
  line-height: 1.12;
  color: #355865;
}

.home-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.8rem;
  padding: 0.78rem 1rem;
  border-radius: 18px;
  background: #11161c;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(17, 22, 28, 0.2);
}

.home-store-icon {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.home-store-copy small,
.home-store-copy strong {
  display: block;
  line-height: 1;
}

.home-store-copy small {
  margin-bottom: 0.22rem;
  font-size: 0.66rem;
  opacity: 0.72;
}

.home-store-copy strong {
  font-family: var(--data-font);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-download-phone {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 100%;
  padding: 1.1rem 3.2rem 0 0;
}

.home-download-device {
  position: relative;
  width: min(52%, 20rem);
  padding: 0.7rem 0.52rem 0.95rem;
  border-radius: 42px 42px 26px 26px;
  background: linear-gradient(180deg, #121b22, #081118);
  box-shadow: 0 30px 54px rgba(16, 38, 51, 0.24);
}

.home-download-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.95rem;
  border-radius: 0 0 12px 12px;
  background: #04090d;
}

.home-phone-ui {
  margin-top: 0.55rem;
  padding: 0.82rem 0.72rem 0.78rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(238, 246, 248, 0.95));
}

.home-phone-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #173746;
}

.home-phone-tabs {
  display: flex;
  gap: 0.32rem;
  margin-top: 0.7rem;
}

.home-phone-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 38, 51, 0.05);
  font-size: 0.48rem;
  color: #58747f;
}

.home-phone-tabs .is-active {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
}

.home-phone-kicker {
  margin-top: 0.85rem;
}

.home-phone-heading h3 {
  font-size: 1.32rem;
}

.home-phone-heading span {
  font-size: 0.68rem;
}

.home-phone-stats {
  gap: 0.55rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
}

.home-phone-photo {
  margin-top: 0.85rem;
}

.home-phone-photo img {
  display: block;
  width: 100%;
  height: 9.8rem;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .page-home .site-header {
    padding-inline: 1.4rem;
  }

  .page-home .brand-name {
    font-size: 2.6rem;
  }

  .page-home .page-shell {
    padding-inline: 1.2rem;
  }

  .home-stage-wave {
    height: 42rem;
  }

  .home-stage-copy {
    padding-left: 2.4rem;
  }

  .home-stage-spotlight {
    width: calc(100% - 30rem);
    margin-left: 2.4rem;
  }

  .home-stage-preview {
    right: 2.3rem;
    bottom: 23rem;
    width: min(44%, 31rem);
  }

  .home-stage-cards {
    padding-inline: 2.4rem;
  }

  .home-download-copy {
    padding-left: 2.4rem;
  }

  .home-download-phone {
    padding-right: 2.2rem;
  }
}

@media (max-width: 920px) {
  .page-home .site-header-inner {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .page-home .brand {
    width: 100%;
  }

  .page-home .site-nav-home {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .page-home .site-nav-home::-webkit-scrollbar {
    display: none;
  }

  .home-stage {
    padding-bottom: 1.1rem;
  }

  .home-stage-wave {
    height: 31rem;
  }

  .home-stage-copy {
    max-width: 33rem;
    padding: 4rem 1.4rem 0;
  }

  .home-stage-copy h1 {
    font-size: clamp(3.8rem, 11vw, 5.3rem);
  }

  .home-stage-actions {
    align-items: stretch;
  }

  .home-stage-cta {
    width: 100%;
    justify-content: center;
  }

  .home-stage-chips {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stage-chip {
    justify-content: center;
    min-height: 3.4rem;
  }

  .home-stage-spotlight {
    width: auto;
    min-height: 0;
    margin: 19rem 1.4rem 0;
    padding: 1.7rem 1.5rem;
  }

  .home-stage-spotlight h2 {
    max-width: none;
    font-size: clamp(2rem, 5.4vw, 2.9rem);
  }

  .home-stage-preview {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 1rem 1.4rem 0;
  }

  .home-product-shell {
    padding: 0.6rem;
  }

  .home-product-card {
    grid-template-columns: 1fr;
  }

  .home-product-photo img {
    min-height: 13rem;
  }

  .home-stage-cards {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.4rem 0;
  }

  .home-stage-card h2,
  .home-stage-card .muted {
    max-width: none;
  }

  .home-download {
    grid-template-columns: 1fr;
  }

  .home-download::before {
    background: linear-gradient(180deg, rgba(233, 245, 247, 0.98) 0%, rgba(233, 245, 247, 0.9) 42%, rgba(233, 245, 247, 0.24) 100%);
  }

  .home-download-water {
    width: 100%;
  }

  .home-download-copy {
    padding: 1.8rem 1.4rem 0;
    max-width: none;
  }

  .home-download-copy h2 {
    max-width: none;
  }

  .home-download-phone {
    justify-content: center;
    padding: 0.6rem 0 0;
  }

  .home-download-device {
    width: min(58%, 18.6rem);
  }
}

@media (max-width: 560px) {
  .page-home .site-header {
    padding: 0.85rem 1rem 0.7rem;
  }

  .page-home .page-shell {
    padding: 0.3rem 0.8rem 1.8rem;
  }

  .page-home .brand-mark {
    width: 3.6rem;
  }

  .page-home .brand-name {
    font-size: 2.2rem;
  }

  .page-home .site-nav-home > a {
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .site-nav-divider {
    display: none;
  }

  .home-stage,
  .home-download {
    border-radius: 28px;
  }

  .home-stage-wave {
    height: 26rem;
  }

  .home-stage-copy {
    padding-inline: 1rem;
  }

  .home-stage-copy h1 {
    max-width: 6.5ch;
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .home-stage-copy .lead {
    font-size: 1rem;
  }

  .home-stage-chips {
    grid-template-columns: 1fr;
  }

  .home-stage-spotlight,
  .home-stage-preview,
  .home-stage-cards {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .home-stage-spotlight {
    margin-top: 15rem;
  }

  .home-stage-card {
    padding: 1.55rem 1.35rem;
    border-radius: 24px;
  }

  .home-product-topbar,
  .home-product-tabs,
  .home-product-card {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .home-product-nav {
    display: none;
  }

  .home-product-tabs {
    flex-wrap: wrap;
  }

  .home-product-icon-chip {
    margin-left: 0;
  }

  .home-download-copy {
    padding-inline: 1rem;
  }

  .home-download-subtitle {
    font-size: 1.35rem;
  }

  .home-store-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-store {
    width: 100%;
  }

  .home-download-device {
    width: min(72%, 15.6rem);
  }
}

.site-header-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-home {
  background:
    radial-gradient(circle at 12% -4%, rgba(126, 210, 226, 0.22), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(248, 225, 145, 0.18), transparent 18%),
    linear-gradient(180deg, #f8fbfd 0%, #edf5f7 44%, #e6eff2 100%);
}

.page-home::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.76), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(145, 224, 238, 0.18), transparent 22%);
}

.page-home::after {
  opacity: 0.3;
}

.page-home .site-header {
  padding: 0.95rem 1.5rem 0.7rem;
  background: linear-gradient(180deg, rgba(251, 253, 254, 0.9), rgba(248, 251, 252, 0.74));
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
}

.page-home .site-header-home {
  border-bottom: 1px solid rgba(16, 38, 51, 0.06);
}

.page-home .page-shell {
  max-width: 1500px;
  padding: 0.55rem 1.5rem 2.4rem;
}

.page-home .brand {
  gap: 0.65rem;
}

.page-home .brand-mark {
  width: 4.2rem;
}

.page-home .brand-name {
  font-family: var(--data-font);
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  color: #153244;
}

.page-home .site-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.page-home .site-nav-home > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: var(--body-font);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #244554;
}

.page-home .site-nav-home > a:hover {
  background: transparent;
  color: #163847;
  opacity: 0.82;
}

.site-nav-divider {
  width: 1px;
  height: 1rem;
  background: rgba(36, 69, 84, 0.18);
}

.site-nav-caret svg {
  width: 0.7rem;
  height: 0.42rem;
}


.home-reference {
  display: grid;
  gap: 1.25rem;
}

.home-stage,
.home-download {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border-color: rgba(16, 38, 51, 0.06);
  box-shadow: 0 30px 80px rgba(16, 38, 51, 0.08);
}

.home-stage {
  padding: 0;
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 255, 255, 0.82), transparent 20%),
    radial-gradient(circle at 80% 14%, rgba(248, 225, 145, 0.18), transparent 14%),
    linear-gradient(180deg, rgba(233, 243, 247, 0.98), rgba(217, 232, 239, 0.94));
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(239, 247, 249, 0.98) 0%, rgba(239, 247, 249, 0.94) 26%, rgba(239, 247, 249, 0.58) 48%, rgba(239, 247, 249, 0.1) 66%, rgba(239, 247, 249, 0) 82%),
    radial-gradient(circle at 18% 78%, rgba(145, 223, 236, 0.18), transparent 22%);
  pointer-events: none;
  z-index: 1;
}

.home-stage-wave {
  position: absolute;
  top: -1.6rem;
  right: 0;
  width: min(58%, 48rem);
  height: 44rem;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.02);
}

.home-stage-top,
.home-stage-middle,
.home-stage-cards,
.home-download-copy,
.home-download-phone {
  position: relative;
  z-index: 2;
}

.home-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  min-height: 41rem;
  padding: 4.4rem 3.5rem 0;
}

.home-stage-copy {
  align-self: center;
  max-width: 34rem;
}

.home-stage-copy h1,
.home-stage-spotlight h2,
.home-stage-card h2,
.home-download-copy h2 {
  font-family: var(--data-font);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.home-stage-copy h1 {
  max-width: 6.3ch;
  font-size: clamp(4.6rem, 7.2vw, 6.25rem);
  line-height: 0.9;
  color: #0c2433;
}

.home-stage-copy .lead {
  max-width: 30rem;
  margin-top: 1.7rem;
  font-size: 1.18rem;
  line-height: 1.56;
  color: #3e5c68;
}

.home-stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.home-stage-cta {
  min-height: 4rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(15, 124, 130, 0.18);
}

.home-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 4rem;
  padding: 0.88rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(16, 38, 51, 0.07);
  backdrop-filter: blur(12px);
  color: #244958;
  font-family: var(--data-font);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.home-chip-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #1f7c8c;
}

.home-chip-icon svg,
.home-card-icon svg,
.home-store-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-stage-middle {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: 1.6rem;
  align-items: end;
  padding: 0 3.5rem;
  margin-top: -5rem;
}

.home-stage-spotlight,
.home-stage-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 249, 0.9));
}

.home-stage-spotlight {
  min-height: 18.3rem;
  padding: 2.6rem 2.3rem 2.2rem;
  border-radius: 34px;
  box-shadow: 0 18px 42px rgba(16, 38, 51, 0.06);
}

.home-stage-spotlight .eyebrow,
.home-stage-card .eyebrow {
  font-family: var(--data-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-stage-spotlight h2 {
  max-width: 11ch;
  margin-top: 1.8rem;
  font-size: clamp(2.5rem, 4vw, 3.65rem);
  line-height: 0.95;
  color: #0e2634;
}

.home-stage-spotlight .muted {
  max-width: 28rem;
  margin-top: 1.7rem;
  font-size: 1.12rem;
  line-height: 1.56;
  color: #45636e;
}

.home-stage-preview {
  display: flex;
  align-items: flex-end;
  min-height: 24rem;
}

.home-stage-preview-shell {
  width: 100%;
  margin-top: -8rem;
  padding: 0.7rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, rgba(251, 253, 253, 0.94), rgba(236, 246, 248, 0.94));
  box-shadow:
    0 34px 60px rgba(16, 38, 51, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.24);
}

.home-stage-preview-shell img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.home-stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.15rem 3.5rem 2.2rem;
}

.home-stage-card {
  min-height: 17rem;
  padding: 2rem 1.7rem 1.7rem;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(16, 38, 51, 0.05);
}

.home-card-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  color: #1b96a5;
}

.home-stage-card .eyebrow {
  margin-top: 1.25rem;
}

.home-stage-card h2 {
  max-width: 11ch;
  margin-top: 1.3rem;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 0.95;
  color: #0f2634;
}

.home-stage-card .muted {
  max-width: 18ch;
  margin-top: 1.45rem;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #476670;
}

.home-download {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
  align-items: end;
  min-height: 20.5rem;
  padding: 2.4rem 3rem 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(211, 243, 246, 0.44), transparent 18%),
    linear-gradient(180deg, rgba(232, 245, 247, 0.98), rgba(214, 234, 238, 0.94));
}

.home-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(233, 245, 247, 0.98) 0%, rgba(233, 245, 247, 0.94) 38%, rgba(233, 245, 247, 0.4) 64%, rgba(233, 245, 247, 0) 82%);
  pointer-events: none;
  z-index: 1;
}

.home-download-water {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(62%, 46rem);
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-download-copy {
  max-width: 36rem;
  padding-bottom: 2.2rem;
}

.home-download-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  line-height: 0.98;
  color: #1a4f61;
}

.home-download-subtitle {
  margin-top: 0.3rem;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #345865;
}

.home-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.6rem;
  padding: 0.78rem 1rem;
  border-radius: 18px;
  background: #11161b;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(17, 22, 27, 0.2);
}

.home-store-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
}

.home-store-copy small,
.home-store-copy strong {
  display: block;
  line-height: 1;
}

.home-store-copy small {
  margin-bottom: 0.22rem;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  opacity: 0.72;
}

.home-store-copy strong {
  font-family: var(--data-font);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-download-phone {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100%;
}

.home-download-device {
  position: relative;
  width: min(48%, 18.2rem);
  margin: 1.2rem 1.3rem 0 auto;
  padding: 0.72rem 0.5rem 0.95rem;
  border-radius: 40px 40px 24px 24px;
  background: linear-gradient(180deg, #101920, #091219);
  box-shadow: 0 30px 48px rgba(16, 38, 51, 0.22);
}

.home-download-notch {
  position: absolute;
  top: 0.54rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6.1rem;
  height: 0.95rem;
  border-radius: 0 0 12px 12px;
  background: #04090d;
}

.home-download-screen {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  border-radius: 30px;
}

@media (max-width: 1080px) {
  .page-home .site-header {
    padding-inline: 1.2rem;
  }

  .home-stage-top,
  .home-stage-middle,
  .home-stage-cards,
  .home-download {
    grid-template-columns: 1fr;
  }

  .home-stage-top {
    min-height: 35rem;
    padding: 3rem 2.2rem 0;
  }

  .home-stage-wave {
    width: 100%;
    height: 31rem;
    top: 0;
    opacity: 0.86;
  }

  .home-stage::before {
    background:
      linear-gradient(180deg, rgba(239, 247, 249, 0.94) 0%, rgba(239, 247, 249, 0.86) 34%, rgba(239, 247, 249, 0.52) 56%, rgba(239, 247, 249, 0.12) 74%, rgba(239, 247, 249, 0) 100%),
      radial-gradient(circle at 18% 78%, rgba(145, 223, 236, 0.18), transparent 22%);
  }

  .home-stage-middle {
    gap: 1rem;
    padding: 0 2.2rem;
    margin-top: -3rem;
  }

  .home-stage-preview-shell {
    max-width: 40rem;
    margin: -2rem auto 0;
  }

  .home-stage-cards {
    padding: 1rem 2.2rem 2rem;
  }

  .home-download {
    padding: 2rem 2.2rem 0;
  }

  .home-download-water {
    width: 100%;
  }

  .home-download::before {
    background: linear-gradient(180deg, rgba(233, 245, 247, 0.94) 0%, rgba(233, 245, 247, 0.8) 48%, rgba(233, 245, 247, 0.24) 100%);
  }

  .home-download-copy {
    padding-bottom: 0;
  }

  .home-download-phone {
    justify-content: center;
  }

  .home-download-device {
    width: min(44%, 18rem);
    margin: 1rem auto 0;
  }
}

@media (max-width: 720px) {
  .page-home .site-header {
    padding: 0.85rem 1rem 0.65rem;
  }

  .page-home .site-header-inner {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .page-home .brand {
    width: 100%;
  }

  .page-home .brand-name {
    font-size: 1.8rem;
  }

  .page-home .site-nav-home {
    width: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .page-home .site-nav-home::-webkit-scrollbar {
    display: none;
  }

  .page-home .site-nav-home > a {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .site-nav-divider {
    display: none;
  }

  .page-home .page-shell {
    padding: 0.4rem 1rem 2rem;
  }

  .home-stage,
  .home-download {
    border-radius: 28px;
  }

  .home-stage-top {
    min-height: 28rem;
    padding: 2.2rem 1.1rem 0;
  }

  .home-stage-wave {
    height: 25rem;
  }

  .home-stage-copy h1 {
    max-width: 6.5ch;
    font-size: clamp(3.6rem, 15vw, 4.9rem);
  }

  .home-stage-copy .lead {
    font-size: 1rem;
  }

  .home-stage-actions {
    align-items: stretch;
  }

  .home-stage-cta {
    width: 100%;
    justify-content: center;
  }

  .home-stage-chips {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stage-chip {
    justify-content: center;
    min-height: 3.6rem;
    font-size: 1.35rem;
  }

  .home-stage-chip:last-child {
    grid-column: 1 / -1;
  }

  .home-stage-middle {
    padding: 0 1.1rem;
    margin-top: -1.8rem;
  }

  .home-stage-spotlight,
  .home-stage-card {
    padding: 1.5rem;
    border-radius: 26px;
  }

  .home-stage-spotlight h2,
  .home-stage-card h2 {
    max-width: none;
  }

  .home-stage-preview-shell {
    margin-top: 0;
    padding: 0.5rem;
    border-radius: 26px;
  }

  .home-stage-preview-shell img {
    border-radius: 22px;
  }

  .home-stage-cards {
    padding: 1rem 1.1rem 1.4rem;
  }

  .home-download {
    padding: 1.6rem 1.1rem 0;
    min-height: 0;
  }

  .home-download-copy h2 {
    max-width: none;
  }

  .home-download-subtitle {
    font-size: 1.3rem;
  }

  .home-store-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-store {
    width: 100%;
  }

  .home-download-device {
    width: min(68%, 16rem);
  }
}

/* Final home overrides */
.page-home .site-header {
  padding: 0.95rem 2rem 0.8rem;
  background: linear-gradient(180deg, rgba(252, 254, 254, 0.94), rgba(248, 251, 252, 0.76));
  border-bottom: 1px solid rgba(16, 38, 51, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
}

.page-home .site-header-inner {
  width: min(100%, 1480px);
}

.page-home .page-shell {
  max-width: 1490px;
  padding: 0.4rem 1.6rem 2.4rem;
}

.page-home .brand {
  gap: 0.7rem;
}

.page-home .brand-mark {
  width: 4.55rem;
}

.page-home .brand-name {
  font-family: var(--data-font);
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #133240;
}

.page-home .site-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.page-home .site-nav-home > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: var(--body-font);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #294654;
}

.page-home .site-nav-home > a:hover {
  background: transparent;
  color: #173746;
}

.home-reference {
  display: grid;
  gap: 1.45rem;
}

.home-stage,
.home-download {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 34px;
  border-color: rgba(16, 38, 51, 0.05);
  box-shadow: 0 34px 82px rgba(16, 38, 51, 0.08);
}

.home-stage {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, rgba(232, 243, 247, 0.98), rgba(219, 234, 239, 0.94));
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(238, 247, 249, 0.96) 0%, rgba(238, 247, 249, 0.92) 18%, rgba(238, 247, 249, 0.78) 30%, rgba(238, 247, 249, 0.42) 46%, rgba(238, 247, 249, 0.08) 62%, rgba(238, 247, 249, 0) 74%),
    radial-gradient(circle at 18% 86%, rgba(145, 223, 236, 0.18), transparent 22%);
  pointer-events: none;
}

.home-stage-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 51rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.home-stage-copy,
.home-stage-spotlight,
.home-stage-preview,
.home-stage-cards,
.home-download-copy,
.home-download-phone {
  position: relative;
  z-index: 2;
}

.home-stage-copy {
  max-width: 39rem;
  padding: 6.4rem 0 0 3.7rem;
}

.home-stage-copy h1,
.home-stage-spotlight h2,
.home-stage-card h2,
.home-download-copy h2,
.home-product-heading h3,
.home-phone-heading h3 {
  font-family: var(--data-font);
  font-weight: 600;
  letter-spacing: -0.065em;
  color: #0b2433;
}

.home-stage-copy h1 {
  max-width: 6.2ch;
  font-size: clamp(4.6rem, 7vw, 6.25rem);
  line-height: 0.9;
}

.home-stage-copy .lead {
  max-width: 31rem;
  margin-top: 1.55rem;
  font-size: 1.18rem;
  line-height: 1.56;
  color: #3d5b67;
}

.home-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.85rem;
}

.home-stage-cta {
  min-height: 4rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--body-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(15, 124, 130, 0.18);
}

.home-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.95rem;
  padding: 0.88rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 28px rgba(16, 38, 51, 0.07);
  backdrop-filter: blur(12px);
  color: #27495a;
  font-family: var(--body-font);
  font-size: 1.08rem;
  font-weight: 600;
}

.home-chip-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #1f7f8e;
}

.home-stage-spotlight {
  width: min(calc(100% - 42rem), 42rem);
  min-height: 16rem;
  margin: 3.4rem 0 0 3.7rem;
  padding: 2.5rem 2.35rem 2.15rem;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 249, 0.92));
  box-shadow: 0 18px 42px rgba(16, 38, 51, 0.06);
}

.home-stage-spotlight .eyebrow,
.home-stage-card .eyebrow {
  font-family: var(--data-font);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-stage-spotlight h2 {
  max-width: 11ch;
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.96;
}

.home-stage-spotlight .muted {
  max-width: 28rem;
  margin-top: 1.6rem;
  font-size: 1.11rem;
  line-height: 1.58;
  color: #476570;
}

.home-stage-preview {
  position: absolute;
  right: 3.5rem;
  bottom: 23rem;
  width: min(41%, 34rem);
}

.home-product-shell {
  padding: 0.95rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(251, 253, 254, 0.96), rgba(236, 246, 248, 0.93));
  box-shadow:
    0 36px 60px rgba(16, 38, 51, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.home-product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem 0.85rem;
}

.home-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-weight: 700;
  color: #123646;
}

.home-product-brand img,
.home-phone-topline img {
  width: 1.65rem;
  height: auto;
}

.home-product-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  color: #5b7580;
}

.home-product-nav button {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(25, 92, 116, 0.1);
  box-shadow: none;
}

.home-product-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem 0.9rem;
}

.home-product-tabs span,
.home-product-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4e6a75;
  font-size: 0.72rem;
  border: 1px solid rgba(16, 38, 51, 0.05);
}

.home-product-tabs .is-active {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
}

.home-product-icon-chip {
  width: 2.1rem;
  padding: 0;
  margin-left: auto;
  color: #31505d;
}

.home-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.8rem;
  gap: 1rem;
  padding: 1.05rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 38, 51, 0.05);
}

.home-product-kicker,
.home-phone-kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8798a0;
}

.home-product-heading,
.home-phone-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.home-product-heading h3,
.home-phone-heading h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.94;
}

.home-product-heading span,
.home-phone-heading span {
  color: #92a841;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-product-stats,
.home-phone-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #143545;
  font-size: 1.12rem;
  font-weight: 700;
}

.home-product-note {
  margin: 0.75rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #7b8f98;
}

.home-product-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.home-product-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 38, 51, 0.06);
  font-size: 0.72rem;
  color: #55717c;
}

.home-product-actions .is-primary {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
  border-color: transparent;
}

.home-product-footer {
  margin: 0.95rem 0 0;
  font-size: 0.65rem;
  color: #91a0a8;
}

.home-product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  border-radius: 18px;
}

.home-stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.8rem 3.7rem 2.3rem;
  margin-top: 1.4rem;
}

.home-stage-card {
  min-height: 16.3rem;
  padding: 1.9rem 1.7rem 1.65rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 249, 0.92));
  box-shadow: 0 16px 40px rgba(16, 38, 51, 0.05);
}

.home-card-icon {
  display: inline-flex;
  width: 2.9rem;
  height: 2.9rem;
  color: #1491a2;
}

.home-stage-card .eyebrow {
  margin-top: 1rem;
}

.home-stage-card h2 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  line-height: 0.95;
}

.home-stage-card .muted {
  max-width: 17ch;
  margin-top: 1.35rem;
  font-size: 1.04rem;
  line-height: 1.55;
  color: #4a6974;
}

.home-download {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  align-items: end;
  min-height: 20rem;
  background:
    radial-gradient(circle at 16% 24%, rgba(214, 243, 246, 0.42), transparent 18%),
    linear-gradient(180deg, rgba(233, 245, 247, 0.98), rgba(217, 236, 240, 0.94));
}

.home-download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(233, 245, 247, 0.97) 0%, rgba(233, 245, 247, 0.94) 34%, rgba(233, 245, 247, 0.56) 52%, rgba(233, 245, 247, 0) 74%);
  pointer-events: none;
}

.home-download-water {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-download-copy {
  padding: 2.4rem 0 2.3rem 3.7rem;
  max-width: 38rem;
}

.home-download-copy h2 {
  max-width: 12.5ch;
  font-size: clamp(2.5rem, 4vw, 3.55rem);
  line-height: 0.98;
  color: #1c5062;
}

.home-download-subtitle {
  margin-top: 0.2rem;
  font-size: 1.7rem;
  line-height: 1.12;
  color: #355865;
}

.home-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.8rem;
  padding: 0.78rem 1rem;
  border-radius: 18px;
  background: #11161c;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(17, 22, 28, 0.2);
}

.home-store-icon {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.home-store-copy small,
.home-store-copy strong {
  display: block;
  line-height: 1;
}

.home-store-copy small {
  margin-bottom: 0.22rem;
  font-size: 0.66rem;
  opacity: 0.72;
}

.home-store-copy strong {
  font-family: var(--data-font);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-download-phone {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 100%;
  padding: 1.1rem 3.2rem 0 0;
}

.home-download-device {
  position: relative;
  width: min(47%, 18.4rem);
  padding: 0.7rem 0.52rem 0.95rem;
  border-radius: 42px 42px 26px 26px;
  background: linear-gradient(180deg, #121b22, #081118);
  box-shadow: 0 30px 54px rgba(16, 38, 51, 0.24);
}

.home-download-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.95rem;
  border-radius: 0 0 12px 12px;
  background: #04090d;
}

.home-phone-ui {
  margin-top: 0.55rem;
  padding: 0.82rem 0.72rem 0.78rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(238, 246, 248, 0.95));
}

.home-phone-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #173746;
}

.home-phone-tabs {
  display: flex;
  gap: 0.32rem;
  margin-top: 0.7rem;
}

.home-phone-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 38, 51, 0.05);
  font-size: 0.48rem;
  color: #58747f;
}

.home-phone-tabs .is-active {
  background: linear-gradient(135deg, #0f7c82, #1aa4b4);
  color: #ffffff;
}

.home-phone-kicker {
  margin-top: 0.85rem;
}

.home-phone-heading h3 {
  font-size: 1.32rem;
}

.home-phone-heading span {
  font-size: 0.68rem;
}

.home-phone-stats {
  gap: 0.55rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
}

.home-phone-photo {
  margin-top: 0.85rem;
}

.home-phone-photo img {
  display: block;
  width: 100%;
  height: 9.8rem;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .page-home .site-header {
    padding-inline: 1.4rem;
  }

  .page-home .brand-name {
    font-size: 2.6rem;
  }

  .page-home .page-shell {
    padding-inline: 1.2rem;
  }

  .home-stage-wave {
    height: 42rem;
  }

  .home-stage-copy {
    padding-left: 2.4rem;
  }

  .home-stage-spotlight {
    width: calc(100% - 30rem);
    margin-left: 2.4rem;
  }

  .home-stage-preview {
    right: 2.3rem;
    bottom: 21rem;
    width: min(43%, 30rem);
  }

  .home-stage-cards {
    padding-inline: 2.4rem;
  }

  .home-download-copy {
    padding-left: 2.4rem;
  }

  .home-download-phone {
    padding-right: 2.2rem;
  }
}

@media (max-width: 920px) {
  .page-home .site-header-inner {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .page-home .brand {
    width: 100%;
  }

  .page-home .site-nav-home {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .page-home .site-nav-home::-webkit-scrollbar {
    display: none;
  }

  .home-stage {
    padding-bottom: 1.1rem;
  }

  .home-stage-wave {
    height: 31rem;
  }

  .home-stage-copy {
    max-width: 33rem;
    padding: 4rem 1.4rem 0;
  }

  .home-stage-copy h1 {
    font-size: clamp(3.8rem, 11vw, 5.3rem);
  }

  .home-stage-actions {
    align-items: stretch;
  }

  .home-stage-cta {
    width: 100%;
    justify-content: center;
  }

  .home-stage-chips {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stage-chip {
    justify-content: center;
    min-height: 3.4rem;
  }

  .home-stage-spotlight {
    width: auto;
    min-height: 0;
    margin: 19rem 1.4rem 0;
    padding: 1.7rem 1.5rem;
  }

  .home-stage-spotlight h2 {
    max-width: none;
    font-size: clamp(2rem, 5.4vw, 2.9rem);
  }

  .home-stage-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 1rem 1.4rem 0;
  }

  .home-product-shell {
    padding: 0.6rem;
  }

  .home-product-card {
    grid-template-columns: 1fr;
  }

  .home-product-photo img {
    min-height: 13rem;
  }

  .home-stage-cards {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.4rem 0;
  }

  .home-stage-card h2,
  .home-stage-card .muted {
    max-width: none;
  }

  .home-download {
    grid-template-columns: 1fr;
  }

  .home-download::before {
    background: linear-gradient(180deg, rgba(233, 245, 247, 0.98) 0%, rgba(233, 245, 247, 0.9) 42%, rgba(233, 245, 247, 0.24) 100%);
  }

  .home-download-water {
    width: 100%;
  }

  .home-download-copy {
    padding: 1.8rem 1.4rem 0;
    max-width: none;
  }

  .home-download-copy h2 {
    max-width: none;
  }

  .home-download-phone {
    justify-content: center;
    padding: 0.6rem 0 0;
  }

  .home-download-device {
    width: min(54%, 18rem);
  }
}

@media (max-width: 560px) {
  .page-home .site-header {
    padding: 0.85rem 1rem 0.7rem;
  }

  .page-home .page-shell {
    padding: 0.3rem 0.8rem 1.8rem;
  }

  .page-home .brand-mark {
    width: 3.6rem;
  }

  .page-home .brand-name {
    font-size: 2.2rem;
  }

  .page-home .site-nav-home > a {
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .site-nav-divider {
    display: none;
  }

  .home-stage,
  .home-download {
    border-radius: 28px;
  }

  .home-stage-wave {
    height: 26rem;
  }

  .home-stage-copy {
    padding-inline: 1rem;
  }

  .home-stage-copy h1 {
    max-width: 6.5ch;
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .home-stage-copy .lead {
    font-size: 1rem;
  }

  .home-stage-chips {
    grid-template-columns: 1fr;
  }

  .home-stage-spotlight {
    margin: 15rem 1rem 0;
  }

  .home-stage-preview {
    margin: 1rem 1rem 0;
  }

  .home-stage-cards {
    padding: 1rem 1rem 0;
  }

  .home-stage-card {
    padding: 1.55rem 1.35rem;
    border-radius: 24px;
  }

  .home-product-nav {
    display: none;
  }

  .home-product-tabs {
    flex-wrap: wrap;
  }

  .home-product-icon-chip {
    margin-left: 0;
  }

  .home-download-copy {
    padding-inline: 1rem;
  }

  .home-download-subtitle {
    font-size: 1.35rem;
  }

  .home-store-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-store {
    width: 100%;
  }

  .home-download-device {
    width: min(68%, 15rem);
  }
}

.sport-switcher {
  display: grid;
  gap: 0.55rem;
}

.sport-switcher-label {
  font-family: var(--data-font);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sport-switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sport-switcher-item {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 130, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(8, 34, 41, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.sport-switcher-item:hover,
.sport-switcher-item.is-active {
  transform: translateY(-1px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #14979f);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 124, 130, 0.18);
}

.sport-switcher-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.sport-switcher-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sport-switcher-text {
  font-family: var(--body-font);
  font-size: 0.96rem;
  font-weight: 600;
}

.sport-switcher-compact .sport-switcher-list {
  gap: 0.45rem;
}

.sport-switcher-compact .sport-switcher-item {
  min-height: 2.65rem;
  padding: 0.62rem 0.9rem;
}

.dashboard-sport-switcher,
.page-sport-switcher,
.analysis-sport-switcher {
  margin-top: 0.95rem;
}

.page-sport-switcher {
  margin-bottom: 1rem;
}

.spot-analysis-sport-lead {
  max-width: 38rem;
  margin: 0.7rem 0 0;
}

.condition-pill-accent {
  background: rgba(15, 124, 130, 0.14);
}

@media (max-width: 640px) {
  .sport-switcher-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sport-switcher-item {
    justify-content: center;
  }
}

.explore-hero,
.account-hero,
.page-hero {
  display: grid;
  gap: 1.25rem;
}

.explore-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.page-hero {
  padding: 1.35rem;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  align-items: start;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.explore-hero-copy {
  display: grid;
  gap: 1rem;
}

.explore-primary-flow {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(10, 34, 52, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.82));
}

.explore-primary-copy {
  display: grid;
  gap: 0.18rem;
}

.explore-primary-copy strong {
  color: var(--text);
}

.explore-primary-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.explore-form,
.explore-results-list,
.explore-result-card,
.explore-result-grid,
.explore-chip-row {
  display: grid;
  gap: 1rem;
}

.explore-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-form[data-search-mode="spot"] .explore-form-grid {
  grid-template-columns: 1fr;
}

.explore-preferences,
.explore-compare-block {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(10, 34, 52, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.explore-preferences-head {
  display: grid;
  gap: 0.2rem;
}

.explore-preferences-head strong {
  color: var(--text);
}

.explore-preferences-head span {
  color: var(--muted);
  line-height: 1.5;
}

.explore-preferences-grid,
.explore-metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.explore-checkbox input {
  width: 1rem;
  height: 1rem;
}

.explore-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.explore-form-actions.is-primary {
  align-items: stretch;
}

.explore-form-actions.is-primary .marketing-button,
.explore-form-actions.is-primary .ghost-button,
.explore-planner-actions .ghost-button {
  min-height: 3.15rem;
}

.explore-preferences-body {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.9rem;
}

.explore-planner-actions {
  padding: 0 0.9rem 0.9rem;
  justify-content: flex-start;
}

.location-inline-button {
  min-height: 3.2rem;
  padding-inline: 1rem;
}

.location-status {
  min-height: 1.3rem;
  margin: 0;
}

.explore-form label,
.stack-form label {
  display: grid;
  gap: 0.45rem;
}

.explore-form .home-combobox {
  width: 100%;
}

.marketing-button.is-premium {
  background: linear-gradient(135deg, #c58d38, #dfaa63);
  box-shadow: 0 12px 28px rgba(197, 141, 56, 0.22);
}

.marketing-button.is-premium:hover {
  background: linear-gradient(135deg, #a46d21, #c58d38);
  color: #ffffff;
}

.explore-result-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(10, 34, 52, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.explore-result-head,
.explore-result-score,
.explore-result-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.explore-result-grid {
  grid-template-columns: 1fr;
}

.explore-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.explore-result-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.explore-result-summary {
  margin: 0;
  color: var(--muted);
  min-height: 2.5rem;
}

.explore-result-actions {
  justify-content: space-between;
  align-items: center;
}

.explore-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-metric-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 34, 52, 0.06);
}

.explore-metric-card span {
  color: rgba(10, 34, 52, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explore-metric-card strong {
  color: var(--text);
}

.explore-result-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 34, 52, 0.58);
}

.explore-chip-row {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
}

.explore-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.explore-compare-table {
  display: grid;
  gap: 0.45rem;
  overflow-x: auto;
}

.explore-compare-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.2fr) repeat(6, minmax(0, 0.8fr));
  gap: 0.75rem;
  align-items: center;
  min-width: 48rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 34, 52, 0.06);
}

.explore-compare-row-head {
  background: transparent;
  border-color: transparent;
  padding: 0 0.2rem 0.4rem;
}

.explore-compare-row-head span {
  color: rgba(10, 34, 52, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crowd-feed-card,
.crowd-feed-head,
.crowd-participants,
.crowd-action-grid {
  display: grid;
  gap: 0.9rem;
}

.crowd-feed-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.crowd-participants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.crowd-action-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.crowd-report-box {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(10, 34, 52, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.crowd-report-box summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-strong);
}

.crowd-report-box .stack-form {
  margin-top: 0.85rem;
}

@media (max-width: 960px) {
  .explore-hero,
  .explore-result-grid,
  .explore-form-grid,
  .explore-preferences-grid,
  .explore-metric-grid {
    grid-template-columns: 1fr;
  }

  .crowd-feed-head {
    grid-template-columns: 1fr;
  }

  .explore-form-actions {
    display: grid;
  }

  .location-inline-button {
    width: 100%;
    justify-content: center;
  }
}

.text-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.field-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 8.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 34, 41, 0.06);
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 0.86rem;
}

.auth-shell {
  display: grid;
  align-items: center;
  min-height: auto;
  padding: 2rem 0;
}

.auth-card-rich {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 1rem;
  padding: 1.15rem;
}

.auth-card-main {
  display: grid;
  gap: 0.85rem;
  padding: 0.55rem;
}

.auth-support-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(10, 129, 149, 0.12);
  background:
    radial-gradient(circle at top right, rgba(10, 129, 149, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(240, 249, 250, 0.96), rgba(247, 251, 251, 0.92));
}

.auth-support-kicker {
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.auth-support-card strong {
  font-size: 1.2rem;
}

.auth-support-card p,
.auth-field-help {
  margin: 0;
}

.auth-support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-password-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nearby-panel-head {
  align-items: start;
}

.nearby-panel-note {
  margin: 0.35rem 0 0;
  max-width: 20rem;
}

.nearby-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
}

.nearby-card-head,
.nearby-card-meta,
.nearby-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.nearby-copy {
  display: grid;
  gap: 0.2rem;
}

.nearby-score {
  font-family: var(--data-font);
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

.nearby-card-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.spot-analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.spot-analysis-more {
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
}

.spot-analysis-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--data-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.76);
}

.spot-analysis-more summary::-webkit-details-marker {
  display: none;
}

.spot-analysis-more summary small {
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}

.spot-analysis-more[open] summary {
  border-bottom: 1px solid rgba(8, 34, 41, 0.08);
}

.spot-analysis-more .spot-map-panel,
.spot-analysis-more .graph-grid,
.spot-analysis-more .live-forecast-panel {
  margin: 0;
}

.spot-analysis-more .graph-grid {
  padding: 1.25rem;
}

.spot-analysis-more .live-forecast-panel {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.favorite-card,
.alert-card {
  padding: 1.15rem;
}

.favorite-card-metrics {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.favorite-card-metrics div {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 34, 41, 0.06);
}

.favorite-card-metrics span {
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.favorite-card-actions,
.alert-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.alert-config-details {
  margin-top: 0.5rem;
}

.alert-config-toggle {
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  list-style: none;
}

.alert-config-toggle::-webkit-details-marker {
  display: none;
}

.alert-config-form {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 0 0.2rem;
}

.alert-config-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.alert-config-field select,
.alert-config-field input[type="time"] {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text);
}

.alert-config-toggle-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.alert-config-toggle-field input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
}

.spot-analysis-more-intro {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.advanced-subsection-head {
  margin: 1.2rem 0 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(8, 34, 41, 0.08);
}

.advanced-subsection-head .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong, #0ea5e9);
}

.advanced-subsection-head h3 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.05rem;
}

.advanced-subsection-head p.muted {
  margin: 0;
  font-size: 0.88rem;
}

/* Generic form scaffolding used by request-spot and admin-spot-requests pages.
   Without these, the templates render as a flat stack of unstyled inputs. */
.form-stack {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-strong, #f1f5f9);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.6rem;
}

.form-stack input[type="text"],
.form-stack input[type="email"],
.form-stack input[type="number"],
.form-stack textarea,
.form-stack select,
.form-inline input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-strong, #f1f5f9);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-stack textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.form-stack select {
  appearance: none;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-inline {
    align-items: stretch;
  }
  .form-inline > input[type="text"] {
    flex: 1 1 100%;
  }
}

/* Admin spot-request list */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.filter-chip {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-chip:hover {
  color: var(--text-strong, #f1f5f9);
}

.filter-chip.is-active {
  background: var(--accent, #38bdf8);
  border-color: transparent;
  color: #0f172a;
}

.request-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.request-item {
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  gap: 0.45rem;
}

.request-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.request-item-head strong {
  font-size: 1.05rem;
}

.request-status {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-status-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
}

.request-status-approved {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.request-status-rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.request-item p.small {
  font-size: 0.78rem;
}

.premium-lock-panel {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.premium-lock-panel.compact {
  padding: 1.1rem;
}

.alerts-layout,
.crowd-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
}

.crowd-feed-panel,
.crowd-compose-panel,
.explore-results-panel {
  align-content: start;
}

.crowd-compose-panel {
  gap: 1rem;
}

.crowd-layout .filter-grid.compact {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
}

.spots-hero {
  display: grid;
  gap: 1rem;
}

.spots-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-grid-spots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spot-tile-link {
  position: relative;
  gap: 0.85rem;
  min-height: 100%;
}

.tile-cta-inline {
  color: var(--accent-strong);
  font-weight: 600;
}

.tile-fav-btn {
  width: 2.2rem;
  min-width: 2.2rem;
  max-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  max-height: 2.2rem;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  border: none;
  background: #ffffff;
  color: rgba(16, 38, 51, 0.32);
  box-shadow: 0 1px 4px rgba(16, 38, 51, 0.10), 0 2px 8px rgba(16, 38, 51, 0.07);
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

.tile-fav-btn:hover {
  background: rgba(219, 234, 254, 0.9);
  color: rgba(16, 38, 51, 0.48);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
  transform: scale(1.1);
}

.tile-fav-btn.is-active {
  background: rgba(147, 197, 253, 0.5);
  color: #1e3a8a;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}

/* Override .inline-form button { min-height: 2.8rem } — min-height beats max-height in CSS */
.inline-form .tile-fav-btn,
.tile-fav-topline-form .tile-fav-btn {
  min-height: 2.2rem;
  align-self: center;
}

.tile-fav-topline-form {
  margin-left: auto;
}

.explore-result-head-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.favorites-grid,
.spots-grid-refined {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.explore-overview {
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.78fr);
}

.explore-results-panel {
  display: grid;
  gap: 1rem;
}

.explore-result-card {
  gap: 0.85rem;
}

.explore-result-rankline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.explore-result-rankline > div {
  display: grid;
  gap: 0.2rem;
}

.explore-result-score {
  display: grid;
  justify-items: end;
}

.explore-result-score span {
  font-family: var(--data-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.explore-result-summary {
  display: grid;
  gap: 0.35rem;
}

.explore-side-panel {
  position: sticky;
  top: 5.8rem;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.explore-plan-split {
  display: grid;
  gap: 0.8rem;
}

.explore-plan-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(8, 34, 41, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.explore-plan-card.is-accent {
  background:
    radial-gradient(circle at top right, rgba(223, 170, 99, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

.landing-premium-side {
  display: grid;
  gap: 0.9rem;
}

.landing-premium-compare-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(8, 34, 41, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.landing-premium-compare-card.is-accent {
  background:
    radial-gradient(circle at top right, rgba(223, 170, 99, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
  .auth-card-rich,
  .auth-password-grid,
  .alerts-layout,
  .crowd-layout,
  .explore-overview {
    grid-template-columns: 1fr;
  }

  .crowd-layout .filter-grid.compact,
  .filter-grid-spots,
  .favorite-card-metrics {
    grid-template-columns: 1fr;
  }

  .explore-side-panel {
    position: static;
  }
}

:root {
  --muted: #445b64;
}

.page-shell {
  padding-top: 1.35rem;
}

.text-link {
  font-weight: 600;
}

.app-page-header,
.account-hero,
.spots-hero,
.explore-hero {
  gap: 0.75rem;
}

.app-page-header,
.account-hero,
.spots-hero {
  padding: 1.1rem 1.2rem;
}

.app-page-header h1,
.account-hero h1,
.spots-hero h1,
.explore-hero h1 {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
}

.app-page-header .lead,
.account-hero .lead,
.spots-hero .muted,
.explore-hero .lead {
  max-width: 62ch;
  margin: 0;
}

.auth-shell {
  min-height: calc(100vh - 8rem);
  padding: 1rem 0 1.5rem;
}

.auth-card-rich {
  gap: 0.85rem;
  padding: 0.9rem;
}

.auth-card-main {
  gap: 0.75rem;
  padding: 0.35rem;
}

.auth-support-card {
  gap: 0.7rem;
  padding: 1rem 1.05rem;
}

.password-field input {
  padding-right: 6.2rem;
}

.password-toggle {
  right: 0.35rem;
  min-height: 1.9rem;
  padding: 0.28rem 0.62rem;
  background: rgba(8, 34, 41, 0.08);
  font-size: 0.8rem;
}

.dashboard-hero {
  gap: 1rem;
  padding: 1.2rem;
}

.dashboard-hero.is-spot-open {
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
}

.home-hero-summary {
  gap: 0.45rem;
  padding: 0.9rem 1rem;
}

.dashboard-summary-actions,
.dashboard-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-search-panel {
  width: 100%;
  max-width: none;
  gap: 0.6rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(8, 34, 41, 0.08);
}

.dashboard-hero.is-spot-open .dashboard-search-panel {
  padding-top: 0.8rem;
}

.nearby-panel {
  gap: 0.85rem;
}

.nearby-panel-head {
  gap: 0.65rem;
}

.nearby-panel-note {
  margin-top: 0.2rem;
  max-width: none;
}

.nearby-card {
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.nearby-card-head,
.nearby-card-meta,
.nearby-card-link {
  gap: 0.65rem;
}

.nearby-distance {
  font-size: 0.9rem;
}

.nearby-grade-image {
  width: 3.6rem;
}

.explore-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.explore-hero-copy,
.explore-form,
.explore-results-panel {
  gap: 0.8rem;
}

.explore-form-grid,
.explore-preferences-grid {
  gap: 0.75rem;
}

.explore-preferences,
.explore-compare-block {
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
}

.explore-result-card {
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
}

.explore-result-grid {
  gap: 0.55rem 1rem;
}

.explore-metric-grid {
  gap: 0.55rem;
}

.explore-metric-card {
  padding: 0.7rem 0.8rem;
}

.explore-result-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.explore-side-panel {
  top: 5.2rem;
  gap: 0.85rem;
}

.explore-plan-card {
  padding: 0.85rem 0.95rem;
}

.explore-side-points {
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.explore-side-points li {
  padding-left: 1.1rem;
}

.explore-side-points li::before {
  top: 0.45rem;
}

.explore-compare-row {
  padding: 0.7rem 0.85rem;
}

.spots-hero {
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
}

.spots-context-copy {
  display: grid;
  gap: 0.22rem;
}

.spots-context-copy strong {
  font-family: var(--data-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.spots-context-copy span {
  color: var(--muted);
}

.filter-grid-spots {
  gap: 0.75rem;
}

.spots-grid-refined {
  align-items: start;
}

.spot-tile-link {
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.spot-analysis {
  padding: 1.4rem;
}

.spot-analysis h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.spot-analysis-copy {
  gap: 0.7rem;
}

.spot-analysis-actions {
  gap: 0.6rem;
}

.spot-analysis-score-panel {
  min-height: auto;
  padding: 1.05rem 1.15rem;
}

.spot-analysis-score-value {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.analysis-overview-grid {
  gap: 0.8rem;
}

.analysis-overview-card {
  min-height: 0;
  padding: 0.95rem 1rem;
}

.spot-analysis-more summary {
  padding: 0.85rem 1rem;
}

.spot-section {
  padding: 1.1rem 1.2rem;
}

.spot-section h2 {
  margin-bottom: 0.7rem;
}

.spot-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.spot-alert-actions .inline-form {
  display: inline-flex;
}

.crowd-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.crowd-feed-panel,
.crowd-compose-panel {
  padding: 1.15rem 1.2rem;
}

.crowd-feed-card {
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
}

.crowd-feed-summary {
  line-height: 1.45;
}

.crowd-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.crowd-report-box {
  width: 100%;
}

.crowd-compose-panel .stack-form {
  gap: 0.75rem;
}

.crowd-safety-note {
  margin: 0;
}

.crowd-layout .filter-grid.compact {
  gap: 0.75rem;
}

.page-section-header {
  margin-bottom: 0.9rem;
  align-items: end;
}

.favorite-card,
.alert-card {
  gap: 0.75rem;
  padding: 1rem;
}

.favorite-card-metrics {
  gap: 0.6rem;
}

.favorite-card-metrics div {
  padding: 0.7rem 0.75rem;
}

.favorite-card-actions {
  gap: 0.65rem;
}

.alert-card-rule {
  margin: 0;
}

.alert-history-card,
.billing-history-card {
  gap: 0.35rem;
}

.account-stats-grid {
  margin-top: 0.5rem;
}

.account-privacy-list {
  margin-top: 0.75rem;
}

.account-privacy-list li {
  padding-left: 1.1rem;
}

.billing-layout {
  align-items: start;
}

.billing-summary-grid {
  margin: 0.85rem 0 1rem;
}

.billing-help-panel {
  gap: 0.75rem;
}

.premium-master-hero {
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}

.premium-pricing-zone {
  margin-top: -0.35rem;
}

.premium-plan-card {
  max-width: 28rem;
  margin: 0 auto;
}

.premium-master-section {
  gap: 0.85rem;
}

.premium-value-card,
.premium-testimonial-card {
  min-height: 0;
}

.premium-tool-card {
  min-height: 13rem;
}

.premium-proof-band {
  gap: 0.85rem;
}

.premium-proof-copy {
  padding: 1.15rem 1.25rem;
}

.premium-faq-item {
  padding: 0.85rem 0.95rem;
}

@media (max-width: 960px) {
  .dashboard-summary-actions,
  .dashboard-search-actions,
  .premium-actions {
    width: 100%;
  }

  .dashboard-search-actions .marketing-button,
  .dashboard-search-actions .ghost-button,
  .dashboard-summary-actions .marketing-button,
  .dashboard-summary-actions .ghost-button,
  .favorite-card-actions .ghost-button,
  .premium-actions .marketing-button,
  .premium-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .explore-hero,
  .crowd-layout,
  .billing-layout {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 1rem;
  }
}

.page-shell {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.section-header.compact {
  align-items: flex-start;
  gap: 0.6rem 0.9rem;
}

.section-header.compact p,
.section-header.compact .muted {
  margin: 0.15rem 0 0;
}

.app-page-header,
.account-hero,
.spots-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1rem;
}

.app-page-header > div:first-child,
.account-hero > div:first-child,
.spots-hero > div:first-child {
  display: grid;
  gap: 0.3rem;
}

.app-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.app-page-header .lead,
.account-hero .lead,
.spots-hero .muted {
  max-width: 52ch;
}

.page-section-header.compact {
  margin-bottom: 0.65rem;
}

.dashboard-hero {
  padding: 1rem 1.05rem;
}

.dashboard-selected-summary {
  gap: 0.6rem;
}

.dashboard-spot-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-spot-summary-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(8, 34, 41, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-spot-summary-card span,
.dashboard-spot-summary-card small,
.dashboard-summary-note {
  color: var(--muted);
}

.dashboard-spot-summary-card span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-spot-summary-card strong {
  font-family: var(--data-font);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.dashboard-summary-note {
  margin: 0;
  font-size: 0.92rem;
}

.dashboard-search-panel {
  padding-top: 0.55rem;
}

.spot-page {
  display: grid;
  gap: 1rem;
}

.detail-hero.spot-analysis {
  margin-bottom: 0;
}

.spot-analysis {
  padding: 1.1rem 1.15rem;
  gap: 0.95rem;
}

.spot-analysis h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

.spot-analysis-copy {
  gap: 0.55rem;
}

.spot-analysis-location,
.spot-analysis-sport-lead {
  margin: 0;
}

.spot-analysis-actions {
  align-items: center;
}

.spot-analysis-actions .marketing-button,
.spot-analysis-actions .ghost-button,
.spot-analysis-actions .secondary-button {
  min-height: 2.55rem;
  padding: 0.62rem 0.9rem;
}

.spot-analysis-more {
  margin-top: -0.15rem;
}

.spot-analysis-more summary {
  padding: 0.72rem 0.85rem;
}

.spot-analysis-more summary span {
  font-size: 0.98rem;
}

.spot-analysis-more summary small {
  font-size: 0.82rem;
}

.spot-secondary-grid {
  gap: 1rem;
  margin-bottom: 0;
}

.spot-section {
  padding: 1rem 1.05rem;
}

.spot-section .section-header {
  align-items: flex-start;
}

.crowd-feed-card-compact {
  gap: 0.55rem;
}

.explore-hero {
  padding: 0.95rem 1rem;
  gap: 0.85rem;
}

.explore-form,
.explore-results-panel,
.explore-side-panel {
  gap: 0.75rem;
}

.explore-preferences {
  padding: 0.75rem 0.85rem;
}

.explore-result-card {
  gap: 0.55rem;
  padding: 0.78rem 0.82rem;
}

.explore-result-head,
.explore-result-grid,
.explore-result-actions {
  gap: 0.5rem 0.8rem;
}

.explore-result-kicker,
.explore-result-caption,
.alert-card-context,
.favorite-card-summary {
  margin: 0;
}

.explore-metric-card {
  padding: 0.62rem 0.72rem;
}

.explore-compare-row {
  padding: 0.62rem 0.75rem;
}

.spots-hero {
  padding: 0.95rem 1rem;
  gap: 0.7rem;
}

.spots-context-strip,
.spots-context-copy {
  gap: 0.4rem;
}

.filter-grid-spots {
  gap: 0.65rem;
}

.spots-grid-refined {
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: start;
  gap: 0.85rem;
}

.spot-tile-link {
  min-height: 0;
  gap: 0.65rem;
  padding: 0.88rem 0.92rem;
}

.spot-tile-link h2 {
  font-size: 1.28rem;
}

.crowd-layout {
  align-items: start;
  gap: 0.95rem;
}

.crowd-feed-panel,
.crowd-compose-panel {
  padding: 0.95rem 1rem;
}

.crowd-panel-header {
  margin-bottom: 0.7rem;
}

.crowd-session-list {
  gap: 0.75rem;
}

.crowd-session-card {
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
}

.crowd-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crowd-action-grid {
  align-items: center;
  gap: 0.55rem;
}

.crowd-overflow-menu {
  position: relative;
}

.crowd-overflow-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
}

.crowd-overflow-menu summary::-webkit-details-marker {
  display: none;
}

.crowd-overflow-menu-body {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.crowd-report-inline {
  gap: 0.5rem;
}

.button-link {
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  padding: 0;
}

.button-link:hover {
  background: transparent;
}

.favorite-card,
.alert-card {
  gap: 0.68rem;
  padding: 0.9rem;
}

.favorite-card-head,
.alert-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.favorite-card-head h2 {
  font-size: 1.28rem;
}

.favorite-card-metrics {
  gap: 0.5rem;
}

.favorite-card-metrics div {
  padding: 0.62rem 0.68rem;
}

.favorite-card-actions {
  align-items: center;
  gap: 0.55rem;
}

.alert-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.alert-card-context {
  color: var(--muted);
  line-height: 1.4;
}

.alerts-main-panel,
.alerts-history-panel {
  padding: 0.95rem 1rem;
}

.alert-history-empty,
.premium-lock-panel.compact {
  padding: 0.85rem 0.9rem;
}

.account-main-grid,
.billing-layout {
  gap: 1rem;
}

.account-shortcuts {
  gap: 0.55rem;
}

.account-privacy-panel {
  padding: 0.95rem 1rem;
}

.account-privacy-note,
.billing-renewal-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.premium-master-hero {
  padding: 1rem 1.05rem;
  gap: 0.95rem;
  align-items: stretch;
}

.premium-master-copy,
.premium-master-visual,
.premium-master-section {
  gap: 0.75rem;
}

.premium-master-visual {
  display: grid;
  align-content: start;
}

.premium-plan-card {
  max-width: none;
  width: 100%;
  height: 100%;
}

.premium-utility-section {
  gap: 0.75rem;
}

.premium-value-grid-compact {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.premium-value-grid-compact .premium-value-card {
  min-height: 0;
  padding: 0.95rem 1rem;
}

.premium-compare-section,
.premium-faq-section {
  padding: 1rem 1.05rem;
}

.auth-shell {
  padding: 0.7rem 0 1rem;
}

.auth-card-rich {
  gap: 0.75rem;
  padding: 0.82rem;
}

.auth-card-main {
  gap: 0.7rem;
  padding: 0.25rem;
}

.auth-support-card {
  gap: 0.6rem;
  padding: 0.92rem 0.96rem;
}

.password-field input {
  padding-right: 5.4rem;
}

.password-toggle {
  border: 1px solid rgba(8, 34, 41, 0.1);
  box-shadow: none;
}

@media (max-width: 960px) {
  .app-page-header,
  .account-hero,
  .spots-hero,
  .favorite-card-head,
  .alert-card-head {
    flex-direction: column;
  }

  .dashboard-spot-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spots-grid-refined {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-spot-summary-grid,
  .explore-metric-grid {
    grid-template-columns: 1fr;
  }

  .crowd-action-grid,
  .favorite-card-actions,
  .app-page-header-actions {
    width: 100%;
  }

  .crowd-action-grid > *,
  .favorite-card-actions > *,
  .app-page-header-actions > * {
    width: 100%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  padding-bottom: 1.2rem;
}

.page-shell > :last-child {
  margin-bottom: 0;
}

.grid,
.spot-grid,
.panel,
.detail-hero,
.premium-master-section,
.premium-compare-section {
  margin-bottom: 1rem;
}

.app-page-header,
.account-hero,
.spots-hero,
.explore-hero {
  padding: 0.95rem 1.05rem;
  gap: 0.65rem;
}

.app-page-header h1,
.account-hero h1,
.spots-hero h1,
.explore-hero h1 {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
}

.app-page-header .lead,
.account-hero .lead,
.spots-hero .muted,
.explore-hero .lead {
  max-width: 58ch;
  line-height: 1.45;
}

.section-header.compact {
  margin-bottom: 0.65rem;
}

.auth-shell {
  min-height: auto;
  place-items: start center;
  padding: 0.75rem 0 1rem;
}

.auth-card-rich {
  gap: 0.7rem;
  padding: 0.8rem;
}

.auth-card-main {
  gap: 0.65rem;
  padding: 0.25rem;
}

.auth-support-card {
  gap: 0.55rem;
  padding: 0.9rem 0.95rem;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 5.5rem;
}

.password-toggle {
  min-height: 1.8rem;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
}

.dashboard-top {
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-hero,
.nearby-panel,
.crowd-feed-panel,
.crowd-compose-panel,
.alerts-main-panel,
.alerts-history-panel,
.billing-help-panel,
.premium-lock-panel,
.spot-section {
  padding: 1rem 1.05rem;
}

.home-hero-summary,
.dashboard-search-panel {
  gap: 0.55rem;
}

.dashboard-summary-note {
  margin: 0;
}

.nearby-panel-head {
  align-items: start;
}

.nearby-list {
  gap: 0.75rem;
}

.nearby-card {
  padding: 0.8rem 0.9rem;
}

.detail-hero.spot-analysis {
  padding: 1.15rem;
  gap: 0.95rem;
}

.spot-analysis h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.spot-analysis-actions {
  gap: 0.5rem;
}

.spot-analysis-actions .marketing-button,
.spot-analysis-actions .ghost-button,
.spot-analysis-actions .secondary-button {
  min-height: 2.65rem;
}

.spot-analysis-more {
  margin-top: 0;
}

.spot-analysis-more summary {
  padding: 0.72rem 0.9rem;
}

.spot-analysis-more summary small {
  font-size: 0.82rem;
}

.explore-hero {
  gap: 0.85rem;
  padding: 1rem 1.05rem;
}

.explore-form-grid,
.explore-preferences-grid {
  gap: 0.65rem;
}

.explore-preferences {
  padding: 0.75rem 0.85rem;
}

.explore-results-list {
  gap: 0.75rem;
}

.explore-result-card {
  padding: 0.78rem 0.85rem;
}

.explore-compare-block {
  padding: 0.75rem 0.85rem;
}

.explore-compare-row {
  padding: 0.62rem 0.78rem;
}

.spots-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
}

.spots-hero-switcher {
  justify-self: end;
  min-width: 0;
}

.spots-context-strip {
  margin: 0.15rem 0 0;
  gap: 0.45rem;
}

.spots-filter-form {
  align-items: end;
  gap: 0.7rem;
}

.spots-filter-field {
  min-width: 0;
}

.spots-filter-field span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.spots-filter-form input {
  min-width: 0;
}

.spots-grid-refined {
  gap: 0.85rem;
}

.spot-tile-link {
  padding: 0.9rem 0.95rem;
}

.crowd-layout,
.alerts-layout,
.account-main-grid,
.billing-layout {
  gap: 0.95rem;
}

.crowd-panel-header {
  align-items: start;
}

.crowd-feed-card {
  padding: 0.82rem 0.88rem;
}

.crowd-action-grid {
  align-items: center;
}

.crowd-overflow-menu {
  margin-left: auto;
}

.crowd-overflow-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(8, 34, 41, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  box-shadow: none;
  cursor: pointer;
}

.crowd-overflow-menu-body {
  min-width: 15rem;
  gap: 0.55rem;
}

.favorites-toolbar {
  margin-top: -0.2rem;
}

.favorites-toolbar .muted {
  margin: 0.35rem 0 0;
}

.favorite-card,
.alert-card {
  padding: 0.9rem 0.95rem;
}

.favorite-card-metrics div,
.billing-summary-grid div {
  min-height: 0;
}

.alert-history-empty {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
}

.account-stats-grid strong {
  color: var(--text);
  font-size: 1.85rem;
}

.account-privacy-panel {
  padding: 1rem 1.05rem;
}

.billing-help-panel {
  padding: 0.95rem 1rem;
}

.premium-master-hero,
.premium-master-section,
.premium-compare-section,
.premium-faq-section {
  padding: 1rem 1.05rem;
  gap: 0.85rem;
}

.premium-value-grid {
  gap: 0.85rem;
}

.premium-plan-card {
  padding: 1rem 1.05rem;
}

@media (max-width: 960px) {
  .spots-hero-top {
    grid-template-columns: 1fr;
  }

  .spots-hero-switcher {
    justify-self: start;
  }

  .spots-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .spots-filter-form {
    grid-template-columns: 1fr;
  }

  .spots-context-strip,
  .app-page-header-actions,
  .dashboard-summary-actions,
  .dashboard-search-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Decision-first compact pass */

:is(.dashboard-hero, .explore-hero, .spots-hero, .account-hero, .crowd-compose-panel, .spot-analysis) {
  position: relative;
  overflow: hidden;
}

body[data-sport="surf"] :is(.dashboard-hero, .explore-hero, .spots-hero, .account-hero, .crowd-compose-panel, .spot-analysis) {
  background:
    radial-gradient(circle at 88% 14%, rgba(130, 229, 241, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 250, 0.92));
}

body[data-sport="kitesurf"] :is(.dashboard-hero, .explore-hero, .spots-hero, .account-hero, .crowd-compose-panel, .spot-analysis) {
  background:
    radial-gradient(circle at 88% 14%, rgba(244, 156, 69, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 250, 0.92));
}

body[data-sport="windsurf"] :is(.dashboard-hero, .explore-hero, .spots-hero, .account-hero, .crowd-compose-panel, .spot-analysis) {
  background:
    radial-gradient(circle at 88% 14%, rgba(183, 224, 92, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 247, 0.92));
}

body[data-sport="vela"] :is(.dashboard-hero, .explore-hero, .spots-hero, .account-hero, .crowd-compose-panel, .spot-analysis) {
  background:
    radial-gradient(circle at 88% 14%, rgba(223, 170, 99, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 249, 0.92));
}

.dashboard-top {
  gap: 0.85rem;
  align-items: start;
}

.dashboard-hero,
.nearby-panel,
.explore-hero,
.spots-hero,
.account-hero,
.spot-analysis,
.crowd-feed-panel,
.crowd-compose-panel,
.alerts-main-panel,
.alerts-history-panel,
.billing-help-panel {
  box-shadow: 0 20px 48px rgba(8, 34, 41, 0.08);
}

.dashboard-hero {
  gap: 0.75rem;
}

.home-hero-summary,
.dashboard-selected-summary,
.hero-copy,
.dashboard-search-panel {
  gap: 0.45rem;
}

.dashboard-summary-note {
  max-width: 54ch;
}

.home-hero-summary {
  padding: 0.95rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 124, 130, 0.12);
  background:
    radial-gradient(circle at 88% 12%, rgba(130, 229, 241, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 250, 0.92));
  box-shadow: 0 20px 42px rgba(8, 34, 41, 0.05);
}

.dashboard-selected-summary {
  border-color: rgba(15, 124, 130, 0.16);
}

.dashboard-summary-actions {
  align-items: stretch;
}

.dashboard-summary-actions .marketing-button,
.dashboard-summary-actions .ghost-button,
.dashboard-search-actions .marketing-button,
.dashboard-search-actions .ghost-button,
.favorite-card-actions .marketing-button,
.favorite-card-actions .ghost-button,
.spot-analysis-actions .marketing-button,
.spot-analysis-actions .ghost-button,
.spot-analysis-actions .secondary-button,
.crowd-action-grid .marketing-button,
.crowd-action-grid .ghost-button {
  min-height: 2.55rem;
  padding: 0.62rem 0.88rem;
}

.text-link,
.tile-cta-inline {
  font-weight: 700;
}

.dashboard-summary-explore,
.nearby-panel-explore {
  min-height: 2.55rem;
  padding: 0.62rem 0.96rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.nearby-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
  margin-bottom: 0.2rem;
}

.nearby-panel-intro {
  min-width: 0;
}

.nearby-panel-intro h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.nearby-panel-controls {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.65rem;
  width: min(100%, 17rem);
}

.nearby-panel-note {
  margin-top: 0.3rem;
  max-width: 32ch;
  line-height: 1.45;
}

.nearby-filter-form {
  width: 100%;
}

.nearby-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 0.95rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 24px;
  border-color: rgba(8, 34, 41, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 251, 0.88));
}

.nearby-card:hover,
.spot-tile-link:hover,
.favorite-card:hover,
.alert-card:hover,
.crowd-session-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(8, 34, 41, 0.08);
  border-color: rgba(15, 124, 130, 0.18);
}

.nearby-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
}

.nearby-copy {
  gap: 0.16rem;
}

.nearby-copy strong {
  font-size: 1.02rem;
  line-height: 1.05;
  color: #0c2430;
}

.nearby-copy span {
  color: var(--muted);
}

.nearby-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nearby-meta {
  justify-items: end;
  gap: 0;
}

.nearby-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nearby-distance {
  min-height: 3rem;
  padding: 0.5rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 130, 0.1);
  background: rgba(232, 245, 248, 0.92);
  font-family: var(--data-font);
  font-size: 0.94rem;
  line-height: 1;
}

.nearby-grade-image {
  width: 4rem;
}

/* Keep the dashboard spot autocomplete above adjacent panels and sections. */
.dashboard-top {
  position: relative;
  isolation: isolate;
}

.dashboard-hero {
  overflow: visible;
  z-index: 20;
  isolation: isolate;
}

.dashboard-search-panel {
  position: relative;
  z-index: 12;
  overflow: visible;
}

.dashboard-search-panel .home-combobox {
  z-index: 40;
}

.dashboard-search-panel .home-combobox:focus-within,
.dashboard-search-panel .home-combobox.open {
  z-index: 80;
}

.dashboard-search-panel .combobox-menu {
  z-index: 120;
}

.nearby-panel {
  position: relative;
  z-index: 1;
  gap: 1rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(130, 229, 241, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 250, 0.92));
}

/* Keep the spots catalog header stacked so the filter grid spans the full panel width. */
.spots-hero.app-page-header {
  display: grid;
  justify-content: stretch;
  align-items: stretch;
  gap: 0.8rem;
}

.spots-hero-top {
  width: 100%;
  align-items: start;
}

.spots-hero-switcher {
  align-self: start;
}

.spots-context-strip {
  display: flex;
  flex-wrap: wrap;
}

.spots-filter-form {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.spots-filter-form > label,
.spots-filter-form > button {
  min-width: 0;
}

@media (max-width: 1200px) {
  .spots-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .spots-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .spots-hero-top,
  .spots-filter-form {
    grid-template-columns: 1fr;
  }

  .nearby-card {
    grid-template-columns: 1fr;
  }

  .nearby-card-head,
  .nearby-card-link {
    grid-column: 1;
  }

  .nearby-card-meta,
  .nearby-meta {
    justify-content: flex-start;
    justify-items: start;
  }
}

.nearby-card-link {
  grid-column: 1 / -1;
  padding-top: 0.1rem;
  justify-content: space-between;
  font-weight: 700;
  color: var(--accent-strong);
}

.nearby-card-link span:first-child {
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .nearby-panel-head {
    grid-template-columns: 1fr;
  }

  .nearby-panel-intro h2 {
    max-width: none;
  }

  .nearby-panel-controls {
    width: 100%;
    justify-items: stretch;
  }

  .nearby-panel-explore {
    width: 100%;
  }
}

.explore-hero {
  gap: 0.85rem;
}

.explore-form {
  gap: 0.75rem;
}

.explore-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.explore-preferences {
  padding: 0;
  border: 1px solid rgba(8, 34, 41, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.explore-preferences-toggle {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.explore-preferences-toggle::-webkit-details-marker {
  display: none;
}

.explore-preferences[open] .explore-preferences-toggle {
  border-bottom: 1px solid rgba(8, 34, 41, 0.08);
}

.explore-preferences-grid {
  padding: 0.85rem 0.9rem 0.65rem;
}

.explore-checkbox {
  padding: 0 0.9rem 0.85rem;
}

.explore-results-list,
.feed-list,
.nearby-list {
  gap: 0.7rem;
}

.explore-result-card,
.spot-tile-link,
.favorite-card,
.alert-card,
.crowd-session-card {
  border: 1px solid rgba(8, 34, 41, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.explore-result-card {
  gap: 0.5rem;
}

.explore-result-actions {
  justify-content: flex-end;
}

.spots-hero {
  gap: 0.8rem;
}

.spots-context-strip {
  gap: 0.45rem;
}

.spots-filter-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.spots-filter-form .marketing-button {
  min-height: 3rem;
}

.spot-tile-link {
  gap: 0.58rem;
}

.favorite-card-metrics,
.billing-summary-grid,
.account-stats-grid {
  gap: 0.55rem;
}

.favorite-card-metrics div,
.billing-summary-grid div {
  padding: 0.62rem 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.spot-analysis {
  gap: 0.85rem;
}

.spot-analysis-score-panel {
  gap: 0.55rem;
}

.spot-analysis-score-note {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Wind-data-missing warning — shown for kite/wing/windsurf/vela when  *
 * the weather API returned no wind. Score is capped at 65 (Regular).  */
.spot-analysis-score-warning {
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.75);
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.4;
}

.spot-analysis-more summary {
  border: 1px solid rgba(15, 124, 130, 0.14);
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.08), rgba(255, 255, 255, 0.9));
}

.spot-analysis-more[open] summary {
  margin-bottom: 0.8rem;
}

.spot-alert-actions,
.favorite-card-actions,
.premium-actions,
.dashboard-summary-actions,
.dashboard-search-actions,
.app-page-header-actions {
  gap: 0.55rem;
}

.crowd-layout {
  align-items: start;
}

.crowd-feed-summary,
.favorite-card-summary,
.alert-card-context {
  line-height: 1.45;
}

.crowd-compose-panel {
  position: sticky;
  top: 5.6rem;
}

.crowd-action-grid {
  gap: 0.45rem;
}

.crowd-overflow-menu summary {
  min-height: 2.3rem;
}

.account-main-grid,
.billing-layout,
.alerts-layout {
  align-items: start;
}

.premium-lock-panel,
.premium-lock-panel.compact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 250, 0.9));
}

@media (max-width: 960px) {
  .explore-form-grid,
  .spots-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crowd-compose-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .explore-form-grid,
  .spots-filter-form {
    grid-template-columns: 1fr;
  }

  .explore-form-actions.is-primary {
    display: grid;
  }

  .explore-result-actions {
    justify-content: stretch;
  }
}

/* Global header alignment with home */
body:not(.page-home) .site-header {
  padding: 0.72rem 1.8rem 0.58rem;
  background: linear-gradient(180deg, rgba(252, 254, 254, 0.95), rgba(248, 251, 252, 0.78));
  border-bottom: 1px solid rgba(16, 38, 51, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(120%);
}

body:not(.page-home) .site-header-inner {
  width: min(100%, 1480px);
  gap: 1rem;
}

body:not(.page-home) .brand {
  gap: 0.72rem;
}

body:not(.page-home) .brand-mark {
  width: 4.6rem;
}

body:not(.page-home) .brand-name {
  font-family: var(--data-font);
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #133240;
}

body:not(.page-home) .site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

body:not(.page-home) .site-nav a,
body:not(.page-home) .site-nav .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-family: var(--body-font);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #294654;
}

body:not(.page-home) .site-nav a:hover,
body:not(.page-home) .site-nav .ghost-button:hover {
  background: rgba(16, 38, 51, 0.04);
  color: #173746;
  border-color: transparent;
}

body:not(.page-home) .site-nav .inline-form {
  display: inline-flex;
  flex: 0 0 auto;
}


body:not(.page-home) .page-shell {
  padding-top: 0.35rem;
  padding-right: 1.6rem;
  padding-bottom: 2rem;
  padding-left: 1.6rem;
}

@media (max-width: 1200px) {
  body:not(.page-home) .site-header {
    padding-inline: 1.3rem;
  }

  body:not(.page-home) .brand-name {
    font-size: 2.6rem;
  }

  body:not(.page-home) .page-shell {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 920px) {
  body:not(.page-home) .site-header-inner {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  body:not(.page-home) .brand {
    width: 100%;
  }

  body:not(.page-home) .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  body:not(.page-home) .site-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  body:not(.page-home) .site-header {
    padding: 0.85rem 1rem 0.7rem;
  }

  body:not(.page-home) .page-shell {
    padding: 0.35rem 0.85rem 1.8rem;
  }

  body:not(.page-home) .brand-mark {
    width: 3.8rem;
  }

  body:not(.page-home) .brand-name {
    font-size: 2.2rem;
  }

  body:not(.page-home) .site-nav a,
  body:not(.page-home) .site-nav .ghost-button {
    white-space: nowrap;
  }
}

/* Shared inner-page layout adjustments aligned with the landing page */

.premium-plan-card {
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.premium-market-switch {
  display: grid;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(9, 56, 76, 0.08);
  background: linear-gradient(180deg, rgba(248, 253, 254, 0.96), rgba(236, 247, 249, 0.92));
}

.premium-market-switch-copy {
  display: grid;
  gap: 0.35rem;
}

.premium-market-switch-copy .eyebrow,
.premium-market-switch-copy .muted {
  margin: 0;
}

.premium-market-toggle {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.premium-market-pill {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(9, 56, 76, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.premium-market-pill strong,
.premium-market-pill span,
.premium-market-pill small {
  margin: 0;
}

.premium-market-pill span {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-market-pill small {
  color: var(--muted);
  line-height: 1.45;
}

.premium-market-pill.is-active {
  border-color: rgba(15, 124, 130, 0.25);
  box-shadow: 0 14px 28px rgba(9, 56, 76, 0.07);
  transform: translateY(-1px);
}

.premium-plan-grid {
  display: grid;
  gap: 0.9rem;
}

.premium-plan-grid.is-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-plan-card-top,
.premium-plan-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
}

.premium-plan-card-top {
  position: relative;
  padding-top: 1.05rem;
  padding-bottom: 1.2rem;
  background:
    radial-gradient(circle at 86% 16%, rgba(122, 234, 244, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(5, 28, 41, 0.98), rgba(8, 61, 82, 0.96));
  border-bottom: 1px solid rgba(8, 34, 41, 0.08);
}

.premium-plan-card-top .eyebrow,
.premium-plan-card-top h3 {
  margin: 0;
  color: #ffffff;
}

.premium-plan-card-top h3 {
  max-width: 14ch;
  line-height: 0.96;
}

.premium-plan-card-body {
  gap: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 249, 0.94));
}

.premium-plan-card-body .premium-plan-price {
  align-items: baseline;
  margin: 0;
  padding-top: 0.1rem;
}

.premium-plan-compare-at {
  display: inline-flex;
  width: fit-content;
  margin-top: -0.5rem;
  color: var(--muted);
  text-decoration: line-through;
}

.premium-plan-card-body .premium-bullet-list {
  margin: 0;
}

.premium-plan-card-body .premium-plan-cta {
  width: 100%;
}

.premium-plan-card-body > small {
  display: block;
  line-height: 1.45;
}

.purchase-modal-note small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.premium-master-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 233, 241, 0.24), transparent 26%),
    radial-gradient(circle at 88% 24%, rgba(143, 233, 241, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(252, 255, 255, 0.98), rgba(237, 247, 249, 0.92));
}

.premium-master-copy {
  gap: 1rem;
}

.premium-master-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.premium-master-copy .lead,
.premium-master-sublead {
  max-width: 48ch;
}

.premium-hero-highlights {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-highlight-card {
  display: grid;
  gap: 0.28rem;
  min-height: 0;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(9, 56, 76, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 249, 0.88));
  box-shadow: 0 12px 28px rgba(14, 37, 52, 0.04);
}

.premium-highlight-card strong,
.premium-highlight-card p,
.premium-pricing-head h2,
.premium-pricing-head p,
.premium-conversion-copy h2,
.premium-conversion-copy p {
  margin: 0;
}

.premium-highlight-card p {
  color: var(--muted);
  line-height: 1.48;
}

.premium-account-box {
  max-width: 44rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 56, 76, 0.08);
}

.premium-pricing-zone {
  display: grid;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(9, 56, 76, 0.08);
  background:
    radial-gradient(circle at 86% 14%, rgba(143, 233, 241, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(248, 253, 254, 0.98), rgba(236, 247, 249, 0.93));
}

.premium-pricing-head {
  display: grid;
  gap: 0.35rem;
}

.premium-pricing-head h2 {
  font-size: clamp(1.38rem, 2vw, 1.85rem);
  line-height: 0.98;
}

.premium-pricing-selected {
  margin: -0.05rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.premium-pricing-points,
.premium-conversion-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.premium-pricing-points span,
.premium-conversion-points span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 130, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.premium-market-switch {
  gap: 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.premium-market-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-market-pill {
  min-height: 100%;
}

.premium-market-pill.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(228, 246, 248, 0.94));
  border-color: rgba(15, 124, 130, 0.22);
}

.premium-plan-card-featured {
  border-color: rgba(15, 124, 130, 0.2);
  box-shadow: 0 20px 38px rgba(9, 56, 76, 0.08);
  transform: translateY(-2px);
}

.premium-proof-band {
  align-items: stretch;
  /* background was accidentally overriding the dark gradient from line 5591;
     .premium-proof-copy text is white — removing the light override restores legibility */
}

.premium-proof-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.premium-proof-copy > p {
  margin: 0;
}

.premium-conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(143, 233, 241, 0.2), transparent 24%),
    linear-gradient(120deg, rgba(6, 39, 55, 0.98), rgba(8, 74, 96, 0.96));
}

.premium-conversion-copy {
  display: grid;
  gap: 0.5rem;
}

.premium-conversion-band .eyebrow,
.premium-conversion-band h2,
.premium-conversion-band p,
.premium-conversion-band .ghost-button {
  color: #ffffff;
}

.premium-conversion-band .premium-conversion-points span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.premium-conversion-band .premium-actions {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .premium-master-hero {
    grid-template-columns: 1fr;
  }

  .premium-hero-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .premium-market-toggle,
  .premium-plan-grid.is-duo,
  .premium-hero-highlights,
  .premium-proof-stats {
    grid-template-columns: 1fr;
  }

  .premium-conversion-band {
    grid-template-columns: 1fr;
  }

  .premium-conversion-band .premium-actions {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .premium-master-copy h1 {
    max-width: none;
  }

  .premium-pricing-points,
  .premium-conversion-points {
    gap: 0.45rem;
  }

  .premium-pricing-points span,
  .premium-conversion-points span {
    width: 100%;
    justify-content: center;
  }
}

.explore-form-grid,
.explore-preferences-grid,
.filter-grid-spots,
.spots-filter-form,
.crowd-layout .filter-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}

.explore-form-grid > label,
.explore-preferences-grid > label,
.spots-filter-form > label,
.crowd-layout .filter-grid.compact > label,
.crowd-layout .filter-grid.compact > button {
  min-width: 0;
}

.explore-form-grid input,
.explore-form-grid select,
.explore-preferences-grid input,
.explore-preferences-grid select,
.spots-filter-form input,
.crowd-layout .filter-grid.compact input,
.crowd-layout .filter-grid.compact select {
  width: 100%;
  min-width: 0;
}

.explore-form-grid input[type="date"],
.explore-form-grid input[type="time"] {
  padding-right: 2.8rem;
}

.spots-filter-form .marketing-button,
.crowd-layout .filter-grid.compact button {
  width: 100%;
}

.explore-hero {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.explore-hero-copy {
  align-content: start;
  gap: 0.8rem;
  padding-right: 0.15rem;
}

.explore-hero h1 {
  max-width: 10.5ch;
  font-size: clamp(2.8rem, 4.3vw, 4.7rem);
}

.explore-hero .lead {
  max-width: 36ch;
}

.explore-form {
  align-self: stretch;
  gap: 0.65rem;
}

.explore-search-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 34, 41, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 250, 0.86));
  box-shadow: 0 16px 36px rgba(15, 35, 49, 0.04);
}

.explore-search-card-section {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
}

.explore-search-card-section + .explore-search-card-section {
  border-top: 1px solid rgba(8, 34, 41, 0.08);
}

.explore-location-block {
  gap: 0.45rem;
}

.explore-location-field {
  gap: 0.5rem;
}

.explore-location-field > span {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explore-location-block .home-search-line input {
  min-height: 3.55rem;
  padding-inline: 1.05rem;
  font-size: 1.03rem;
}

.explore-location-block .home-combobox {
  width: 100%;
}

.explore-primary-flow,
.explore-plan-block {
  gap: 0.8rem;
}

.explore-primary-flow {
  grid-template-columns: 1fr;
  padding: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 124, 130, 0.04));
}

.explore-primary-copy {
  gap: 0.28rem;
}

.explore-primary-copy strong,
.explore-plan-block .explore-preferences-head strong {
  font-size: 1.18rem;
  line-height: 1.15;
}

.explore-primary-cta {
  min-width: min(100%, 16.5rem);
}

.explore-primary-flow .explore-form-actions.is-primary {
  justify-content: flex-start;
}

.explore-plan-block .explore-form-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.75rem;
}

.explore-plan-block .ghost-button {
  min-height: 3rem;
}

.explore-preferences {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.explore-preferences-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
}

.explore-preferences-toggle .explore-preferences-head strong {
  font-size: 1rem;
}

.explore-preferences-toggle .explore-preferences-head span {
  font-size: 0.95rem;
}

.explore-preferences-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 1.5rem;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.explore-preferences-close {
  display: none;
}

.explore-preferences[open] .explore-preferences-open {
  display: none;
}

.explore-preferences[open] .explore-preferences-close {
  display: inline;
}

.explore-preferences[open] .explore-preferences-toggle {
  border-top: 1px solid rgba(8, 34, 41, 0.08);
  border-bottom: 1px solid rgba(8, 34, 41, 0.08);
}

.explore-preferences-body {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem 1.05rem 1rem;
}

.explore-preferences-grid {
  padding: 0;
}

.explore-checkbox {
  padding: 0;
}

.explore-planner-actions {
  padding: 0;
}

.location-status {
  min-height: 1rem;
}

.explore-results-stage {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.explore-followup {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  align-items: start;
}

.explore-search-panel.is-secondary {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.explore-search-panel.is-secondary .explore-hero-copy {
  gap: 0.65rem;
}

.explore-search-panel.is-secondary h2 {
  max-width: 22ch;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  line-height: 1.05;
}

.explore-results-panel {
  padding: 1.1rem;
  scroll-margin-top: 6rem;
}

.explore-results-spotlight {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(8, 34, 41, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(20, 151, 159, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 249, 0.9));
}

.explore-results-spotlight-copy {
  display: grid;
  gap: 0.45rem;
}

.explore-results-spotlight h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 0.98;
}

.explore-results-spotlight .lead {
  max-width: 64ch;
  margin: 0;
}

.explore-search-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.explore-context-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(8, 34, 41, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.explore-context-card span {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.explore-context-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.explore-result-card {
  position: relative;
  display: grid;
  gap: 0.64rem;
  padding: 0.92rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(88, 140, 156, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 18%, rgba(182, 230, 238, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.98));
  box-shadow: 0 22px 48px rgba(15, 52, 68, 0.08);
}

.explore-result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(20, 151, 159, 0.22));
}

.explore-result-summary {
  margin: 0;
  color: #57707d;
  font-size: 0.85rem;
  line-height: 1.38;
  max-width: 92ch;
}

.explore-result-score-stack,
.explore-result-day-stack,
.explore-result-metric-stack {
  display: grid;
}

.explore-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 1rem;
  align-items: start;
}

.explore-result-rankline {
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.explore-result-rankline > div {
  min-width: 0;
  gap: 0.12rem;
}

.explore-result-rankline strong {
  font-size: 1.12rem;
  line-height: 1.05;
  color: #123849;
}

.explore-result-rankline span {
  color: #5c7480;
  line-height: 1.32;
}

.explore-result-score {
  display: grid;
  gap: 0.08rem;
  justify-items: end;
  align-content: start;
}

.explore-result-score span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.explore-result-score strong {
  font-size: clamp(1.55rem, 2.25vw, 1.95rem);
  line-height: 0.92;
  color: #10384a;
}

.explore-result-day-panel {
  display: grid;
  gap: 0.38rem;
}

.explore-result-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  color: #224b61;
  font-size: 0.94rem;
  line-height: 1.35;
}

.explore-result-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
}

.explore-result-facts strong {
  color: #0f3d53;
  font-size: 1.02em;
}

.explore-result-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.explore-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 189, 201, 0.34);
  background: linear-gradient(180deg, rgba(233, 247, 249, 0.95), rgba(239, 248, 249, 0.74));
  color: #21566c;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.explore-result-chip.is-primary {
  background: linear-gradient(180deg, rgba(214, 239, 244, 0.96), rgba(228, 245, 247, 0.84));
  color: #154f67;
}

.explore-result-chip.is-status {
  color: #0d4962;
  font-weight: 800;
}

.explore-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.9rem;
}

.explore-result-meta {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.explore-result-meta strong {
  font-size: 1rem;
  line-height: 1.15;
  color: #133b4c;
}

.explore-result-meta span {
  color: #5c7480;
  line-height: 1.32;
}

.explore-weather-block {
  display: grid;
  gap: 0.62rem;
  overflow: hidden;
  padding: 0.88rem 0.92rem 0;
  border: 1px solid rgba(9, 44, 56, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(39, 167, 168, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(238, 247, 249, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.explore-weather-placeholder {
  display: grid;
  gap: 0.3rem;
  padding: 0.2rem 0;
}

.explore-weather-placeholder strong {
  font-size: 0.98rem;
  color: #153c4d;
}

.explore-weather-placeholder p {
  margin: 0;
  color: #5b7480;
  line-height: 1.45;
}

.explore-weather-detail {
  display: grid;
  gap: 0.54rem;
}

.explore-weather-detail[hidden] {
  display: none !important;
}

.explore-weather-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.48rem 0.82rem;
  align-items: end;
  padding-bottom: 0.42rem;
  border-bottom: 1px solid rgba(9, 44, 56, 0.08);
}

.explore-weather-current {
  display: grid;
  gap: 0.28rem;
}

.explore-weather-current-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 0.56rem;
}

.explore-weather-range {
  display: grid;
  gap: 0.08rem;
}

.explore-weather-range-label {
  color: #5c7681;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.explore-weather-current-main strong {
  font-size: clamp(1.7rem, 2.45vw, 2.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #10384a;
}

.explore-weather-current-main > div {
  display: grid;
  gap: 0.14rem;
}

.explore-weather-copy {
  display: grid;
  gap: 0.18rem;
  align-content: start;
}

.explore-weather-condition {
  font-size: 0.96rem;
  font-weight: 700;
  color: #123c4d;
}

.explore-weather-summary {
  margin: 0;
  color: #486571;
  font-size: 0.8rem;
  line-height: 1.32;
  max-width: 38ch;
}

.explore-weather-current small {
  color: #5b7480;
  font-size: 0.78rem;
  line-height: 1.22;
}

.explore-weather-meta {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  text-align: right;
}

.explore-weather-meta strong {
  color: #143d4f;
  font-size: 0.84rem;
}

.explore-weather-meta span {
  color: #5f7883;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.explore-weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.explore-weather-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 189, 201, 0), rgba(130, 189, 201, 0.32) 18%, rgba(130, 189, 201, 0.32) 82%, rgba(130, 189, 201, 0));
}

.explore-weather-secondary {
  display: grid;
  gap: 0.42rem;
}

.explore-info-card,
.explore-weather-metric,
.explore-metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  min-height: 0;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(9, 44, 56, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.explore-weather-metric span,
.explore-metric-card span {
  color: #5c7480;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.explore-weather-metric strong,
.explore-metric-card strong {
  color: #143d4f;
  font-size: 0.96rem;
  line-height: 1.12;
  white-space: nowrap;
}

.explore-outlook-block {
  display: grid;
  gap: 0.55rem;
}

.explore-outlook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.explore-outlook-head strong {
  font-size: 0.92rem;
}

.explore-outlook-rail {
  border: 1px solid rgba(8, 34, 41, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.98), rgba(237, 247, 250, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.explore-outlook-rail .spot-atlas-frame-strip {
  padding: 0.3rem 0.25rem 0.18rem;
}

.explore-outlook-rail-frame {
  min-height: 6.35rem;
  padding-top: 0.7rem;
  padding-bottom: 1.55rem;
}

.explore-outlook-score-svg {
  inset: 0.42rem 0 auto;
  height: 3rem;
}

.explore-outlook-point {
  width: 4.4rem;
  cursor: pointer;
  pointer-events: auto;
}

.explore-outlook-point::before {
  top: calc(var(--frame-y) + 0.38rem);
  bottom: 1.08rem;
}

.explore-outlook-point .spot-atlas-frame-label {
  gap: 0.08rem;
}

.explore-outlook-point .spot-atlas-frame-label strong {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explore-outlook-point .spot-atlas-frame-label small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explore-outlook-point.is-active::before,
.explore-outlook-point[aria-current="true"]::before {
  background: rgba(52, 178, 205, 0.22);
}

.explore-outlook-point.is-active .spot-atlas-frame-label,
.explore-outlook-point[aria-current="true"] .spot-atlas-frame-label {
  width: auto;
  min-width: 4.6rem;
  padding: 0.55rem 0.72rem 0.5rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #176f86, #0f4968);
  box-shadow: 0 14px 28px rgba(15, 73, 104, 0.2);
}

.explore-outlook-point.is-active .spot-atlas-frame-label strong,
.explore-outlook-point[aria-current="true"] .spot-atlas-frame-label strong {
  color: #fff;
}

.explore-outlook-point.is-active .spot-atlas-frame-label small,
.explore-outlook-point[aria-current="true"] .spot-atlas-frame-label small {
  color: rgba(235, 248, 252, 0.94);
}

.explore-outlook-point.is-empty .spot-atlas-frame-marker {
  border-style: dashed;
  border-color: rgba(141, 195, 216, 0.75);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.explore-outlook-point.is-empty::before {
  background: rgba(16, 38, 51, 0.08);
}

.explore-outlook-point.is-empty .spot-atlas-frame-label small {
  color: rgba(92, 112, 128, 0.78);
}

.explore-outlook-point.is-locked {
  pointer-events: none;
}

.explore-outlook-point.is-locked::before,
.explore-outlook-point.is-locked .spot-atlas-frame-marker,
.explore-outlook-point.is-locked .spot-atlas-frame-label {
  opacity: 0.22;
}

.explore-outlook-point.is-locked .spot-atlas-frame-label small {
  color: rgba(92, 112, 128, 0.46);
}

.explore-outlook-lock {
  position: absolute;
  top: 0.18rem;
  bottom: 0.18rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(250, 253, 254, 0.34), rgba(229, 240, 244, 0.54)),
    radial-gradient(120% 120% at 0% 50%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(217, 233, 239, 0.52) 100%);
  backdrop-filter: blur(7px) saturate(0.82);
  -webkit-backdrop-filter: blur(7px) saturate(0.82);
}

.explore-outlook-lock-body {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  padding-inline: 0.85rem;
  text-align: center;
}

.explore-outlook-lock-copy {
  color: #365867;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.explore-outlook-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.explore-outlook-lock-cta {
  min-height: 2.7rem;
  padding-inline: 1.3rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.explore-result-footer {
  position: relative;
  overflow: hidden;
  margin: 0.18rem -0.92rem 0;
  min-height: 5.1rem;
  padding: 0.56rem 0.92rem 0.1rem;
  border-top: 1px solid rgba(126, 189, 202, 0.16);
}

.explore-result-footer-ocean {
  position: absolute;
  inset: auto 0 0;
  height: 4.2rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.38) 30%, rgba(255, 255, 255, 0.06) 58%, rgba(183, 232, 239, 0.2) 100%),
    linear-gradient(90deg, rgba(226, 247, 250, 0.68) 0%, rgba(226, 247, 250, 0.14) 22%, rgba(226, 247, 250, 0.1) 78%, rgba(226, 247, 250, 0.4) 100%),
    url("../img/surf/explore-ocean-band-v1.png");
  background-position: center top, center, center 66%;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
  opacity: 0.98;
  filter: saturate(0.88) brightness(1.04);
}

.explore-result-footer-ocean::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1.05rem;
  background:
    radial-gradient(90% 120% at 12% 100%, rgba(255, 255, 255, 0.86) 0 21%, transparent 22%),
    radial-gradient(65% 95% at 38% 100%, rgba(255, 255, 255, 0.72) 0 18%, transparent 19%),
    radial-gradient(75% 95% at 68% 100%, rgba(255, 255, 255, 0.58) 0 16%, transparent 17%),
    radial-gradient(58% 88% at 88% 100%, rgba(255, 255, 255, 0.48) 0 14%, transparent 15%);
}

.explore-result-footer-ocean::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 8% 16%, rgba(255, 255, 255, 0.86) 0, rgba(255, 255, 255, 0.08) 34%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 68%);
  pointer-events: none;
}

.explore-result-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 4.25rem;
  padding-top: 0.28rem;
}

.explore-result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(100%, 22rem);
  min-height: 3.55rem;
  padding-inline: 1.35rem;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(11, 53, 76, 0.2);
  background: linear-gradient(135deg, #1b8ea1, #0d4f70 68%);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
}

.explore-result-cta span:last-child {
  font-size: 1rem;
}

.explore-result-actions .explore-result-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(11, 53, 76, 0.24);
}

.explore-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  align-items: stretch;
}

.explore-metric-card {
  min-height: 0;
}

.explore-results-panel .empty-state {
  margin: 0;
}

.explore-results-panel {
  scroll-margin-top: 6rem;
}

@media (max-width: 960px) {
  .explore-followup,
  .explore-hero {
    grid-template-columns: 1fr;
  }

  .explore-search-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-result-head,
  .explore-weather-head {
    grid-template-columns: 1fr;
  }

  .explore-result-score,
  .explore-weather-meta {
    justify-items: start;
    text-align: left;
  }

  .explore-result-actions {
    justify-content: flex-start;
    min-height: 4rem;
    padding-top: 0.28rem;
  }

  .explore-weather-metrics,
  .explore-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .explore-form-grid,
  .explore-preferences-grid,
  .spots-filter-form,
  .crowd-layout .filter-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .explore-hero h1 {
    max-width: none;
  }

  .explore-results-panel,
  .explore-results-spotlight,
  .explore-result-card {
    padding: 0.9rem;
  }

  .explore-search-context-grid {
    grid-template-columns: 1fr;
  }

  .explore-result-facts,
  .explore-result-chip-row,
  .explore-weather-current-main {
    gap: 0.4rem;
  }

  .explore-weather-current-main {
    grid-template-columns: 1fr;
  }

  .explore-weather-metrics,
  .explore-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-outlook-point {
    width: 3.5rem;
  }

  .explore-result-footer {
    min-height: 4.8rem;
    padding-top: 0.5rem;
  }

  .explore-result-footer-ocean {
    height: 3.95rem;
  }

  .explore-result-cta {
    width: 100%;
    min-width: 0;
    min-height: 3.3rem;
  }

  .explore-primary-flow {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .explore-plan-block .explore-form-grid,
  .explore-form-grid,
  .explore-preferences-grid,
  .spots-filter-form,
  .crowd-layout .filter-grid.compact {
    grid-template-columns: 1fr;
  }

  .premium-plan-card-top,
  .premium-plan-card-body {
    padding-inline: 0.95rem;
  }
}

@media (max-width: 520px) {
  .explore-result-chip {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .explore-result-facts {
    font-size: 0.88rem;
  }

  .explore-weather-metrics,
  .explore-metric-grid {
    grid-template-columns: 1fr;
  }
}

.premium-page-master .premium-plan-grid.is-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.8rem;
}

.premium-page-master h1,
.premium-page-master h2,
.premium-page-master h3 {
  font-family: var(--display-font);
}

.premium-page-master,
.premium-page-master p,
.premium-page-master li,
.premium-page-master span {
  font-family: var(--body-font);
}

.premium-page-master .eyebrow,
.premium-page-master .premium-trust-pill,
.premium-page-master .premium-plan-tag,
.premium-page-master .premium-plan-price strong,
.premium-page-master .premium-plan-price span {
  font-family: var(--data-font);
}

.premium-page-master .premium-plan-card {
  display: grid;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.premium-page-master .premium-plan-card-top h3 {
  max-width: none;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.premium-page-master .premium-plan-card-body {
  align-content: start;
}

.premium-page-master .premium-plan-card-featured {
  border-color: rgba(15, 124, 130, 0.28);
  box-shadow: 0 24px 44px rgba(9, 56, 76, 0.12);
  transform: translateY(-6px);
}

.premium-page-master .premium-plan-cta-disabled {
  justify-content: center;
  opacity: 0.76;
  cursor: default;
}

.premium-page-master .premium-master-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 0.95rem;
  padding: 0.95rem;
  align-items: start;
}

.premium-page-master .premium-pricing-zone {
  gap: 0.75rem;
  padding: 0.9rem;
  height: 100%;
  align-content: start;
}

.premium-page-master .premium-pricing-head {
  gap: 0.25rem;
}

.premium-page-master .premium-pricing-head .muted {
  max-width: 50ch;
}

.premium-page-master .premium-master-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
}

.premium-page-master .premium-master-copy {
  gap: 0.68rem;
}

.premium-page-master .premium-master-copy h1 {
  max-width: 11.5ch;
  font-size: clamp(2.15rem, 2.9vw, 3.35rem);
}

.premium-page-master .premium-master-sublead {
  max-width: 58ch;
}

.premium-page-master .premium-master-aside {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.premium-page-master .premium-actions-stacked {
  display: grid;
  gap: 0.55rem;
}

.premium-page-master .premium-actions-stacked > * {
  width: 100%;
}

.premium-page-master .premium-account-box {
  max-width: none;
  padding: 0.82rem 0.95rem;
}

.premium-page-master .premium-account-box-inline {
  margin-top: 0.1rem;
}

.premium-page-master .premium-pricing-head h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.7rem);
}

.premium-page-master .premium-pricing-points,
.premium-page-master .premium-hero-highlights,
.premium-page-master .premium-market-toggle-compact,
.premium-page-master .premium-hero-floating-card,
.premium-page-master .premium-pricing-selected {
  display: none;
}

.premium-page-master .premium-plan-grid.is-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.premium-page-master .premium-plan-card {
  min-height: 100%;
}

.premium-page-master .premium-plan-card-top {
  min-height: 8.35rem;
  padding: 0.9rem 1rem 0.95rem;
  align-content: start;
}

.premium-page-master .premium-plan-card-body {
  gap: 0.62rem;
  padding: 0.88rem 1rem 0.95rem;
  grid-template-rows: auto minmax(1rem, auto) 1fr auto auto;
  align-content: start;
}

.premium-page-master .premium-plan-compare-at {
  min-height: 1rem;
}

.premium-page-master .premium-plan-compare-at.is-empty {
  visibility: hidden;
}

.premium-page-master .premium-plan-card-body .premium-plan-cta {
  align-self: end;
}

.premium-page-master .premium-plan-card-top h3 {
  font-size: clamp(1.1rem, 1.42vw, 1.46rem);
  line-height: 0.96;
}

.premium-page-master .premium-bullet-list {
  gap: 0.42rem;
  padding-left: 0;
  list-style: none;
}

.premium-page-master .premium-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
}

.premium-page-master .premium-bullet-list li::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.55;
}

.premium-page-master .premium-plan-card-body > small {
  line-height: 1.38;
}

.premium-page-master .premium-trust-list {
  gap: 0.45rem;
}

.premium-page-master .premium-trust-pill {
  padding: 0.42rem 0.72rem;
}

.premium-page-master .premium-master-copy .lead {
  max-width: 40ch;
}

.premium-page-master .premium-hero-photo-card-compact {
  display: block;
  min-height: 0;
  max-height: 13.5rem;
}

.premium-page-master .premium-hero-photo-card-compact img {
  aspect-ratio: 1.58 / 1;
}

.premium-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 130, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-pending {
  gap: 1rem;
  align-items: start;
}

.premium-pending-copy {
  gap: 0.9rem;
}

.premium-pending-copy h1,
.premium-pending-copy .lead,
.premium-pending-copy .muted {
  margin: 0;
}

.premium-pending-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.premium-pending-meta-card {
  min-height: 0;
}

.premium-pending-meta-card strong,
.premium-pending-meta-card p {
  margin: 0;
}

.premium-pending-meta-card p {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .premium-page-master .premium-master-hero,
  .premium-page-master .premium-plan-grid.is-duo {
    grid-template-columns: 1fr;
  }

  .premium-page-master .premium-plan-card-featured {
    transform: none;
  }

  .premium-page-master .premium-master-intro,
  .premium-pending-side {
    grid-template-columns: 1fr;
  }

  .premium-page-master .premium-hero-photo-card-compact {
    max-height: none;
  }
}

.near-you-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.near-you-label {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--text-strong, #f1f5f9);
}

.near-you-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}

.near-you-field select {
  min-width: 11rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-strong, #f1f5f9);
  font-size: 0.92rem;
}

.near-you-sort {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.18rem;
  background: rgba(15, 23, 42, 0.6);
  margin-left: auto;
}

.near-you-sort-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.near-you-sort-btn:hover {
  color: var(--text-strong, #f1f5f9);
}

.near-you-sort-btn.is-active {
  background: var(--accent, #38bdf8);
  color: #0f172a;
}

@media (max-width: 720px) {
  .near-you-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .near-you-sort {
    margin-left: 0;
    justify-content: center;
  }

  .near-you-field select {
    width: 100%;
  }
}
