/* ==========================================================================
   RetailLabel Pro — public site
   One stylesheet, no framework, no build step. Uploads and works.
   ========================================================================== */

:root {
  --ink: #10131a;
  --ink-2: #384152;
  --muted: #6b7385;
  --line: #e4e7ee;
  --line-2: #f0f2f6;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --brand: #1d4ed8;
  --brand-dark: #1739a8;
  --brand-tint: #eef3ff;
  --ok: #067647;
  --warn: #b45309;
  --bad: #c0271c;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16,19,26,.06), 0 8px 24px rgba(16,19,26,.06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 620; }
p  { margin: 0 0 1em; }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--bg-alt); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
pre  { background: var(--ink); color: #e8eaf0; padding: 16px 20px; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }
kbd  { background: var(--bg-alt); border: 1px solid var(--line); border-bottom-width: 2px;
       border-radius: 5px; padding: .1em .45em; font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 40px; }
.fine { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ── Announcement ─────────────────────────────────────────────────────── */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  padding: 9px 16px; font-size: .875rem;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92);
       backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px;
             display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 680;
        color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 22px; height: 22px; border-radius: 5px;
             background: linear-gradient(135deg, var(--brand), #4f46e5);
             box-shadow: inset 0 0 0 3px rgba(255,255,255,.65); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: .94rem; }
.nav-links a { color: var(--ink-2); }
.nav-links a.on { color: var(--brand); font-weight: 560; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0;
              font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-block; border: 1px solid transparent; border-radius: var(--radius);
       padding: 11px 20px; font: inherit; font-weight: 560; cursor: pointer;
       text-align: center; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-block { display: block; width: 100%; }
.btn.disabled { opacity: .45; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--brand-tint), #fff 70%); padding: 72px 24px 80px; }
.hero-inner { max-width: var(--max); margin: 0 auto;
              display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem;
           font-weight: 660; color: var(--brand); margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-size: .875rem; color: var(--muted); }

/* The sample sheet illustration */
.hero-visual { display: flex; justify-content: center; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 8px;
         box-shadow: var(--shadow); padding: 14px; display: grid;
         grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; max-width: 380px;
         transform: rotate(-1.5deg); }
.sheet-label { border: 1px dashed var(--line); border-radius: 4px; padding: 10px 9px; }
.sl-name { height: 7px; background: var(--line-2); border-radius: 3px; margin-bottom: 7px; width: 78%; }
.sl-price { font-weight: 720; font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 7px; }
.sl-barcode { display: flex; align-items: flex-end; gap: 1px; height: 20px; margin-bottom: 5px; }
.sl-barcode i { display: block; height: 100%; background: var(--ink); }
.sl-sku { height: 5px; background: var(--line-2); border-radius: 3px; width: 52%; }

/* ── Trade strip ──────────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner { max-width: var(--max); margin: 0 auto; padding: 18px 24px;
               display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
               font-size: .875rem; color: var(--muted); }
.strip-inner ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.strip-inner li { font-weight: 540; color: var(--ink-2); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 76px 24px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px;
               margin: 0 auto 44px; font-size: 1.04rem; }

.page-hero { max-width: var(--max); margin: 0 auto; padding: 56px 24px 28px; }
.page-hero.narrow { max-width: 720px; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px;
            border-radius: 50%; background: var(--brand); color: #fff;
            font-weight: 680; font-size: .9rem; margin-bottom: 14px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ── Feature grid ─────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.section-alt .feature { background: #fff; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ── Plans ────────────────────────────────────────────────────────────── */
.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-bottom: 28px; }
.plan-row.wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line);
             border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
          background: var(--brand); color: #fff; font-size: .72rem; font-weight: 640;
          letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.plan-card h3 { margin-bottom: 4px; }
