/* Labeline pages (/labeline/, /labeline/privacy/, /labeline/terms/).
   An external file because the site-wide CSP allows style-src 'self' only. */
:root {
  --bg: #f4f1eb;
  --surface: #ffffff;
  --sunk: #ebe6dc;
  --border: #e0d9cc;
  --text: #16181b;
  --muted: #565a61;
  --accent: #c9410f;
  --accent-strong: #e8501a;
  --accent-soft: #fbe3d6;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --surface: #1c1d20;
    --sunk: #18191b;
    --border: #2e3034;
    --text: #f2f1ee;
    --muted: #a9acb2;
    --accent: #ff8a5c;
    --accent-strong: #ff7a45;
    --accent-soft: #3a2219;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap.narrow { max-width: 760px; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--border);
}
header.top a.brand { font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -0.2px; }
header.top a.mail { font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px rgba(201, 65, 15, 0.22); }
.app-id strong { display: block; font-size: 20px; line-height: 1.2; }
.app-id span { color: var(--muted); font-size: 14px; }
h1 { font-size: 46px; line-height: 1.06; margin: 0 0 16px; letter-spacing: -1.2px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; margin: 0 0 24px; max-width: 34em; }
.status { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text); font-size: 15px; font-weight: 600;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); }
.status a { font-weight: 600; font-size: 15px; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 30, 10, 0.16); background: var(--sunk); }
.hero-photo img { width: 100%; aspect-ratio: 1362 / 1137; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); background: transparent; }

/* Sections */
section { margin-top: 72px; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.5px; }
.section-lead { color: var(--muted); margin: 0 0 22px; font-size: 17px; }

.shots {
  display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr 1fr; align-items: end; gap: 16px; margin: 0; padding: 0; list-style: none;
}
.shots li { margin: 0; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--border); background: var(--sunk); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; }
.card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 14px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan.pro { border: 2px solid var(--accent-strong); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 4px 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details[open] summary { padding-bottom: 6px; }
details p { margin: 0 0 15px; color: var(--muted); }

footer { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* Privacy and terms */
.doc h1 { font-size: 34px; letter-spacing: -0.6px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.2px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 38px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .shots li { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  h1 { font-size: 32px; letter-spacing: -0.8px; }
  .lead { font-size: 17px; }
  section { margin-top: 56px; }
  h2 { font-size: 24px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .shots li { flex-basis: 62%; }
  .doc h1 { font-size: 28px; }
  table { min-width: 0; }
  th, td { padding: 11px 10px; font-size: 14px; }
}

/* Review round 2: hero proof, CTA, proof band, mobile table, price */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--text); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn:hover { background: var(--text); color: var(--bg); }
.hero-media { position: relative; padding: 0 0 34px 34px; }
.hero-phone {
  position: absolute; left: 0; bottom: 0; width: 36%; margin: 0;
  background: var(--surface); border: 6px solid #1b1c1f; border-radius: 22px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(30, 15, 5, 0.28);
}
.hero-phone img { width: 100%; }
.hero-phone figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding: 5px 8px; text-align: center;
  background: #1b1c1f; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2px;
}
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; }
.swipe-hint { display: none; }
.band { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 6px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 800;
}
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
.plan .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; margin: 6px 0 2px; line-height: 1.1; }
.plan .amount span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan.pro h3 { color: var(--accent); }

@media (max-width: 860px) {
  .shots li { flex-basis: 70%; }
  .swipe-hint { display: block; margin: -10px 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { padding: 0 0 0 46px; }
}
@media (max-width: 560px) {
  section { margin-top: 46px; }
  footer { margin-top: 52px; }
  .shots li { flex-basis: 82%; }
  .hero-media { padding: 0 0 26px 22px; }
  .hero-phone { width: 38%; border-width: 4px; border-radius: 16px; }
  .band { padding: 22px 18px; border-radius: 18px; }
  .card { padding: 18px; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr.head { display: none; }
  tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
  td { border: 0; padding: 3px 0; font-size: 15px; }
  td:first-child { font-size: 18px; padding-bottom: 6px; }
  td[data-label="Connection"]::before { content: "Connection: "; font-weight: 700; color: var(--text); }
  td[data-label="Printers"] { color: var(--muted); }
}

.hero-phone { padding-top: 24px; background: #1b1c1f; }
@media (max-width: 560px) { .hero-phone { padding-top: 20px; } .hero-phone figcaption { font-size: 10px; padding: 4px 4px; } }

/* Screenshot gallery (gallery.js): one main slide, thumbnails, autoplay */
.gallery { display: grid; gap: 14px; justify-items: center; }
.gallery-main { position: relative; width: min(360px, 100%); border-radius: 18px; }
.gallery-main:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.gallery-track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0; padding: 0; list-style: none; border-radius: 18px; scrollbar-width: none;
  box-shadow: 0 18px 40px rgba(60, 30, 10, 0.18);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-track img { width: 100%; display: block; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.gallery-prev { left: -56px; }
.gallery-next { right: -56px; }
.gallery-prev:focus-visible, .gallery-next:focus-visible, .gallery-thumbs button:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
.gallery-thumbs {
  position: relative; display: flex; gap: 8px; overflow-x: auto; max-width: 100%; margin: 0; padding: 4px 2px 8px; list-style: none; scrollbar-width: thin;
}
.gallery-thumbs li { flex: 0 0 auto; }
.gallery-thumbs button {
  display: block; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumbs button:hover { opacity: 0.9; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent-strong); opacity: 1; }
.gallery-thumbs img { width: 60px; height: 107px; border-radius: 8px; display: block; }
@media (prefers-reduced-motion: reduce) { .gallery-track { scroll-behavior: auto; } .gallery-thumbs button { transition: none; } }
@media (max-width: 560px) {
  .gallery-main { width: min(300px, 82vw); }
  .gallery-prev { left: -14px; }
  .gallery-next { right: -14px; }
  .gallery-prev, .gallery-next { width: 34px; height: 34px; font-size: 20px; }
  .gallery-thumbs img { width: 48px; height: 85px; }
}

/* Three plans */
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { position: relative; }
.plan .badge {
  position: absolute; top: -12px; right: 16px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-strong); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
}
@media (max-width: 860px) { .plans.plans-3 { grid-template-columns: 1fr; } }
