/* =========================================================
   Fynex Logistics — main stylesheet
   Brand tokens live in :root. See CLAUDE.md before changing.
   ========================================================= */

:root {
  --accent: #1E3A8A;          /* brand navy-blue */
  --accent-dark: #172554;     /* link hover */
  --accent-soft: #EEF2FF;     /* icon tiles */
  --accent-tint: #DBE4FF;     /* text on accent */
  --amber: #D97706;           /* logo X + streaks on light bg */
  --gold: #FBBF24;            /* highlights on dark bg */
  --navy: #0B1530;            /* dark sections */
  --navy-2: #0F1C3D;          /* cards on dark */
  --navy-3: #101D3D;          /* map background */
  --navy-line: #23345E;
  --navy-rule: #1C2C52;
  --green: #16A34A;
  --ink: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --line: #E5E9F0;
  --surface: #F6F8FB;
  --field: #F8FAFC;
  --white: #FFFFFF;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
  --gutter: 24px;
  --section-y: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.page { width: 100%; overflow: hidden; }
.container { max-width: var(--max); margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--top-border { border-top: 1px solid var(--line); }
.section--dark { background: var(--navy); color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow--gold { color: var(--gold); }
.h2 {
  margin: 0; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -0.015em;
}
.h3 { margin: 0; font-size: 21px; font-weight: 800; }
.body-copy { margin: 0; line-height: 1.65; color: var(--slate-600); }
.lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--slate-600); }
.section-head { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-family: inherit; font-weight: 700; font-size: 17px;
  border-radius: 999px; border: 0; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--accent); color: var(--white); padding: 17px 30px; }
.btn--primary:hover { color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); padding: 16px 28px; border: 1px solid var(--slate-300); }
.btn--ghost:hover { color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 800; padding: 16px 28px; }
.btn--gold:hover { color: var(--navy); }
.btn--white { background: var(--white); color: var(--ink); font-weight: 800; padding: 18px 32px; }
.btn--white:hover { color: var(--ink); }
.btn--sm { font-size: 15px; padding: 13px 22px; }
.btn--block { width: 100%; padding: 17px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--white); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-weight: 800; font-style: italic; font-size: 32px; letter-spacing: -0.03em; color: var(--accent);
}
.brand__x { color: var(--amber); }
.brand__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.42em; color: var(--slate-500); padding-top: 4px; }

.main-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--slate-700); text-decoration: none; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { white-space: nowrap; }
.phone-link {
  display: flex; align-items: center; gap: 8px; color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.phone-link:hover { color: var(--accent); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--slate-200); background: var(--white); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .2s; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .3s var(--ease);
}
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface); }
.hero__dots { position: absolute; inset: 0; opacity: 0.6; width: 100%; height: 100%; }
.hero__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 112px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero__copy { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.badge {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 1px solid var(--slate-200); padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--slate-700);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hero__title {
  margin: 0; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(42px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--slate-600); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 10px; font-size: 15px; font-weight: 600; color: var(--slate-700); }
.ticks span { display: flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 420px; min-width: 0; position: relative; }
.route-card { background: var(--navy); border-radius: 24px; padding: 20px; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .5); }
.route-card__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--slate-400);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 6px 14px;
}
.route-card__status { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.route-card__status .dot { width: 7px; height: 7px; background: var(--gold); }
.route-map { display: block; border-radius: 14px; background: var(--navy-3); width: 100%; height: auto; }

.float { position: absolute; }
.float--booked { left: -28px; bottom: 40px; }
.float--rate { right: -20px; top: 70px; animation-delay: 1.2s; }
.float-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .35);
}
.float-card--row { display: flex; gap: 12px; align-items: center; }
.float-card--col { display: flex; flex-direction: column; gap: 2px; }
.float-card__icon { width: 38px; height: 38px; border-radius: 10px; background: #DCFCE7; display: flex; align-items: center; justify-content: center; flex: none; }
.float-card__text { display: flex; flex-direction: column; }
.float-card__title { font-weight: 700; font-size: 15px; }
.float-card__sub { font-size: 13px; color: var(--slate-500); }
.float-card__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); }
.float-card__rate { font-weight: 800; font-size: 22px; color: var(--accent); }

/* ---------- Stats band ---------- */
.stats { background: var(--white); border-top: 1px solid var(--line); padding: 0 var(--gutter); }
.stats__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 40px 16px; }
.stat + .stat { border-left: 1px solid var(--slate-200); }
.stat__num {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 4.6vw, 56px); line-height: 1;
  letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--slate-600); }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--slate-200); padding: 22px 0; overflow: hidden; }
