/* ============================================================
   Fikcit landing site — single stylesheet
   Sections: 1. Fonts  2. Reset  3. Tokens  4. Base typography
             5. Layout primitives  6. Components  7. Animations
             8. Page-specific  9. Responsive  10. A11y
   ============================================================ */

/* 1. Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* 2. Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* 3. Tokens ------------------------------------------------ */
:root {
  /* Color */
  --navy-900: #0A2A52;
  --navy-700: #1B4A8C;
  --navy-500: #3D74C4;
  --gold-500: #FFC72C;
  --gold-300: #FFDA6B;
  --coral-500: #FF7A59;
  --sand-100: #FBF6EC;
  --sea-100:  #E6F4F1;
  --ink-900:  #0F1419;
  --ink-500:  #5B6470;
  --white:    #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 7.5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 6px rgba(10, 42, 82, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 42, 82, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 42, 82, 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 180ms;
  --duration-mid: 360ms;

  /* Layout */
  --container: 1180px;
  --nav-height: 72px;
}

/* 4. Base typography --------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-100);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem); font-weight: 600; }

p { color: var(--ink-900); }
p.lead { font-size: 1.125rem; color: var(--ink-500); max-width: 56ch; }

a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Skip-to-content link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: var(--space-3) var(--space-4); z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* 5. Layout primitives ------------------------------------- */
.section { padding: var(--space-10) 0; }
.section--sand { background: var(--sand-100); }
.section--sea  { background: var(--sea-100); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: var(--space-3);
}
.section--navy .section__eyebrow { color: var(--gold-300); }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
.grid--svc { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--svc { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--svc { grid-template-columns: repeat(4, 1fr); }
}

/* 6. Components -------------------------------------------- */

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: transparent;
  transition: background var(--duration-mid) var(--ease-out),
              box-shadow var(--duration-mid) var(--ease-out);
}
.nav.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.nav__logo { display: flex; align-items: center; gap: var(--space-2); }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: none; gap: var(--space-6); }
.nav__links a {
  color: var(--navy-900); font-weight: 500; font-size: 0.95rem;
  padding: var(--space-2) 0;
}
.nav__links a:hover { color: var(--navy-700); text-decoration: none; }
.nav__cta { display: none; }
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  color: var(--navy-900);
}
.nav__burger:hover { background: rgba(10, 42, 82, 0.06); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-height) 0 0 0;
  background: var(--white);
  padding: var(--space-6) var(--space-5);
  transform: translateY(-100%);
  transition: transform var(--duration-mid) var(--ease-out);
  z-index: 40;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: var(--space-3) 0;
  font-size: 1.125rem; font-weight: 500; color: var(--navy-900);
  border-bottom: 1px solid rgba(10, 42, 82, 0.08);
}
.mobile-menu .btn { margin-top: var(--space-3); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 8px 18px rgba(255, 199, 44, 0.35);
  animation: ctaGlow 5s ease-in-out infinite;
}
.btn--primary:hover { background: var(--gold-300); }
.btn--secondary {
  background: transparent; color: var(--navy-900);
  box-shadow: inset 0 0 0 2px var(--navy-900);
}
.btn--secondary:hover { background: var(--navy-900); color: var(--white); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Hero */
.hero { padding: var(--space-10) 0 var(--space-11); }
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: var(--space-8);
  align-items: center;
}
.hero__title { margin-bottom: var(--space-5); }
.hero__lead { margin-bottom: var(--space-7); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__visual {
  display: flex; justify-content: center; align-items: center;
  min-height: 320px;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--space-9); }
}

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
  padding: var(--space-7) 0;
  border-top: 1px solid rgba(10, 42, 82, 0.08);
  border-bottom: 1px solid rgba(10, 42, 82, 0.08);
}
.trust-strip__item {
  display: flex; align-items: center; gap: var(--space-3);
  font-weight: 500; color: var(--navy-900);
}
.trust-strip__item svg { width: 28px; height: 28px; color: var(--gold-500); flex-shrink: 0; }
@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Service card */
.service-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  color: var(--ink-900);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.service-card:hover .service-card__icon { transform: translateY(-2px); }
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--sand-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
  transition: transform var(--duration-fast) var(--ease-out);
}
.service-card--urgent .service-card__icon { background: rgba(255, 122, 89, 0.12); color: var(--coral-500); }
.service-card__title { font-family: var(--font-display); font-size: 1.125rem; color: var(--navy-900); }
.service-card__desc { font-size: 0.9375rem; color: var(--ink-500); }
.service-card__badge {
  display: inline-block; align-self: flex-start;
  padding: 2px 10px; border-radius: var(--radius-full);
  background: var(--coral-500); color: var(--white);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}

