/* Levelbrook developer tools — site stylesheet.
   No framework, no build step. System font stack only: zero webfont requests. */

:root {
  color-scheme: light dark;

  --bg:        #faf8f5;
  --bg-alt:    #f2efe9;
  --surface:   #ffffff;
  --ink:       #14171c;
  --ink-soft:  #3d444e;
  --muted:     #565e6b;
  --border:    #ded9d1;
  --border-st: #c8c1b6;
  --border-ui: #8f897d;   /* >=3:1 vs bg and surface — WCAG 1.4.11 non-text contrast */
  --accent:    #a8301a;
  --accent-ink:#8f2915;
  --accent-bg: #fdeee9;
  --ok:        #1f6a3f;
  --ok-bg:     #e8f4ec;
  --warn:      #7a5200;
  --warn-bg:   #fdf1d8;
  --shadow-1:  0 1px 2px rgba(20,23,28,.06), 0 2px 6px rgba(20,23,28,.05);
  --shadow-2:  0 1px 2px rgba(20,23,28,.07), 0 6px 20px rgba(20,23,28,.08);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --measure: 68ch;
  --page: 1120px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0f1216;
    --bg-alt:    #14181e;
    --surface:   #171c22;
    --ink:       #e9edf2;
    --ink-soft:  #ccd4dd;
    --muted:     #a6b0bd;
    --border:    #2a313a;
    --border-st: #3c4550;
    --border-ui: #646e7a;
    --accent:    #ff8a68;
    --accent-ink:#ffa88c;
    --accent-bg: #2a1a15;
    --ok:        #6fd39b;
    --ok-bg:     #14251c;
    --warn:      #f0c674;
    --warn-bg:   #2a2214;
    --shadow-1:  0 1px 2px rgba(0,0,0,.4);
    --shadow-2:  0 1px 2px rgba(0,0,0,.4), 0 8px 26px rgba(0,0,0,.42);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: .7rem 1.1rem; z-index: 100;
  border: 2px solid var(--accent); border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }
main { display: block; }
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--border); }
.band { background: var(--bg-alt); }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 680; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.35rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.05em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.25em; }
li { margin-bottom: .45em; }
li > ul { margin-top: .45em; }
small { font-size: .85rem; }
strong { font-weight: 660; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: from-font; }
a:hover { color: var(--accent); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } a:hover { color: var(--accent-ink); } }

.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.eyebrow {
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .9rem;
}
.muted { color: var(--muted); }
code, kbd, samp { font-family: var(--mono); font-size: .89em; }
:not(pre) > code {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 5px;
}
pre:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
pre {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.15rem;
  overflow-x: auto; font-size: .88rem; line-height: 1.55;
}
blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-style: normal;
  max-width: var(--measure);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .5rem; font-size: .88rem; color: var(--muted); font-style: normal; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 62px; flex-wrap: wrap; }
.brand {
  font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem 0;
}
.brand:hover { color: var(--ink); }
.brand .mark { display: block; }
.brand .sub { color: var(--muted); font-weight: 500; }
.site-head nav { margin-left: auto; }
.site-head nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; max-width: none; }
.site-head nav li { margin: 0; }
.site-head nav a {
  display: inline-block; padding: .5rem .7rem; border-radius: 7px;
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 550;
  min-height: 24px;
}
.site-head nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-bg); }
@media (prefers-color-scheme: dark) { .site-head nav a[aria-current="page"] { color: var(--accent); } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: none; }
.promise {
  font-family: var(--mono); font-weight: 600; font-size: clamp(.95rem, 2vw, 1.05rem);
  color: var(--accent-ink); letter-spacing: -.01em;
}
@media (prefers-color-scheme: dark) { .promise { color: var(--accent); } }

