/* Factory design system. Colours come from brand.css (generated per product by factory/brand.js). */
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Space Grotesk Variable'; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --panel: #fff;
  --ok: #12805c; --ok-bg: #dcf5ea;
  --warn: #8a5300; --warn-bg: #fff3d6; --warn-line: #f2cf7a;
  --error: #c02b3a; --error-bg: #fde8ea;
  --font-display: 'Space Grotesk Variable', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --shadow-1: 0 1px 2px rgba(15, 15, 40, .06), 0 1px 1px rgba(15, 15, 40, .04);
  --shadow-2: 0 18px 50px rgba(15, 15, 40, .14), 0 3px 8px rgba(15, 15, 40, .06);
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-size: .9em; }
[hidden] { display: none !important; }
.store-app [data-buy] { display: none !important; }

/* header / footer */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 650 1.2rem var(--font-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }
.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 36px 0 48px; font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 600 .95rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn.primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }

/* surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-size: .82rem; font-weight: 600; }
.pill.pro { background: var(--ink); color: var(--on-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.msg { padding: 12px 16px; border-radius: var(--r-m); font-size: .93rem; margin: 12px 0 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.msg.err { background: var(--error-bg); color: var(--error); }

/* forms */
input[type=text], input[type=email], select { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; color: var(--text); font: inherit; }
input:focus, select:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 1px; }
label { font-weight: 600; font-size: .9rem; }

/* landing */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.hero .trust span::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 6px; }
.shot { border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; background: #fff; }
.shot img { width: 100%; height: auto; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
section.band { padding: 64px 0; }
section.band.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.section-head { max-width: 40em; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { list-style: none; padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); font: 700 1rem var(--font-display); margin-bottom: 14px; }
.steps { padding: 0; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features .card { padding: 24px; }
.features .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.2rem; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.pricing .card { padding: 30px; display: flex; flex-direction: column; }
.pricing .card.pro { border: 2px solid var(--primary); position: relative; }
.pricing .price { font: 700 2.6rem var(--font-display); color: var(--ink); letter-spacing: -.03em; margin: 8px 0 2px; }
.pricing .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pricing ul { padding: 0; margin: 18px 0 24px; list-style: none; flex: 1; }
.pricing li { padding: 6px 0 6px 28px; position: relative; }
.pricing li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.pricing li.no::before { content: '–'; color: var(--muted); }
.pricing li.no { color: var(--muted); }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.compare tr.us td { background: var(--primary-soft); font-weight: 600; }
.scroll-x { overflow-x: auto; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.final { background: var(--ink); color: var(--on-ink); border-radius: var(--r-l); padding: 48px 32px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: var(--on-ink-muted); }
.legal { max-width: 760px; padding-top: 48px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* app shell */
.app-main { padding-top: 28px; padding-bottom: 40px; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.app-head h1 { font-size: 1.6rem; margin: 0; }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--r-l); background: var(--panel); padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop.done { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.drop input { display: none; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-2); z-index: 60; font-size: .93rem; max-width: calc(100% - 32px); }
.toast.err { background: var(--error); color: #fff; }
.modal-back { position: fixed; inset: 0; background: rgba(10, 10, 30, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: var(--r-l); box-shadow: var(--shadow-2); padding: 28px; width: 100%; max-width: 460px; }
.modal h2 { font-size: 1.4rem; }
.modal .row { display: flex; gap: 10px; margin-top: 14px; }
.modal .row input { flex: 1; }