/* How-it-works mini cards */
.steps-mini { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps-mini { grid-template-columns: repeat(4, 1fr); } }
.step-mini {
  background: var(--white); padding: var(--space-5); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.step-mini__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 700; margin-bottom: var(--space-3);
}
.step-mini__title { font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: var(--space-1); }
.step-mini__text { font-size: 0.9375rem; color: var(--ink-500); }

/* Why columns */
.why-col {
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.why-col__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--sea-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.why-col__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); margin-bottom: var(--space-2); }
.why-col__text { color: var(--ink-500); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: var(--space-9) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: var(--space-5);
  align-items: center; text-align: center;
}
.cta-banner h2 { color: var(--white); }
@media (min-width: 768px) {
  .cta-banner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Footer */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,0.7);
  padding: var(--space-9) 0 var(--space-6); position: relative;
}
.footer__wave {
  position: absolute; top: -1px; left: 0; right: 0;
  height: 24px; width: 100%; display: block;
  color: var(--sand-100);
}
.footer__grid {
  display: grid; gap: var(--space-7); grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand img { height: 36px; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.footer__tagline { color: rgba(255,255,255,0.7); max-width: 32ch; }
.footer__col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: var(--space-3); }
.footer__col a { display: block; padding: 4px 0; color: rgba(255,255,255,0.7); }
.footer__col a:hover { color: var(--gold-300); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* Phone mockup */
.phone-mockup {
  width: 280px; max-width: 100%;
  background: #0B141A; border-radius: 36px;
  padding: 12px; box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.phone-mockup__screen {
  background: #ECE5DD; border-radius: 26px;
  padding: var(--space-3); min-height: 360px;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.bubble {
  max-width: 78%; padding: 8px 12px; border-radius: 14px;
  font-size: 0.875rem; line-height: 1.35; color: var(--ink-900);
}
.bubble--out { align-self: flex-end; background: #DCF8C6; border-bottom-right-radius: 4px; }
.bubble--in  { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.bubble__meta { display: block; margin-top: 2px; font-size: 0.6875rem; color: var(--ink-500); }
.bubble--photo { padding: 4px; }
.bubble--photo .bubble__img {
  width: 180px; height: 120px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sea-100), var(--sand-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
}
.bubble--card {
  background: var(--white); display: flex; gap: var(--space-2);
  align-items: center; padding: 8px 10px;
}
.bubble--card .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy-900); font-size: 0.875rem;
}
.typing { display: inline-flex; gap: 3px; padding: 8px 12px; background: var(--white); border-radius: 14px; align-self: flex-start; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-500);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

/* Step row (how-it-works) */
.step-row { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
.step-row + .step-row { margin-top: var(--space-10); }
@media (min-width: 900px) {
  .step-row { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .step-row--reverse .step-row__visual { order: 1; }
  .step-row--reverse .step-row__text { order: 2; }
}
.step-row__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--navy-900); color: var(--gold-500);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin-bottom: var(--space-3);
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: var(--space-5); text-align: left;
  font-weight: 600; color: var(--navy-900); font-size: 1.0625rem;
}
.faq__q::after {
  content: '+'; font-size: 1.5rem; color: var(--navy-700); font-weight: 400;
  transition: transform var(--duration-fast) var(--ease-out);
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-500);
}

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 560px; }
.form__row { display: flex; flex-direction: column; gap: var(--space-2); }
.form__label {
  font-weight: 600; color: var(--navy-900); font-size: 0.95rem;
}
.form__help { font-size: 0.8125rem; color: var(--ink-500); }
.form__input, .form__select, .form__textarea {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid rgba(10, 42, 82, 0.15);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.form__textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.18);
}
.form__phone { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--white); border: 1.5px solid rgba(10, 42, 82, 0.15);
  font-size: 0.9375rem; font-weight: 500; color: var(--navy-900);
  transition: all var(--duration-fast) var(--ease-out);
}
.chip:hover { border-color: var(--navy-500); }
.chip[aria-pressed='true'] {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
}
.form__success {
  display: none;
  padding: var(--space-6); background: var(--sea-100); border-radius: var(--radius-md);
  color: var(--navy-900); border-left: 4px solid var(--gold-500);
}
.form__success.is-visible { display: block; }
.form__next {
  background: var(--white); padding: var(--space-6);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.form__next ol { padding-left: 1.2rem; color: var(--ink-500); }
.form__next li { margin-bottom: var(--space-2); }

/* Pro signup layout */
.signup-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 1024px) { .signup-layout { grid-template-columns: 1.3fr 1fr; gap: var(--space-9); } }

