/* Slflo marketing site — shared tokens, layout and components. */
:root {
  --green-950: #07100d;
  --green-900: #0b3d30;
  --green-800: #13563f;
  --green-700: #066952;
  --mint-500: #3fb58a;
  --mint-200: #cfe6dc;
  --mint-300: #9cc7b6;
  --mint-100: #dcede5;
  --ground: #f1f5f3;
  --surface: #ffffff;
  --ink: #0f1a16;
  --ink-2: #3a4a44;
  --ink-3: #4a5c55;
  --ink-4: #7b8f87;
  --line: #dce6e1;
  --line-2: #e2ece7;
  --amber-ink: #7a5200;
  --amber-wash: #f6ecd6;
  --amber: #c98a14;

  --font-display: 'Bricolage Grotesque', Cairo, 'Segoe UI', sans-serif;
  --font-body: Cairo, 'Segoe UI', sans-serif;

  --text-hero: clamp(2.5rem, 1.3rem + 3.6vw, 3.75rem);
  --text-h2: clamp(2rem, 1.4rem + 1.8vw, 2.875rem);
  --space-section: clamp(4rem, 3rem + 3vw, 6rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--mint-500); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker { margin: 0; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); }
.on-dark .kicker, .kicker--mint { color: var(--mint-500); }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; }
.h1 { font-size: var(--text-hero); line-height: 1.03; letter-spacing: -0.03em; }
.h2 { font-size: var(--text-h2); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.on-dark { color: #fff; }
.on-dark .lead { color: var(--mint-200); }
.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 105, 82, 0.25); }
.btn:active { transform: scale(0.98); }
.btn--mint { background: var(--mint-500); color: #062a20; }
.btn--mint:hover { color: #062a20; }
.btn--dark { background: var(--green-900); color: #fff; }
.btn--dark:hover { color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid #3c7462; }
.btn--ghost:hover { color: #fff; }
.btn--outline { background: transparent; color: #062a20; border: 1.5px solid var(--green-900); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; border-radius: 10px; }

/* Header / nav */
.site-head { background: var(--green-900); position: relative; z-index: 1; }
.site-head::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.nav-links { display: flex; gap: 28px; flex: 1 1 auto; justify-content: center; }
.nav-links a { color: var(--mint-200); text-decoration: none; font-size: 0.9375rem; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.nav-signin { color: #fff; font-weight: 600; text-decoration: none; padding: 12px 6px; }
.nav-signin:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* Cards */
.card { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card p { margin: 0; color: var(--ink-3); line-height: 1.6; }
.card h3 { margin: 0; font-size: 1.25rem; }
.lift { transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 61, 48, 0.12); }

.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.section { padding-block: var(--space-section); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; line-height: 1.5; }
.checklist svg { flex: none; margin-top: 3px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 18px 22px; }
.faq summary { font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-3); line-height: 1.6; }

/* CTA + footer */
.cta { background: var(--mint-500); border-radius: 28px; padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta .h2 { color: #062a20; }
.cta p { margin: 0; color: var(--green-900); font-size: 1.125rem; line-height: 1.55; }
.site-foot { background: var(--green-950); color: #9cb3aa; }
.site-foot a { color: #9cb3aa; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px 32px; justify-content: space-between; align-items: center; padding-block: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-base { border-top: 1px solid #1c2a25; padding-block: 18px 28px; font-size: 0.8125rem; }

/* Tabs (pill) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9375rem;
  min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--green-900);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out-expo);
}
.pill:hover { transform: translateY(-1px); }
.pill[aria-selected='true'] { background: var(--green-900); color: #fff; }

/* Map */
.map { position: relative; overflow: hidden; border-radius: 22px; background: #dceae3; min-height: 380px; }
.map::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 2px, transparent 2px);
  background-size: 64px 64px;
}
.map .river { position: absolute; left: 52%; top: -10%; width: 46px; height: 120%; background: #bfd9e6; transform: skewX(-12deg); }
.map .pin { position: absolute; width: 16px; height: 16px; border-radius: 8px; box-shadow: 0 0 0 4px #fff; background: var(--green-700); }
.map .pin--flag { background: var(--amber); }
.map .pin--todo { background: #9cb3aa; }
.map .van { position: absolute; left: 6%; top: 72%; animation: drive 12s var(--ease-in-out) infinite alternate; }
.map .van .ping { position: absolute; left: -6px; top: -6px; width: 36px; height: 36px; border-radius: 18px; background: var(--green-700); animation: ping 1.8s ease-out infinite; }
.map .van .dot { position: relative; display: block; width: 24px; height: 24px; border-radius: 12px; background: var(--green-900); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.map .tag { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); font-size: 0.8125rem; }
@keyframes drive {
  0% { transform: translate(0, 0); }
  25% { transform: translate(min(26vw, 160px), -60px); }
  50% { transform: translate(min(50vw, 300px), -10px); }
  75% { transform: translate(min(70vw, 420px), -90px); }
  100% { transform: translate(min(80vw, 500px), -40px); }
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-swap { animation: swapIn 0.5s var(--ease-out-expo) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
