@import url("/assets/css/site-brand.css?v=20260822-brand4");

:root {
  --ink: #191c18;
  --paper: #f7f2e8;
  --panel: #fffdf8;
  --muted: #646961;
  --line: #c9c7bd;
  --accent: #2457f5;
  --accent-soft: #dfe7ff;
  --yellow: #ffd94d;
  --lime: #c9f454;
  --coral: #f36a55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body.crop-theme { --accent: #2457f5; --accent-soft: #dfe7ff; }
body.border-theme { --accent: #e4543f; --accent-soft: #ffe2d9; }
body.watermark-theme { --accent: #7151d8; --accent-soft: #e9e0ff; }
body.favicon-theme { --accent: #277b55; --accent-soft: #dff4e7; }
body.metadata-theme { --accent: #a55d13; --accent-soft: #ffebc9; }
body.svg-theme { --accent: #076f7b; --accent-soft: #d8f1f1; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.shell { width: min(1060px, calc(100% - 36px)); margin: auto; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 2px solid var(--ink); background: rgba(247,242,232,.94); backdrop-filter: blur(12px); }
.nav { display: flex; min-height: 64px; align-items: center; justify-content: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 950; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 34px; place-items: center; border: 2px solid var(--ink); border-radius: 48% 52% 45% 55%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg); }
.nav-links { display: flex; align-items: center; gap: 17px; }
.nav-links a { font-size: 14px; font-weight: 850; text-decoration: none; }
.nav-pill { padding: 8px 13px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }

.hero { display: flex; flex-direction: column; align-items: center; padding: 68px 0 40px; text-align: center; }
.tool-stamp { display: inline-block; padding: 7px 12px; border: 2px solid var(--ink); background: var(--accent); color: #fff; font-size: 12px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-1deg); }
.hero h1 { max-width: 930px; margin: 24px auto 20px; font-size: clamp(54px, 8.2vw, 92px); line-height: .91; letter-spacing: -.072em; }
.hero h1 em { position: relative; color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero h1 em::after { content: ""; position: absolute; right: -2%; bottom: -5px; left: 0; z-index: -1; height: 10px; border-radius: 999px; background: var(--yellow); transform: rotate(-1deg); }
.dek { max-width: 730px; margin: 0; color: #444942; font-size: clamp(18px, 2vw, 21px); }
.maker-note { display: flex; align-items: center; gap: 15px; width: min(760px, 100%); margin-top: 28px; padding: 17px 20px; border: 2px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 6px 6px 0 var(--ink); text-align: left; transform: rotate(.15deg); }
.maker-note strong { display: block; margin-bottom: 3px; }
.maker-note p { margin: 0; color: var(--muted); }
.maker-face { flex: 0 0 52px; display: grid; height: 49px; place-items: center; border: 2px solid var(--ink); border-radius: 42% 58% 47% 53%; background: var(--accent-soft); font-weight: 950; transform: rotate(-7deg); }

.workbench { padding-bottom: 78px; }
.privacy-banner { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 18px; padding: 15px 19px; border: 2px solid var(--ink); border-radius: 22px; background: var(--lime); text-align: center; }
.privacy-banner p { margin: 2px 0 0; color: #42483c; font-size: 13px; }
.privacy-dot { flex: 0 0 19px; width: 19px; height: 19px; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.tool-card { border: 2px solid var(--ink); border-radius: 31px; overflow: hidden; background: var(--panel); box-shadow: 9px 9px 0 var(--ink); }
.dropzone { display: grid; min-height: 390px; place-items: center; margin: 22px; padding: 40px 24px; border: 2px dashed var(--ink); border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 75%, white), rgba(255,255,255,.5)); cursor: pointer; text-align: center; transition: .15s ease; }
.dropzone:hover, .dropzone.drag { background: var(--accent-soft); transform: translateY(-2px); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { display: grid; width: 98px; height: 76px; margin: 0 auto 19px; place-items: center; border: 2px solid var(--ink); border-radius: 28px; background: var(--accent); color: #fff; box-shadow: 7px 7px 0 var(--ink); font-size: 31px; font-weight: 950; transform: rotate(-5deg); }
.dropzone h2 { margin: 0 0 7px; font-size: clamp(29px, 5vw, 45px); letter-spacing: -.052em; }
.dropzone p { margin: 0 0 20px; color: var(--muted); }
.dropzone small { display: block; margin-top: 13px; color: var(--muted); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 900; cursor: pointer; transition: .14s ease; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.button.primary { background: var(--ink); color: #fff; }
.button.accent { background: var(--accent); color: #fff; }
.button.small { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.editor-head { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 23px 26px; border-bottom: 2px solid var(--ink); text-align: center; }
.editor-head h2 { margin: 2px 0; font-size: 26px; letter-spacing: -.04em; }
.editor-head p { margin: 0; color: var(--muted); font-size: 13px; }
.head-actions { display: flex; gap: 8px; }
.step { display: inline-grid; min-width: 29px; height: 27px; place-items: center; padding: 0 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 11px; font-weight: 950; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 0; }
.preview-column { display: grid; align-content: start; justify-items: center; padding: 26px; border-right: 2px solid var(--ink); }
.preview-stage { display: grid; width: 100%; min-height: 430px; place-items: center; padding: 24px; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#dedede 25%,transparent 25%),linear-gradient(-45deg,#dedede 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dedede 75%),linear-gradient(-45deg,transparent 75%,#dedede 75%); background-position: 0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px; }
.preview-stage canvas, .preview-stage img { display: block; max-width: 100%; max-height: 590px; object-fit: contain; filter: drop-shadow(0 13px 18px rgba(25,28,24,.2)); }
.preview-caption { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.controls { display: grid; align-content: start; gap: 13px; padding: 26px; background: #f0eee7; }
.panel { padding: 17px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.panel h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.panel > p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.control { display: grid; gap: 6px; margin-top: 13px; }
.control:first-child { margin-top: 0; }
.control label, label.control { font-weight: 850; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.control output { color: var(--accent); font-weight: 950; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="text"], input[type="number"], select, textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
input[type="color"] { width: 48px; height: 38px; padding: 2px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.segments { display: grid; grid-template-columns: repeat(var(--count, 3), 1fr); gap: 7px; }
.segment { min-height: 41px; padding: 7px 8px; border: 2px solid var(--ink); border-radius: 13px; background: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.segment.active { background: var(--accent-soft); box-shadow: 3px 3px 0 var(--ink); }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 850; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.nudge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.position-grid button { min-height: 34px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; }
.position-grid button.active { background: var(--yellow); }
.export-bar { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 24px 26px; border-top: 2px solid var(--ink); background: var(--yellow); text-align: center; }
.export-bar h2 { margin: 2px 0; font-size: 25px; letter-spacing: -.04em; }
.export-bar p { margin: 0; color: #54513d; font-size: 13px; }
.export-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.status-box { padding: 13px; border: 1.5px dashed var(--ink); border-radius: 15px; background: #fffaf0; color: var(--muted); font-size: 12px; }
.status-box strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 11px; border: 1.5px solid var(--ink); border-radius: 13px; background: #fff; text-align: center; }
.stat strong, .stat span { display: block; }
.stat span { color: var(--muted); font-size: 11px; }
.data-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.data-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; font-size: 12px; }
.data-list code { overflow-wrap: anywhere; color: var(--muted); }
.empty-data { padding: 16px; color: var(--muted); text-align: center; }

.content-section { padding: 72px 0; text-align: center; }
.content-section.alt { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #fff9e8; }
.kicker { font-size: 12px; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.content-section h2 { margin: 10px auto 31px; font-size: clamp(40px, 6vw, 64px); line-height: .96; letter-spacing: -.056em; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.info-grid article { padding: 23px; border: 2px solid var(--ink); border-radius: 23px; background: #fff; }
.info-grid article:nth-child(2) { background: var(--accent-soft); transform: rotate(-.25deg); }
.info-grid article:nth-child(3) { background: #edfad0; transform: rotate(.25deg); }
.info-grid h3 { margin: 0 0 6px; font-size: 20px; }
.info-grid p { margin: 0; color: #4e534c; }
.faq-list { display: grid; max-width: 840px; margin: auto; gap: 10px; text-align: left; }
.faq-list details { padding: 16px 18px; border: 2px solid var(--ink); border-radius: 17px; background: #fff; }
.faq-list summary { cursor: pointer; font-weight: 950; }
.faq-list p { margin: 9px 0 0; color: var(--muted); }
.tool-footer { padding: 31px 0; border-top: 2px solid var(--ink); text-align: center; }
.tool-footer p { color: var(--muted); font-size: 13px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(370px, calc(100% - 40px)); padding: 13px 17px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 850; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 4px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 3px; }

@media (max-width: 820px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-column { border-right: 0; border-bottom: 2px solid var(--ink); }
  .preview-stage { min-height: 350px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1060px); }
  .nav { min-height: 58px; gap: 14px; }
  .nav-links a:not(.nav-pill) { display: none; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: 49px; }
  .maker-note { align-items: flex-start; padding: 15px; }
  .privacy-banner { align-items: flex-start; text-align: left; }
  .tool-card { border-radius: 23px; box-shadow: 6px 7px 0 var(--ink); }
  .dropzone { min-height: 340px; margin: 12px; padding: 28px 14px; }
  .editor-head, .export-bar { flex-direction: column; gap: 14px; padding-right: 14px; padding-left: 14px; }
  .preview-column, .controls { padding: 14px; }
  .preview-stage { min-height: 270px; padding: 13px; border-radius: 18px; }
  .preview-stage canvas, .preview-stage img { max-height: 430px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid article { max-width: 620px; margin: auto; }
  .export-actions { width: 100%; }
  .export-actions .button { flex: 1 1 100%; }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
