/* Freight Manager by Zimpla — clean light design.
   Zimpla logo colours appear only where they carry meaning: the four workflow steps and the shipping label. */

:root {
  --paper: #ffffff;
  --mist: #f3f6fa;
  --line: #dde3ea;
  --ink: #17202c;
  --slate: #556070;
  --blue: #1f6aaf;
  --blue-deep: #164e82;
  --orange: #f0881a;
  --green: #00a85a;
  --red: #e8343a;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --shadow-shot: 0 30px 60px -20px rgba(23, 32, 44, 0.28), 0 0 0 1px rgba(23, 32, 44, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--mist); border-color: var(--slate); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 108px; }
.brand-product { font-weight: 600; font-size: 1.02rem; padding-left: 12px; border-left: 1.5px solid var(--line); line-height: 1.2; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-row .btn-small { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-product { display: none; }
  .header-row .btn-small { padding: 0 12px; font-size: 0.88rem; }
}

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; margin-bottom: 26px;
  border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 168, 90, 0.16); }
.lead { margin-top: 22px; font-size: 1.2rem; line-height: 1.55; color: var(--slate); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 0.94rem; color: var(--slate); }

.hero-visual { position: relative; padding-bottom: 40px; }
.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); box-shadow: var(--shadow-shot); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot-hero { width: 128%; max-width: none; }

/* The shipping label: the one memorable object on the page */
.label {
  position: absolute; left: -36px; bottom: -8px;
  width: 268px; padding: 14px 16px 12px;
  background: #fff; color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 24px 40px -12px rgba(23, 32, 44, 0.35), 0 0 0 1px rgba(23, 32, 44, 0.1);
  transform: rotate(-4deg);
  font-size: 0.78rem; line-height: 1.4;
  animation: print 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}
.label::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--orange) 25% 50%, var(--green) 50% 75%, var(--red) 75%);
}
.label-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 8px; border-bottom: 2px solid var(--ink); }
.label-head strong { font-size: 1rem; letter-spacing: -0.01em; }
.label-head span { font-weight: 600; }
.label-body { display: grid; gap: 8px; padding: 10px 0; }
.label-part span { display: block; font-size: 0.68rem; font-weight: 600; color: var(--slate); }
.label-to { font-size: 0.9rem; }
.label-to b { font-size: 1rem; }
.barcode {
  height: 46px; margin: 4px 0 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
      var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
      var(--ink) 16px 18px, transparent 18px 19px, var(--ink) 19px 22px, transparent 22px 25px,
      var(--ink) 25px 26px, transparent 26px 28px, var(--ink) 28px 31px, transparent 31px 33px);
}
.label-foot { display: flex; justify-content: space-between; font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes print {
  from { opacity: 0; transform: translateY(-28px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) { .label { animation: none; } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .shot-hero { width: 100%; }
  .label { left: auto; right: 12px; bottom: -12px; width: 230px; }
}
@media (max-width: 480px) {
  .label { display: none; }
  .hero-visual { padding-bottom: 0; }
}

/* Carriers */
.carriers { padding: 56px 0; border-block: 1px solid var(--line); background: var(--mist); }
.carriers-title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--slate); }
.carrier-list { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; padding: 0; margin: 20px 0 0; }
.carrier-list li { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.carriers-note { margin-top: 18px; color: var(--slate); }

/* Steps */
.steps { padding: 104px 0 40px; }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 48px 0 0; counter-reset: step; }
.step { counter-increment: step; padding-top: 22px; border-top: 4px solid var(--accent); }
.step::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate); }
.step-blue { --accent: var(--blue); }
.step-orange { --accent: var(--orange); }
.step-green { --accent: var(--green); }
.step-red { --accent: var(--red); }
@media (max-width: 900px) { .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (max-width: 520px) { .step-list { grid-template-columns: 1fr; } }

/* Features */
.features { padding: 64px 0 104px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-top: 88px; }
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.feature-copy > p { margin-top: 14px; color: var(--slate); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg) translateY(-3px);
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature-flip .feature-copy { order: 0; }
}

.also { margin-top: 104px; padding-top: 48px; border-top: 1px solid var(--line); }
.also h3 { font-size: 1.6rem; }
.also-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.also-list li { color: var(--slate); font-size: 0.98rem; }
.also-list b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) { .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .also-list { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding: 104px 0; background: var(--mist); border-top: 1px solid var(--line); }
.section-lead { margin-top: 16px; color: var(--slate); font-size: 1.12rem; max-width: 40em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-main { border: 2px solid var(--blue); box-shadow: 0 24px 48px -24px rgba(31, 106, 175, 0.45); }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--slate); font-size: 0.95rem; }
.plan-for { margin-top: 12px; color: var(--slate); }
.plan .ticks { margin-bottom: 28px; flex: 1; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 28px; color: var(--slate); font-size: 0.97rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; } }

/* Zimpla platform */
.platform { padding: 96px 0; }
.platform-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; max-width: 880px; }
.platform-icon { width: 88px; }
.platform p { margin-top: 16px; color: var(--slate); font-size: 1.12rem; }
@media (max-width: 600px) { .platform-grid { grid-template-columns: 1fr; gap: 24px; } .platform-icon { width: 64px; } }

