/* Shared styling for the standalone marketing pages (/software-for-freight-forwarders/,
 * /freight-rate-card-software/, and the rest of the solution pages).
 *
 * Hand-written plain CSS for the same reason company/legal/legal.css is:
 * assets/style-R-FrA6AU.css is a pre-compiled Tailwind subset containing only
 * the utilities index.html happens to use, so any class these pages needed and
 * it didn't would silently do nothing. These pages also have no product mock in
 * them, so they need none of index.html's ~1200 lines of mock CSS.
 *
 * Tokens are copied from index.html's :root so the pages are visually part of
 * the same site. If a brand colour changes there, change it here.
 */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --ink: #0a0a0a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e7e7e9;
  --line-2: #f0f0f1;
  --accent: #2c4a72;
  --accent-bright: #3c78c2;
  --accent-soft: rgba(44, 74, 114, 0.06);
  --good: #1f7a4d;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  /* Contains a wide table or card row without creating a scroll box. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── Header ────────────────────────────────────────────────────────────── */

.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.lotic-lockup {
  display: inline-flex;
  align-items: center;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  flex: none;
}
.lotic-lockup img { height: 0.94em; width: auto; display: block; }

.top-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}
.top-links a:hover { color: var(--ink); }
/* The one link that has to survive a narrow phone is the CTA. */
@media (max-width: 560px) {
  .top-links .top-link-optional { display: none; }
}

.top-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s var(--ease);
}
.top-cta:hover { background: #24314a; transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
/* The same tinted wash the home page puts behind its hero, at lower intensity:
   these pages have no product window to stage, so it reads as a tint rather
   than a spotlight. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(60,120,194,0.09), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(44,74,114,0.05), transparent 75%);
}
.hero .inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-bright);
  flex: none;
}

h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 15em;
}
.accent { color: var(--accent); }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 44em;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

section { padding: clamp(56px, 7vw, 92px) 0; }
section.surface { background: var(--surface); border-block: 1px solid var(--line-2); }

h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 18em;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}

p { margin: 0 0 18px; color: var(--ink-2); max-width: 44em; }
p.tight { margin-bottom: 10px; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--accent);
}

ul.plain { list-style: none; padding: 0; margin: 0 0 20px; max-width: 44em; }
ul.plain li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 11px;
  color: var(--ink-2);
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-bright);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 24px 24px 20px;
}
.card p { font-size: 15px; margin: 0; }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 0 0 12px;
}
/* A card that is itself a link to another page in the set. */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
a.card:hover {
  border-color: #cfd6e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}
a.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
}

/* ── Comparison table ──────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin: 32px 0 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 10px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
th { color: var(--ink); font-weight: 600; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { margin-top: 32px; max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { font-size: 15px; margin: 0 0 18px; max-width: 60em; }

/* ── Closing CTA ───────────────────────────────────────────────────────── */

.cta-band { padding: clamp(56px, 7vw, 88px) 0; }
.cta-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(171deg, #ffffff 0%, #f9fbfe 30%, #e8f1fd 130%);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-card h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 38px); }
.cta-card p { margin: 0; font-size: 15px; }

/* Same hover mechanic as every Join-waitlist button on the home page: the
   label rolls up to its duplicate while the arrow steps up and to the right. */
.cta-pill {
  --cta-dur: 0.6s;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  flex: none;
  background: linear-gradient(145deg, #1a2a42 0%, #0a1628 40%, #1e3350 85%, #2a4060 100%);
  box-shadow: 0 4px 20px rgba(10,22,40,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: box-shadow var(--cta-dur) var(--ease), transform .25s var(--ease);
}
.cta-pill:hover {
  box-shadow: 0 8px 30px rgba(10,22,40,0.32), inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.cta-pill-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.cta-pill-arrow { width: 16px; height: 16px; display: block; transition: transform var(--cta-dur) var(--ease); }
.cta-pill:hover .cta-pill-arrow { transform: translate(3px, -3px); }
.cta-pill-text { padding: 0 32px; height: 19px; overflow: hidden; display: flex; align-items: flex-start; }
.cta-pill-track {
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform var(--cta-dur) var(--ease);
}
.cta-pill:hover .cta-pill-track { transform: translateY(-26px); }
.cta-pill-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .cta-pill, .cta-pill-arrow, .cta-pill-track, a.card, .top-cta { transition: none; }
  .cta-pill:hover, .cta-pill:hover .cta-pill-track, .cta-pill:hover .cta-pill-arrow,
  a.card:hover, .top-cta:hover { transform: none; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.foot {
  background: linear-gradient(171deg, rgb(255,255,255) 0%, rgb(249,251,254) 24%, rgb(214,234,255) 140%);
  padding: 48px 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line-2);
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}
@media (max-width: 720px) { .foot-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-nav { grid-template-columns: 1fr; } }
.foot-head {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin: 0 0 9px; }
.foot-nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s ease;
}
.foot-nav a:hover { color: var(--ink); }

.foot-bar {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
}
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot-meta a, .foot-meta span { font-size: 12px; color: var(--ink-3); text-decoration: none; }
.foot-meta a:hover { color: var(--ink-2); }

/* ── Sticky mobile CTA ─────────────────────────────────────────────────── */

/* These pages exist to catch search traffic, and a searcher arriving on one
   lands mid-funnel: they read a page of copy on a phone, and the only ways to
   act on it are the pill in the header (scrolled away by paragraph three) and
   the cta-band at the very bottom. This docks the CTA to the bottom of the
   viewport so it is always one thumb-reach away.
   The home page needs none of this — it already has #float-cta, which does the
   same job there with JS that reveals it once the hero CTA scrolls off.
   Deliberately no JS here: these pages otherwise load none of their own, and a
   bar that is simply always present is more reliable than one whose visibility
   depends on a scroll listener firing. */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(10, 22, 40, 0.06);
}
.mobile-cta-text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
  min-width: 0;
}
.mobile-cta-text strong { display: block; color: var(--ink); font-weight: 600; }
.mobile-cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.mobile-cta-btn:active { background: #24314a; }

@media (max-width: 720px) {
  .mobile-cta { display: flex; }

  /* The consent bar docks to the same edge and outranks everything at
     z-index 2147483000, so on a first visit the two stack and the CTA loses.
     Yield to it: cookie-consent.js appends #cc-root on mount and removes the
     whole node in teardown(), so this goes false the moment a choice is made,
     and true again if the visitor reopens Cookie Settings from the footer. */
  body:has(#cc-root) .mobile-cta { display: none; }
  /* The bar floats over the page, so the footer needs room to clear it —
     otherwise the last row of footer links sits permanently underneath. */
  body { padding-bottom: 76px; }
  /* The header pill and the docked bar would otherwise both be on screen at
     the top of the page, saying the same thing twice. */
  .top-links .top-cta { display: none; }
}

/* Below 560px the header already drops its optional links (see the rule up in
   the header block); with the CTA gone too the bar is just the lockup, which
   is fine — the docked bar is carrying the action. */

@media print {
  .mobile-cta { display: none !important; }
}
