/* Scissor PDF. Restrained, typographic, one accent colour. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fill: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --danger: #e30000;
  --ok: #008009;
  --paper-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  --lift: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 18px 40px rgba(0, 0, 0, 0.18);
  --nav: rgba(255, 255, 255, 0.8);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --surface-2: #2c2c2e;
    --fill: #3a3a3c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #424245;
    --hair: rgba(255, 255, 255, 0.12);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --link: #2997ff;
    --accent-soft: rgba(41, 151, 255, 0.18);
    --danger: #ff453a;
    --ok: #30d158;
    --paper-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.6);
    --lift: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.7);
    --nav: rgba(22, 22, 23, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47059 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: #000; color: #f5f5f7; }
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; margin: 0 0 6px; color: var(--text); }
.headline { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.003em; margin: 0 0 20px; }
.more { font-size: 19px; color: var(--link); }
.more::after { content: ' ›'; }
[dir='rtl'] .more::after { content: ' ‹'; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 48px; }
.brand { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 18px; height: 18px; }
.nav-links { margin-inline-start: auto; display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.lang-link { display: inline-flex; align-items: center; gap: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 18px; border: 0; border-radius: 980px;
  background: var(--fill); color: var(--text); font-size: 15px; font-weight: 400; cursor: pointer;
  transition: background 0.2s; -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.big { min-height: 48px; padding: 12px 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.small { min-height: 30px; padding: 4px 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn-plain { background: none; border: 0; color: var(--link); cursor: pointer; padding: 4px 0; font-size: 14px; }
.btn-plain:hover { text-decoration: underline; }

/* Hero */
.hero { text-align: center; padding: 72px 0 0; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 7vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; }
.hero h1 .soft { color: var(--text-3); }
.hero .lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.34; color: var(--text-2); max-width: 720px; margin: 0 auto; letter-spacing: 0.009em; font-weight: 400; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 32px 0 0; flex-wrap: wrap; }
.home-hero { padding-top: 96px; }
.hero-art { margin: 64px auto 0; max-width: 980px; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.art-phone { display: none; }
@media (max-width: 640px) {
  .art-wide { display: none; }
  .art-phone { display: block; max-width: 340px; margin: 0 auto; }
}
.crumbs { font-size: 12px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-3); }
.crumbs ol { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-inline-end: 6px; }
[dir='rtl'] .crumbs li + li::before { content: '‹'; }