/* Questions */
.questions { padding: 96px 0; border-top: 1px solid var(--line); }
.questions h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.12rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 24px; color: var(--slate); max-width: 40em; }

/* Contact */
.contact { padding: 96px 0; background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { margin: 16px 0 28px; color: #c9d1db; font-size: 1.12rem; max-width: 34em; }
.contact .btn { background: #fff; border-color: #fff; color: var(--ink); }
.contact .btn:hover { background: #e7edf4; border-color: #e7edf4; }
.contact-card { font-style: normal; padding: 28px; border: 1px solid #3a4656; border-radius: var(--radius-lg); color: #c9d1db; line-height: 1.7; }
.contact-card strong { display: block; color: #fff; margin-bottom: 6px; }
.contact-card a { color: #9cc8f2; }
.contact :focus-visible { outline-color: #9cc8f2; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--slate); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; }
.footer-brand img { width: 100px; margin-bottom: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.86rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .updated { margin-top: 12px; color: var(--slate); }
.legal h2 { font-size: 1.35rem; margin-top: 44px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #344050; }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal .summary-box { margin-top: 28px; padding: 22px 24px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.legal .summary-box p:first-child { margin-top: 0; }

/* Brand block with two links (Freight Manager pages) and the linked status pill */
.brand a { display: flex; align-items: center; color: inherit; text-decoration: none; }
a.brand-product:hover { color: var(--blue); }
a.status-pill { text-decoration: none; }
a.status-pill:hover { border-color: var(--slate); color: var(--ink); }

/* Home: one product record and the places that use it */
.hub-figure { margin: 0; }
.hub { position: relative; aspect-ratio: 10 / 9; max-width: 640px; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines line {
  stroke: #a9b8ca; stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke;
  animation: flow 3s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .hub-lines line { animation: none; } }
.hub-record {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 40%; padding: 16px 18px;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-shot);
}
.rec-kind { font-size: 0.78rem; font-weight: 600; color: var(--blue); }
.rec-name { margin-top: 2px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.rec-sku { font-size: 0.8rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.rec-fields { margin: 10px 0 0; display: grid; gap: 7px; }
.rec-fields div { padding-top: 7px; border-top: 1px solid var(--line); font-size: 0.84rem; line-height: 1.35; }
.rec-fields dt { font-size: 0.74rem; color: var(--slate); }
.rec-fields dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-node {
  position: absolute; z-index: 1; width: 28%; padding: 10px 12px; transform: translateY(-50%);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.8rem; line-height: 1.35;
}
.hub-node b { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; }
.hub-node b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hub-node span { display: block; margin-top: 2px; color: var(--slate); font-variant-numeric: tabular-nums; }
.n1, .n3, .n5 { left: 1%; }
.n2, .n4, .n6 { right: 1%; }
.n1, .n2 { top: 9%; }
.n3, .n4 { top: 50%; }
.n5, .n6 { top: 91%; }
.sell { --accent: var(--blue); }
.move { --accent: var(--green); }
.buy { --accent: var(--orange); }
.acct { --accent: var(--red); }
.hub-figure figcaption { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--slate); }
@media (max-width: 600px) {
  .hub { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-lines { display: none; }
  .hub-record { position: static; grid-column: 1 / -1; width: auto; transform: none; }
  .hub-node { position: static; width: auto; transform: none; }
  .hub-figure figcaption { text-align: left; }
}

/* Home: the problem */
.problem { padding: 96px 0; background: var(--mist); border-block: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.symptoms { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.symptoms li { position: relative; padding-left: 40px; font-size: 1.08rem; font-weight: 500; }
.symptoms li::before {
  content: "\2260"; position: absolute; left: 0; top: -0.1em;
  font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--red);
}
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Home: how it works */
.principles { padding: 104px 0 88px; }
.principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; margin-top: 48px; }
.principle { padding-top: 20px; border-top: 4px solid var(--accent); }
.principle h3 { margin-bottom: 10px; font-size: 1.4rem; }
.principle p { color: var(--slate); font-size: 1.08rem; max-width: 34em; }
.p-blue { --accent: var(--blue); }
.p-green { --accent: var(--green); }
.p-orange { --accent: var(--orange); }
.p-red { --accent: var(--red); }
@media (max-width: 760px) { .principle-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Home: parts of Zimpla */
.parts { padding: 96px 0 104px; background: var(--mist); border-top: 1px solid var(--line); }
.part-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.part { padding: 26px 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.part-live { grid-column: 1 / -1; border: 2px solid var(--blue); }
.part-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.part h3 a { color: inherit; text-decoration: none; }
.part h3 a:hover { color: var(--blue); }
.part p { margin-top: 10px; color: var(--slate); max-width: 46em; }
.part-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: #fdf0e1; color: #8a4a05; }
.tag-live { background: #e3f6ec; color: #046b3b; }
.tag-plan { background: var(--mist); color: var(--slate); border: 1px solid var(--line); }
@media (max-width: 760px) { .part-list { grid-template-columns: 1fr; } }
