/* posly.se — bolagets webbplats. Färger och typsnitt ur docs/varumarke/posly. */
@font-face {
  font-family: 'Manrope';
  src: url('manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --graphite: #22262a;
  --graphite-2: #2d3237;
  --orange: #e8590c;
  --orange-dark: #c94a08;
  --light: #f6f4f1;
  --paper: #ffffff;
  --ink: #22262a;
  --ink-2: #5d6267;
  --line: #e3e0db;
  --line-dark: rgba(246, 244, 241, 0.12);
  --mint: #2f9e6a;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 4px;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--paper); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--light); }
.on-dark .btn-ghost { color: var(--light); box-shadow: inset 0 0 0 1.5px var(--light); }
.on-dark .btn-ghost:hover { background: var(--light); color: var(--graphite); }

/* Sidhuvud */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--light);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: block; line-height: 0; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: var(--paper); }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { font-size: 20px; color: var(--ink-2); margin: 24px 0 34px; max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--ink-2); }

/* Enheter ritade i CSS: kassa på iPad, gästens mobil, bong på köksskärmen */
.stage { position: relative; height: 560px; }
.tablet {
  position: absolute; right: -40px; top: 10px; width: 620px; height: 440px;
  background: var(--graphite); border-radius: 26px; padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(34, 38, 42, 0.45);
}
.screen { background: #f3f2ef; border-radius: 14px; height: 100%; overflow: hidden; display: flex; }
.pos-menu { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pos-tabs { display: flex; gap: 6px; font-size: 11px; font-weight: 700; }
.pos-tabs span { padding: 6px 10px; border-radius: 3px; background: #e6e3de; color: var(--ink-2); }
.pos-tabs span.on { background: var(--graphite); color: var(--light); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.pos-item { background: var(--paper); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; font-weight: 700; line-height: 1.25; }
.pos-item small { color: var(--ink-2); font-weight: 600; }
.pos-item.hit { box-shadow: inset 0 0 0 2px var(--orange); }
.pos-order { width: 200px; background: var(--paper); border-left: 1px solid #e6e3de; padding: 16px 14px; display: flex; flex-direction: column; font-size: 11px; }
.pos-order b { font-size: 13px; }
.pos-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #efedea; font-weight: 600; font-variant-numeric: tabular-nums; }
.pos-total { margin-top: auto; display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.pos-pay { background: var(--orange); color: var(--paper); text-align: center; border-radius: 3px; padding: 11px 0; font-weight: 800; font-size: 12px; }

.phone {
  position: absolute; left: 0; bottom: 0; width: 236px; height: 470px;
  background: var(--graphite); border-radius: 38px; padding: 10px;
  box-shadow: 0 40px 70px -24px rgba(34, 38, 42, 0.55);
}
.phone .screen { border-radius: 29px; flex-direction: column; padding: 30px 16px 16px; background: var(--paper); gap: 10px; }
.g-head { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.g-head b { display: block; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.g-line { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 6px 0; border-bottom: 1px solid #efedea; }
.g-tip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 4px; }
.g-tip span { text-align: center; font-size: 11px; font-weight: 700; padding: 7px 0; border-radius: 3px; background: #f1efec; }
.g-tip span.on { background: var(--graphite); color: var(--light); }
.g-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-top: auto; font-variant-numeric: tabular-nums; }
.g-pay { background: var(--orange); color: var(--paper); text-align: center; border-radius: 4px; padding: 12px 0; font-weight: 800; font-size: 13px; }
.g-alt { display: flex; gap: 6px; }
.g-alt span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 9px 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #e3e0db; }

.ticket {
  position: absolute; right: 30px; bottom: 6px; width: 218px;
  background: var(--graphite); color: var(--light); border-radius: 6px; padding: 14px 16px;
  box-shadow: 0 30px 50px -20px rgba(34, 38, 42, 0.5); font-size: 12px;
}
.ticket .t-top { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; }
.ticket .t-time { color: var(--orange); font-variant-numeric: tabular-nums; }
.ticket .t-sub { color: rgba(246, 244, 241, 0.6); font-weight: 600; margin: 2px 0 8px; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 10px; }
.ticket li { padding: 4px 0; border-top: 1px solid var(--line-dark); font-weight: 600; }
.ticket .t-done { background: var(--mint); color: var(--paper); text-align: center; border-radius: 3px; padding: 8px 0; font-weight: 800; }

/* Beviset */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.proof .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.proof p { font-size: 15px; color: var(--ink-2); max-width: 420px; }
.proof ul { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.proof li { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.proof li small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }

/* Uppgifterna i restaurangen */
.section { padding: 112px 0; }
.section-tight { padding-top: 0 !important; }
.g-gap { margin-top: 6px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-2); font-size: 19px; max-width: 520px; }
.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.task { padding: 34px 32px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--light); }
.task .num { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
.task p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.task .tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 4px 8px; border-radius: 3px; background: #ebe8e3; }

/* Mörkt band: vid bordet */
.band { background: var(--graphite); color: var(--light); }
.band .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.band p.lead { color: rgba(246, 244, 241, 0.72); font-size: 19px; margin: 22px 0 30px; max-width: 500px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--orange); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps b { display: block; font-size: 18px; letter-spacing: -0.015em; }
.steps span { color: rgba(246, 244, 241, 0.65); font-size: 15px; }

/* Kassaregistret */
.trust .inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.trust p.lead { color: var(--ink-2); font-size: 19px; margin-top: 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { background: var(--paper); border-radius: 6px; padding: 26px; }
.fact b { display: block; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 6px; }
.fact span { color: var(--ink-2); font-size: 15px; }
.receipt {
  grid-column: 1 / -1; background: var(--paper); border-radius: 6px; padding: 24px 26px;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.receipt pre {
  margin: 0; font: 600 12px/1.55 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink);
  background: #f7f6f3; padding: 14px 16px; border-radius: 4px; flex: 0 0 auto; overflow-x: auto; max-width: 100%;
}
.receipt p { flex: 1 1 240px; color: var(--ink-2); font-size: 15px; }

/* Varför POSly */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.why h3 { margin: 18px 0 8px; }
.why p { color: var(--ink-2); font-size: 16px; }
.why .mark { width: 34px; height: 34px; }

/* Kontakt */
.contact { background: var(--orange); color: var(--paper); }
.contact .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.contact p { font-size: 19px; margin-top: 18px; color: rgba(255, 255, 255, 0.86); max-width: 520px; }
.contact .card { background: var(--graphite); color: var(--light); border-radius: 6px; padding: 32px; }
.contact .card .mail { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; margin: 6px 0 22px; overflow-wrap: anywhere; user-select: all; }
.contact .card small { color: rgba(246, 244, 241, 0.6); font-size: 14px; font-weight: 600; }
.contact .card .btn { width: 100%; }

/* Företaget */
.company .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.company p { color: var(--ink-2); font-size: 18px; margin-top: 20px; max-width: 520px; }
.company dl { display: grid; grid-template-columns: 190px 1fr; margin: 0; border-top: 1px solid var(--line); }
.company dt, .company dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.company dt { color: var(--ink-2); font-size: 15px; }
.company dd { font-weight: 700; }
.english { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); grid-column: 1 / -1; }
.english h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 10px; }
.english p { margin: 0; font-size: 16px; max-width: 820px; }

/* Sidfot */
.site-footer { background: var(--graphite); color: rgba(246, 244, 241, 0.7); font-size: 14px; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.site-footer img { height: 24px; width: auto; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--light); }

/* Textsidor: integritet och 404 */
.doc { padding: 72px 0 112px; }
.doc .inner { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.doc .meta { color: var(--ink-2); font-size: 15px; margin-bottom: 48px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: #3d4246; font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 12px 0 0; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.doc .tbl { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .plate { width: 96px; height: 96px; margin-bottom: 28px; }

/* Smalare skärmar */
@media (max-width: 1080px) {
  .tablet { width: 540px; height: 390px; right: -80px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 44px; }
  .hero .inner, .band .inner, .trust .inner, .contact .inner, .company .inner, .section-head { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 500px; max-width: 560px; }
  .tablet { right: -120px; }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .lead { font-size: 18px; }
  .stage { height: 470px; }
  .tablet { display: none; }
  .phone { left: 50%; transform: translateX(-50%); }
  .ticket { display: none; }
  .tasks, .facts, .why { grid-template-columns: minmax(0, 1fr); }
  .task { padding: 28px 22px 30px; }
  .task .num { margin-bottom: 22px; }
  .company dl { grid-template-columns: minmax(0, 1fr); }
  .company dt { padding-bottom: 0; border-bottom: 0; }
  .company dd { padding-top: 2px; }
  .proof .inner { flex-direction: column; align-items: flex-start; }
  .logo img { height: 26px; }
}
