/* ==========================================================================
   Full Sails — the static pages

   The chart's own palette (src/index.css), on pages that scroll: the landing
   page, the sailing areas and the legal text. Dark like the app, because the
   page is the doorway into it; generous type, because it is read on a phone
   in a cockpit as often as at a desk.
   ========================================================================== */

:root {
  --bg: #0B1120;
  --bg-raised: #111A2E;
  --bg-card: rgba(22, 32, 54, 0.78);
  --line: rgba(255, 255, 255, 0.1);
  --text: #F1F5F9;
  --text-muted: #A5B4C8;
  --text-dim: #7A8BA3;
  --cyan: #00F2FE;
  --blue: #4FACFE;
  --gold: #F59E0B;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left));
  --max: 1160px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ------------------------------------------------------------ header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgba(11, 17, 32, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}
.site-brand img { border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav > a:not(.btn) { color: var(--text-muted); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--text); }

.site-langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.site-langs a, .site-langs span {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
}
.site-langs span { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.site-langs a:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-nav > a:not(.btn) { display: none; }
  .site-nav { gap: 10px; }
}

.site-brand span, .btn { white-space: nowrap; }

/* A phone: the hero's own buttons are a thumb's width below, so the header
   keeps the brand and the languages and gives up its button. */
@media (max-width: 560px) {
  .site-nav > .btn { display: none; }
  .site-brand { font-size: 18px; }
  .hero .btn-large { width: 100%; }
  .eyebrow { font-size: 13px; }
}

/* ----------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06101F;
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.22);
}
.btn-primary:hover { color: #06101F; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn-secondary:hover { color: var(--text); border-color: var(--cyan); }
.btn-large { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* -------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 110px) var(--gutter) 0;
  background: radial-gradient(1200px 600px at 70% 0%, rgba(79, 172, 254, 0.14), transparent 70%), var(--bg);
}

.hero-wind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero .cta-row { justify-content: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  background: linear-gradient(180deg, #FFFFFF 30%, #B9E6FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { margin: 22px auto 0; max-width: 700px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-muted); }
.cta-note { font-size: 14px; color: var(--text-dim); }

.hero-shot, .steps-shot {
  position: relative;
  max-width: 1100px;
  margin: 48px auto 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: 0 -20px 80px rgba(0, 242, 254, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--bg-raised);
}
.steps-shot { border-radius: 18px; border-bottom: 1px solid var(--line); margin-top: 36px; }
.hero-shot img, .steps-shot img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------- sections ---- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 0; }
.section-lead { color: var(--text-muted); margin-bottom: 28px; max-width: 700px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.feature {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--text-muted); font-size: 16px; }
.feature-icon {
  display: inline-flex;
  padding: 11px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
}
.feature-icon .icon { width: 24px; height: 24px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 66px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06101F;
  font-weight: 700;
  font-family: var(--font-heading);
}

.data-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.data-layout p { color: var(--text-muted); margin-bottom: 16px; }
@media (max-width: 820px) { .data-layout { grid-template-columns: 1fr; } }
.data-facts { display: grid; gap: 10px; padding: 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; }
.data-facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.data-facts div:last-child { border-bottom: none; padding-bottom: 0; }
.data-facts dt { color: var(--text-dim); }
.data-facts dd { font-weight: 600; text-align: right; }

.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.spot-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.spot-card:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }
.spot-card strong { font-family: var(--font-heading); font-size: 19px; }
.spot-card-region { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.spot-card-winds { font-size: 14px; color: var(--cyan); }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: outside; }
.faq details p { padding-bottom: 16px; color: var(--text-muted); }

.final-cta {
  margin: clamp(64px, 10vw, 120px) auto 0;
  max-width: var(--max);
  padding: 56px var(--gutter);
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(0, 242, 254, 0.14), transparent 70%);
  border-top: 1px solid var(--line);
}
.final-cta p { color: var(--text-muted); margin-bottom: 24px; }

/* -------------------------------------------------------------- spot ---- */
.spot { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter) 0; }
.breadcrumb { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.spot h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 20px; }
.spot-text { color: var(--text-muted); margin-bottom: 14px; font-size: 18px; }
.spot h2 { font-size: 26px; margin: 44px 0 6px; }

.live-note { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.live-loading, .live-error { color: var(--text-muted); padding: 18px 0; }
.live-table { overflow-x: auto; }
.live-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.live-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.live-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.live-table tr.day-start td { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.live-table .day { color: var(--text-dim); font-size: 13px; }
.live-table .speed { font-weight: 700; padding: 3px 9px; border-radius: 8px; display: inline-block; min-width: 44px; text-align: center; color: #06101F; }
.live-table .arrow { display: inline-block; margin-right: 6px; color: var(--blue); }

.local-winds .wind-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.local-winds .wind-entry:last-child { border-bottom: none; }
.local-winds h3 { margin-bottom: 6px; }
.wind-from { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
.local-winds p { color: var(--text-muted); }

/* ------------------------------------------------------------- prose ---- */
.prose { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li, .prose address { color: var(--text-muted); margin-bottom: 12px; font-style: normal; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }
.prose code { font-size: 0.9em; background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; }
.prose .updated { font-size: 14px; color: var(--text-dim); }

.not-found { text-align: center; padding-bottom: 40px; }
.not-found .cta-row { justify-content: center; }

/* ------------------------------------------------------------ footer ---- */
.site-footer {
  margin-top: clamp(64px, 10vw, 110px);
  padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  display: grid;
  gap: 12px;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer-warning { color: var(--gold); font-weight: 500; }
.site-footer-credit { max-width: 760px; margin: 0 auto; font-size: 13px; }
.site-footer-credit a { color: var(--text-muted); }
