@import url('./tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; flex:0 0 auto; align-items:center; text-decoration:none; }
.brand-logo { display:block; width:180px; height:auto; max-height:52px; object-fit:contain; }
.nav-links { display:flex; align-items:center; gap:22px; }
.nav-links a { color:var(--muted); text-decoration:none; font-size:14px; font-weight:650; }
.nav-links a:hover { color:var(--brand-strong); }
.nav-actions { display:flex; align-items:center; gap:10px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 15px; border:1px solid transparent; border-radius:12px; cursor:pointer; text-decoration:none; font-weight:750; transition:transform .16s,background .16s,border-color .16s; }
.button:hover { transform:translateY(-1px); }
.button:disabled { opacity:.55;cursor:not-allowed;transform:none; }
.button-primary { background:var(--brand); color:white; box-shadow:0 7px 20px #2363eb26; }
.button-primary:hover { background:var(--brand-strong); }
.button-secondary { background:white; border-color:var(--line); color:var(--text); }
.button-quiet { background:transparent; color:var(--muted); }
.button-danger { background:#fff4f2; border-color:#f2c4bd; color:#a33120; }
.hero { padding:64px 0 32px; text-align:center; }
.eyebrow { color:var(--brand-strong); font-size:12px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.hero h1 { max-width:850px; margin:14px auto 12px; font-size:clamp(38px,6vw,66px); line-height:1.04; letter-spacing:-.06em; }
.hero p { max-width:670px; margin:0 auto; color:var(--muted); font-size:clamp(16px,2vw,19px); }
.trust-row { margin:22px auto 0; display:flex; flex-wrap:wrap; gap:12px 22px; justify-content:center; color:var(--muted); font-size:13px; font-weight:650; }
.app-shell { display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:20px; align-items:start; padding:22px 0 70px; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:22px; box-shadow:0 18px 48px #172b4d0b; overflow:hidden; }
.panel-head { padding:20px 22px 16px; border-bottom:1px solid var(--line); }
.panel-head h2,.panel-head h3 { margin:0; font-size:17px; letter-spacing:-.02em; }
.panel-head p { margin:5px 0 0; font-size:13px; color:var(--muted); }
.panel-body { padding:20px 22px 22px; }
.dropzone { min-height:250px; padding:28px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1.5px dashed #a6b8d3; border-radius:18px; background:linear-gradient(155deg,#f5f9ff,#fbfcff); transition:.18s; }
.dropzone.is-over { border-color:var(--brand); background:#edf4ff; transform:scale(1.01); }
.upload-icon { display:grid; place-items:center; width:58px;height:58px;margin-bottom:14px;border-radius:18px;background:#e6efff;color:var(--brand); }
.upload-icon svg { width:27px;height:27px; }
.dropzone h3 { margin:0 0 5px; font-size:19px; letter-spacing:-.03em; }
.dropzone p { margin:0 0 15px; color:var(--muted); font-size:13px; }
.microcopy { margin:12px 0 0 !important; font-size:11px !important; }
.file-input { position:absolute; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%); }
.file-input:focus-visible + label { outline:3px solid var(--focus);outline-offset:3px; }
.model-state { display:flex; align-items:center; gap:10px; margin-top:16px; padding:11px 13px; border-radius:12px; background:#f5f7fa; color:var(--muted); font-size:12px; }
.model-state[data-state="ready"] { color:#075b44;background:#e9f8f1; }
.model-state[data-state="error"] { color:#a33120;background:#fff0ed; }
.dot { flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#b7c0ce; }
.model-state[data-state="loading"] .dot { background:var(--brand);animation:pulse 1s infinite alternate; }
@keyframes pulse { to { opacity:.35; } }
.progress-track { height:4px;margin:12px 0 0;border-radius:99px;background:#e9edf4;overflow:hidden; }
.progress-value { width:0;height:100%;background:linear-gradient(90deg,#2563eb,#68a0ff);transition:width .25s; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 10px; font-size:13px; font-weight:800; }
.queue-list { display:grid; gap:8px; margin:0;padding:0;list-style:none; }
.queue-item { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px; border:1px solid var(--line); border-radius:13px; }
.queue-thumb { width:38px;height:38px;border-radius:9px;object-fit:cover;background:#edf0f6; }
.queue-name { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:12px; }
.queue-state { color:var(--muted);font-size:11px; }
.queue-actions { display:flex;gap:5px; }
.icon-button { width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:white;color:var(--muted);cursor:pointer; }
.queue-actions .icon-button { width:auto;min-width:32px;padding:0 8px;font-size:11px;font-weight:750;white-space:nowrap; }
.preview-header { display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }
.preview-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap; }
.comparison-note { margin:0;padding:0 18px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.5; }
.preview-canvas-wrap { position:relative; min-height:360px; padding:18px; display:grid;place-items:center; overflow:hidden; background-color:#f7f9fc; background-image:linear-gradient(45deg,#e8edf4 25%,transparent 25%),linear-gradient(-45deg,#e8edf4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf4 75%),linear-gradient(-45deg,transparent 75%,#e8edf4 75%); background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0; }
.preview-canvas-wrap canvas,.preview-canvas-wrap img { display:block;max-width:100%;max-height:540px;object-fit:contain; }
.preview-canvas-wrap #beforeImage,.preview-canvas-wrap #editorCanvas { grid-area:1/1; }
.preview-canvas-wrap canvas { touch-action:none;box-shadow:0 9px 32px #0f172a1c; }
.preview-canvas-wrap #beforeImage { max-width:100%;max-height:540px; }
.preview-empty { max-width:280px;text-align:center;color:var(--muted); }
.preview-empty svg { width:46px;height:46px;color:#94a3b8; }
.preview-empty h3 { color:var(--text);margin:10px 0 4px; }
.compare-control { padding:12px 18px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted); }
.compare-control input { flex:1; accent-color:var(--brand); }
.toolbar { display:flex;flex-wrap:wrap;gap:7px;padding:13px 16px;border-top:1px solid var(--line); }
.toolbar .button { min-height:36px;padding:7px 10px;font-size:12px; }
.editor-controls { padding:18px;border-top:1px solid var(--line); }
.editor-controls h3 { margin:0 0 12px;font-size:13px; }
.editor-group { border-bottom:1px solid #e9eef5; }
.editor-group > summary { display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:11px 3px;color:var(--text);font-size:13px;font-weight:800;cursor:pointer;list-style:none; }
.editor-group > summary::-webkit-details-marker { display:none; }
.editor-group > summary::after { content:'+';color:var(--brand);font-size:19px;font-weight:500; }
.editor-group[open] > summary::after { content:'−'; }
.editor-group > .control-block { padding:4px 0 14px;border-top:0; }
.batch-settings { margin-top:14px;padding-top:10px;border-top:1px solid #edf0f4; }
.batch-settings > summary { padding:8px 0;color:var(--text);font-size:12px;font-weight:800;cursor:pointer; }
.batch-settings-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px; }
.ad-slot { width:min(100% - 36px,1000px);min-height:100px;margin:24px auto;padding:8px;border:1px solid #e8edf5;border-radius:12px;background:#fafbfc;overflow:hidden; }
.ad-slot[hidden] { display:none; }
.consent-choice { display:flex;align-items:flex-start;gap:9px;margin:10px 0;color:var(--ink);font-size:14px; }
.consent-choice input { flex:0 0 auto;margin-top:3px;accent-color:var(--brand); }
.batch-settings .fineprint { margin-bottom:0;line-height:1.5; }
.control-block { padding:13px 0;border-top:1px solid #edf0f4; }
.control-block:first-child { border-top:0; }
.control-label { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:12px;font-weight:750; }
.chips { display:flex;flex-wrap:wrap;gap:7px; }
.chip { min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--text);font-size:11px;font-weight:700;cursor:pointer; }
.chip[aria-pressed="true"] { color:#164fb8;border-color:#8bb0f6;background:#edf4ff; }
.swatches { display:flex;flex-wrap:wrap;align-items:center;gap:8px; }
.swatch { width:32px;height:32px;border:2px solid white;border-radius:10px;box-shadow:0 0 0 1px #cdd5e1;cursor:pointer; }
.range { width:100%;accent-color:var(--brand); }
.field-row { display:flex;flex-wrap:wrap;gap:10px; }
.field { display:grid;gap:4px;flex:1;min-width:110px;font-size:11px;font-weight:700;color:var(--muted); }
.field input,.field select { width:100%;min-height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--text); }
.color-field { width:44px;height:36px;padding:2px;border:1px solid var(--line);border-radius:9px;background:white; }
.status-message { min-height:20px;margin:10px 0 0;color:var(--muted);font-size:12px; }
.status-message[data-kind="error"] { color:#a33120; }
.status-message[data-kind="success"] { color:#075b44; }
.feature-section,.content-section { padding:58px 0; }
.section-heading { max-width:670px;margin:0 auto 28px;text-align:center; }
.section-heading h2 { margin:8px 0;font-size:clamp(26px,4vw,38px);letter-spacing:-.045em;line-height:1.12; }
.section-heading p { margin:0;color:var(--muted); }
.feature-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:14px; }
.feature-card { padding:22px;border:1px solid var(--line);border-radius:18px;background:white; }
.feature-card h3 { margin:0 0 5px;font-size:15px; }
.feature-card p { margin:0;color:var(--muted);font-size:13px; }
.banner { padding:26px;border-radius:20px;background:linear-gradient(120deg,#eef4ff,#f5f8ff);display:flex;align-items:center;justify-content:space-between;gap:20px; }
.banner h2 { margin:0;font-size:22px; }
.banner p { margin:4px 0 0;color:var(--muted);font-size:13px; }
.site-footer { padding:34px 0;border-top:1px solid var(--line);background:#fff; }
.footer-grid { display:flex;align-items:flex-start;justify-content:space-between;gap:22px; }
.footer-links { display:flex;flex-wrap:wrap;gap:14px; }
.footer-links a { color:var(--muted);font-size:12px;text-decoration:none; }
.fineprint { color:var(--muted);font-size:11px; }
.notice { position:fixed;right:18px;bottom:18px;z-index:50;width:min(420px,calc(100% - 36px));padding:16px;border:1px solid var(--line);border-radius:17px;background:white;box-shadow:0 20px 50px #172b4d24; }
.notice h2 { margin:0 0 5px;font-size:15px; }
.notice p { margin:0 0 12px;color:var(--muted);font-size:12px; }
.notice-actions { display:flex;flex-wrap:wrap;gap:8px; }
.notice[hidden], [hidden] { display:none !important; }
.page-hero { padding:54px 0 26px;background:linear-gradient(160deg,#f7faff,#fff); }
.page-hero h1 { max-width:830px;margin:10px 0;font-size:clamp(34px,5vw,54px);line-height:1.06;letter-spacing:-.055em; }
.page-hero p { max-width:680px;color:var(--muted); }
.prose { max-width:820px;padding:20px 0 60px; }
.prose h2 { margin:30px 0 8px;font-size:22px;letter-spacing:-.03em; }
.prose p,.prose li { color:#455267; }
.prose table { width:100%;border-collapse:collapse; }
.prose th,.prose td { padding:10px;text-align:left;border-bottom:1px solid var(--line); }
.pricing-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px; }
.price-card { position:relative;padding:22px;border:1px solid var(--line);border-radius:19px;background:white; }
.price-card.featured { border:2px solid var(--brand);box-shadow:0 12px 35px #2363eb15; }
.price-card h2 { margin:0;font-size:15px; }
.price-amount { margin:15px 0 3px;font-size:32px;font-weight:850;letter-spacing:-.05em; }
.price-note { color:var(--muted);font-size:12px; }
.price-card ul { min-height:88px;padding-left:18px;color:var(--muted);font-size:12px; }
.profile-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.metric { padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff; }
.metric strong { display:block;font-size:22px; }
.table-scroll { overflow-x:auto; }
.table { width:100%;border-collapse:collapse;font-size:12px; }
.table td,.table th { padding:11px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap; }
.auth-box { max-width:520px;margin:30px auto;padding:26px;border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 12px 40px #172b4d0c; }
.error-box { padding:13px;border:1px solid #f2c4bd;border-radius:12px;background:#fff4f2;color:#8a291b;font-size:13px; }
.success-box { padding:13px;border:1px solid #bce4d3;border-radius:12px;background:#eaf8f1;color:#075b44;font-size:13px; }
@media (max-width:900px) { .app-shell { grid-template-columns:1fr; } .feature-grid { grid-template-columns:repeat(2,1fr); } .pricing-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px) { .wrap { width:min(100% - 26px,1180px); } .nav { min-height:62px; } .brand-logo { width:145px; max-height:42px; } .nav-links { display:none; } .hero { padding:44px 0 20px; } .app-shell { padding:12px 0 44px;gap:13px; } .panel-head,.panel-body { padding:16px; } .preview-header { align-items:flex-start;flex-direction:column; }.preview-actions { width:100%;justify-content:stretch; }.preview-actions .button { flex:1 1 auto; }.comparison-note { padding:0 16px 12px; }.preview-canvas-wrap { min-height:270px;padding:10px; } .feature-grid,.pricing-grid,.profile-grid { grid-template-columns:1fr; } .feature-section,.content-section { padding:42px 0; } .banner,.footer-grid { align-items:flex-start;flex-direction:column; } .editor-controls { padding:10px 16px; }.editor-group > summary { min-height:46px; }.toolbar { gap:6px;padding:10px 12px; }.toolbar .button { flex:1 1 auto; }.batch-settings-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important;animation-duration:.01ms !important;transition-duration:.01ms !important; } }
