/* logitory.io website styles, shared by every page. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --green-border: #a7f3d0;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --orange-border: #fed7aa;
  --brown: #92582c;
  --red: #dc2626;
  --yellow: #ca8a04;
  --grey: #64748b;
  --blue: #2563eb;
  color-scheme: light;
}
:root.dark {
  --bg: #020617;
  --surface: #0f172a;
  --border: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: #1e1b4b;
  --green: #34d399;
  --green-soft: #022c22;
  --green-border: #065f46;
  --orange: #fb923c;
  --orange-soft: #2a1306;
  --orange-border: #9a3412;
  --brown: #c48f5f;
  --red: #f87171;
  --yellow: #facc15;
  --grey: #94a3b8;
  --blue: #60a5fa;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
}
a {
  color: var(--accent);
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
header .logo {
  height: 32px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}
nav a:not(.button):hover {
  color: var(--text);
}
.logo-dark,
:root.dark .logo-light {
  display: none;
}
:root.dark .logo-dark {
  display: inline;
}
.button {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: var(--accent-hover);
}
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.button.secondary:hover {
  background: var(--surface);
}
/* Request Demo: the logo's orange, the same in both themes so white text stays readable. */
.button.orange {
  background: #ea580c;
  color: #fff;
}
.button.orange:hover {
  background: #c2410c;
}
.button.orange:focus-visible {
  outline-color: #ea580c;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
/* The logo and "Every Part, Every Vehicle, Every Job" heading (.brand). */
.hero h1 {
  margin: 0;
  line-height: 0;
}
.hero p {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 17px;
}
svg.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  text-align: center;
}
section .lead {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
/* A feature card on its own full-width row (Barcode scanning, under the six). */
.grid > .card.wide {
  grid-column: 1 / -1;
}
.card.wide p {
  max-width: 760px;
}
/* The two service cards under the features: a row of two, one column on phones. */
.grid.services {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin-top: 16px;
}
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
/* Expandable feature cards: a + / − button; while one is open the others blur, fade and hide. */
#features .card {
  transition:
    filter 0.25s,
    opacity 0.25s;
}
#features.focusing .card:not(.active) {
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}
#features.expanded .card:not(.active),
#features.expanded .grid.services {
  display: none;
}
#features.expanded .card.active {
  grid-column: 1 / -1;
}
.card.expandable {
  position: relative;
}
.card .expand {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
/* The + / − is drawn with two bars rather than a text glyph, so it sits exactly in the middle of the
   button whatever the font. */
.card .expand::before {
  content: '';
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
}
.card .expand[aria-expanded='true']::before {
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat;
}
.card .expand:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.card .expand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* Several icon buttons in the corner instead of +; the one showing its screenshot is highlighted. */
.card .expand-group {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.card .expand-group .expand {
  position: static;
}
.card .expand.pick::before {
  content: none;
}
.card .expand.pick svg.icon {
  width: 18px;
  height: 18px;
  color: inherit;
}
.card .expand.pick[aria-expanded='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.card .preview {
  margin: 20px 0 0;
}
/* Several screenshots in one preview, each under a small label. */
.card .preview.stack .label {
  margin: 16px 0 6px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}
.card .preview.stack .label:first-child {
  margin-top: 0;
}
/* These screenshots are banners with their own frame. */
.card .preview.stack img {
  border: 0;
}
/* Slides: ‹ label › above the screenshot, so the arrows stay put when images differ in height. */
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.slide-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.slide-nav button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.slide-nav button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.card .slide-nav svg.icon {
  width: 18px;
  height: 18px;
  color: inherit;
}
.card .preview img.slide[hidden] {
  display: none;
}
/* Only the arrows show; the label ("Monthly Usage · 1 of 2") is announced to screen readers. */
.slide-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.card .preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: preview-in 0.25s ease-out;
}
@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #features .card,
  .card .preview img {
    transition: none;
    animation: none;
  }
}
.card svg.icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
/* Feature card icon colors (cards without a tone keep the accent). */
.card svg.icon.tone-brown {
  color: var(--brown);
}
.card svg.icon.tone-orange {
  color: var(--orange);
}
.card svg.icon.tone-red {
  color: var(--red);
}
.card svg.icon.tone-yellow {
  color: var(--yellow);
}
.card svg.icon.tone-green {
  color: var(--green);
}
.card svg.icon.tone-grey {
  color: var(--grey);
}
.card svg.icon.tone-blue {
  color: var(--blue);
}
/* Role icon colours, as in the app: Administrator green, Fleet Technician orange (normal card). */
.card.green svg.icon {
  color: var(--green);
}
.card.orange svg.icon {
  color: var(--orange);
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
/* FAQs: expandable questions (<details>) divided by lines, + when closed and − when open. */
.faqs {
  max-width: 760px;
}
.faqs h2 {
  margin-bottom: 16px;
}
.faqs details {
  border-bottom: 1px solid var(--border);
}
.faqs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faqs summary::-webkit-details-marker {
  display: none;
}
.faqs summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.faqs details[open] summary::after {
  content: '\2212';
}
.faqs summary:hover {
  color: var(--accent);
}
.faqs summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.faqs details p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.contact {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact .card {
  margin-top: 24px;
}
.contact .emails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
}
.contact .emails div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact .email {
  font-size: 18px;
  font-weight: 600;
}

/* Quote request form (/quote) */
.page {
  padding: 56px 0;
}
.page h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 32px);
  text-align: center;
}
.page .lead {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
  text-align: center;
}
.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.form-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
  text-align: left;
}
.form-card h2 + .hint {
  margin: 0 0 16px;
}
.form-card hr {
  margin: 28px 0 24px;
  border: 0;
  border-top: 1px solid var(--border);
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 14px;
  font-weight: 500;
}
.field label .optional {
  color: var(--faint);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}
