/* Floorbooks landing designs: the Fleetbooks website system, ported to plain CSS.
   Tokens and components come from fleetbooks-website/src/styles/global.css,
   Layout.astro, Nav.astro and pages/index.astro (read 1 Nov 2026). Theme classes
   keep Fleetbooks' names; "foundry" is new and is the only invented palette. */

/* ── Themes ─────────────────────────────────────────────────── */
:root, .theme-cabin {            /* Lorry Cabin: Fleetbooks' live theme */
  --paper: #f5f8fc; --surface: #ffffff; --ink: #0c1e3e; --muted: #475569; --line: #c7d2e0;
  --accent: #1e40af; --accent-ink: #ffffff; --accent-soft: #dbeafe; --accent-2: #2563eb;
}
.theme-ledger {                  /* Paper Ledger: Fleetbooks' control theme */
  --paper: #faf9f6; --surface: #ffffff; --ink: #0a0a0a; --muted: #6b7280; --line: #e7e5e0;
  --accent: #047857; --accent-ink: #ffffff; --accent-soft: #ecfdf5; --accent-2: #059669;
}
.theme-foundry {                 /* Foundry: new. Warm steel paper, furnace-orange accent */
  --paper: #f7f6f3; --surface: #ffffff; --ink: #1c1917; --muted: #57534e; --line: #e2ddd5;
  --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: #ffedd5; --accent-2: #ea580c;
}
:root {
  --money: #047857; --money-soft: #ecfdf5; --loss: #b91c1c; --loss-soft: #fef2f2;
  --warn: #b45309; --warn-soft: #fef3c7;
  --n800: #262626; --n700: #404040; --n600: #525252; --n500: #737373; --n400: #a3a3a3; --n300: #d4d4d4; --n100: #f5f5f5;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Newsreader", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── Base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font: 16px/1.5 var(--sans); background: var(--paper); color: var(--ink); font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.display { font-family: var(--display); letter-spacing: -0.025em; font-optical-sizing: auto; font-weight: 600; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap.w6 { max-width: 1152px; }
.wrap.w5 { max-width: 1024px; }
.money { color: var(--money); } .loss { color: var(--loss); } .warn { color: var(--warn); } .acc { color: var(--accent); }
.muted { color: var(--n500); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Design review bar (Fleetbooks' DesignBar) ─────────────── */
.designbar { background: #0a0a0a; color: #fff; font-size: 11px; }
.designbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; }
.designbar a.all { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgb(255 255 255 / .5); white-space: nowrap; }
.designbar a.all:hover { color: #fff; }
.designbar .sep { color: rgb(255 255 255 / .2); }
.designbar .v { padding: 4px 10px; border-radius: 999px; white-space: nowrap; color: rgb(255 255 255 / .6); }
.designbar .v:hover { color: #fff; background: rgb(255 255 255 / .1); }
.designbar .v.on { background: #fff; color: #0a0a0a; font-weight: 500; }
.designbar .spacer { flex: 1; }
.designbar .demo { color: rgb(255 255 255 / .5); white-space: nowrap; }
.designbar .notes-toggle { white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); color: #fde68a; }
.designbar .notes-toggle:hover { background: rgb(255 255 255 / .08); }

/* Review notes: hidden until "Show review notes" is on */
.note { display: none; font: 500 10px/1.4 var(--mono); letter-spacing: .02em; text-transform: none; color: var(--warn); background: var(--warn-soft);
        border: 1px dashed #f59e0b; border-radius: 4px; padding: 1px 6px; margin: 0 0 0 6px; vertical-align: 2px; white-space: normal; }
body.show-notes .note { display: inline-block; }
.dark .note, .on-dark .note { color: #fde68a; background: rgb(245 158 11 / .12); }

/* ── Nav ────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
       background: color-mix(in srgb, var(--paper) 85%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); font-size: 13px; color: var(--n700); white-space: nowrap; }
.nav-links a:hover { opacity: .75; }
.nav-links .chev::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor;
                          border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .5; }
.nav-dark { background: color-mix(in srgb, var(--ink) 92%, transparent); border-bottom-color: rgb(255 255 255 / .1); }
.nav-dark .logo, .nav-dark .nav-links { color: #fff; }
.nav-dark .nav-links { color: rgb(255 255 255 / .75); }

/* ── Type ───────────────────────────────────────────────────── */
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: 12px; }
.eyebrow.dot { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .18em; margin-bottom: 24px; }
.eyebrow.dot::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.h-hero { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.lead { font-size: 18px; line-height: 1.65; color: var(--n700); }
.body { font-size: 17px; line-height: 1.65; color: var(--n700); }
.small { font-size: 12px; color: var(--n500); }
.sec-head { max-width: 680px; }
.sec-head .lead { margin-top: 16px; }

/* ── Buttons (pills) ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 500;
       transition: background .15s, opacity .15s, border-color .15s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { opacity: .9; }
.btn-outline { border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--surface); }
.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { opacity: .9; }
.btn-light { background: #fff; color: var(--ink); font-weight: 600; }
.btn-ghost-light { border: 1px solid rgb(255 255 255 / .4); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / .08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Surfaces ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card.tight { padding: 20px; border-radius: 12px; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: #fff; }
.dark .lead, .dark .body { color: rgb(255 255 255 / .75); }
.dark .eyebrow { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.section { padding: 96px 0; }
.section.sm { padding: 72px 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

.grid-bg { background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
.grid-bg-dark { background-image:
    linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 32px 32px; }
.hero { position: relative; overflow: hidden; }
.hero > .grid-bg, .hero > .grid-bg-dark { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.hero > .wrap { position: relative; }

/* ── KPI cards ──────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--n500); }
.kpi .v { margin-top: 4px; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .d { margin-top: 4px; font-size: 12px; color: var(--n500); }
.caption { margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--n500); }

/* ── Browser frame (copied from Fleetbooks) ─────────────────── */
.browser-frame { position: relative; background: color-mix(in srgb, var(--line) 50%, var(--paper)); border-radius: 14px; padding-top: 10px;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .18), 0 10px 25px -10px rgb(0 0 0 / .10); overflow: hidden; }
.browser-chrome { display: flex; align-items: center; gap: 6px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
.browser-dot { width: 11px; height: 11px; border-radius: 99px; }
.browser-dot:nth-child(1) { background: rgb(248 113 113 / .8); } .browser-dot:nth-child(2) { background: rgb(250 204 21 / .8); } .browser-dot:nth-child(3) { background: rgb(74 222 128 / .8); }
.browser-url { margin-left: 14px; font: 11px var(--mono); color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); }
.frame-wrap { position: relative; }
.frame-tag { position: absolute; top: -12px; left: 24px; z-index: 2; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
             font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }

/* ── Marquee (copied) ───────────────────────────────────────── */
.marquee-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.marquee-band .label { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--n500); margin-bottom: 16px; padding: 0 16px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; padding-right: 3rem; animation: marquee 30s linear infinite; flex-shrink: 0; }
.marquee-track span { font-family: var(--display); font-size: 20px; color: var(--n400); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .eyebrow.dot::before { animation: none; } }

/* ── Chips and tags ─────────────────────────────────────────── */
.chip-stop { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 20px; border-radius: 8px; background: var(--money-soft);
             border: 1px solid rgb(4 120 87 / .2); padding: 10px 14px; font-size: 14px; color: var(--money); font-weight: 500; line-height: 1.35; }
.chip-stop .k { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .7; flex-shrink: 0; margin-top: 2px; }
.tag { display: inline-block; font: 600 9.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.tag.live { color: var(--money); background: var(--money-soft); }
.tag.pilot { color: var(--accent); background: var(--accent-soft); }
.tag.soon { color: var(--n500); background: var(--n100); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.conf { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.conf::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.conf.rep { color: var(--money); background: var(--money-soft); }
.conf.prov { color: var(--warn); background: var(--warn-soft); }
.conf.miss { color: var(--loss); background: var(--loss-soft); }

/* ── Layout helpers ─────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.features { display: grid; gap: 112px; margin-top: 64px; }

/* ── Comparison table ───────────────────────────────────────── */
.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
table.cmp th { background: #fafafa; padding: 16px 20px; font-weight: 600; }
table.cmp td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--n800); vertical-align: top; }
table.cmp th.us, table.cmp td.us { color: var(--accent); }
table.cmp td.us { color: var(--ink); font-weight: 500; }

/* ── Pricing-style cards ────────────────────────────────────── */
.tier { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.tier.hot { border: 2px solid var(--accent); background: var(--accent-soft); }
.tier .badge { position: absolute; top: -12px; left: 28px; padding: 4px 12px; font-size: 12px; font-weight: 600; background: var(--accent); color: var(--accent-ink);
               border-radius: 99px; text-transform: uppercase; letter-spacing: .1em; }
.tier .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--n500); }
.tier.hot .k { color: var(--accent); }
.tier .big { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin-top: 20px; line-height: 1.05; }
.tier ul { margin-top: 24px; display: grid; gap: 10px; font-size: 14px; color: var(--n700); }
.tier .btn { margin-top: 24px; width: 100%; }

/* ── FAQ (1/3 + 2/3) ────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq summary .plus { color: var(--n400); transition: transform .15s; margin-top: 2px; font-size: 18px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--n700); line-height: 1.65; }

/* ── Closing doors ──────────────────────────────────────────── */
.door { border-radius: 24px; padding: 40px; }
.door.ink { background: var(--ink); color: #fff; }
.door.ink p { color: rgb(255 255 255 / .8); }
.door.paper { background: var(--surface); border: 1px solid var(--line); }
.door .k { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; }
.door.ink .k { color: rgb(255 255 255 / .6); }
.door.paper .k { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 0; font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer li { margin-bottom: 8px; color: var(--n700); }
.footer .about { color: var(--n700); line-height: 1.6; margin-top: 20px; max-width: 360px; }
.footer .base { margin-top: 48px; border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--n500); }

/* ── Mock app screens (demo data only) ──────────────────────── */
.app { background: var(--surface); font-size: 12px; color: var(--ink); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-head b { font-size: 14px; }
.app-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.app-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.app-kpi .l { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--n500); }
.app-kpi .v { font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-kpi .s { font-size: 10.5px; color: var(--n500); margin-top: 1px; }
.app-split { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; }
.app-panel { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; overflow-y: hidden; }
.app-panel h5 { margin: 0; font-size: 11px; font-weight: 600; padding: 9px 12px; background: #fafafa; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.app-panel h5 span { font-weight: 400; color: var(--n500); }
table.app-t { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.app-t th { text-align: left; font-weight: 500; color: var(--n500); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; }
table.app-t td { padding: 8px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.act { padding: 9px 12px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.act:first-of-type { border-top: 0; }
.act .t { font-weight: 500; line-height: 1.35; }
.act .m { color: var(--n500); font-size: 10.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.app-foot { font-size: 10.5px; color: var(--n500); display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* WhatsApp message mock */
.wa { background: #efeae2; border-radius: 16px; padding: 18px; }
.wa-bubble { background: #fff; border-radius: 10px; padding: 10px 12px 8px; max-width: 360px; font-size: 13.5px; line-height: 1.5; color: #111b21; box-shadow: 0 1px 0.5px rgb(11 20 26 / .13); }
.wa-bubble .time { text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.wa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: #111b21; }
.wa-head .av { width: 32px; height: 32px; border-radius: 99px; background: var(--ink); display: grid; place-items: center; }
.wa-head .av svg { width: 18px; height: 18px; }

/* Phone mock */
.phone { width: 300px; margin: 0 auto; border-radius: 36px; border: 10px solid #111; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .25); }
.phone .bar { height: 26px; background: #111; }
.phone .scr { padding: 16px; display: grid; gap: 10px; font-size: 13px; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.field .l { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--n500); }
.field .v { font-weight: 500; margin-top: 1px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 12px; }
.reasons span.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-links .hide-md { display: none; }
  .hero-grid, .feature, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip > :first-child { order: 0; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .app-split { grid-template-columns: 1fr; }
  .features { gap: 80px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  table.app-t th, table.app-t td { padding-left: 8px; padding-right: 8px; }
  .door { padding: 28px; }
  .footer .base { flex-direction: column; }
}