/* ---------- notice ---------- */
.notice {
  border: 1px solid var(--border-ui); border-left: 4px solid var(--warn);
  background: var(--warn-bg); color: var(--ink);
  padding: 1rem 1.15rem; border-radius: var(--radius);
  max-width: var(--measure); margin: 1.75rem 0;
}
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { font-size: 1rem; margin-bottom: .35rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; min-height: 44px;
  border-radius: 8px; font-weight: 600; font-size: .97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.btn-primary { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.btn-primary:hover { background: #7a2210; border-color: #7a2210; color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--accent); color: #21120c; border-color: var(--accent); }
  .btn-primary:hover { background: var(--accent-ink); color: #21120c; }
}
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-ui); box-shadow: var(--shadow-1); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--border-ui);
  background: var(--surface); color: var(--muted);
  white-space: nowrap;
}
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-free { background: var(--accent-bg); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@media (prefers-color-scheme: dark) { .badge-free { color: var(--accent); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.grid-products { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
@media (max-width: 560px) { .grid.grid-products { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card p, .card ul { max-width: none; }
.card h3 { margin-bottom: .3rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (prefers-color-scheme: dark) { .card h3 a:hover { color: var(--accent); } }

.product-card .card-top { display: flex; align-items: flex-start; gap: .95rem; margin-bottom: .75rem; }
.product-card img.pico { width: 48px; height: 48px; border-radius: 9px; flex: 0 0 auto; }
.product-card .card-foot {
  margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: .5rem 1rem; border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
}
.price-tag { font-weight: 660; color: var(--ink); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; padding: .9rem 1rem .1rem; color: var(--muted); font-size: .88rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 640; background: var(--bg-alt); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.center, th.center { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.no  { color: var(--muted); }

/* ---------- figures ---------- */
figure { margin: 2rem 0; }
figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-2); background: var(--bg-alt);
}
figcaption { margin-top: .7rem; font-size: .9rem; color: var(--muted); max-width: var(--measure); }

/* ---------- product header ---------- */
.hero .crumbs { margin-top: -1rem; }
.product-head { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.product-head img { width: 72px; height: 72px; border-radius: 13px; flex: 0 0 auto; }
.product-head h1 { margin-bottom: .2rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; gap: .45rem; padding: 0; margin: 0; flex-wrap: wrap; max-width: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--border-st); }

/* ---------- pricing ---------- */
.pricing { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.75rem 0; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan h3 { margin-bottom: .15rem; }
.plan .amount { font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: .35rem 0 .1rem; }
.plan .amount .per { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0; font-size: .94rem; max-width: none; }
.plan ul li { padding-left: 1.4rem; position: relative; }
.plan ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- facts list ---------- */
.facts { list-style: none; padding: 0; max-width: none; display: grid; gap: .85rem; }
.facts li {
  padding: .95rem 1.15rem; background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; margin: 0;
}
.facts .num { font-family: var(--mono); font-weight: 700; color: var(--ink); }

/* ---------- pledge ---------- */
.pledge-list { list-style: none; padding: 0; max-width: none; counter-reset: pledge; display: grid; gap: 1.1rem; }
.pledge-list > li {
  counter-increment: pledge; position: relative;
  padding: 1.25rem 1.4rem 1.25rem 3.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1); margin: 0;
}
.pledge-list > li::before {
  content: counter(pledge); position: absolute; left: 1.25rem; top: 1.3rem;
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  color: var(--accent-ink); background: var(--accent-bg);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
@media (prefers-color-scheme: dark) { .pledge-list > li::before { color: var(--accent); } }
.pledge-list h3 { margin-bottom: .3rem; }
.pledge-list p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding-block: 2.75rem 3.25rem; margin-top: 0; }
.site-foot .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 600; margin-bottom: .8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (prefers-color-scheme: dark) { .site-foot a:hover { color: var(--accent); } }
.colophon a { text-decoration: underline; text-underline-offset: 3px; }
.colophon { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.colophon p { max-width: none; margin-bottom: .4rem; }

/* ---------- licence recovery form ---------- */
.recover {
  margin: 2rem 0 1.5rem; padding: 1.5rem 1.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  max-width: 34rem;
}
.recover .field { margin-bottom: 1.1rem; }
.recover label {
  display: block; font-weight: 620; font-size: .95rem;
  margin-bottom: .4rem; color: var(--ink);
}
.recover input[type="email"] {
  display: block; width: 100%; min-height: 46px;
  padding: .65rem .8rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--border-ui); border-radius: 8px;
}
.recover input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.recover input[type="email"]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.recover button { width: 100%; }
.recover p { margin: .9rem 0 0; max-width: none; }

/* Portrait store screenshots: never upscale past their natural width. */
figure.shot-narrow { max-width: 480px; }
figure.shot-narrow img { image-rendering: auto; }
