/* ==========================================================================
   Flotier — Design System
   Charcoal navy / Electricity blue / Warm sand / Soft ice grey / Sky blue tint
   Type: Urbanist (display) + Inter (body)
   ========================================================================== */

:root {
  --charcoal: #1E2630;
  --charcoal-soft: #2A3441;
  --electric: #74D1FF;
  --electric-dim: #4FB8EE;
  --sand: #E6DDC5;
  --ice: #F2F5F7;
  --sky-tint: #D5E8F5;
  --white: #FFFFFF;

  --ink: #1E2630;
  --ink-muted: #5B6673;
  --ink-faint: #8A93A0;
  --border: #E1E6EA;
  --border-dark: #384352;

  --danger: #B3261E;
  --danger-bg: #FDECEA;
  --warn: #8A5A00;
  --warn-bg: #FDF2DE;

  --font-display: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(30, 38, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 38, 48, 0.10);
  --shadow-lg: 0 16px 48px rgba(30, 38, 48, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-muted); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric-dim);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

section.on-dark .eyebrow { color: var(--electric); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--electric); color: var(--charcoal); }
.btn-primary:hover { background: var(--electric-dim); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border-dark); }
.btn-ghost:hover { border-color: var(--charcoal); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.on-dark .btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #10151c; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%);
}
.footer-brand .logo img,
.on-dark .logo img {
  filter: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--electric-dim); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.on-dark { background: var(--charcoal); color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: rgba(255,255,255,0.72); }
.on-tint { background: var(--sky-tint); }
.on-ice { background: var(--ice); }
.on-sand { background: var(--sand); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero-visual {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--charcoal) 0%, #101820 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { }
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--charcoal); display: block; }
.on-dark .stat .num { color: var(--electric); }
.stat .label { font-size: 0.82rem; color: var(--ink-faint); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--sky-tint);
  padding: 20px 0;
  border-top: 1px solid rgba(30,38,48,0.06);
  border-bottom: 1px solid rgba(30,38,48,0.06);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric-dim);
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card-link { display: block; }
.card-link:hover .card { border-color: var(--electric-dim); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sky-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card .arrow { color: var(--electric-dim); font-weight: 700; margin-top: 12px; display: inline-block; }

.proof-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.proof-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--electric-dim);
  font-weight: 700;
}
.proof-card h4 { margin: 10px 0 8px; }
.proof-card .status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
}

/* ---------- Comparison / two-box ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare-box { border-radius: var(--radius-lg); padding: 28px; }
.compare-box.no { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.compare-box.yes { background: rgba(116, 209, 255, 0.1); border: 1px solid rgba(116, 209, 255, 0.35); }
.compare-box h4 { display: flex; align-items: center; gap: 10px; }
.compare-box ul { margin: 0; padding-left: 20px; }
.compare-box li { margin-bottom: 8px; color: rgba(255,255,255,0.75); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
thead th {
  background: var(--charcoal);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
tbody td { padding: 13px 18px; border-top: 1px solid var(--border); color: var(--ink-muted); }
tbody tr:nth-child(even) { background: var(--ice); }
tbody td:first-child { color: var(--charcoal); font-weight: 600; }
.placeholder { color: var(--warn); font-style: italic; }
.placeholder::after { content: " [tbc]"; font-size: 0.78em; opacity: 0.8; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 28px; }
.step { display: flex; gap: 20px; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.on-dark .step-num, .on-tint .step-num { background: var(--charcoal); color: var(--electric); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-row .hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--electric-dim);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-success {
  display: none;
  background: rgba(116,209,255,0.12);
  border: 1px solid var(--electric-dim);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 0.92rem;
}
.form-success.show { display: block; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Audience router pills ---------- */
.route-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.route-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: var(--white);
}
.route-tab.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* ---------- ROI Calculator ---------- */
.calc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-field { margin-bottom: 20px; }
.calc-field label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }
.calc-field output { color: var(--electric-dim); font-family: var(--font-mono); }
.calc-field input[type="range"] { width: 100%; accent-color: var(--electric-dim); }
.calc-results { background: var(--charcoal); border-radius: var(--radius); padding: 24px; color: var(--white); }
.calc-results .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.calc-results .row:last-child { border-bottom: none; }
.calc-results .row .v { font-family: var(--font-display); font-weight: 800; color: var(--electric); }
.calc-disclaimer { font-size: 0.76rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--electric-dim);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.timeline-item .year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--electric-dim); font-weight: 700; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sky-tint), var(--sand));
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--charcoal);
}
.team-card .role { color: var(--electric-dim); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.avatar-photo { overflow: hidden; padding: 0; background: none; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---------- Badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge-open { background: #E8F5E9; color: #2E7D32; }
.badge-progress { background: var(--warn-bg); color: var(--warn); }
.badge-taken { background: var(--danger-bg); color: var(--danger); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--electric); }
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; }
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: var(--ice); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 0.82rem; font-weight: 600; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--electric-dim); }

.page-hero { padding: 48px 0 56px; background: var(--ice); }
.page-hero .lede { font-size: 1.05rem; max-width: 640px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--electric); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; margin-top: 2px;
}

.note-box {
  border-left: 3px solid var(--electric-dim);
  background: var(--sky-tint);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}
.note-box.warn { border-color: var(--warn); background: var(--warn-bg); }