.plan-tag { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.plan-price { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 4px; }
.plan-devices { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; flex: 1; }
.plan-list li { padding: 6px 0 6px 22px; position: relative; color: var(--ink-2); }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ── Comparison table ─────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: #fff;
           border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare thead th { background: var(--bg-alt); font-weight: 620; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.tick { color: var(--ok); font-weight: 700; }
.cross { color: var(--line); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq details { border: 1px solid var(--line); border-radius: var(--radius);
               padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 580; cursor: pointer; }
.faq summary::marker { color: var(--brand); }
.faq p { margin: 12px 0 0; color: var(--ink-2); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.card-form { background: #fff; border: 1px solid var(--line);
             border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
label { display: block; margin-bottom: 18px; }
label > span { display: block; font-weight: 540; font-size: .9rem; margin-bottom: 6px; }
label small { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand);
}
textarea { resize: vertical; }

.notice { background: var(--brand-tint); border: 1px solid #c7d7fe; color: #1e3a8a;
          padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .94rem; }
.notice.error   { background: #fef2f2; border-color: #fecaca; color: var(--bad); }
.notice.success { background: #f0fdf4; border-color: #bbf7d0; color: var(--ok); }

/* ── Licence key display ──────────────────────────────────────────────── */
.key-box { background: var(--bg-alt); border: 2px dashed var(--brand);
           border-radius: var(--radius-lg); padding: 26px; text-align: center; margin: 26px 0; }
.key-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
             color: var(--muted); margin-bottom: 10px; }
.bigkey { display: block; font-size: clamp(1.05rem, 3.4vw, 1.5rem); font-weight: 600;
          letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; word-break: break-all; }
.next-steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0; }
.next-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand); display: grid; place-items: center; font-weight: 680; font-size: .85rem; }
.success-mark { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
                background: #f0fdf4; color: var(--ok); display: grid; place-items: center;
                font-size: 1.8rem; border: 2px solid #bbf7d0; }

/* ── Order summary ────────────────────────────────────────────────────── */
.order-summary { background: var(--bg-alt); border: 1px solid var(--line);
                 border-radius: var(--radius-lg); padding: 24px; margin-bottom: 26px; }
.os-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
          padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.os-price { font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.os-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }
.os-list li { padding: 4px 0 4px 20px; position: relative; }
.os-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.os-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

/* ── Downloads ────────────────────────────────────────────────────────── */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.download-card { background: #fff; border: 1px solid var(--line);
                 border-radius: var(--radius-lg); padding: 26px; text-align: center; }
.download-card.primary { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow); }
.dl-meta { font-size: .85rem; color: var(--muted); margin: 12px 0 18px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.release-note { border-left: 3px solid var(--line); padding-left: 18px; margin: 18px 0; }

/* ── Lists ────────────────────────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; }
.ticks li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.numbered { counter-reset: n; list-style: none; padding: 0; }
.numbered li { counter-increment: n; position: relative; padding: 8px 0 8px 34px; color: var(--ink-2); }
.numbered li::before { content: counter(n) "."; position: absolute; left: 0;
                       color: var(--brand); font-weight: 680; }

/* ── Docs ─────────────────────────────────────────────────────────────── */
.docs { max-width: var(--max); margin: 0 auto; padding: 44px 24px 80px;
        display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; }
.docs-nav { position: sticky; top: 84px; }
.docs-nav h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
               color: var(--muted); margin: 22px 0 6px; font-weight: 700; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { padding: 8px 12px; border-radius: 7px; color: var(--ink-2); font-size: .93rem; }
.docs-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.docs-nav a.on { background: var(--brand-tint); color: var(--brand); font-weight: 560; }
.docs-help { margin-top: 26px; padding: 16px; background: var(--bg-alt);
             border-radius: var(--radius); font-size: .875rem; }
.docs-help p { margin: 0 0 10px; color: var(--muted); }
.docs-body { min-width: 0; }
.docs-body h2 { margin-top: 40px; padding-top: 8px; }
.docs-body h1 + .lead { font-size: 1.1rem; color: var(--ink-2); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 28px 0; }
.doc-card { display: block; border: 1px solid var(--line); border-radius: var(--radius);
            padding: 20px; color: inherit; transition: border-color .15s; }
.doc-card:hover { border-color: var(--brand); text-decoration: none; }
.doc-card h3 { color: var(--brand); margin-bottom: 6px; }
.doc-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.doc-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.doc-table th, .doc-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { background: var(--bg-alt); font-weight: 620; }
.callout { background: var(--brand-tint); border-left: 3px solid var(--brand);
           padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; font-size: .94rem; }
.callout.warn { background: #fffbeb; border-left-color: var(--warn); }
/* Previous / next links at the foot of every guide, so the docs read as a sequence. */
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 52px;
              padding-top: 26px; border-top: 1px solid var(--line); }
.docs-pager a { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px;
                border: 1px solid var(--line); border-radius: var(--radius);
                max-width: 48%; transition: border-color .15s; }
.docs-pager a:hover { border-color: var(--brand); text-decoration: none; }
.docs-pager span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
                   color: var(--muted); }
.docs-pager strong { font-size: .95rem; }
.docs-pager__next { text-align: right; margin-left: auto; }

.help-first { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.help-first ul { margin: 0 0 12px; padding-left: 20px; }
.help-first li { padding: 4px 0; }

/* ── Legal ────────────────────────────────────────────────────────────── */
.legal-page h2 { margin-top: 36px; font-size: 1.2rem; }
.legal-page ul { color: var(--ink-2); }
.legal-page li { padding: 4px 0; }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta { background: var(--ink); color: #fff; padding: 72px 24px; text-align: center; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: #aab2c3; margin-bottom: 26px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 52px 24px 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid;
                grid-template-columns: 1.2fr 2.4fr; gap: 44px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
                  color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-2); font-size: .9rem; }
.footer-bar { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line);
              padding: 20px 0; display: flex; justify-content: space-between;
              font-size: .84rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .steps, .two-up, .docs, .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .sheet { max-width: 320px; }
  .docs-nav { position: static; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
               background: #fff; border-bottom: 1px solid var(--line);
               flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .nav-links .btn { margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 560px) {
  .section { padding: 52px 20px; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media print {
  .nav, .footer, .cta, .announce { display: none; }
}


/* ── Prose ──────────────────────────────────────────────────────────────── */
/* A single readable column. Roughly 68 characters a line, which is where
   continuous prose stops being tiring to read. */
.prose { max-width: 68ch; margin: 0 auto; padding: 0 24px; }
.prose h2 { margin-top: 2.2em; }
.prose p { line-height: 1.7; }
