/* layersqueeze.com: one stylesheet for every page. Dark by default, light when the system asks for it. */

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #121419;
  --surface-2: #181b21;
  --line: #262a33;
  --text: #eceef2;
  --muted: #9aa1ad;
  --faint: #868c97;
  --accent: #c6f432;
  --accent-ink: #0b0c0f;
  --accent-text: #c6f432;
  --bad: #ff8a7a;
  --check-a: #15171c;
  --check-b: #1a1d23;
  --radius: 14px;
  --wide: 72rem;
  --text-width: 42rem;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 60px -20px rgb(0 0 0 / 0.6);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --surface-2: #f0f0ed;
    --line: #e2e2dd;
    --text: #111214;
    --muted: #555a63;
    --faint: #5c616a;
    --accent-text: #4d6a00;
    --bad: #b42318;
    --check-a: #f3f3f1;
    --check-b: #e9e9e6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 20px 50px -24px rgb(0 0 0 / 0.18);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--text-width); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
@media (max-width: 640px) { .site-nav .optional { display: none; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 2rem; }
.site-footer h2 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal { color: var(--faint); font-size: 0.8rem; max-width: 50rem; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; font-weight: 650; padding: 0.8rem 1.35rem; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; transition: transform 0.08s ease, filter 0.15s ease; }
.button:hover { filter: brightness(1.06); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.5; cursor: default; }
.button.small { padding: 0.45rem 0.9rem; font-size: 0.9rem; border-radius: 8px; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Hero and tool */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: start; grid-template-areas: "copy" "tool" "ticks"; }
.hero .wrap > * { min-width: 0; }
.hero .copy { grid-area: copy; }
.hero .tool { grid-area: tool; }
.hero .ticks { grid-area: ticks; margin: 0; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; grid-template-areas: "copy tool" "ticks tool"; gap: 1.5rem 3.5rem; padding-top: 1.5rem; } }
.example { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0.9rem 0 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.example b { color: var(--text); font-weight: 600; }
.example .pct { color: var(--accent-text); font-weight: 700; margin-left: auto; }
.example .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); width: 100%; }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.lead strong { color: var(--text); font-weight: 600; }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 1rem; height: 0.55rem; border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg) translateY(-0.2rem); }

.tool { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1rem; box-shadow: var(--shadow); }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 0.6rem; min-height: 15.5rem; padding: 2rem 1rem; border: 2px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: var(--radius); background: repeating-conic-gradient(var(--check-a) 0 25%, var(--check-b) 0 50%) 0 0 / 22px 22px; cursor: pointer; transition: border-color 0.15s ease; }
.drop:hover, .drop:focus-within, body.dragging .drop { border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
body.dragging .drop { outline: 6px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .big { font-size: 1.25rem; font-weight: 650; }
.drop .hint { color: var(--muted); font-size: 0.9rem; }
.drop .button { pointer-events: none; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0.2rem; }
.assure span::before { content: "•"; margin-right: 0.45rem; color: var(--accent-text); }
.options { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.options summary { cursor: pointer; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; list-style: none; }
.options summary::-webkit-details-marker { display: none; }
.options summary::after { content: " ▾"; }
.options[open] summary::after { content: " ▴"; }
.options label { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.65rem; padding: 0.55rem 0; font-size: 0.95rem; }
.options label input { margin-top: 0.3rem; accent-color: var(--accent); width: 1rem; height: 1rem; }
.options label small { grid-column: 2; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
#queue { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
#queue li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
#queue .name { font-weight: 600; overflow-wrap: anywhere; }
#queue .status { grid-column: 1; color: var(--muted); font-size: 0.88rem; }
#queue .done .status strong { color: var(--accent-text); }
#queue .failed .status { color: var(--bad); }
#queue .action { grid-column: 2; grid-row: 1 / span 2; }
#queue .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
#queue .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
#queue .working .status::after { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-left: 0.5rem; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; vertical-align: -0.1rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#summary { margin: 0.8rem 0 0; font-weight: 600; }
.after { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.after p { margin-bottom: 0.6rem; }
[hidden] { display: none !important; }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup input[type=email] { flex: 1 1 15rem; min-width: 0; font: inherit; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-status:empty { display: none; }

/* Sections */
section { padding: 4.5rem 0 0; }
.section-head { max-width: var(--text-width); margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.stats .num { display: block; font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; color: var(--accent-text); line-height: 1.1; margin-bottom: 0.35rem; }
.stats .what { color: var(--muted); font-size: 0.95rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; }
.card .step { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .cost { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.25rem; font-size: 0.92rem; }
.card .cost b { color: var(--text); font-weight: 600; }
.prose { max-width: var(--text-width); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.yes { color: var(--accent-text); font-weight: 600; }
td.no { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { color: var(--muted); padding-top: 0.6rem; max-width: var(--text-width); }
.cta-band { margin-top: 5rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 2.2rem; display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta-band h2 { margin-bottom: 0.3em; }

/* Articles (guides) */
.article { padding: 3rem 0 0; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.guide-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); padding: 0; list-style: none; }
.guide-list a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; color: var(--text); text-decoration: none; }
.guide-list a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.guide-list span { display: block; color: var(--muted); font-size: 0.93rem; margin-top: 0.35rem; }

/* The logo's top layer. */
.logo-top { fill: #c6f432; }
@media (prefers-color-scheme: light) { .logo-top { fill: #86a800; } }
