/* Cutmora — public site styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f9;
  --bg-elev: #ffffff;
  --ink: #16131c;
  --ink-2: #3b3644;
  --muted: #6b6577;
  --line: #e8e5ee;
  --line-2: #d9d4e2;
  --flare: #ff5a1f;
  --flare-2: #ff2e6e;
  --flare-ink: #c2410c;
  --flare-soft: #fff1ea;
  --ok: #1f9d55;
  --err: #d93636;
  --grad: linear-gradient(120deg, #ff7a1a 0%, #ff2e6e 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 28, .06);
  --shadow: 0 1px 2px rgba(22, 19, 28, .05), 0 8px 28px rgba(22, 19, 28, .07);
  --shadow-lg: 0 2px 6px rgba(22, 19, 28, .05), 0 24px 60px rgba(22, 19, 28, .10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --stage-max-h: 62vh;
  --checker: repeating-conic-gradient(#ececf1 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --bg-soft: #18151e;
    --bg-elev: #1d1a24;
    --ink: #f4f2f7;
    --ink-2: #d6d2dd;
    --muted: #a39cae;
    --line: #2b2733;
    --line-2: #3a3544;
    --flare-soft: #2a1a16;
    --flare-ink: #ff8a5c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
    --checker: repeating-conic-gradient(#2a2731 0% 25%, #201d27 0% 50%) 50% / 20px 20px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
kbd {
  font: 600 .78em var(--font);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--bg-elev);
}
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--flare) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(255, 70, 50, .28); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(255, 70, 50, .38); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: #16131c; }
.btn-light:hover { background: #fff4ee; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.03em; min-width: 0; }
.brand-logo { width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 480px) { .brand-logo { max-width: 130px; } .site-header .brand-logo + span { display: none; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 32px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 30%, color-mix(in srgb, #ff7a1a 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 72% 22%, color-mix(in srgb, #ff2e6e 13%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-copy { text-align: center; max-width: 780px; margin: 0 auto 30px; transition: margin .2s; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--flare-ink);
  background: var(--flare-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-copy.compact { margin-bottom: 20px; }
.hero-copy.compact .eyebrow, .hero-copy.compact .lead { display: none; }
.hero-copy.compact h1 { font-size: clamp(24px, 3vw, 32px); }

/* ---------- Dropzone ---------- */
.dropzone {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 24px;
  background: var(--bg-elev);
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: pointer; text-align: center;
  transition: border-color .15s, transform .15s, background-color .15s;
}
.dropzone:hover { border-color: color-mix(in srgb, var(--flare) 50%, var(--line-2)); }
body.dragging .dropzone,
body.dragging .workspace { border-color: var(--flare); background: color-mix(in srgb, var(--flare-soft) 60%, var(--bg-elev)); }
body.dragging .dropzone { transform: scale(1.01); }
.dz-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--flare-soft); color: var(--flare-ink);
}
.dz-hint { color: var(--ink-2); font-size: 15px; }
.dz-meta { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) {
  .dropzone { padding: 32px 16px; }
  .dz-hint kbd, .dz-hint { font-size: 14px; }
}

.trust {
  list-style: none; padding: 0; margin: 22px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  color: var(--ink-2); font-size: 14px; font-weight: 550;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* ---------- Workspace ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main side" "batch batch";
  gap: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.ws-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; }
.batch { grid-area: batch; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 880px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "batch"; padding: 12px; }
  :root { --stage-max-h: 56vh; }
}

.stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 280px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}
.stage-inner { position: relative; width: 100%; max-height: var(--stage-max-h); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.before { object-fit: contain; }
.after-wrap { display: none; }
.after-wrap.checker { background: var(--checker); }
.after { width: 100%; height: 100%; }
.stage-inner[data-view="after"] .before { visibility: hidden; }
.stage-inner[data-view="after"] .after-wrap,
.stage-inner[data-view="compare"] .after-wrap { display: block; }
.compare, .compare-line { display: none; }
.stage-inner[data-view="compare"] .compare {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; z-index: 3;
}
.stage-inner[data-view="compare"] .compare-line {
  display: block; position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); z-index: 2; pointer-events: none;
}
.compare-line span {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: var(--shadow);
}
.compare-line span::before {
  content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 15px/1 var(--font); color: #16131c; letter-spacing: 2px;
}

