/* ═══════════════════════════════════════════
   CARIBSAFE DESIGN SYSTEM
   Version 2.0, Turks & Caicos Launch
   Aesthetic: Refined Tropical Authority
   Fonts: Cormorant Garamond + Syne
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── TOKENS (aligned with invite page) ── */
:root {
  /* Brand, invite palette */
  --navy:        #205088;
  --navy-700:    #1A3F6E;
  --navy-600:    #1A3F6E;
  --navy-500:    #205088;
  --navy-400:    #2560A0;
  --coral:       #F6564C;
  --coral-light: #F77066;
  --coral-pale:  #FFF0EE;
  --sand:        #F7F2EA;
  --sand-dark:   #EDE6D8;
  --white:       #FFFFFF;
  --ink:         #102846;
  --ink-700:     #1A3F6E;
  --ink-500:     #3D5166;
  --ink-300:     #7A92A8;
  --ink-100:     #C8D6E0;

  /* Spacing */
  --max-w: 1200px;
  --section-py: 100px;
  --nav-h: 76px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(32,80,136,0.08);
  --shadow-md: 0 8px 32px rgba(32,80,136,0.12);
  --shadow-lg: 0 20px 60px rgba(32,80,136,0.18);
  --shadow-coral: 0 8px 32px rgba(246,86,76,0.28);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Syne', sans-serif;
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── TYPOGRAPHY SCALE ── */
.display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--navy);
  text-align: center;
}
.display-white { color: var(--white); }
.display em { font-style: italic; color: var(--coral); }

