/* lagerverwaltung.app – marketing site. One family (Archivo, variable width) used at different widths:
   wide for headlines (warehouse signage), condensed for bin codes, normal for text. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #14171c;        /* app background */
  --ink-2: #1e232b;      /* app cards */
  --ink-line: #2e3540;
  --signal: #f5b800;     /* app accent, safety yellow */
  --signal-dark: #8a6800;
  --concrete: #eceeea;   /* page background */
  --paper: #ffffff;      /* label stock */
  --steel: #555e6a;      /* secondary text on light */
  --mist: #a3abb6;       /* secondary text on dark */
  --line: #d3d7d1;
  --ok: #1f8a4c;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 6px;
  --r-m: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
h1, h2, h3 { margin: 0; line-height: 1.05; font-stretch: 118%; font-weight: 780; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 80px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; line-height: 1.25; font-stretch: 108%; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }
.muted { color: var(--steel); }
.code { font-stretch: 72%; font-weight: 760; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-s);
  font: inherit; font-weight: 680; font-stretch: 108%; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #ffc81f; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(127, 127, 127, .12); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a313b; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; border-bottom: 3px solid var(--signal); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-stretch: 112%; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font-weight: 450; color: var(--mist); font-stretch: 100%; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--mist); font-weight: 560; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.top .actions { display: flex; gap: 10px; }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.top .btn-line { color: #fff; border-color: var(--ink-line); }
