:root {
  --bg: #EAF3F7;
  --surface: #FFFFFF;
  --surface-tint: #F2F9FC;
  --ink: #0F2E3D;
  --ink-soft: #4B6B78;
  --line: #CBE1EC;
  --blue: #2E7EA6;
  --blue-deep: #163C52;
  --blue-pale: #BFE0EE;
  --accent: #0EA0C7;
  --accent-ink: #FFFFFF;
  --shadow: rgba(15, 46, 61, 0.10);
  --good: #2E9E6C;
  --warn: #C77B12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B222E;
    --surface: #142F3C;
    --surface-tint: #102A36;
    --ink: #E6F2F6;
    --ink-soft: #93B4C0;
    --line: #21455A;
    --blue: #6FB6D6;
    --blue-deep: #3E8CB0;
    --blue-pale: #1E3E4E;
    --accent: #3FCBEE;
    --accent-ink: #072025;
    --shadow: rgba(0, 0, 0, 0.35);
    --good: #4CC793;
    --warn: #E7A23F;
  }
}
:root[data-theme="dark"] {
  --bg: #0B222E;
  --surface: #142F3C;
  --surface-tint: #102A36;
  --ink: #E6F2F6;
  --ink-soft: #93B4C0;
  --line: #21455A;
  --blue: #6FB6D6;
  --blue-deep: #3E8CB0;
  --blue-pale: #1E3E4E;
  --accent: #3FCBEE;
  --accent-ink: #072025;
  --shadow: rgba(0, 0, 0, 0.35);
  --good: #4CC793;
  --warn: #E7A23F;
}
:root[data-theme="light"] {
  --bg: #EAF3F7;
  --surface: #FFFFFF;
  --surface-tint: #F2F9FC;
  --ink: #0F2E3D;
  --ink-soft: #4B6B78;
  --line: #CBE1EC;
  --blue: #2E7EA6;
  --blue-deep: #163C52;
  --blue-pale: #BFE0EE;
  --accent: #0EA0C7;
  --accent-ink: #FFFFFF;
  --shadow: rgba(15, 46, 61, 0.10);
  --good: #2E9E6C;
  --warn: #C77B12;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

.display {
  font-family: "Century Gothic", "Avenir Next", Avenir, Futura, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.headline {
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2.5rem; max-width: 40rem; }
.section-eyebrow { color: var(--blue); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.section-body { color: var(--ink-soft); margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-brand img { width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.nav-brand span { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--blue); }
.nav-account {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 20rem; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem clamp(1.25rem, 4vw, 3rem); width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-right .nav-account { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,249,240,0.7);
  color: #FFF9F0;
  backdrop-filter: blur(2px);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 0 0 2.5rem 2.5rem; margin: 0 clamp(0.75rem, 2vw, 1.25rem); }
.hero-poster {
  position: relative;
  height: clamp(420px, 62vh, 640px);
  background: linear-gradient(180deg, #CDEBF5 0%, #8FCBE3 26%, #3E8CB0 52%, var(--blue-deep) 78%, #0E2733 100%);
}
.wave-layer { position: absolute; bottom: -2px; left: 0; width: 100%; height: auto; }
.wave-layer.back { opacity: 0.55; animation: drift 22s linear infinite; }
.wave-layer.mid { opacity: 0.8; animation: drift 16s linear infinite reverse; }
.wave-layer.front { animation: drift 12s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1.4rem;
  color: #FFF9F0;
  text-shadow: 0 2px 18px rgba(18, 40, 40, 0.35);
}
.hero-title { font-size: clamp(2.8rem, 8vw, 5.2rem); margin: 0; line-height: 1.02; }
.hero-sub { max-width: 32rem; font-size: 1.05rem; opacity: 0.95; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 0.4rem; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 0; max-width: 1200px; margin: 0 auto; }
.page-eyebrow { color: var(--blue); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0.4rem 0 0.8rem; }
.page-lede { color: var(--ink-soft); max-width: 42rem; font-size: 1.05rem; margin: 0; }

/* ---------- Cards / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 10px 30px var(--shadow);
}
.step-index { font-size: 0.78rem; font-weight: 800; color: var(--blue); letter-spacing: 0.1em; }
.step-icon { width: 2.4rem; height: 2.4rem; color: var(--blue); }
.step-icon svg { width: 100%; height: 100%; }
.step h3 { margin: 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Surf report / dashboard ---------- */
.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 16px 40px var(--shadow);
  display: grid;
  gap: 1.5rem;
}
.report-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.report-spot { font-size: 1.3rem; font-weight: 700; margin: 0; }
.report-when { color: var(--ink-soft); font-size: 0.88rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-good { background: color-mix(in srgb, var(--good) 18%, var(--surface)); color: var(--good); }
.badge-warn { background: color-mix(in srgb, var(--warn) 20%, var(--surface)); color: var(--warn); }
.report-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface-tint);
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.report-note strong { color: var(--ink); }
.report-warning {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, var(--surface-tint));
}
.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.gear-card { background: var(--surface-tint); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.gear-card h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.gear-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.spot-list { display: grid; gap: 0.9rem; }
.spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.spot-row.is-top { border-color: var(--accent); box-shadow: 0 8px 24px var(--shadow); }
.spot-name { font-weight: 700; }
.spot-row-actions { display: flex; align-items: center; gap: 0.6rem; }
.star-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.star-toggle:hover { border-color: var(--accent); color: var(--accent); }
.star-toggle svg { width: 1.1rem; height: 1.1rem; }
.star-toggle.is-fav { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.star-toggle.is-fav svg { fill: currentColor; }
.spot-meta { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Match checklist ---------- */
.checklist { display: grid; gap: 0.7rem; }
.check-row { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; }
.check-row svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--good); margin-top: 0.1rem; }

/* ---------- Condition meters ---------- */
.meter-stack { display: grid; gap: 1.3rem; }
.meter-row { display: grid; gap: 0.5rem; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.88rem; gap: 1rem; flex-wrap: wrap; }
.meter-top strong { font-size: 0.95rem; }
.meter-top .raw { color: var(--ink-soft); font-size: 0.78rem; }
.meter-track { position: relative; height: 10px; background: var(--blue-pale); border-radius: 999px; overflow: visible; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }
.meter-marker { position: absolute; top: 50%; width: 16px; height: 16px; background: var(--surface); border: 3px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); }
.meter-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-shell { max-width: 640px; margin: 0 auto; }
.progress { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.progress-step {
  flex: 1;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--blue-pale);
  position: relative;
  overflow: hidden;
}
.progress-step.is-active, .progress-step.is-done { background: var(--accent); }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.5rem; }
.progress-labels span.is-current { color: var(--blue); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 16px 40px var(--shadow);
}
.form-step { display: none; flex-direction: column; gap: 1.6rem; }
.form-step.is-active { display: flex; }
.form-step h2 { margin: 0; font-size: 1.4rem; }
.form-step > p.hint { margin: -1rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .field-hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.field input[type="text"],
.field input[type="number"],
.field select {
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.location-prompt {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--blue-pale);
  border-radius: 1.1rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.location-prompt.is-success { border-color: var(--good); }
.location-prompt.is-error { border-color: var(--warn); }
.location-prompt-icon { width: 1.8rem; height: 1.8rem; flex-shrink: 0; color: var(--blue); margin-top: 0.1rem; }
.location-prompt-icon svg { width: 100%; height: 100%; }
.location-prompt-copy { flex: 1; min-width: 14rem; }
.location-prompt-copy strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.location-prompt-copy p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.location-prompt-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.location-prompt-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.location-row { display: flex; gap: 0.6rem; }
.location-row input { flex: 1; }
.btn-locate {
  flex-shrink: 0;
  width: 3rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--line);
  background: var(--surface-tint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-locate svg { width: 1.2rem; height: 1.2rem; color: var(--blue); }

.range-field output {
  font-weight: 700;
  color: var(--blue);
}
.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
.choice {
  position: relative;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  height: 100%;
}
.choice input:checked + span { border-color: var(--accent); background: var(--blue-pale); color: var(--blue-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.skill-list { display: grid; gap: 0.7rem; }
.skill-option { position: relative; display: block; }
.skill-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.skill-option > span {
  display: block;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.skill-option-title { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.skill-option-desc { display: block; font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.skill-option input:checked + span { border-color: var(--accent); background: var(--blue-pale); }
.skill-option input:checked + span .skill-option-title { color: var(--blue-deep); }
.skill-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.board-list { display: flex; flex-direction: column; gap: 0.6rem; }
.board-check { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
.board-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.error-text { color: #C0392B; font-size: 0.82rem; min-height: 1.1em; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}
.faq-q svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; transition: transform 0.2s ease; color: var(--blue); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-a { max-height: 20rem; }
.faq-a p { margin: 0 1.3rem 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-card h3 { margin: 0; font-size: 1.05rem; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.contact-card a.btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: #EAF3F2; margin-top: 2rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 2rem; height: 2rem; border-radius: 50%; }
.footer-brand span { font-size: 1.05rem; letter-spacing: 0.06em; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin: 0 0 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.footer a { text-decoration: none; opacity: 0.9; }
.footer-bottom {
  border-top: 1px solid rgba(234,243,242,0.15);
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.8rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Chat launcher ---------- */
.chat-fab-wrap { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 50; }
.chat-fab-tip {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 22px var(--shadow);
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  pointer-events: none;
}
.chat-fab:hover + .chat-fab-tip, .chat-fab:focus-visible + .chat-fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.chat-fab {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 32px var(--shadow);
  overflow: hidden;
}
.chat-fab:hover { border-color: var(--accent); }
.chat-fab svg.scene { width: 3.5rem; height: 3.5rem; overflow: visible; }
.chat-fab .rider { transform-box: fill-box; transform-origin: 50% 100%; animation: ride 2.4s ease-in-out infinite; }
.chat-fab .wave-swoosh { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.chat-fab .foam-break {
  fill: var(--blue-pale);
  offset-path: path('M46,9 C37,17 25,23 17,31');
  opacity: 0;
  animation: break-wave 2.4s cubic-bezier(0.55, 0, 0.85, 0.35) infinite;
}
.chat-fab .ping { animation: ping 2.6s ease-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes ride {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(-1.5px, -2.5px) rotate(-2deg); }
}
@keyframes break-wave {
  0%   { offset-distance: 0%;   opacity: 0;   transform: scale(0.4); }
  18%  { opacity: 1; }
  88%  { offset-distance: 94%;  opacity: 1;   transform: scale(1.7); }
  100% { offset-distance: 100%; opacity: 0;   transform: scale(1.9); }
}
@keyframes ping { 0% { opacity: 0.8; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(2.2); } }

@media (prefers-reduced-motion: reduce) {
  .wave-layer, .chat-fab .rider, .chat-fab .foam-break, .chat-fab .ping { animation: none; }
}