/* Hero illustration (theme aware) */
.a-window { fill: var(--surface); }
.a-stage { fill: var(--bg-alt); }
.a-page { fill: #fff; }
.a-ink { fill: #1d1d1f; opacity: 0.8; }
.a-text { fill: #c7c7cc; }
.a-photo { fill: url(#artPhoto); }
.a-line { stroke: var(--hair); fill: none; }
.a-label { fill: var(--text); font-family: var(--display); }
.a-muted { fill: var(--text-3); font-family: var(--font); }
.a-fill { fill: var(--fill); }
.a-seg { fill: var(--surface); }
.a-accent { fill: var(--accent); }
.a-ring { stroke: var(--accent); fill: none; }
.a-white { fill: #fff; font-family: var(--font); }
.a-panel { fill: var(--surface); }
.a-doc { fill: #1d1d1f; font-family: var(--display); letter-spacing: -0.01em; }
.a-docsoft { fill: #86868b; font-family: var(--font); }
.a-text2 { fill: #8e8e93; }
.a-row { fill: #f2f2f5; }
.a-axis { stroke: #d8d8de; stroke-width: 0.8; }
.a-slot { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 5 4; }
.a-float { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.a-caret { animation: caret 1.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(0, -6px) rotate(-3deg); } }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.a-shadow { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.14)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06)); }
@media (prefers-color-scheme: dark) { .a-shadow { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8)); } .a-page { fill: #f5f5f7; } }

/* Tool icons (monochrome line icons) */
.glyph { color: var(--text); }
.chiclets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 28px 12px; }
.chiclet { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text); text-align: center; font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: -0.016em; }
.chiclet svg { width: 40px; height: 40px; stroke-width: 1.4; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chiclet:hover { text-decoration: none; color: var(--link); }
.chiclet:hover svg { transform: translateY(-2px); }
.tool-group + .tool-group { margin-top: 56px; }
.tool-group h3 { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; margin: 0 0 28px; color: var(--text); }

/* Points (three columns, no boxes) */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; }
.point svg { width: 32px; height: 32px; stroke-width: 1.5; margin-bottom: 16px; }
.point h3 { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; margin: 0 0 8px; }
.point p { margin: 0; color: var(--text-2); }

/* Dark privacy statement */
.dark .headline { color: #f5f5f7; }
.statement { max-width: 760px; }
.statement p { font-size: 21px; line-height: 1.43; color: #86868b; margin: 0 0 20px; letter-spacing: 0.011em; }
.statement p strong { color: #f5f5f7; font-weight: 600; }
.statement a { color: #2997ff; }
.statement svg { width: 44px; height: 44px; color: #f5f5f7; margin-bottom: 28px; stroke-width: 1.4; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 18px; font-size: 17px; color: var(--text-2); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--text); margin-bottom: 14px; }

/* Editorial copy */
.prose { max-width: 720px; }
.prose h2, .prose h3 { font-family: var(--font); font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; margin: 48px 0 12px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul { color: var(--text-2); padding-inline-start: 20px; }
.split-copy { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 64px; }
.split-copy h2 { font-size: 24px; line-height: 1.17; font-weight: 600; margin: 0; letter-spacing: 0.009em; }
.split-copy p { margin: 0; color: var(--text-2); }
.split-copy + .split-copy { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 19px; position: relative; letter-spacing: 0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: -6px 0 24px; color: var(--text-2); max-width: 760px; }
[dir='rtl'] .faq summary { padding: 22px 0 22px 40px; }
[dir='rtl'] .faq summary::after { right: auto; left: 6px; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 16px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 19px; font-weight: 600; border-bottom-color: var(--text); }
.compare tbody th { font-weight: 400; color: var(--text-2); width: 28%; }
.compare .us { font-weight: 600; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.hint.error { color: var(--danger); }

/* Footer */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding: 20px 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.footer h2 { margin: 0 0 10px; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer > .wrap > p { margin: 16px 0 0; }
.langs { padding: 20px 0; border-bottom: 1px solid var(--line); }
.langs h2 { display: flex; align-items: center; gap: 6px; }
.langs ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.langs a[aria-current] { color: var(--text); font-weight: 600; }
.lang-suggest { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--bg-alt); font-size: 14px; text-align: center; }
.lang-suggest .icon-btn { width: 26px; height: 26px; box-shadow: none; background: none; }

/* ---------- Tool workspace ---------- */

.app { scroll-margin-top: 64px; max-width: 980px; margin: 48px auto 0; text-align: start; position: relative; }
.drop {
  position: relative; border-radius: var(--radius); background: var(--bg-alt);
  padding: 72px 24px; text-align: center; transition: background 0.2s, box-shadow 0.2s;
}
.drop.over, body.dragging .drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.drop .glyph svg { width: 56px; height: 56px; margin: 0 auto 24px; stroke-width: 1.2; color: var(--text-3); }
.drop p { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.assure { display: flex; justify-content: center; align-items: baseline; gap: 6px; color: var(--text-3); font-size: 12px; margin: 16px auto 0; max-width: 34em; text-align: center; line-height: 1.5; }
.assure svg { flex: none; transform: translateY(1px); }
.assure svg { width: 12px; height: 12px; }

.work { display: grid; grid-template-columns: 1fr 300px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); min-height: 440px; }
.stage { padding: 24px; min-width: 0; }
.stage-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; color: var(--text-2); font-size: 14px; }
.stage-head .spacer { flex: 1; }
.panel { background: var(--surface); padding: 28px 24px; border-inline-start: 1px solid var(--hair); display: flex; flex-direction: column; }
.panel h2 { font-size: 24px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0.009em; }
.panel .sub { color: var(--text-2); font-size: 14px; margin: 0 0 24px; line-height: 1.43; }
.panel > .btn.primary { margin-top: auto; }
.panel .fine { text-align: center; color: var(--text-3); font-size: 12px; margin: 12px 0 0; display: flex; gap: 5px; justify-content: center; align-items: center; }
.field { margin: 0 0 20px; }
.field > .label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: -0.01em; }
.input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { flex: 1; min-height: 30px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 13px; color: var(--text); padding: 0 6px; }
.seg button[aria-pressed='true'] { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 500; }
.choices { display: grid; gap: 8px; }
.choice { display: block; text-align: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; }
.choice[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice b { display: block; font-weight: 600; font-size: 15px; }
.choice span { display: block; font-size: 13px; color: var(--text-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.swatches { display: flex; gap: 12px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 120px; aspect-ratio: 3 / 4; padding: 8px; border-radius: 6px; background: #fff; box-shadow: var(--paper-shadow); align-content: space-between; }
.pos-grid button { height: 18px; border-radius: 4px; border: 0; background: var(--fill); cursor: pointer; }
.pos-grid button[aria-pressed='true'] { background: var(--accent); }

/* Page and file thumbnails: paper on a grey desk */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 24px 16px; }
.card { position: relative; border-radius: 12px; padding: 8px; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s, background 0.2s; }
.card.sortable { cursor: grab; touch-action: none; }
.card.dragging { opacity: 0.2; }
.card.ghost { position: fixed; z-index: 100; pointer-events: none; transform: scale(1.04) rotate(2deg); transition: none; background: none; }
.card.ghost canvas, .card.ghost img { box-shadow: var(--lift); }
.thumb { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.thumb canvas, .thumb img { max-width: 100%; max-height: 100%; box-shadow: var(--paper-shadow); background: #fff; border-radius: 2px; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
.thumb img { object-fit: contain; }
.thumb .skeleton { width: 72%; height: 94%; border-radius: 2px; background: var(--surface); box-shadow: var(--paper-shadow); }
.card .meta { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; justify-content: center; gap: 8px; }
.card .name { font-size: 12px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 10px; text-align: center; }
.card .num { color: var(--text-2); font-variant-numeric: tabular-nums; }
.card-actions { position: absolute; top: 4px; inset-inline-end: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; }
.icon-btn { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.08); backdrop-filter: blur(10px); }
.icon-btn:hover { background: var(--surface); }
.card.selectable { cursor: pointer; }
.card.selected { background: var(--accent-soft); }
.card.marked { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.card.marked canvas { opacity: 0.35; }
.card.marked .num, .card.marked .state { color: var(--danger); }
.tick { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: transparent; }
.card.selected .tick { background: var(--accent); box-shadow: none; color: #fff; }
.card.marked .tick { background: var(--danger); box-shadow: none; color: #fff; }
.badge { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.add-card { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 150px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--text-2); cursor: pointer; background: none; font-size: 13px; }
.add-card:hover { border-color: var(--accent); color: var(--link); }

.single { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 32px; align-items: center; min-height: 380px; }
.single .thumb { aspect-ratio: 3 / 4; }
.single .preview-wrap { position: relative; display: grid; place-items: center; }
.single h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; word-break: break-word; }
.single p { margin: 0; color: var(--text-2); font-size: 15px; }
.overlay-preview { position: absolute; pointer-events: none; }

/* Busy, errors, result */
.busy { position: absolute; inset: 0; z-index: 5; border-radius: var(--radius); background: color-mix(in srgb, var(--bg-alt) 80%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 17px; }
.spinner { width: 32px; height: 32px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--text-2); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.alert { border-radius: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--danger) 8%, var(--bg)); margin: 0 0 16px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.alert b { color: var(--danger); }
.done { background: var(--bg-alt); border-radius: var(--radius); padding: 64px 24px; text-align: center; }
.done h2 { font-family: var(--display); font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; font-weight: 600; margin: 20px 0 8px; }
.done .file { color: var(--text-2); margin: 0; word-break: break-word; }
.done .saving { display: block; font-family: var(--display); font-weight: 600; color: var(--text); margin: 16px 0 0; font-size: 21px; background: none; }
.done .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.check-anim { width: 64px; height: 64px; margin: 0 auto; }
.check-anim circle { stroke: var(--ok); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 0.6s ease-out forwards; }
.check-anim path { stroke: var(--ok); stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.35s 0.45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.next h3 { font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--surface); color: var(--text); border: 0; cursor: pointer; font-size: 14px; box-shadow: 0 0 0 1px var(--hair); }
.chip:hover { box-shadow: 0 0 0 1px var(--accent); }
.chip .tool-icon { display: grid; color: var(--text-2); background: none !important; box-shadow: none !important; }

/* Whole-window drop target */
.drop-veil { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); backdrop-filter: blur(3px); font-size: 28px; font-weight: 600; pointer-events: none; }
body.dragging .drop-veil { display: grid; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Scripts with their own rhythm */
[dir='rtl'] body, :lang(ja), :lang(ko), :lang(zh-Hans), :lang(hi) { letter-spacing: 0; }
[dir='rtl'] .hero h1, [dir='rtl'] .headline { letter-spacing: 0; }
:lang(ja) .hero h1, :lang(zh-Hans) .hero h1, :lang(ko) .hero h1 { line-height: 1.15; letter-spacing: 0; }

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .work { grid-template-columns: 1fr; }
  .panel { border-inline-start: 0; border-top: 1px solid var(--hair); }
  .single { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .single .thumb { max-width: 220px; margin: 0 auto; }
  .stage { padding: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 8px; }
  .card-actions { position: static; opacity: 1; justify-content: center; margin-top: 8px; gap: 6px; }
  .card-actions .icon-btn { box-shadow: 0 0 0 0.5px var(--hair); background: var(--surface); }
  .split-copy { grid-template-columns: 1fr; }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--hair); transition: transform 0.25s;
  }
  .mobile-bar.away { transform: translateY(110%); }
  .mobile-bar .btn { width: 100%; }
  body.has-bar .footer { padding-bottom: 100px; }
  .busy { position: fixed; z-index: 70; border-radius: 0; }
}
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a.opt, .lang-link span { display: none; }
  .hero { padding-top: 48px; }
  .home-hero { padding-top: 56px; }
  .hero-art { margin-top: 40px; }
  .drop { padding: 48px 20px; }
  .chiclets { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
  .chiclet { font-size: 12px; }
  .chiclet svg { width: 34px; height: 34px; }
}
.touch .drop .drop-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .check-anim circle, .check-anim path { stroke-dashoffset: 0; }
}
.tool-hero, .home-hero { padding-bottom: 100px; }
@media (max-width: 860px) { .tool-hero, .home-hero { padding-bottom: 72px; } }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .tool-hero, .home-hero { padding-bottom: 56px; }
  .headline { margin-bottom: 16px; }
  .points { gap: 28px; }
  .point { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; }
  .point svg { grid-row: span 2; margin: 2px 0 0; width: 28px; height: 28px; }
  .point h3 { font-size: 19px; margin-bottom: 4px; }
  .point p { font-size: 15px; }
  .statement p { font-size: 19px; }
  .tool-group + .tool-group { margin-top: 40px; }
  .tool-group h3 { font-size: 19px; margin-bottom: 20px; }
  .steps { gap: 24px; }
  .steps li::before { font-size: 32px; margin-bottom: 8px; }
  .split-copy + .split-copy { margin-top: 32px; padding-top: 32px; }
  .faq summary { font-size: 17px; padding: 18px 36px 18px 0; }
  .hero-ctas { gap: 20px; margin-top: 24px; }
}
@media (max-width: 640px) {
  .hero .lead { font-size: 17px; line-height: 1.47; }
  .hero h1 { margin-bottom: 12px; }
  .app { margin-top: 32px; }
  .drop .glyph svg { width: 44px; height: 44px; margin-bottom: 20px; }
  .done { padding: 48px 20px; }
  .done .actions .btn { flex: 1 1 100%; }
}
.done .actions { flex-direction: column; align-items: center; gap: 16px; }
.start-over { font-size: 17px; }
/* A lone remove button (file cards) stays a small corner badge, even on phones. */
.card-actions:has(> :only-child) { position: absolute; top: 2px; inset-inline-end: 2px; margin: 0; opacity: 1; }
.card-actions:has(> :only-child) .icon-btn { width: 24px; height: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
@media (max-width: 640px) { .done .actions .btn { width: 100%; } }

/* ---------- Sign / add text editor ---------- */
.sheets { display: grid; gap: 24px; max-width: 640px; margin: 0 auto; }
.sheet { position: relative; width: 100%; background: #fff; box-shadow: var(--paper-shadow); border-radius: 2px; touch-action: pan-y; }
.sheet-canvas canvas { width: 100%; height: auto; display: block; border-radius: 2px; }
.placed { position: absolute; cursor: grab; touch-action: none; border-radius: 4px; outline: 1px dashed transparent; outline-offset: 4px; }
.placed.active { outline-color: var(--accent); }
.placed-image img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.placed-text .placed-body { font-family: var(--font); letter-spacing: 0; line-height: 1.25; padding: 2px 4px; white-space: pre; outline: none; cursor: text; min-width: 1ch; }
.placed-del, .placed-size { position: absolute; display: none; }
.placed.active .placed-del, .placed.active .placed-size { display: grid; }
.placed-del { top: -14px; inset-inline-end: -14px; width: 24px; height: 24px; border-radius: 50%; border: 0; place-items: center; background: var(--text); color: var(--bg); cursor: pointer; }
.placed-size { right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; cursor: nwse-resize; }
.sig-tile { background: #fff; border-radius: 10px; box-shadow: var(--paper-shadow); padding: 14px; margin-bottom: 12px; display: grid; place-items: center; }
.sig-tile img { max-width: 100%; max-height: 72px; }
.secondary-action { display: block; margin: 12px auto 0; }

.sig-dialog { border: 0; border-radius: 22px; padding: 28px; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.sig-dialog::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); }
.sig-dialog h2 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.sig-tabs { margin-bottom: 18px; }
.sig-pad-wrap { position: relative; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.sig-pad { width: 100%; height: 200px; display: block; cursor: crosshair; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #c7c7cc; color: #aeaeb2; font-size: 13px; padding-bottom: 6px; pointer-events: none; transition: opacity 0.3s; }
.sig-line.used { opacity: 0.25; }
.sig-name { margin-bottom: 14px; }
.sig-fonts { display: grid; gap: 8px; }
.sig-font { background: #fff; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 16px; font-size: 34px; text-align: start; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sig-font[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.sig-upload-preview { margin-top: 12px; background: repeating-conic-gradient(#f2f2f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 12px; display: grid; place-items: center; min-height: 40px; }
.sig-upload-preview canvas { max-width: 100%; max-height: 180px; }
.sig-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sig-foot .spacer { flex: 1; }
.sig-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 640px) {
  .sig-dialog { padding: 22px 18px; border-radius: 18px; }
  .sig-actions .btn { flex: 1; }
}

/* ---------- Crop frame ---------- */
.crop-frame { position: absolute; overflow: hidden; touch-action: none; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); outline: 1.5px solid #fff; }
.crop-box i { position: absolute; background: #fff; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.crop-box i[data-e='0'], .crop-box i[data-e='2'] { top: 50%; width: 6px; height: 36px; margin-top: -18px; cursor: ew-resize; }
.crop-box i[data-e='0'] { left: -3px; }
.crop-box i[data-e='2'] { right: -3px; }
.crop-box i[data-e='1'], .crop-box i[data-e='3'] { left: 50%; height: 6px; width: 36px; margin-left: -18px; cursor: ns-resize; }
.crop-box i[data-e='1'] { top: -3px; }
.crop-box i[data-e='3'] { bottom: -3px; }
.crop-box i::after { content: ''; position: absolute; inset: -14px; }
.crop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* ---------- Metadata ---------- */
.meta-extra dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.meta-extra dt { color: var(--text-3); }
.meta-extra dd { margin: 0; color: var(--text-2); word-break: break-word; }
.single-large { grid-template-columns: 1fr; text-align: center; gap: 20px; }
.single-large .thumb { aspect-ratio: auto; max-width: 560px; width: 100%; margin: 0 auto; }
.single-large .thumb canvas { max-height: 62vh; width: auto; }

/* ---------- Newer tools ---------- */
.slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot-row .input { min-width: 0; padding: 8px; font-size: 13px; }
.text-preview { text-align: start; background: var(--surface); border-radius: 12px; padding: 16px; max-height: 260px; overflow: auto; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; margin: 20px auto 0; max-width: 720px; box-shadow: var(--paper-shadow); }
.info-table { margin-top: 28px; background: var(--surface); border-radius: 14px; padding: 20px 22px; box-shadow: var(--paper-shadow); }
.info-table dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.info-table dt { color: var(--text-3); }
.info-table dd { margin: 0; word-break: break-word; }
.info-table h4 { font-size: 13px; margin: 20px 0 8px; color: var(--text-2); }
.info-table ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.info-table li span { color: var(--text-3); font-size: 12px; margin-inline-start: 6px; }
.compare-result .diff { text-align: start; max-width: 760px; margin: 24px auto 0; display: grid; gap: 16px; }
.compare-result section { background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: var(--paper-shadow); }
.compare-result h3 { font-size: 13px; color: var(--text-3); margin: 0 0 8px; }
.compare-result p { margin: 0; font-size: 15px; line-height: 1.6; }
.compare-result del { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.compare-result ins { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); text-decoration: none; border-radius: 3px; padding: 0 2px; }
.placed-box .placed-body { width: 100%; height: 100%; border-radius: 1px; }
.form-sheet { overflow: hidden; }
.form-sheet .annotationLayer { position: absolute; inset: 0; }
/* Overlapping icon shapes are filled with whatever they sit on. */
:root { --icon-bg: var(--bg); }
.section.alt, .drop, .work, .done { --icon-bg: var(--bg-alt); }
.chip, .panel { --icon-bg: var(--surface); }

/* ---------- PDF Studio ---------- */
.studio-hero { padding-bottom: 40px; }
.studio-wrap { width: min(1240px, 100% - 32px); margin: 0 auto 80px; }
.studio-window { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg-alt); box-shadow: 0 0 0 1px var(--hair), 0 30px 80px rgba(0, 0, 0, 0.12); min-height: 640px; display: flex; flex-direction: column; }
.studio-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--hair); }
.studio-bar .spacer { flex: 1; }
.studio-file { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.studio-file b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.studio-file span { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.studio-bar .icon-btn { box-shadow: none; background: var(--fill); }
.studio-bar .icon-btn[disabled] { opacity: 0.35; }
.studio-body { flex: 1; display: flex; flex-direction: column; }
.studio-body > * { flex: 1; }
.studio-empty { padding: 56px 40px 48px; }
.studio-open-box { text-align: center; margin-bottom: 48px; }
.studio-open-box .glyph svg { margin: 0 auto 20px; color: var(--text-3); }
.studio-open-box .hint { font-size: 13px; margin-top: 12px; }
.studio-group + .studio-group { margin-top: 28px; }
.studio-group h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 12px; }
.studio-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.studio-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 12.5px; line-height: 1.25; text-align: center; box-shadow: 0 0 0 0.5px var(--hair); transition: transform 0.15s, box-shadow 0.15s; --icon-bg: var(--surface); }
.studio-action:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.studio-action:active { transform: scale(0.97); }
.studio-action svg { width: 30px; height: 30px; }
.studio-actions.compact { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.studio-actions.compact .studio-action { padding: 10px 4px 8px; font-size: 11px; box-shadow: none; background: var(--bg-alt); --icon-bg: var(--bg-alt); }
.studio-actions.compact .studio-action:hover { background: var(--accent-soft); }
.studio-actions.compact svg { width: 26px; height: 26px; }
.studio-work { border-radius: 0; min-height: 600px; grid-template-columns: 1fr 340px; }
.studio-work .panel { max-height: 760px; overflow-y: auto; }
.studio-work .panel h2 { margin-bottom: 4px; }
.studio-app { margin: 0; max-width: none; }
.studio-app .work { border-radius: 0; min-height: 600px; }
.studio-app .done, .studio-app .alert { margin: 20px; }
.studio-app .stage-head .btn-plain, .studio-app .single .btn-plain { display: none; }
.studio-back { display: block; margin: -6px 0 12px; font-size: 14px; }
.studio-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; background: var(--text); color: var(--bg); padding: 10px 12px 10px 18px; border-radius: 99px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); z-index: 20; max-width: calc(100% - 32px); }
@media (max-width: 860px) {
  .studio-wrap { width: 100%; margin-bottom: 40px; }
  .studio-window { border-radius: 0; min-height: 0; }
  .studio-empty { padding: 32px 16px; }
  .studio-actions { grid-template-columns: repeat(3, 1fr); }
  .studio-work { grid-template-columns: 1fr; }
  .studio-work .panel { max-height: none; }
  .studio-file b { max-width: 34vw; }
}

/* ---------- Full-page app (/app/) ---------- */
body.app-mode { height: 100dvh; overflow: hidden; background: var(--bg-alt); }
body.app-mode main { height: 100dvh; }
.app-mode .studio { height: 100%; }
.app-mode .studio-window { height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
.studio-bar { padding-top: max(14px, env(safe-area-inset-top)); }
.studio-brand { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; padding-inline-end: 14px; margin-inline-end: 4px; border-inline-end: 1px solid var(--hair); }
.studio-brand:hover { text-decoration: none; }
.studio-main { flex: 1; display: flex; min-height: 0; }
.studio-body { flex: 1; min-width: 0; overflow: auto; }
.app-mode .studio-body { overflow: hidden; display: flex; }
.app-mode .studio-empty { overflow: auto; }
.app-mode .studio-work { min-height: 0; height: 100%; }
.app-mode .studio-work .stage, .app-mode .studio-work .panel { overflow: auto; max-height: none; }
.app-mode .studio-app { height: 100%; overflow: auto; }
.app-mode .studio-app .work { min-height: 100%; }
.studio-files { width: 240px; flex: none; overflow: auto; background: var(--surface); border-inline-end: 1px solid var(--hair); padding: 14px 10px; }
.studio-files h3 { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 4px 8px 10px; display: flex; justify-content: space-between; }
.studio-files h3 span { color: var(--text-3); font-weight: 400; }
.studio-file-item { display: flex; align-items: center; gap: 4px; border-radius: 10px; padding-inline-end: 4px; }
.studio-file-item.active { background: var(--accent-soft); }
.studio-file-item .icon-btn { width: 24px; height: 24px; box-shadow: none; background: none; opacity: 0; flex: none; }
.studio-file-item:hover .icon-btn, .studio-file-item.active .icon-btn { opacity: 0.7; }
.studio-file-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px; text-align: start; cursor: pointer; color: var(--text); }
.studio-file-pick .thumb { width: 34px; height: 44px; aspect-ratio: auto; flex: none; }
.studio-file-pick .thumb canvas { box-shadow: var(--paper-shadow); }
.studio-file-text { min-width: 0; display: grid; }
.studio-file-text b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-file-text small { font-size: 11px; color: var(--text-3); }
.studio-menu { position: relative; }
.studio-menu-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 30; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 0.5px var(--hair), 0 12px 32px rgba(0, 0, 0, 0.18); padding: 6px; min-width: 170px; display: grid; }
.studio-menu-list[hidden] { display: none; }
.studio-menu-list button { background: none; border: 0; text-align: start; padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.studio-menu-list button:hover { background: var(--accent); color: #fff; }
.studio-open-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .studio-main { flex-direction: column; }
  .studio-files { width: auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-inline-end: 0; border-bottom: 1px solid var(--hair); }
  .studio-files h3 { display: none; }
  .studio-file-item { flex: none; max-width: 200px; }
  .studio-brand span, .studio-file span { display: none; }
  .studio-bar { gap: 6px; padding-inline: 12px; }
  .app-mode .studio-work { height: auto; }
  .app-mode .studio-body { overflow: auto; display: block; }
}

/* ---------- App, Apple-style shell ---------- */
.app-mode .studio-window { background: var(--bg-alt); font-size: 13px; letter-spacing: -0.01em; }
.app-mode .studio-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; padding: 0 12px; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid var(--hair); gap: 12px; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bar-right { justify-content: flex-end; }
.bar-title { display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 0; max-width: 46vw; }
.bar-title b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar-title span { font-size: 11px; color: var(--text-3); }
.app-mode .studio-brand { border: 0; padding: 0 6px; margin: 0; color: var(--text); }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-width: 32px; padding: 0 8px; justify-content: center; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.tb-btn:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.tb-btn[disabled] { opacity: 0.3; pointer-events: none; }
.tb-btn.primary { background: var(--accent); color: #fff; padding: 0 12px; }
.tb-btn.primary:hover { background: var(--accent-hover); }
.tb-group { display: flex; }
.app-mode .studio-menu-list { top: calc(100% + 4px); min-width: 180px; padding: 5px; border-radius: 10px; }
.app-mode .studio-menu-list button { font-size: 13px; padding: 6px 10px; border-radius: 6px; }

.app-mode .studio-main { display: flex; flex: 1; min-height: 0; }
.app-mode .studio-files { width: 0; padding: 0; overflow: hidden; transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(20px); border-inline-end: 1px solid var(--hair); }
.app-mode .sidebar-open .studio-files:not([hidden]) { width: 220px; padding: 12px 8px; overflow: auto; }
.app-mode .studio-files[hidden] { display: block !important; width: 0; border: 0; }
.app-mode .studio-files h3 { font-size: 11px; font-weight: 600; color: var(--text-3); margin: 6px 10px 6px; text-transform: none; }
.app-mode .studio-file-item { border-radius: 8px; }
.app-mode .studio-file-item.active { background: color-mix(in srgb, var(--text) 10%, transparent); }
.app-mode .studio-file-pick { padding: 6px 8px; gap: 10px; }
.app-mode .studio-file-pick .thumb { width: 28px; height: 36px; }
.app-mode .studio-file-text b { font-size: 13px; font-weight: 400; }

.app-mode .studio-body { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.studio-canvas { flex: 1; min-width: 0; overflow: auto; padding: 32px; }
.studio-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 28px; max-width: 1100px; margin: 0 auto; }
.studio-page { margin: 0; text-align: center; }
.studio-page .thumb { aspect-ratio: 0.77; }
.studio-page figcaption { margin-top: 10px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.studio-welcome { height: 100%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.studio-welcome img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); margin-bottom: 18px; }
.studio-welcome h2 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.studio-welcome > p { font-size: 15px; color: var(--text-2); margin: 0 0 22px; }
.studio-welcome .hint { margin-top: 14px; font-size: 12px; }
.studio-welcome .btn { font-size: 14px; min-height: 34px; padding: 6px 18px; }

.inspector { width: 290px; flex: none; overflow: auto; background: var(--surface); border-inline-start: 1px solid var(--hair); padding: 12px 10px 24px; --icon-bg: var(--surface); }
.tools-search { position: sticky; top: -12px; z-index: 1; display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 8px; padding: 0 8px; margin: 0 2px 10px; color: var(--text-3); box-shadow: 0 -12px 0 var(--surface); }
.tools-search input { flex: 1; min-width: 0; border: 0; background: none; height: 30px; font-size: 13px; outline: none; color: var(--text); }
.tools-list section { margin-bottom: 14px; }
.tools-list h4 { font-size: 11px; font-weight: 600; color: var(--text-3); margin: 8px 10px 4px; }
.tool-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 8px 0 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 13px; text-align: start; cursor: pointer; }
.tool-row svg:first-child { width: 20px; height: 20px; flex: none; color: var(--text-2); stroke-width: 1.7; }
.tool-row span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-row > svg:last-child { color: var(--text-3); opacity: 0; transition: opacity 0.15s; }
.tool-row:hover { background: var(--fill); }
.tool-row:hover > svg:last-child { opacity: 1; }
.tool-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* A tool running inside the app: its stage is the canvas, its panel the inspector. */
.app-mode .studio-app { flex: 1; height: 100%; overflow: hidden; display: flex; }
.app-mode .studio-app > .work { flex: 1; display: grid; grid-template-columns: 1fr 290px; border-radius: 0; min-height: 0; background: var(--bg-alt); }
.app-mode .studio-app .stage { overflow: auto; padding: 28px; }
.app-mode .studio-app .panel { overflow: auto; border-inline-start: 1px solid var(--hair); padding: 16px 16px 24px; font-size: 13px; }
.app-mode .studio-app .panel h2 { font-size: 17px; }
.app-mode .studio-app .panel .sub { font-size: 12px; margin-bottom: 16px; }
.app-mode .studio-app .panel .btn.big { min-height: 36px; font-size: 14px; padding: 6px 16px; }
.app-mode .studio-app .done { margin: auto; max-width: 560px; }
.studio-back { color: var(--link); font-size: 13px; margin: 0 0 10px; }

.studio-tabbar, .studio-sheet, .studio-sheet-backdrop { display: none; }
.app-mode .studio-toast { bottom: 24px; }

@media (max-width: 760px) {
  .app-mode .studio-bar { grid-template-columns: auto 1fr auto; height: 48px; }
  .app-mode .bar-right .tb-group, .app-mode .studio-menu, .app-mode .studio-download, .app-mode .studio-download-all { display: none !important; }
  .bar-title { max-width: none; align-items: flex-start; }
  .app-mode .studio-main { flex-direction: column; }
  .app-mode .sidebar-open .studio-files:not([hidden]), .app-mode .studio-files:not([hidden]) { width: auto; display: flex; gap: 4px; overflow-x: auto; padding: 6px 8px; border-inline-end: 0; border-bottom: 1px solid var(--hair); flex: none; }
  .app-mode .studio-files h3 { display: none; }
  .app-mode .studio-file-item { flex: none; max-width: 170px; }
  .app-mode .studio-body .inspector { display: none; }
  .studio-canvas { padding: 20px 16px 96px; }
  .studio-pages { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .studio-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-top: 1px solid var(--hair); }
  .studio-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--accent); font-size: 10px; padding: 4px 16px; cursor: pointer; }
  .studio-tabbar button svg { width: 24px; height: 24px; }
  .studio-tabbar button[disabled] { color: var(--text-3); }
  .studio-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.3); }
  .studio-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 78dvh; overflow: auto; background: var(--surface); border-radius: 14px 14px 0 0; padding: 6px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); --icon-bg: var(--surface); }
  .sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 4px auto 12px; }
  .studio-sheet .tool-row { height: 44px; font-size: 16px; }
  .studio-sheet .tools-search { top: -6px; }
  .studio-sheet .tools-search input { height: 36px; font-size: 16px; }
  .app-mode .studio-app > .work { grid-template-columns: 1fr; display: block; overflow: auto; }
  .app-mode .studio-app { overflow: auto; display: block; }
  .app-mode .studio-app .panel { border-inline-start: 0; border-top: 1px solid var(--hair); }
  body.app-mode.has-bar .studio-tabbar { display: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.app-mode .studio-body { flex-direction: row; }
.app-mode .studio-body > .inspector { flex: none; }
.app-mode .studio-body > .studio-canvas { flex: 1; }
@media (max-width: 760px) { .app-mode .studio-body { flex-direction: column; } }
.gh-link { display: inline-flex; align-items: center; gap: 5px; }
.gh-link svg { width: 12px; height: 12px; }
.source-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.welcome-source { margin-top: 28px; font-size: 12px; color: var(--text-3); }
.gh-nav { display: inline-flex; align-items: center; }
.gh-nav svg { width: 17px; height: 17px; }
.gh-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; padding: 10px 18px; border-radius: 980px; background: rgba(255, 255, 255, 0.1); color: #f5f5f7 !important; }
.gh-cta:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
@media (max-width: 760px) { .app-mode .studio-sidebar-toggle { display: none !important; } }

/* ---------- App canvas: selection, reorder, context menu ---------- */
.studio-canvas { position: relative; display: flex; flex-direction: column; }
.studio-canvas > .studio-pages { flex: 1; }
.app-mode .studio-pages { grid-template-columns: repeat(auto-fill, minmax(var(--page-w, 190px), 1fr)); align-content: start; width: 100%; }
.app-mode .studio-page.card { padding: 10px; border-radius: 10px; background: none; cursor: default; outline: none; }
.app-mode .studio-page.card:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.app-mode .studio-page.selected { background: var(--accent-soft); }
.app-mode .studio-page.selected .thumb canvas { box-shadow: 0 0 0 2.5px var(--accent), var(--paper-shadow); }
.app-mode .studio-page.selected figcaption { color: var(--accent); font-weight: 600; }
.app-mode .studio-page.dragging { opacity: 0.25; }
.canvas-foot { position: sticky; bottom: 0; display: flex; justify-content: center; align-items: center; padding: 16px 0 4px; pointer-events: none; margin-top: auto; }
.selection-bar { pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 5px 6px 5px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 0.5px var(--hair), 0 8px 28px rgba(0, 0, 0, 0.14); font-size: 13px; animation: pop-in 0.18s ease-out; }
.selection-bar[hidden] { display: none; }
.sel-count { color: var(--text-2); margin-inline-end: 8px; white-space: nowrap; }
.selection-bar .tb-btn.danger { color: var(--danger); }
.zoom-ctl { display: flex; align-items: center; gap: 5px; color: var(--text-3); margin-inline-end: 8px; }
.zoom-ctl[hidden] { display: none; }
.zoom-ctl input { width: 84px; accent-color: var(--text-2); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.studio-context { position: fixed; z-index: 100; min-width: 200px; padding: 5px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 0 0 0.5px var(--hair), 0 12px 36px rgba(0, 0, 0, 0.2); font-size: 13px; }
.studio-context[hidden] { display: none; }
.studio-context button { display: flex; width: 100%; justify-content: space-between; gap: 24px; padding: 5px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); cursor: default; text-align: start; }
.studio-context button:hover { background: var(--accent); color: #fff; }
.studio-context kbd { font: inherit; color: var(--text-3); }
.studio-context button:hover kbd { color: rgba(255, 255, 255, 0.8); }

/* Options-only tools inside the inspector */
.inspector.running { padding: 14px 14px 24px; }
.inspector-panel { background: none; border: 0; padding: 0; display: block; }
.inspector-panel h2 { font-size: 17px; margin: 0 0 4px; }
.inspector-panel .sub { font-size: 12px; color: var(--text-2); margin: 0 0 16px; }
.inspector-panel .btn.big { min-height: 34px; font-size: 14px; padding: 6px 16px; width: 100%; margin-top: 8px; }
.inspector-panel .field > .label { font-size: 11px; }
.studio-canvas > .busy { position: sticky; top: 0; height: 100%; min-height: 300px; margin-bottom: -100%; border-radius: 0; z-index: 6; }
.studio-canvas > .alert { margin: 0 0 16px; }
@media (max-width: 760px) { .zoom-ctl { display: none; } .canvas-foot { bottom: 72px; } }

/* ---------- Bookmarks, stamps, ink, whiteout ---------- */
.bookmark-list { display: grid; gap: 6px; margin-bottom: 12px; }
.bookmark-row { display: grid; grid-template-columns: 1fr 64px 28px; gap: 6px; align-items: center; }
.bookmark-row .input { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.bookmark-row .icon-btn { box-shadow: none; background: none; }
.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stamp-pick { background: #fff; border: 0; border-radius: 10px; padding: 8px; cursor: pointer; box-shadow: 0 0 0 1px var(--hair); display: grid; place-items: center; }
.stamp-pick:hover { box-shadow: 0 0 0 2px var(--accent); }
.stamp-pick canvas { width: 100%; height: auto; }
.sheet .ink { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
body.ink-scroll .sheet .ink { pointer-events: none; }
.placed { z-index: 2; }
.placed-white .placed-body { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.problem-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; max-width: calc(100% - 32px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.problem-toast[hidden] { display: none; }

/* App tools: segmented tabs, icon grid, ⌘K palette. */
.inspector { width: 300px; padding: 12px 12px 24px; }
.tools-head { position: sticky; top: -12px; z-index: 1; background: var(--surface); padding: 0 0 12px; margin-top: -12px; padding-top: 12px; }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; font-weight: 500; height: 26px; border-radius: 7px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.seg button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06); font-weight: 600; }
.tools-find { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--fill); color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.tools-find span { flex: 1; }
.tools-find kbd { font: inherit; font-size: 11px; color: var(--text-3); }
.tools-find:hover { color: var(--text-2); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tool-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 11.5px; line-height: 1.25; text-align: center; cursor: pointer; min-height: 84px; }
.tool-tile svg { width: 30px; height: 30px; flex: none; color: var(--text-2); }
.tool-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
.tool-tile:hover { background: var(--fill); }
.tool-tile:hover svg { color: var(--accent); }
.tool-tile:active { transform: scale(0.97); }
.tool-tile:focus-visible, .seg button:focus-visible, .tools-find:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.palette-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.18); display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; animation: fade-in 0.12s ease-out; }
.palette { width: min(560px, 100%); max-height: 62vh; display: flex; flex-direction: column; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.12); overflow: hidden; --icon-bg: var(--surface); animation: pop-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--hair); color: var(--text-3); }
.palette-input svg { width: 20px; height: 20px; }
.palette-input input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; outline: none; font: inherit; font-size: 20px; color: var(--text); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { overflow: auto; padding: 6px; }
.palette-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.palette-row svg { width: 24px; height: 24px; flex: none; color: var(--text-2); }
.palette-row span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-row small { color: var(--text-3); font-size: 12px; }
.palette-row[aria-selected="true"] { background: var(--accent); color: #fff; --icon-bg: var(--accent); }
.palette-row[aria-selected="true"] svg, .palette-row[aria-selected="true"] small { color: rgba(255, 255, 255, 0.85); }
.palette-empty { color: var(--text-3); text-align: center; padding: 24px; margin: 0; font-size: 14px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.97); } }
@media (max-width: 760px) {
  .studio-sheet .tools-head { top: -6px; margin-top: -6px; padding-top: 6px; }
  .studio-sheet .seg button { height: 32px; font-size: 13px; }
  .studio-sheet .tools-find { height: 36px; font-size: 16px; }
  .studio-sheet .tools-find kbd { display: none; }
  .studio-sheet .tool-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .studio-sheet .tool-tile { font-size: 12.5px; min-height: 92px; }
  .palette-backdrop { padding-top: 10px; }
  .palette { max-height: 70dvh; }
  .palette-input input { font-size: 17px; }
}
.epub-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; color: var(--text-3); background: var(--fill); border-radius: 6px; }

/* Script fonts. Latin keeps the system font; each script gets a typeface drawn for it.
   unicode-range means a file downloads only when a page actually shows that script. */
@font-face { font-family: 'Vazirmatn'; src: url(/vendor/fonts/vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/vendor/fonts/plex-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/vendor/fonts/plex-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/vendor/fonts/plex-arabic-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/vendor/fonts/plex-arabic-700.woff2) format('woff2'); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Heebo'; src: url(/vendor/fonts/heebo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Devanagari'; src: url(/vendor/fonts/noto-sans-devanagari.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
:root { --system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif; }
:root:lang(fa), :root:lang(ckb) { --font: 'Vazirmatn', var(--system); --display: 'Vazirmatn', var(--system); }
:root:lang(ar) { --font: 'IBM Plex Sans Arabic', var(--system); --display: 'IBM Plex Sans Arabic', var(--system); }
:root:lang(he) { --font: 'Heebo', var(--system); --display: 'Heebo', var(--system); }
:root:lang(hi) { --font: 'Noto Sans Devanagari', var(--system); --display: 'Noto Sans Devanagari', var(--system); }
:root:lang(ja) { --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo UI', 'Noto Sans JP', sans-serif; --display: var(--font); }
:root:lang(ko) { --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --display: var(--font); }
:root:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --display: var(--font); }
/* Language names are shown in the system font, so listing them does not download every script font. */
.langs a, .lang-menu a { font-family: var(--system); }
/* Arabic script and Devanagari have tall marks: give headings room, and never track them. */
[dir='rtl'] .hero h1, [dir='rtl'] .headline, [dir='rtl'] .done h2, :lang(hi) .hero h1, :lang(hi) .headline, :lang(hi) .done h2 { line-height: 1.32; letter-spacing: 0; }
[dir='rtl'] body, :lang(hi) body { line-height: 1.7; }
[dir='rtl'] .studio-app, [dir='rtl'] .studio-window { line-height: 1.5; }
:lang(he) .hero h1, :lang(he) .headline { line-height: 1.15; }
:lang(he) body { line-height: 1.55; }
@font-face { font-family: 'Noto Sans Bengali'; src: url(/vendor/fonts/noto-sans-bengali.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
:root:lang(mr) { --font: 'Noto Sans Devanagari', var(--system); --display: 'Noto Sans Devanagari', var(--system); }
:root:lang(bn) { --font: 'Noto Sans Bengali', var(--system); --display: 'Noto Sans Bengali', var(--system); }
:lang(mr) .hero h1, :lang(mr) .headline, :lang(mr) .done h2, :lang(bn) .hero h1, :lang(bn) .headline, :lang(bn) .done h2 { line-height: 1.32; letter-spacing: 0; }
:lang(mr) body, :lang(bn) body { line-height: 1.7; letter-spacing: 0; }
/* The bar blurs what is behind it, which makes it its own stacking context: lift it so its menus sit above the canvas and inspector. */
.studio-bar { position: relative; z-index: 30; }

/* Header language menu */
.lang-menu { position: relative; font-size: 12px; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text); opacity: 0.8; padding: 6px 2px; border-radius: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { opacity: 1; }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu .caret { opacity: 0.7; transition: transform 0.2s; }
.lang-menu[open] .caret { transform: rotate(180deg); }
.lang-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: -8px; z-index: 60; width: 340px; max-height: min(70vh, 520px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 0.5px var(--hair), 0 18px 48px rgba(0, 0, 0, 0.18); animation: pop-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav-links .lang-pop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); opacity: 1; text-align: start; }
.nav-links .lang-pop a:hover { background: var(--fill); text-decoration: none; }
.nav-links .lang-pop a[aria-current] { background: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .lang-menu summary span { display: none; }
  .lang-pop { position: fixed; top: 52px; inset-inline: 12px; width: auto; }
}
/* The hero drawing is laid out with fixed positions; keep its text anchored the way it was drawn in every language. */
.hero-art svg { direction: ltr; }
/* App toolbar language menu */
.app-lang summary.tb-btn { opacity: 1; padding: 0 8px; gap: 6px; font-size: 13px; }
.app-lang summary.tb-btn span { color: var(--text-2); }
.app-lang .lang-pop { inset-inline-end: auto; inset-inline-start: 0; top: calc(100% + 6px); z-index: 40; }
.app-lang .lang-pop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.app-lang .lang-pop a:hover { background: var(--fill); }
.app-lang .lang-pop a[aria-current] { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .app-lang summary span { display: none; } .app-lang .lang-pop { position: fixed; top: 56px; inset-inline: 12px; width: auto; } }

/* ---------- Home: motion ---------- */
/* Headline: each line rises out of a soft blur. */
.hero-title .ln { display: inline-block; animation: line-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-title .ln + .ln { animation-delay: 0.14s; }
.hero-title .ln.soft { display: inline-block; }
@media (min-width: 641px) { .hero-title .ln { display: block; } }
@keyframes line-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } }
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Calls to action */
.home-hero .hero-ctas, .final-cta .hero-ctas { gap: 14px; }
.cta-main { position: relative; gap: 8px; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.cta-main::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: cta-ring 3.2s ease-out 1.6s infinite; pointer-events: none; }
.cta-main:hover { transform: translateY(-1px); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.cta-main .cta-arrow { transition: transform 0.2s; }
.cta-main:hover .cta-arrow { transform: translateX(3px); }
[dir='rtl'] .cta-main .cta-arrow { transform: scaleX(-1); }
[dir='rtl'] .cta-main:hover .cta-arrow { transform: scaleX(-1) translateX(3px); }
@keyframes cta-ring { 0% { opacity: 0.55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }
.cta-files { background: var(--fill); color: var(--text); cursor: pointer; transition: background 0.2s; }
.cta-files:hover { background: color-mix(in srgb, var(--fill) 70%, var(--text) 8%); }
.cta-files:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 26px 0 0; font-size: 14px; color: var(--text-2); }
.hero-trust svg { color: #30d158; flex: none; }
.hero-drop { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0; font-size: 13px; color: var(--text-3); }
.hero-drop svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (hover: none) { .hero-drop { display: none; } }
body.home-dragging::after { content: attr(data-drop); position: fixed; inset: 12px; z-index: 100; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 22px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 22px; font-weight: 600; color: var(--accent); pointer-events: none; }

/* Hero product shot: pages arrive, then the loop plays — lift, glide into place, save, done. */
.hero-art { animation: art-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both; }
@keyframes art-in { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
.hero-art .a-sheet { animation: sheet-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.9s + var(--i) * 0.09s); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } }
.hero-art .a-fly .a-sheet { animation: none; }
.hero-art.play .a-fly { animation: fly 9s cubic-bezier(0.45, 0, 0.2, 1) 1.8s infinite both; }
.hero-art.play .a-float { animation: settle 9s ease-in-out 1.8s infinite both; }
.hero-art.play .a-ring, .hero-art.play .a-cursor { animation: ring 9s ease 1.8s infinite both; }
.hero-art.play .a-caret { animation: caret 1.6s ease-in-out infinite, hide-late 9s ease 1.8s infinite both; }
.hero-art.play .a-slot { animation: slot 9s ease 1.8s infinite both; }
.hero-art.play .a-cta { transform-box: fill-box; transform-origin: center; animation: press 9s ease 1.8s infinite both; }
.hero-art .a-toast { opacity: 0; }
.hero-art.play .a-toast { transform-box: fill-box; transform-origin: center; animation: toast 9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s infinite both; }
.a-toast-bg { fill: var(--surface); stroke: var(--line); stroke-width: 0.8; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18)); }
@keyframes fly { 0%, 14% { transform: translate(0, 0); opacity: 1; } 42%, 90% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 95% { transform: translate(var(--dx), var(--dy)); opacity: 0; } 96% { transform: translate(0, 0); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes settle { 0%, 12% { transform: translate(0, 0) rotate(-4deg); } 24% { transform: translate(0, -8px) rotate(-2.5deg); } 40% { transform: translate(0, -3px) rotate(-1deg); } 46%, 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes ring { 0%, 40% { opacity: 1; } 46%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hide-late { 0%, 14% { opacity: 1; } 20%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slot { 0%, 14% { stroke: var(--line); opacity: 1; } 22%, 38% { stroke: var(--accent); opacity: 1; } 44%, 94% { opacity: 0; } 100% { stroke: var(--line); opacity: 1; } }
@keyframes press { 0%, 56% { transform: scale(1); filter: none; } 60% { transform: scale(0.95); filter: brightness(1.15); } 65%, 100% { transform: scale(1); filter: none; } }
@keyframes toast { 0%, 63% { opacity: 0; transform: translateY(14px) scale(0.96); } 68%, 86% { opacity: 1; transform: translateY(0) scale(1); } 91%, 100% { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* Scroll reveal (added by script, so the page is complete without it). */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--n, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.statement > svg { transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.statement.in > svg, .statement .reveal.in:first-child { animation: lock 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes lock { 0% { transform: scale(0.7) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; } }

/* Closing call to action */
.final-cta { padding-top: 0; }
.final-card { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 9vw, 104px) 24px; border-radius: 32px; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--surface)) 0%, var(--surface) 62%); box-shadow: 0 0 0 1px var(--hair); }
.final-card > p { max-width: 560px; margin: 0 auto; color: var(--text-2); font-size: 19px; position: relative; }
.final-card .headline, .final-card .hero-ctas, .final-card .hero-trust { position: relative; }
.float-docs span { position: absolute; color: var(--accent); opacity: 0.22; animation: drift 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1s); --icon-bg: var(--surface); }
.float-docs span:nth-child(2n) { color: var(--text-3); animation-duration: 9s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(6px, -14px) rotate(5deg); } }
@media (max-width: 640px) { .float-docs span:nth-child(n + 5) { display: none; } }

/* Mac app waitlist */
.mac-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mac-copy .eyebrow { color: var(--accent); font-size: 15px; text-transform: none; }
.mac-copy > p { color: var(--text-2); font-size: 19px; margin: 0 0 22px; }
.mac-art { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; background: linear-gradient(160deg, #6e8efb 0%, #a777e3 45%, #f093a7 100%); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(80, 60, 160, 0.45); }
.mac-art::before { content: ''; position: absolute; inset: 0 0 auto; height: 22px; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); }
.dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.32); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5); }
.dock-app { width: 44px; height: 44px; border-radius: 11px; background: rgba(255, 255, 255, 0.55); }
.dock-app:nth-child(2) { background: rgba(255, 255, 255, 0.4); }
.dock-scissor { width: 52px; height: 52px; border-radius: 12px; animation: dock-bounce 3.6s cubic-bezier(0.3, 0, 0.3, 1) infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25)); }
.mac-waitlist.in .dock-scissor { animation-delay: 0.4s; }
@keyframes dock-bounce { 0%, 8%, 16%, 24%, 100% { transform: translateY(0); } 4% { transform: translateY(-26px); } 12% { transform: translateY(-18px); } 20% { transform: translateY(-9px); } }
.waitlist-form { max-width: 480px; }
.wl-row { display: flex; gap: 8px; }
.wl-row .input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; }
.wl-row .btn { white-space: nowrap; min-height: 44px; }
.wl-consent { align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); margin-top: 14px; }
.wl-consent input { margin-top: 1px; flex: none; }
/* Hidden in place: an off-screen offset would widen right-to-left pages (they scroll towards negative x). */
.waitlist-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.wl-status { min-height: 1.4em; font-size: 14px; margin: 10px 0 0; }
.wl-status.ok { color: #1f9d55; font-weight: 600; }
.wl-status.err { color: #d70015; }
.waitlist-form.done .wl-row, .waitlist-form.done .wl-consent { display: none; }
@media (max-width: 860px) { .mac-grid { grid-template-columns: 1fr; } .mac-art { max-width: 520px; width: 100%; margin: 0 auto; } }
@media (max-width: 420px) { .wl-row { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  .hero-title .ln, .rise, .hero-art, .hero-art .a-sheet, .hero-art.play *, .cta-main::after, .float-docs span, .dock-scissor, .hero-drop svg, .statement > svg { animation: none !important; }
  .hero-art .a-toast { opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Customer care ---------- */
.care-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 0.5px var(--hair); }
.care-dialog::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.care-dialog[open] { animation: pop-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
.care-dialog .care-form { padding: 22px 22px 18px; }
.care-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.care-head h2 { font-size: 21px; margin: 0; }
.care-x { font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); color: var(--text-2); cursor: pointer; }
.care-lead { color: var(--text-2); font-size: 14px; margin: 6px 0 14px; }
.care-form .field { display: block; margin: 0 0 12px; }
.care-form .label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.care-form .input { width: 100%; font: inherit; font-size: 15px; }
.care-form textarea.input { resize: vertical; min-height: 44px; line-height: 1.45; padding-top: 9px; }
.care-note { font-size: 12px; color: var(--text-3); margin: 4px 0 12px; }
.care-actions { display: flex; justify-content: flex-end; }
.care-status { min-height: 1.2em; font-size: 14px; margin: 10px 0 0; }
.care-status.ok { color: #1f9d55; font-weight: 600; }
.care-status.err { color: #d70015; }
.care-form.sent .field, .care-form.sent .care-actions, .care-form.sent .care-note, .care-form.sent > button, .care-form.sent textarea { display: none; }
.contact-form { max-width: 560px; margin: 0 auto; }
.contact-form .btn { margin-top: 4px; }
.problem-report { margin-inline-start: 8px; background: rgba(255, 255, 255, 0.18); color: inherit; border: 0; border-radius: 980px; padding: 3px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.welcome-report { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.rate { margin: 28px auto 0; text-align: center; max-width: 420px; }
.rate-q { font-size: 14px; color: var(--text-2); margin: 0 0 6px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { font-size: 28px; line-height: 1; padding: 2px 4px; background: none; border: 0; color: var(--line); cursor: pointer; transition: transform 0.15s, color 0.15s; }
.stars button:hover, .stars button.on { color: #ffb800; }
.stars button:hover { transform: scale(1.15); }
.stars:hover button:hover ~ button { color: var(--line); }
.stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.rate-form { margin-top: 10px; display: grid; gap: 8px; }
.rate-form .btn { justify-self: center; }
.rate.sent .stars { pointer-events: none; }

/* Tile icons (gradient squares): no recolouring on hover, a small lift instead. */
.tile-icon { flex: none; overflow: visible; }
.tool-tile .tile-icon, .palette-row .tile-icon { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tool-tile:hover .tile-icon { transform: translateY(-2px) scale(1.04); }
.tool-tile:active .tile-icon { transform: scale(0.96); }
.tool-tile .tile-icon { width: 34px; height: 34px; }
.palette-row .tile-icon { width: 26px; height: 26px; }
.palette-row[aria-selected="true"] .tile-icon { background: #fff; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.chiclet .tile-icon { width: 46px; height: 46px; }
.chiclet:hover .tile-icon { transform: translateY(-3px) scale(1.03); }
.drop .glyph .tile-icon { width: 64px; height: 64px; }
.chip .tool-icon .tile-icon { width: 20px; height: 20px; }
/* The line under the calls to action: always clear of the buttons (also inside the closing card). */
.hero-ctas + .hero-trust, .final-card > .hero-ctas + .hero-trust { margin: 26px auto 0; }
:root:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; --display: var(--font); }
:lang(zh-Hant) .hero h1 { line-height: 1.15; letter-spacing: 0; }
:lang(zh-Hant) { letter-spacing: 0; }
@font-face { font-family: 'Noto Sans Thai'; src: url(/vendor/fonts/noto-sans-thai.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Nastaliq Urdu'; src: url(/vendor/fonts/noto-nastaliq-urdu.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
:root:lang(th) { --font: 'Noto Sans Thai', var(--system); --display: 'Noto Sans Thai', var(--system); }
:root:lang(ur) { --font: 'Noto Nastaliq Urdu', var(--system); --display: 'Noto Nastaliq Urdu', var(--system); }
/* Nastaliq hangs low and Thai stacks marks: give both room. */
:lang(ur) body { line-height: 2.1; letter-spacing: 0; }
:lang(ur) .hero h1, :lang(ur) .headline, :lang(ur) .done h2 { line-height: 1.9; letter-spacing: 0; }
:lang(th) body { line-height: 1.75; letter-spacing: 0; }
:lang(th) .hero h1, :lang(th) .headline, :lang(th) .done h2 { line-height: 1.35; letter-spacing: 0; }

/* ---------- Scissor Image ---------- */
/* Image cards show the photo's own shape, not a page. */
.grid .thumb img { object-fit: contain; }
.grid-one { grid-template-columns: minmax(0, 420px); }
.grid-one .thumb { aspect-ratio: auto; min-height: 220px; }
.grid-one .thumb img { max-height: 420px; }
.range-value { color: var(--text); font-variant-numeric: tabular-nums; }
.saving.neutral { color: var(--text-2); background: var(--surface-2); }
.done-preview { display: grid; place-items: center; margin: 0 auto 4px; max-width: 360px; }
.done-preview img { max-width: 100%; max-height: 280px; border-radius: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.studio-pick .hero-ctas { justify-content: center; }
.studio-pick .studio-files { text-align: center; margin: 12px 0 0; }
.studio-pick .headline { margin-top: 48px; }

/* Editors that replace the image grid: crop, redact, split. */
.editor { display: grid; justify-items: center; gap: 12px; }
.editor-img { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; line-height: 0; }
.editor-img img { display: block; max-width: 100%; max-height: 64vh; border-radius: 4px; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 9999px rgba(0, 0, 0, 0.5); cursor: move; }
.crop-box.round { border-radius: 50%; }
.crop-box i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
.crop-box i[data-c="nw"] { left: -12px; top: -12px; cursor: nwse-resize; }
.crop-box i[data-c="ne"] { right: -12px; top: -12px; cursor: nesw-resize; }
.crop-box i[data-c="sw"] { left: -12px; bottom: -12px; cursor: nesw-resize; }
.crop-box i[data-c="se"] { right: -12px; bottom: -12px; cursor: nwse-resize; }
.editor-img:has(.crop-box) { overflow: hidden; border-radius: 4px; }
.redact-area { cursor: crosshair; }
.redact-box { position: absolute; background: #000; }
.redact-box.pixel { background: repeating-conic-gradient(rgba(120, 120, 128, 0.9) 0 25%, rgba(70, 70, 76, 0.9) 0 50%) 0 0 / 14px 14px; }
.redact-box button { position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); font-size: 15px; line-height: 22px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.split-lines { position: absolute; inset: 0; pointer-events: none; }
.split-lines i { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.split-lines i.v { top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.split-lines i.h { left: 0; right: 0; height: 2px; margin-top: -1px; }
.size-row { display: flex; align-items: center; gap: 8px; }
.size-row .input { flex: 1; min-width: 0; }
.size-row .times { color: var(--text-3); }
.meta-found { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.meta-found li { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.meta-found li.warn { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.meta-found li.ok { color: var(--text-2); }
.thumb img { transition: transform 0.25s; }

/* Brand: the Scissor family on hover, or on the caret for touch and keyboard. */
.brand-switch { position: relative; display: flex; align-items: center; gap: 2px; }
.brand-caret { border: 0; background: none; color: var(--text-2); padding: 6px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.brand-caret:hover { background: var(--surface-2); }
.product-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: -8px; z-index: 60; min-width: 260px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 0.5px var(--line); display: none; }
.product-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.brand-switch:hover .product-pop, .brand-switch:focus-within .product-pop, .brand-switch.open .product-pop { display: grid; gap: 2px; }
.product-pop a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.product-pop a:hover { background: var(--surface-2); }
.product-pop a[aria-current] { background: var(--accent-soft); }
.product-pop svg { flex: none; border-radius: 7px; }
.product-pop span { display: grid; line-height: 1.25; }
.product-pop b { font-size: 14px; font-weight: 600; }
.product-pop small { font-size: 12px; color: var(--text-2); }
.studio-photo { display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; }
.studio-photo img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 6px; box-shadow: var(--paper-shadow); background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.studio-file-item .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* ---------- Coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.soon-card { position: relative; padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--line); }
.soon-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.soon-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.soon-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.soon-pill { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 3px 8px; border-radius: 999px; }
.soon-hero .waitlist-form { max-width: 460px; margin: 28px auto 0; text-align: start; }
.soon-hero .wl-consent { font-size: 13px; color: var(--text-2); }
.soon-siblings { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.soon-siblings a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--line); color: var(--text); font-weight: 500; }
.soon-siblings a:hover { text-decoration: none; background: var(--surface-2); }
.soon-siblings svg { border-radius: 7px; }
.soon-hero .eyebrow { display: flex; justify-content: center; margin-bottom: 20px; }