/* About roadmap */
.roadmap {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
  counter-reset: stop;
}
@media (min-width: 768px) {
  .roadmap { grid-template-columns: repeat(4, 1fr); position: relative; }
  .roadmap::before {
    content: ''; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--navy-500) 0, var(--navy-500) 6px, transparent 6px, transparent 12px);
    z-index: 0;
  }
}
.roadmap__stop { position: relative; z-index: 1; text-align: center; }
.roadmap__dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
  margin: 0 auto var(--space-3);
}
.roadmap__stop--live .roadmap__dot {
  background: var(--gold-500); border-color: var(--gold-500);
}
.roadmap__label { font-weight: 600; color: var(--navy-900); }
.roadmap__sub { font-size: 0.875rem; color: var(--ink-500); }

/* 7. Animations -------------------------------------------- */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 8px 18px rgba(255, 199, 44, 0.35); }
  50%      { box-shadow: 0 8px 28px rgba(255, 199, 44, 0.65); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
@keyframes pulseRing {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes drawLine {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes vanTravel {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(var(--van-dx, -120px), var(--van-dy, -40px)); opacity: 0; }
}
@keyframes mapShimmer {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}
@keyframes wave {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Trust strip stagger */
.trust-strip[data-reveal].is-visible .trust-strip__item {
  animation: fadeUp 600ms var(--ease-out) both;
}
.trust-strip[data-reveal].is-visible .trust-strip__item:nth-child(2) { animation-delay: 120ms; }
.trust-strip[data-reveal].is-visible .trust-strip__item:nth-child(3) { animation-delay: 240ms; }

/* Footer wave (continuous) */
.footer__wave svg { width: 200%; height: 100%; animation: wave 14s linear infinite; }

/* 8. Page-specific (hero marketplace, map, etc.) ----------- */
/* Hero marketplace SVG */
.hero-anim { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.hero-anim .pulse { transform-origin: center; animation: pulseRing 3.6s var(--ease-out) infinite; }
.hero-anim .line  { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawLine 6s var(--ease-out) infinite; }
.hero-anim .line--chosen { stroke: var(--gold-500); stroke-width: 2.5; animation: drawLine 6s var(--ease-out) infinite, ctaGlow 6s ease-in-out infinite; }
.hero-anim .van { animation: vanTravel 6s var(--ease-out) infinite; }

/* Caribbean map */
.map-anim { width: 100%; max-width: 640px; margin: 0 auto; }
.map-anim .island--live { fill: var(--gold-500); animation: pulseRing 2.4s ease-in-out infinite; transform-origin: center; }
.map-anim .island--soon { fill: var(--navy-700); opacity: 0; transition: opacity 800ms var(--ease-out) 1200ms; }
.map-anim.is-visible .island--soon { opacity: 1; }
.map-anim .island--later { fill: var(--sand-100); stroke: var(--ink-500); opacity: 0; animation: mapShimmer 3.6s ease-in-out infinite 2200ms; }
.map-anim.is-visible .island--later { opacity: 0.6; }

/* 9. Responsive helpers ------------------------------------ */
@media (max-width: 768px) {
  .section { padding: var(--space-9) 0; }
  .hero { padding: var(--space-9) 0 var(--space-10); }
}

/* ============================================================
   Onboarding wizard (onboard.html)
   ============================================================ */

/* Button sizes used by the wizard */
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
.btn--ghost-sm {
  padding: 0.4rem 0.85rem; font-size: 0.8125rem; font-weight: 600;
  color: var(--navy-700); border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1.5px rgba(10, 42, 82, 0.18);
}
.btn--ghost-sm:hover { box-shadow: inset 0 0 0 1.5px var(--navy-500); }

/* Header tag */
.nav__back {
  margin-left: auto; font-size: 0.9375rem; font-weight: 600; color: var(--navy-700);
  white-space: nowrap;
}
.nav__back:hover { color: var(--gold-500); text-decoration: none; }
.footer__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white); display: inline-block; }
.onboard__headertag {
  font-size: 0.8125rem; font-weight: 600; color: var(--navy-700);
  background: var(--sea-100); padding: 4px 12px; border-radius: var(--radius-full);
}

/* Layout */
.onboard { background: var(--sand-100); min-height: 100vh; }
.onboard__container { max-width: 620px; }
.onboard__intro { margin-bottom: var(--space-7); scroll-margin-top: var(--space-7); }
.onboard__title { font-family: var(--font-display); color: var(--navy-900); margin-bottom: var(--space-3); }
.onboard__token {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); font-size: 0.875rem; font-weight: 600; color: var(--navy-900);
  background: var(--white); padding: 8px 14px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.onboard__token svg { color: var(--navy-500); flex-shrink: 0; }

/* Required / optional markers */
.req { color: var(--coral-500); }
.opt { color: var(--ink-500); font-weight: 400; font-size: 0.85em; }

/* Wizard shell */
.wizard {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: var(--space-6); max-width: none;
}
@media (max-width: 560px) { .wizard { padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); } }

/* Progress pips */
.wizard__progress {
  display: flex; list-style: none; padding: 0; margin: 0; gap: var(--space-1);
  counter-reset: none;
}
.wizard__pip {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; position: relative; padding-top: 4px;
}
.wizard__pip::before {
  content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px;
  background: rgba(10, 42, 82, 0.12); z-index: 0;
}
.wizard__pip:first-child::before { display: none; }
.wizard__pip.is-active::before, .wizard__pip.is-done::before { background: var(--gold-500); }
.wizard__pipnum {
  width: 30px; height: 30px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid rgba(10, 42, 82, 0.15);
  font-weight: 700; font-size: 0.875rem; color: var(--ink-500);
  transition: all var(--duration-fast) var(--ease-out);
}
.wizard__pip.is-active .wizard__pipnum { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.wizard__pip.is-done .wizard__pipnum { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.wizard__piplabel { font-size: 0.6875rem; font-weight: 600; color: var(--ink-500); text-align: center; line-height: 1.2; }
.wizard__pip.is-active .wizard__piplabel { color: var(--navy-900); }
@media (max-width: 560px) { .wizard__piplabel { display: none; } }

/* Steps */
.wizard__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__step.is-active { display: flex; flex-direction: column; gap: var(--space-5); animation: fadeUp 360ms var(--ease-out) both; }
.wizard__steptitle {
  font-family: var(--font-display); font-size: 1.375rem; color: var(--navy-900);
  padding: 0; margin-bottom: var(--space-1);
}

/* Nav buttons */
.wizard__nav { display: flex; gap: var(--space-3); justify-content: space-between; }
.wizard__nav .btn--primary { margin-left: auto; }

/* Chips head (select all) */
.chips__head { display: flex; justify-content: flex-end; margin-bottom: 2px; }

/* Dropzone */
.dropzone {
  display: block; border: 2px dashed rgba(10, 42, 82, 0.22); border-radius: var(--radius-md);
  padding: var(--space-5); text-align: center; cursor: pointer; background: var(--sand-100);
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
.dropzone:hover { border-color: var(--navy-500); background: var(--sea-100); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone__prompt { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); color: var(--navy-700); font-weight: 600; font-size: 0.9375rem; }
.dropzone__prompt svg { color: var(--navy-500); }
.dropzone--avatar { max-width: 220px; }

/* Upload previews */
.dropzone__previews { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.upload-preview {
  position: relative; width: 90px; height: 90px; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--sea-100);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview__remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(10, 42, 82, 0.78); color: var(--white); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.upload-preview__remove:hover { background: var(--coral-500); }
.dropzone--avatar .dropzone__previews { margin: 0; justify-content: center; }
.dropzone--avatar .upload-preview { width: 110px; height: 110px; border-radius: 50%; }

/* Reference rows */
.ref-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-2);
  align-items: stretch; margin-bottom: var(--space-3);
  padding: var(--space-3); border-radius: var(--radius-sm);
  background: var(--sand-100);
}
.ref-row__fields { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ref-row__remove {
  width: 38px; border-radius: var(--radius-sm); color: var(--ink-500);
  font-size: 1.25rem; line-height: 1; background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(10, 42, 82, 0.15);
}
.ref-row__remove:hover { color: var(--coral-500); box-shadow: inset 0 0 0 1.5px var(--coral-500); }
.ref-add { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }

/* Toggle switch */
.toggle { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track {
  width: 46px; height: 26px; border-radius: var(--radius-full); background: rgba(10, 42, 82, 0.18);
  flex-shrink: 0; transition: background var(--duration-fast) var(--ease-out); position: relative;
}
.toggle__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--duration-fast) var(--ease-out);
}
.toggle input:checked + .toggle__track { background: var(--gold-500); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__track { box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.3); }
.toggle__text { font-size: 0.9375rem; color: var(--navy-900); }

/* Review summary */
.review { display: flex; flex-direction: column; gap: 0; margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(10, 42, 82, 0.1); }
.review__row { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid rgba(10, 42, 82, 0.08); }
.review__row:last-child { border-bottom: 0; }
.review__row dt { font-weight: 600; color: var(--ink-500); font-size: 0.875rem; margin: 0; }
.review__row dd { margin: 0; color: var(--navy-900); font-size: 0.9375rem; word-break: break-word; }
@media (max-width: 480px) { .review__row { grid-template-columns: 1fr; gap: 2px; } }

/* WhatsApp verification */
.btn--block { display: flex; width: 100%; }
.verify__pending {
  margin-top: var(--space-3); padding: var(--space-4);
  background: var(--sand-100); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.verify__step { font-size: 0.9375rem; color: var(--navy-900); margin: 0; }
.verify__step strong {
  font-family: var(--font-body); letter-spacing: 0.04em;
  background: var(--white); padding: 2px 8px; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1.5px var(--gold-500); color: var(--navy-900);
}
.verify__status {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.9375rem; font-weight: 600; color: var(--navy-700); margin: 0;
}
.verify__spinner {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(10, 42, 82, 0.2); border-top-color: var(--navy-700);
  animation: verifySpin 0.7s linear infinite;
}
@keyframes verifySpin { to { transform: rotate(360deg); } }
.verify__restart {
  align-self: flex-start; font-size: 0.8125rem; color: var(--ink-500);
  text-decoration: underline; padding: 0;
}
.verify__restart:hover { color: var(--navy-700); }
.verify__done {
  margin-top: var(--space-3); padding: 0.75rem 1rem;
  background: var(--sea-100); border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500);
  font-weight: 600; color: var(--navy-900);
}

/* Consent */
.consent { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold-500); }
.consent span { font-size: 0.9375rem; color: var(--navy-900); line-height: 1.5; }

/* 10. Accessibility / reduced motion ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 4px; }
/* ---- Language switch (EN | ES) ---- */
.lang-switch { display: inline-flex; align-items: stretch; border: 1.5px solid rgba(10,42,82,0.18); border-radius: 999px; overflow: hidden; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; line-height: 1; }
.lang-switch__opt { display: inline-flex; align-items: center; padding: 6px 11px; color: var(--navy-700); text-decoration: none; transition: background .15s ease, color .15s ease; }
.lang-switch__opt:hover { background: rgba(10,42,82,0.07); text-decoration: none; }
.lang-switch__opt.is-active { background: var(--gold-500); color: var(--navy-900); }