@media (max-width: 860px) {
  .nav { display: none; }
  .top .actions { margin-left: auto; }
}
@media (max-width: 440px) {
  .top .btn-line { display: none; }
  .brand small { display: none; }
  .top .wrap { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .top .btn { padding: 0 12px; }
}

/* Hero (dark, like the app on the handheld) */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(38px, 5vw, 68px); }
.hero h1 span { display: block; }
.hero .lead { color: #d6dbe2; margin-top: 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--mist); font-size: 15px; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ''; width: 8px; height: 8px; background: var(--signal); border-radius: 2px; }

.stage { position: relative; justify-self: center; width: min(100%, 420px); padding: 0 0 40px 60px; }
.phone {
  width: 100%; max-width: 330px; margin-left: auto;
  border-radius: 34px; padding: 10px; background: #050608;
  box-shadow: 0 0 0 1px #2b313a, 0 30px 70px rgba(0, 0, 0, .55);
}
.phone img { border-radius: 26px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; width: 100%; }
.phone.small { max-width: 280px; border-radius: 30px; padding: 8px; }
.phone.small img { border-radius: 23px; }

/* The bin label – the one loud element. A yellow scan line passes over it once. */
.label {
  position: absolute; left: 0; bottom: 0; width: 240px;
  background: var(--paper); color: #000; border-radius: 4px;
  padding: 14px 16px 12px; transform: rotate(-4deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.label .kind { font-size: 12px; font-weight: 600; color: #333; }
.label .bin { font-size: 52px; line-height: 1; margin: 2px 0 10px; font-stretch: 66%; font-weight: 800; }
.label .bars { height: 54px !important; width: 100%; }
.label .scanline {
  position: absolute; left: -10%; right: -10%; top: 0; height: 3px;
  background: #ff2d2d; box-shadow: 0 0 14px 4px rgba(255, 45, 45, .55);
  opacity: 0;
}
.label .beep {
  position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ok); opacity: 0;
}
.label .beep::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .label .scanline { animation: scan 1.1s ease-in-out .9s 1 both; }
  .label .beep { animation: beep .3s ease-out 2s 1 both; }
}
@media (prefers-reduced-motion: reduce) { .label .beep { opacity: 1; } }
@keyframes scan {
  0% { opacity: 0; transform: translateY(30px); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(128px); }
}
@keyframes beep { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { width: min(100%, 360px); }
}
@media (max-width: 400px) {
  .stage { padding-left: 30px; }
  .label { width: 200px; }
  .label .bin { font-size: 44px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 18px; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: var(--mist); }
.section-white { background: var(--paper); }

/* The goods-receipt sequence (a real order of steps, hence the numbers) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 2px solid var(--ink); }
.flow li { counter-increment: step; padding: 22px 24px 0 0; }
.flow li::before {
  content: counter(step); display: block; margin-bottom: 16px;
  font-size: 56px; line-height: 1; font-stretch: 66%; font-weight: 800; color: var(--signal-dark);
}
.flow p { margin-top: 8px; color: var(--steel); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.shots { display: flex; gap: clamp(20px, 4vw, 56px); justify-content: center; align-items: flex-start; margin-top: clamp(48px, 6vw, 72px); flex-wrap: wrap; }
.shots figure { margin: 0; width: 280px; }
.shots figure:nth-child(2) { margin-top: 48px; }
.shots figcaption { margin-top: 16px; font-size: 15px; color: var(--steel); }
.section-dark .shots figcaption { color: var(--mist); }
@media (max-width: 640px) { .shots figure:nth-child(2) { margin-top: 0; } }

/* Feature list: term + explanation, two columns, rules between */
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 80px); margin: 0; }
.features div { padding: 24px 0; border-top: 1px solid var(--line); }
.section-dark .features div { border-color: var(--ink-line); }
.features dt { font-weight: 720; font-stretch: 108%; font-size: 20px; }
.features dd { margin: 6px 0 0; color: var(--steel); max-width: 30em; }
.section-dark .features dd { color: var(--mist); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.checks { margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); }
.section-dark .checks li { border-color: var(--ink-line); }
.checks li::before {
  content: ''; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px;
  border-left: 3px solid var(--signal-dark); border-bottom: 3px solid var(--signal-dark); transform: rotate(-45deg);
}
.section-dark .checks li::before { border-color: var(--signal); }

/* Catalogue import visual: a stack of supplier lists turning into articles */
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; font-size: 14px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th { font-weight: 650; background: #f6f7f5; color: var(--steel); }
.sheet td.num { font-variant-numeric: tabular-nums; }
.sheet .map { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; background: #fffbea; border-top: 1px solid #f1dfa0; font-size: 13px; }
.sheet .map span { background: var(--paper); border: 1px solid #ead9a0; padding: 3px 8px; border-radius: 4px; }
.sheet-wrap { overflow-x: auto; }

/* Closing call to action */
.cta-band { background: var(--signal); color: var(--ink); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { margin-top: 12px; max-width: 32em; }

/* Footer */
.foot { background: var(--ink); color: var(--mist); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* Pricing */
.price-hero { background: var(--ink); color: #fff; }
.price-hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 150px; }
.price-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 15ch; }
.price-hero .lead { color: #d6dbe2; margin-top: 20px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -110px; }
.plan { background: var(--paper); border-radius: var(--r-m); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pick { border: 2px solid var(--ink); box-shadow: 0 0 0 6px var(--signal); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan h2 { font-size: 26px; }
.tag { background: var(--signal); color: var(--ink); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 4px; }
.amount { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.amount b { font-size: clamp(56px, 7vw, 76px); line-height: 1; font-stretch: 70%; font-weight: 800; font-variant-numeric: tabular-nums; }
.amount span { color: var(--steel); }
.billing { margin-top: 6px; color: var(--steel); }
.ledger { margin: 26px 0 0; border-top: 2px solid var(--ink); }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--steel); }
.ledger dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.ledger .total dt, .ledger .total dd { color: var(--ink); font-weight: 760; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan .fine { margin-top: 12px; font-size: 14px; color: var(--steel); text-align: center; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

.both { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.both h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.both .checks { margin-top: 0; }
.both .checks li:first-child { border-top: 0; }
@media (max-width: 860px) { .both { grid-template-columns: 1fr; } }

.faq { max-width: 50em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 680; font-stretch: 106%; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--steel); max-width: 40em; }

.tax { margin-top: 28px; font-size: 15px; color: var(--steel); }

/* Sign-in */
.signin { min-height: calc(100vh - 69px); background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 48px var(--gutter); }
.signin-box { width: min(100%, 460px); }
.signin h1 { font-size: clamp(34px, 5vw, 48px); }
.signin p { color: var(--mist); margin-top: 14px; }
.addr { display: flex; align-items: stretch; margin-top: 30px; border: 2px solid var(--signal); border-radius: var(--r-s); background: #0c0e11; overflow: hidden; }
.addr input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-size: 19px; padding: 14px 6px 14px 16px; outline: none; }
.addr span { display: flex; align-items: center; padding-right: 16px; color: var(--mist); white-space: nowrap; font-size: 17px; }
.addr:focus-within { box-shadow: 0 0 0 3px rgba(245, 184, 0, .35); }
.signin .btn { width: 100%; margin-top: 14px; }
.signin .error { color: #ffb4a8; margin-top: 12px; min-height: 1.5em; }
.signin .hint { font-size: 15px; margin-top: 26px; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; font-stretch: 108%; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 42em; }
.legal p + p { margin-top: 12px; }
.todo { background: #fff3c4; border-left: 4px solid var(--signal); padding: 2px 6px; }