.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.5px; color: var(--navy);
  text-align: center;
}
.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600; line-height: 1.2;
  color: var(--navy);
  text-align: center;
}
.heading-md {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); line-height: 1.4;
}
/* Site-wide: center all section headers and subtext (desktop + all devices) */
.cta-title { text-align: center; }
.hero-copy, .page-hero-inner, .cta-inner { text-align: center; }
.hero h1, .page-hero h1, .page-hero .display { text-align: center; }
.hero-actions, .cta-actions { justify-content: center; }
/* Center intro content under section headers everywhere */
.heading-xl + p, .heading-lg + p, .display + p,
.features-header, .how-header, .values-header, .roadmap-header { text-align: center; }
.heading-xl + p, .heading-lg + p, .display + p { margin-left: auto; margin-right: auto; }
.problem-inner > .reveal:first-of-type { text-align: center; }
.page-hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
.page-hero-sub + .page-hero-sub { margin-top: 1.25rem; }
.body-lg { font-size: 1.1rem; line-height: 1.85; color: var(--ink-500); }
.body-md { font-size: 0.95rem; line-height: 1.8; color: var(--ink-500); }
.body-sm { font-size: 0.85rem; line-height: 1.7; color: var(--ink-300); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--coral);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: none;
  display: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.3px;
  border-radius: 50px; cursor: pointer;
  transition: all 0.22s ease; border: none;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--coral); color: var(--white);
  padding: 14px 32px;
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover {
  background: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(246,86,76,0.38);
}
.btn-primary-lg { padding: 18px 40px; font-size: 1rem; }
.btn-secondary {
  background: rgba(32,80,136,0.07); color: var(--navy);
  padding: 14px 32px;
}
.btn-secondary:hover { background: rgba(32,80,136,0.12); transform: translateY(-2px); }
.btn-ghost-white {
  background: transparent; color: var(--white);
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(32,80,136,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
/* ═══ CARIBSAFE TEXT LOGO, one word, Carib #ffffff, Safe #F6564C (every page) ═══ */
.nav-logo,
.site-nav .nav-logo,
a.nav-logo,
.footer-brand-logo,
.site-footer .footer-brand-logo,
.main-footer .footer-brand-logo,
.footer-brand .footer-brand-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem; font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  display: inline-block;
  /* WebKit needs text-fill transparent or footer inherits rgba white and hides the gradient */
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #F6564C 55%, #F6564C 100%) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.site-footer .footer-brand-logo,
.footer-brand .footer-brand-logo {
  margin-bottom: 16px;
}
.logo-on-light {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, #F6564C 55%, #F6564C 100%) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
/* Legal pages (terms/privacy) nav logo, same colors */
.logo-one-word {
  font-weight: 700;
  white-space: nowrap;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #F6564C 55%, #F6564C 100%) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--coral); border-radius: 1px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-download {
  background: var(--coral); color: var(--white);
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 7px;
}
.nav-download:hover { background: var(--coral-light); transform: translateY(-1px); }
.nav-download svg { width: 14px; height: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: white; padding: 12px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  position: relative; z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle svg { width: 24px; height: 24px; pointer-events: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.4);
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.75; max-width: 280px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); color: white; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.4); font-size: 0.88rem;
  margin-bottom: 12px; transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
.footer-tci {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px; padding: 6px 14px; font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* ── PILL / TAG ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 12px; border-radius: 50px;
}
.tag-premium {
  background: rgba(246,86,76,0.12);
  border: 1px solid rgba(246,86,76,0.25);
  color: var(--coral);
}
.tag-free {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: #16a34a;
}
.tag-navy {
  background: rgba(32,80,136,0.08);
  border: 1px solid rgba(32,80,136,0.12);
  color: var(--navy-600);
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--sand-dark); margin: 0; }
.divider-light { background: rgba(255,255,255,0.08); }

/* ── CARD BASE ── */
.card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── ICON WRAPPER ── */
.icon-wrap {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-wrap svg { width: 22px; height: 22px; }
.icon-wrap-coral { background: var(--coral-pale); }
.icon-wrap-coral svg { color: var(--coral); }
.icon-wrap-navy { background: rgba(32,80,136,0.08); }
.icon-wrap-navy svg { color: #F6564C; }
.icon-wrap-lg { width: 60px; height: 60px; border-radius: var(--r-md); }
.icon-wrap-lg svg { width: 28px; height: 28px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--navy-700);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  overflow: hidden;
}
.trust-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; padding: 0 48px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.3px; white-space: nowrap;
}
.trust-item svg { width: 15px; height: 15px; color: #F6564C; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
}
@media (max-width: 768px) {
  :root { --section-py: 72px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; flex-wrap: wrap; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  /* Mobile menu open state: solid background so text is readable */
  .site-nav.nav-open .nav-inner { flex-wrap: wrap; }
  .site-nav.nav-open .nav-links,
  .site-nav.nav-open .nav-actions {
    display: flex; width: 100%;
    background: #102846;
    margin-left: -20px; margin-right: -20px;
    padding-left: 20px; padding-right: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .site-nav.nav-open .nav-links {
    order: 3; flex-direction: column;
    padding: 20px 20px 12px; gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 12px;
  }
  .site-nav.nav-open .nav-links a { font-size: 1rem; padding: 8px 0; color: #fff; }
  /* Stack Partner login / Download App: grid forces one column (flex row was still winning in some cases) */
  .site-nav.nav-open .nav-inner .nav-actions {
    order: 4;
    display: grid !important;
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
    justify-items: stretch;
    padding: 12px 20px 20px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .site-nav.nav-open .nav-actions .nav-download {
    width: 100%;
    max-width: 260px;
    justify-self: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .site-nav.nav-open .nav-actions .nav-download svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  /* Headings on mobile: 36px site-wide */
  .display,
  .heading-xl,
  h1 { font-size: 2.25rem !important; line-height: 1.2 !important; }
  .heading-lg { font-size: 2.25rem !important; line-height: 1.2 !important; }
  .cta-title { font-size: 2.25rem !important; line-height: 1.2 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip-inner { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Legal pages (Terms, Privacy) */
.legal-section { padding: var(--section-py) 0; background: var(--sand); }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 0 48px; }
.legal-content { font-size: 1rem; line-height: 1.85; color: var(--ink-500); }
.legal-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 2.5em 0 0.75em; letter-spacing: -0.3px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content h4 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink-700); margin: 1.5em 0 0.5em; }
.legal-content p { margin-bottom: 1em; }
.legal-content ul { margin: 1em 0 1.5em; padding-left: 1.5em; list-style: none; }
.legal-content ul li { position: relative; padding-left: 1.25em; margin-bottom: 0.5em; }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.legal-content a { color: var(--coral); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--ink-700); }
@media (max-width: 768px) { .legal-inner { padding: 0 20px; } }