.marquee__track {
  display: flex; width: max-content; font-weight: 700; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.marquee__group { display: flex; gap: 48px; padding-right: 48px; }
.marquee__sep { color: var(--gold); }

/* ---------- Services ---------- */
.stack { display: flex; flex-direction: column; }
.services__wrap { gap: 56px; }
.services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.services__head .section-head { max-width: 640px; }
.services__head .lead { max-width: 380px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 18px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }

/* ---------- Process ---------- */
.process__wrap { gap: 64px; }
.process__wrap .section-head { max-width: 680px; }
.timeline { position: relative; }
.timeline__track, .timeline__fill { position: absolute; left: 0; right: 0; top: 27px; height: 2px; }
.timeline__track { background: #DCE3EE; }
.timeline__fill { background: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
  box-shadow: 0 0 0 8px var(--surface); flex: none;
}

/* ---------- Why ---------- */
.why__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.why__copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.why__copy p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--slate-300); }
.why__copy .btn { align-self: flex-start; }
.why__grid { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dark-card { border: 1px solid var(--navy-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--navy-2); }
.dark-card h3 { margin: 0; font-size: 19px; font-weight: 800; }
.dark-card p { margin: 0; line-height: 1.6; color: var(--slate-300); }

/* ---------- Team ---------- */
.team__wrap { gap: 56px; }
.team__head { max-width: 760px; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.team-photos img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---------- Join us ---------- */
.join__wrap { gap: 56px; }
.join__head { max-width: 760px; }
.join__head em { font-style: italic; color: var(--accent); }
.join__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.join__apply { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.join__apply .body-copy { max-width: 560px; font-size: 17px; }
.join__apply .body-copy a { font-weight: 700; overflow-wrap: anywhere; }
#join-us + .cta { padding-top: var(--section-y); }

/* ---------- New authority ---------- */
.section--dark-divider { border-top: 1px solid var(--navy-rule); }
.authority__wrap { gap: 56px; }
.authority__head { max-width: 720px; }
.authority__intro { margin: 0; font-size: 18px; line-height: 1.7; color: var(--slate-300); }
.authority__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.authority__grid .dark-card { gap: 14px; padding: 32px; }
.icon-tile--dark { background: rgba(251, 191, 36, .12); }
.dark-card.fx-card:hover { border-color: #3B5A9A; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); }
.authority__cta { align-self: flex-start; }

/* ---------- Pricing ---------- */
.pricing__wrap { gap: 48px; align-items: center; text-align: center; }
.pricing__wrap .section-head { max-width: 680px; align-items: center; }
.price-card {
  width: 100%; max-width: 560px; border: 1px solid var(--slate-200); border-radius: 24px; padding: 44px;
  display: flex; flex-direction: column; gap: 22px; align-items: center; background: var(--white);
  box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .35);
}
.price-card__label { font-size: 15px; font-weight: 700; color: var(--slate-600); }
.price-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #FEF3C7; border: 1px solid #FDE68A; color: #B45309; font-size: 13px; font-weight: 700;
}
.price-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price__from { font-size: 17px; font-weight: 600; color: var(--slate-600); }
.price__value { font-family: var(--font-serif); font-weight: 600; font-size: clamp(64px, 12vw, 88px); line-height: 1; color: var(--accent); }
.price__unit { font-size: 17px; color: var(--slate-600); }
.price-card__note { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--slate-600); }
.price-ctas { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.price-ctas .btn { flex: 1 1 200px; padding: 17px 20px; }
.btn--outline { background: var(--white); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--outline:hover { color: var(--accent); background: var(--accent-soft); }
.rule { width: 100%; height: 1px; background: var(--slate-200); }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; text-align: left; font-size: 16px; width: 100%; }
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex: none; }

/* ---------- Sign-up ---------- */
.signup__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.signup__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.contact-list a, .contact-list > span {
  display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.form-shell { flex: 999 1 580px; min-width: 0; }
.signup-form, .form-thanks {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 24px; padding: 40px;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .35);
}
.signup-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 14px; color: var(--slate-700); }
.field--full { grid-column: 1 / -1; }
.field .req { color: var(--amber); }
.field .optional { font-weight: 500; color: var(--slate-500); }
.field select:invalid { color: var(--slate-500); }
.field select option { color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); padding: 13px 16px;
  border: 1px solid var(--slate-300); border-radius: 12px; min-height: 48px; background: var(--field);
  width: 100%; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
}
.field input:user-invalid, .field select:user-invalid { border-color: #DC2626; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--slate-500); }
.form-error { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; background: #FEF2F2; color: #991B1B; font-size: 15px; font-weight: 600; }
.form-error[hidden] { display: none; }
.signup-form button { grid-column: 1 / -1; padding: 18px; min-height: 56px; }
.signup-form button[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white); animation: spin .8s linear infinite; display: none;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 56px 40px; }
.form-thanks[hidden], .signup-form[hidden] { display: none; }
.form-thanks:focus { outline: none; }
.form-thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; }
.form-thanks h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 34px; line-height: 1.1; }
.form-thanks p { margin: 0; max-width: 420px; line-height: 1.65; color: var(--slate-600); }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.faq__wrap .h2 { text-align: center; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item { border: 1px solid var(--slate-200); border-radius: 16px; padding: 0 26px; background: var(--white); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 18px; }
.fx-plus { font-size: 26px; font-weight: 400; color: var(--accent); flex: none; }
.fx-ans { margin: 0; padding: 0 0 22px; line-height: 1.65; color: var(--slate-600); }

/* ---------- CTA band ---------- */
.cta { padding: 0 var(--gutter) var(--section-y); }
.cta__box {
  max-width: var(--max); margin: 0 auto; background: var(--accent); color: var(--white); border-radius: 28px;
  padding: 64px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
}
.cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta__copy h2 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; }
.cta__copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--accent-tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--slate-300); padding: 64px var(--gutter) 40px; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-brand__logo { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand__word { font-size: 36px; color: var(--white); }
.footer-brand .brand__x { color: var(--gold); }
.footer-brand .brand__tag { color: var(--slate-400); }
.footer-brand p { margin: 0; line-height: 1.65; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title { color: var(--white); font-weight: 700; }
.footer-col a { color: var(--slate-300); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--navy-rule); padding-top: 24px; font-size: 14px; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: var(--slate-300); }
.legal-links a:hover { color: var(--white); }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-hero__inner { position: relative; max-width: 880px; margin: 0 auto; padding: 88px var(--gutter) 72px; display: flex; flex-direction: column; gap: 16px; }
.legal-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.legal-hero p { margin: 0; color: var(--slate-600); font-size: 17px; line-height: 1.65; }
.legal-body { max-width: 880px; margin: 0 auto; padding: 72px var(--gutter) var(--section-y); }
.prose { font-size: 17px; line-height: 1.75; color: var(--slate-700); }
.prose h2 { margin: 48px 0 12px; font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.callout { margin: 0 0 40px; padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #C7D2FE; color: var(--slate-700); font-size: 15px; line-height: 1.65; }

/* =========================================================
   Animations (kept exactly as in the design reference)
   ========================================================= */
@keyframes fxUp { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }
@keyframes fxFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fxDraw { from { stroke-dashoffset: 1200 } to { stroke-dashoffset: 0 } }
@keyframes fxFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes fxPulse { 0% { transform: scale(1); opacity: .55 } 100% { transform: scale(3.2); opacity: 0 } }
@keyframes fxMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes fxSlideIn { from { opacity: 0; transform: translateX(40px) } to { opacity: 1; transform: none } }
@keyframes fxGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes fxGrowY { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes fxBlink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.fx-up { animation: fxUp .9s var(--ease) both; }
.d1 { animation-delay: .1s } .d2 { animation-delay: .25s } .d3 { animation-delay: .4s } .d4 { animation-delay: .55s }
.d5 { animation-delay: .9s } .d6 { animation-delay: 1.6s } .d7 { animation-delay: 2.3s }
.fx-route { stroke-dasharray: 1200; animation: fxDraw 2.6s .4s ease-in-out both; }
.fx-float { animation: fxFloat 5s ease-in-out infinite; }
.fx-pulse { transform-box: fill-box; transform-origin: center; animation: fxPulse 2s ease-out infinite; }
.fx-marquee { animation: fxMarquee 28s linear infinite; }
.fx-slide { animation: fxSlideIn .8s var(--ease) both; }
.fx-blink { animation: fxBlink 1.6s ease-in-out infinite; }
.fx-card { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.fx-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .28); border-color: #93A5C8; }
.fx-btn { transition: transform .2s, box-shadow .2s, background-color .2s; }
.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(30, 58, 138, .55); }
.fx-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.fx-link:hover { background-size: 100% 1px; }
.fx-line { transform-origin: left; animation: fxGrow 1.4s var(--ease) both; }

/* Scroll reveals: native scroll-driven animation where supported… */
@supports (animation-timeline: view()) {
  .fx-reveal { animation: fxUp linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
  .fx-line { animation: fxGrow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}
/* …and an IntersectionObserver fallback (script.js adds .js-reveal to <html>) elsewhere. */
.js-reveal .fx-reveal { opacity: 0; }
.js-reveal .fx-reveal.is-visible { animation: fxUp .9s var(--ease) both; }
.js-reveal .fx-line { animation: none; transform: scaleX(0); }
.js-reveal .fx-line.is-visible { animation: fxGrow 1.4s var(--ease) both; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details .fx-plus { transition: transform .3s; }
details[open] .fx-plus { transform: rotate(45deg); }
details[open] .fx-ans { animation: fxUp .4s ease both; }

/* Logo */
@keyframes lgDraw { from { stroke-dashoffset: 100 } to { stroke-dashoffset: 0 } }
@keyframes lgPop { 0% { transform: scale(0); opacity: 0 } 70% { transform: scale(1.25); opacity: 1 } 100% { transform: scale(1); opacity: 1 } }
@keyframes lgNudge { 0%, 70%, 100% { transform: translateX(0) } 80% { transform: translateX(2px) } 90% { transform: translateX(-1px) } }
.lg-draw { stroke-dasharray: 100; animation: lgDraw 1.3s .2s cubic-bezier(.6, 0, .2, 1) both; }
.lg-d2 { animation-delay: .8s; }
.lg-pop { transform-box: fill-box; transform-origin: center; animation: lgPop .5s 1.3s cubic-bezier(.3, 1.5, .5, 1) both, lgNudge 2.8s 1.8s ease-in-out infinite; }
@keyframes wmIn { from { opacity: 0; transform: translateX(-22px) skewX(-10deg) } to { opacity: 1; transform: none } }
@keyframes wmStreak { 0% { transform: translateX(8px); opacity: 0 } 35% { opacity: 1 } 100% { transform: translateX(-12px); opacity: 0 } }
.wm-l { display: inline-block; animation: wmIn .6s var(--ease) both; }
.l1 { animation-delay: .1s } .l2 { animation-delay: .2s } .l3 { animation-delay: .3s } .l4 { animation-delay: .4s } .l5 { animation-delay: .55s }
.wm-streak { animation: wmStreak 1.4s ease-out infinite; }
.s2 { animation-delay: .35s } .s3 { animation-delay: .7s }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .header-actions .phone-link { display: none; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 15px; }
}

@media (max-width: 1060px) {
  :root { --section-y: 88px; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 18px; padding: 8px 0 6px;
  }
  .menu-open .site-nav { display: flex; animation: fxUp .35s var(--ease) both; }
  .main-nav { flex-direction: column; gap: 0; font-size: 17px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); background-image: none; }
  .header-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .header-actions .phone-link { display: flex; justify-content: center; padding: 12px; border: 1px solid var(--slate-200); border-radius: 999px; }
  .header-actions .btn { padding: 15px 22px; }
  .hero__inner { padding: 72px var(--gutter) 88px; }
}
@media (min-width: 1061px) {
  .site-nav { display: contents; }
}

/* Vertical timeline on tablets and phones (4 steps can't share one row) */
@media (max-width: 1000px) {
  .timeline__track, .timeline__fill { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .timeline__fill { transform-origin: top; }
  .fx-line { animation-name: fxGrowY; }
  .js-reveal .fx-line { transform: scaleY(0); }
  .js-reveal .fx-line.is-visible { animation-name: fxGrowY; }
  .steps { grid-template-columns: 1fr; gap: 36px; max-width: 640px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 8px; }
  .step__num { grid-row: 1 / span 2; }
  .step .h3 { align-self: end; padding-top: 4px; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 1000px) {
    .fx-line { animation: fxGrowY linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --section-y: 72px; --gutter: 20px; }
  .hero__inner { padding: 56px var(--gutter) 72px; gap: 64px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float--booked { left: -8px; bottom: -28px; }
  .float--rate { right: -8px; top: -28px; }
  .route-card { padding: 14px; border-radius: 20px; }


  .why__copy .btn, .cta__box .btn, .authority__cta, .join__apply .btn { align-self: stretch; width: 100%; }
  .price-card { padding: 32px 24px; }
  .signup-form, .form-thanks { padding: 24px; border-radius: 20px; }
  .faq__item { padding: 0 20px; }
  .faq__item summary { font-size: 17px; }
  .cta__box { padding: 40px 24px; border-radius: 22px; }
  .footer-cols { gap: 40px; }

  .stats__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 28px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--slate-200); }
  .stat__label { font-size: 14px; }
}

@media (max-width: 400px) {
  .brand__word { font-size: 28px; }
  .brand__tag { letter-spacing: 0.34em; }
  .brand svg { width: 30px; }
  .ticks { gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js-reveal .fx-reveal { opacity: 1; }
  .js-reveal .fx-line { transform: none; }
}