.stage-status {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  text-align: center; padding: 20px;
}
.stage-status p { font-weight: 650; }
.stage-status .status-sub { font-weight: 450; color: var(--muted); font-size: 14px; max-width: 420px; }
.stage-status.error .spinner { display: none; }
.stage-status.error p:first-of-type { color: var(--err); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--flare);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: min(320px, 80%); height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

.stage-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg-btn {
  border: 0; background: transparent; color: var(--ink-2);
  font: 600 14px/1 var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
.seg-btn.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }
.img-info { color: var(--muted); font-size: 13px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-title { font-size: 14px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.bg-options { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
@media (max-width: 880px) { .bg-options { grid-template-columns: repeat(8, minmax(0, 40px)); } }
.swatch {
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--c, transparent);
  cursor: pointer; padding: 0; position: relative;
}
.swatch.active { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 4px var(--flare); }
.swatch-clear { background: var(--checker); background-size: 10px 10px; }
.swatch-pick { background: conic-gradient(#ff5a1f, #ffd23f, #40a02b, #1e66f5, #a855f7, #ff2e6e, #ff5a1f); overflow: hidden; }
.swatch-pick input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.bg-extra { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 13px/1 var(--font); cursor: pointer;
}
.chip.active { border-color: var(--flare); color: var(--flare-ink); background: var(--flare-soft); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
select, input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink);
  background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
}
select { height: 42px; padding: 0 10px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--flare); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flare) 22%, transparent); }
.ws-side .btn + .btn { margin-top: 8px; }
.side-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 4px; min-width: 0; scrollbar-width: thin; }