.field .with-icon {
  position: relative;
}
.field .with-icon svg.icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.field .with-icon input {
  padding-left: 40px;
}
.hint {
  color: var(--faint);
  font-size: 13px;
}
.form-card .submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}
.form-card button.button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}
.form-card button.button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-error {
  color: #dc2626;
  font-size: 14px;
}
:root.dark .form-error {
  color: #f87171;
}
/* Kept off-screen: only bots fill it in. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sent {
  text-align: center;
}
.sent svg.icon {
  width: 40px;
  height: 40px;
  color: var(--green);
}
.sent h2 {
  margin: 12px 0 6px;
  font-size: 20px;
  text-align: center;
}
.sent p {
  margin: 0 0 20px;
  color: var(--muted);
}

footer {
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}
footer a {
  color: inherit;
}

@media (max-width: 560px) {
  nav a:not(.button) {
    display: none;
  }
  .hero {
    padding: 48px 0 40px;
  }
}

/* The /demo form's "Verify you are human" box (Cloudflare Turnstile). */
.turnstile {
  min-height: 65px;
  margin-top: 20px;
}

/* Privacy Policy (/privacy): readable long-form text. */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.65;
}
.legal h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  text-align: left;
}
.legal h3 {
  margin: 20px 0 6px;
  font-size: 15px;
}
.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--muted);
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal strong {
  color: var(--text);
}
.legal a {
  color: var(--accent);
}
@media (max-width: 560px) {
  .legal {
    padding: 20px;
  }
}

/* Under the hero banner: what Logitory is, in plain words. */
.hero .tagline {
  margin: 24px auto 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}
/* A button centred under a section's cards, with a note beside it. */
.center-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}
/* Forms: required-field marker, and what happens after sending. */
.req {
  color: var(--red);
  font-weight: 600;
}
.form-card .next-steps {
  margin: 16px 0 0;
}
/* "Built from the field": the lead-in line just above the cards, and the closing line below them. */
section .lead.tight {
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 600;
}
section .lead.closing {
  margin: 28px auto 0;
}

/* Hero banner: the logo, then the tagline under it, centred. */
.hero h1.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  line-height: 1.2;
}
.hero .brand-logo {
  width: 380px;
  max-width: 75vw;
  height: auto;
}
.hero .brand-tagline {
  color: var(--muted);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .hero .brand-tagline {
    font-size: 22px;
  }
}

/* Header menu: links stay on one line; with seven of them, tighter spacing on mid-size screens and
   only Log in below 760px (the page sections are a scroll away). */
nav a {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  nav {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  nav a:not(.button) {
    display: none;
  }
}

/* Cookie notice (consent.js): a bar along the bottom of the window until OK. */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.18);
  font-size: 14px;
}
.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
}
.cookie-banner a {
  color: var(--accent);
  font-weight: 600;
}
/* Footer policy links wrap on small screens. */
footer {
  text-wrap: balance;
}