.thumb { position: relative; flex: 0 0 auto; }
.thumb-btn { width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--checker); cursor: pointer; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active .thumb-btn { border-color: var(--flare); }
.thumb-state { position: absolute; left: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; pointer-events: none; }
.thumb.st-processing .thumb-state, .thumb.st-queued .thumb-state { border: 2px solid rgba(255,255,255,.6); border-top-color: var(--flare); animation: spin .8s linear infinite; background: rgba(0,0,0,.25); }
.thumb.st-queued .thumb-state { animation: none; border-top-color: rgba(255,255,255,.6); }
.thumb.st-done .thumb-state { background: var(--ok); box-shadow: 0 0 0 2px #fff; }
.thumb.st-done .thumb-state::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.thumb.st-error .thumb-state { background: var(--err); box-shadow: 0 0 0 2px #fff; }
.thumb-x {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--bg); font: 700 14px/1 var(--font); cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.thumb:hover .thumb-x, .thumb:focus-within .thumb-x { opacity: 1; }
@media (hover: none) { .thumb-x { opacity: 1; } }
.thumb-add {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px;
  border: 2px dashed var(--line-2); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.thumb-add:hover { border-color: var(--flare); color: var(--flare-ink); }

.engine-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- Ads: one row of three cards (like "How it works"); stacked on phones ---------- */
.ad-section { padding: 8px 0 56px; }
.ad-section-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ad-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; align-items: center; }
.ad-box { display: block; width: 100%; max-width: var(--ad-w, 300px); aspect-ratio: var(--ad-ratio, 300 / 250); overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.ad-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.ad-box { transition: transform .15s, box-shadow .15s; }
a.ad-box:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ad-html { display: grid; place-items: center; }
.ad-by { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.ad-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; padding: 18px;
  border: 1.5px dashed var(--line-2); background: color-mix(in srgb, var(--flare-soft) 45%, var(--bg-elev)); }
.ad-empty-title { font-weight: 750; font-size: 18px; color: var(--ink); }
.ad-empty-sub { font-size: 13.5px; color: var(--muted); max-width: 220px; }
.ad-empty-cta { font-size: 13.5px; font-weight: 650; color: var(--flare-ink); }
@media (max-width: 860px) { .ad-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 780; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .section { padding: 52px 0; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 750; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--flare-soft); color: var(--flare-ink); display: grid; place-items: center; margin-bottom: 14px; }
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.uses { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.use { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.use:nth-child(3n) { border-right: 0; }
.use:nth-last-child(-n+3) { border-bottom: 0; }
.use h3 { font-size: 16px; margin-bottom: 4px; }
.use p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .uses { grid-template-columns: 1fr 1fr; }
  .use:nth-child(3n) { border-right: 1px solid var(--line); }
  .use:nth-child(2n) { border-right: 0; }
  .use:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .use:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 460px) {
  .uses { grid-template-columns: 1fr; }
  .use { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .use:last-child { border-bottom: 0 !important; }
}

.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare-table thead th:nth-child(2) { color: var(--flare-ink); }
.compare-table tbody th { font-weight: 550; }
.compare-table td { color: var(--muted); }
.compare-table td.yes { color: var(--ink); font-weight: 650; }

.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

.cta-band { background: #16131c; color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 0%, rgba(255,90,31,.45), transparent 60%), radial-gradient(40% 100% at 10% 100%, rgba(255,46,110,.35), transparent 60%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Content pages ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page .page-lead { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--flare-ink); }
.prose .updated { color: var(--muted); font-size: 14px; }

.form-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 20px; } }
.req { color: var(--flare-ink); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 550; }
.alert-ok { background: color-mix(in srgb, var(--ok) 12%, var(--bg-elev)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-err { background: color-mix(in srgb, var(--err) 10%, var(--bg-elev)); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.adv-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.adv-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.adv-points li { display: flex; gap: 12px; color: var(--ink-2); }
.adv-points li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--grad); }
@media (max-width: 860px) { .adv-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-links a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 4px 0; }
.footer-links a:hover { color: var(--flare-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .footer-links { gap: 32px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100% - 32px));
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14.5px; font-weight: 550; text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.muted-note { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .muted-note { display: none; } }

/* Edge cleanup slider */
.edge-range { width: 100%; accent-color: var(--flare); }
.edge-range:disabled { opacity: .5; }
.edge-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.edge-state { font-weight: 400; color: var(--muted); margin-left: 6px; }
.edge-note { text-align: left; margin-top: 4px; }

/* ---------- Founder's Blog button (header) ---------- */
.founder-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-elev); color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer; margin-right: 4px; transition: border-color .15s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.founder-btn.is-here { border-color: var(--flare); color: var(--flare-ink); }
.founder-btn:hover { border-color: var(--flare); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flare) 14%, transparent); }
.fb-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad); flex: 0 0 auto; }
.fb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fb-initials { color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
@media (max-width: 400px) { .fb-label { display: none; } .founder-btn { padding: 0 4px; } }


/* ---------- Founder's Blog ---------- */
.blog-hero { position: relative; overflow: hidden; padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.blog-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(38% 50% at 18% 30%, color-mix(in srgb, #ff7a1a 14%, transparent), transparent 70%), radial-gradient(30% 45% at 80% 10%, color-mix(in srgb, #ff2e6e 12%, transparent), transparent 70%); }
.blog-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bh-copy h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.bh-lead { margin-top: 16px; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 560px; }
.bh-stats { margin-top: 18px; font-size: 14px; color: var(--muted); }
.bh-stats strong { color: var(--ink); }
.bh-stats a { color: var(--flare-ink); }
.author-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; position: relative; overflow: hidden; }
.author-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.ac-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ac-photo, .by-photo, .ab-photo { display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--grad); flex: 0 0 auto; }
.ac-photo { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px color-mix(in srgb, var(--flare) 35%, transparent); }
.ac-photo img, .by-photo img, .ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.av-initials { color: #fff; font-weight: 800; font-size: 40%; }
.ac-photo .av-initials { font-size: 22px; }
.ac-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.ac-role { color: var(--muted); font-size: 14px; }
.ac-bio { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.ac-bio + .ac-bio { margin-top: 8px; }
.ac-free { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--flare-soft); border: 1px solid color-mix(in srgb, var(--flare) 22%, transparent); }
.ac-free span { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--flare-ink); }
.ac-free p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.social a:hover { border-color: var(--flare); color: var(--flare-ink); transform: translateY(-1px); }
@media (max-width: 860px) { .blog-hero-inner { grid-template-columns: 1fr; gap: 28px; } .blog-hero { padding: 40px 0 32px; } }

.blog-list { padding: 36px 0 80px; }
.tag-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; background: var(--bg-elev); }
.tag-chip small { color: var(--muted); font-weight: 600; font-size: 12px; }
.tag-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.tag-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag-chip.active small { color: inherit; opacity: .7; }

.post-card { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pc-link { display: block; text-decoration: none; }
.pc-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-cover img { transform: scale(1.03); }
.pc-cover.is-empty, .post-cover-empty { display: grid; place-items: center; background: linear-gradient(135deg, hsl(calc(18deg + var(--h, 0) * 1deg) 100% 56%), hsl(calc(340deg + var(--h, 0) * 1deg) 100% 59%)); }
.pc-cover.is-empty span { color: rgba(255,255,255,.92); font-size: 64px; font-weight: 800; letter-spacing: -0.04em; text-shadow: 0 8px 30px rgba(0,0,0,.15); }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-tag { align-self: flex-start; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--flare-ink); text-decoration: none; }
.pc-pin { position: absolute; top: 16px; left: 16px; background: rgba(22,19,28,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.pc-title { font-size: 19px; font-weight: 750; line-height: 1.3; letter-spacing: -0.015em; }
.pc-title a { text-decoration: none; }
.pc-title a:hover { color: var(--flare-ink); }
.pc-excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.post-card-big { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 28px; }
.post-card-big .pc-cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
.post-card-big .pc-body { padding: 34px; justify-content: center; gap: 12px; }
.post-card-big .pc-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -0.025em; }
.post-card-big .pc-excerpt { font-size: 16.5px; -webkit-line-clamp: 4; }
.post-card-big .pc-meta { margin-top: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .post-card-big { grid-template-columns: 1fr; } .post-card-big .pc-cover { aspect-ratio: 16 / 9; min-height: 0; } .post-card-big .pc-body { padding: 22px; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.blog-empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--bg-soft); }
.be-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--flare-soft); color: var(--flare-ink); }
.blog-empty h2 { font-size: 24px; }
.blog-empty p { color: var(--muted); margin: 8px 0 22px; }
.blog-empty a:not(.btn) { color: var(--flare-ink); }

/* Single post */
.preview-bar { position: sticky; top: 64px; z-index: 15; background: #16131c; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.preview-bar a { color: #ffb08a; }
.post-head { padding: 52px 0 28px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--flare-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.post-dek { margin-top: 16px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.by-photo { width: 46px; height: 46px; }
.by-photo .av-initials { font-size: 16px; }
.by-name { font-weight: 700; }
.by-meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-cover { margin: 0 auto 40px; max-width: 1160px; }
.post-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-layout { max-width: 860px; }
.post-layout.has-toc { max-width: 1160px; display: grid; grid-template-columns: 220px minmax(0, 740px); gap: 56px; justify-content: center; }
.post-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.toc-title { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.post-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.post-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.post-toc li.toc-l3 a { padding-left: 26px; font-size: 13.5px; }
.post-toc a:hover { color: var(--ink); }
.post-toc a.active { color: var(--flare-ink); border-left-color: var(--flare); font-weight: 600; }
@media (max-width: 1000px) { .post-layout.has-toc { grid-template-columns: minmax(0, 1fr); max-width: 860px; } .post-toc { display: none; } }

.post-body { font-size: 18.5px; line-height: 1.8; color: var(--ink-2); min-width: 0; }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 30px); color: var(--ink); margin-top: 1.9em; scroll-margin-top: 90px; letter-spacing: -0.02em; }
.post-body h3 { font-size: 21px; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 90px; }
.post-body h4 { font-size: 18px; color: var(--ink); margin-top: 1.4em; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .6em; }
.post-body a { color: var(--flare-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--flare); }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid; border-image: var(--grad) 1; font-size: 1.1em; font-style: italic; color: var(--ink); }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body img { border-radius: 14px; margin: 0 auto; }
.post-body figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.post-body code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.post-body pre { background: #16131c; color: #f4f2f7; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; }
@media (max-width: 600px) { .post-body { font-size: 17px; } .post-head { padding-top: 36px; } }

.post-foot { margin-top: 48px; padding-bottom: 56px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { font-weight: 650; font-size: 14px; margin-right: 6px; }
.share a, .copy-link { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg-elev); cursor: pointer; transition: border-color .15s, color .15s; }
.share a:hover, .copy-link:hover { border-color: var(--flare); color: var(--flare-ink); }
.copy-link { width: auto; display: inline-flex; gap: 8px; padding: 0 14px; font: 600 14px/1 var(--font); }
.copy-link.copied { border-color: var(--ok); color: var(--ok); }
.author-box { display: flex; gap: 20px; margin-top: 32px; padding: 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ab-photo { width: 84px; height: 84px; }
.ab-photo .av-initials { font-size: 28px; }
.ab-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ab-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.ab-role { color: var(--muted); font-size: 14px; }
.ab-bio { color: var(--ink-2); margin-top: 10px; line-height: 1.65; }
.author-box .social { margin-top: 12px; }
@media (max-width: 560px) { .author-box { flex-direction: column; gap: 14px; padding: 20px; } }
.related { padding: 56px 0 72px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.related-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.related-head a { color: var(--flare-ink); font-weight: 650; text-decoration: none; }
.blog-404 { text-align: center; padding: 40px 0; }
