:root {
  font-family: 'Manrope Variable', Manrope, system-ui, sans-serif;
  font-optical-sizing: auto;
  color: #19213a;
  background: #f8f9fd;
  font-synthesis: none;
  --ink: #19213a;
  --muted: #55617a;
  --brand: #4a45da;
  --border: #e0e4f0;
  --panel: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus:not(:focus-visible) { outline: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.3em; height: 1.3em; }
:focus-visible { outline: 3px solid #514bd9; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 4; background: #fff; padding: 12px; left: 12px; top: -100px; }
.skip-link:focus { top: 12px; }

.site-header { background: rgba(255, 255, 255, 0.93); border-bottom: 1px solid #e9ebf5; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 850; font-size: 1.12rem; letter-spacing: -.05em; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: white; box-shadow: 0 3px 8px #4a45da26; }
.brand-icon svg { width: 22px; height: 22px; }
.brand-accent { color: var(--brand); margin-left: 3px; }
.site-nav { display: flex; height: 100%; gap: 34px; align-items: center; }
.site-nav a { display: grid; align-content: center; height: 100%; position: relative; font-size: .91rem; font-weight: 750; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--brand); }
.site-nav a[aria-current]::after { position: absolute; content: ''; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 4px 4px 0 0; background: var(--brand); }
.header-privacy { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #335e57; font-weight: 730; font-size: .85rem; white-space: nowrap; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 44px; min-height: 397px; padding-block: 34px 42px; }
.hero h1 { font-size: clamp(3rem, 6.05vw, 4.55rem); font-weight: 850; line-height: 1.06; letter-spacing: -.06em; word-spacing: .025em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 432px; line-height: 1.7; margin: 19px 0 23px; }
.hero-search { display: flex; align-items: center; gap: 9px; max-width: 448px; padding: 5px 5px 5px 14px; border: 1px solid #dfe3f2; border-radius: 12px; background: #fff; box-shadow: 0 3px 16px #29376b08; }
.hero-search > span { color: #687494; flex: none; }
.hero-search input { width: 100%; min-width: 0; border: 0; color: var(--ink); padding: 9px 3px; background: transparent; font-size: .96rem; }
.hero-search input:focus-visible { outline-offset: 1px; border-radius: 4px; }
.hero-search input::placeholder { color: #687494; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; font-size: .92rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 2px 4px #4a45da22; }
.button.primary:hover { background: #3934bf; }
.button.primary:disabled { background: #8b89c1; box-shadow: none; }
.button.secondary { border-color: var(--border); background: #fff; color: var(--brand); }
.button.secondary:hover { border-color: var(--brand); }

.hero-graphic { position: relative; min-height: 297px; overflow: hidden; isolation: isolate; border-radius: 25px; background: linear-gradient(135deg, #d9dfff 0%, #e9e3ff 64%, #ddd9ff 100%); }
.graphic-grid { position: absolute; inset: 0; opacity: .53; background-image: linear-gradient(#a5abe840 1px, transparent 1px), linear-gradient(90deg, #a5abe840 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(ellipse, black 45%, transparent 92%); }
.orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 262px; height: 262px; border: 1px solid #685ee72d; border-radius: 50%; }
.orbit-two { width: 331px; height: 331px; }
.paper { position: absolute; width: 130px; height: 171px; top: 69px; left: calc(50% - 59px); border-radius: 12px; }
.paper-shadow { transform: translate(24px, 3px) rotate(19deg); background: #695df1; box-shadow: 2px 13px 30px #6455d342; }
.paper-back { transform: translate(-19px, -8px) rotate(-17deg); background: #f0edff; border: 1px solid #c9c3fb; }
.paper-front { transform: rotate(-5deg); overflow: hidden; background: #fff; box-shadow: 0 11px 30px #453fa332; }
.paper-fold { width: 35px; height: 35px; position: absolute; top: 0; right: 0; background: linear-gradient(45deg, #cfc9ff 50%, #e9e5ff 50%); border-bottom-left-radius: 7px; }
.paper-label { position: absolute; top: 29px; left: 20px; padding: 5px 8px; border-radius: 5px; font-size: .84rem; color: #4339c5; font-weight: 900; background: #eae6ff; letter-spacing: .035em; }
.paper-line { height: 5px; border-radius: 9px; background: #d8d8ed; position: absolute; left: 20px; }
.line-one { top: 77px; width: 72px; }
.line-two { top: 92px; width: 86px; }
.line-three { top: 107px; width: 55px; }
.line-four { top: 122px; width: 75px; }
.graphic-tile { display: grid; place-items: center; position: absolute; width: 49px; height: 49px; border-radius: 13px; box-shadow: 0 6px 17px #4944a223; font-size: 1.2rem; }
.graphic-lock { color: #2c7867; background: #e7fff4; left: calc(50% + 112px); top: 56px; rotate: 12deg; }
.graphic-stack { color: #4c43ce; background: #f9f7ff; left: calc(50% - 150px); top: 184px; rotate: -11deg; }

.tool-section { padding: 23px 0 61px; border-top: 1px solid #e4e8f2; scroll-margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 19px; }
.section-heading h2, .page-order h2 { font-size: 1.66rem; line-height: 1.2; letter-spacing: -.048em; font-weight: 850; }
.section-heading p, .section-heading #tool-count { color: var(--muted); font-size: .91rem; margin-top: 5px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { min-height: 39px; padding: 7px 13px; background: #fff; color: #4b5873; border: 1px solid #e1e5f2; border-radius: 8px; font-size: .88rem; font-weight: 750; }
.filter:hover { border-color: #a8a3ed; }
.filter[aria-pressed="true"] { color: #403ac5; background: #eeecff; border-color: #d7d1ff; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tool-card { min-width: 0; display: block; min-height: 150px; padding: 16px; border: 1px solid #e1e5f0; border-radius: 13px; background: #fff; box-shadow: 0 2px 3px #1e2b5005; transition: border-color .16s, box-shadow .16s, transform .16s; }
.tool-card:hover { border-color: #a8a3ed; box-shadow: 0 7px 18px #2a307c0d; transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; column-gap: 5px; }
.tool-icon { --icon-bg: #edebff; --icon-ink: #5143d3; width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none; border-radius: 10px; background: var(--icon-bg); color: var(--icon-ink); font-size: 1.04rem; }
.tool-icon.convert { --icon-bg: #e6f2ff; --icon-ink: #245caa; }
.tool-icon.optimize { --icon-bg: #ffecf0; --icon-ink: #b3385d; }
.tool-icon.edit { --icon-bg: #fff0e4; --icon-ink: #a6531d; }
.tool-icon.secure { --icon-bg: #e1f8ee; --icon-ink: #26775f; }
.tool-icon.ai { --icon-bg: #f0e8fa; --icon-ink: #70449c; }
.tool-card h3 { font-size: .99rem; line-height: 1.3; letter-spacing: -.023em; font-weight: 850; margin: 11px 0 4px; }
.tool-card p { font-size: .875rem; line-height: 1.52; color: var(--muted); }
.planned { font-size: .72rem; color: #586582; background: #f0f2f8; padding: 4px 7px; font-weight: 730; border-radius: 5px; white-space: nowrap; }
.empty { color: var(--muted); grid-column: 1 / -1; padding: 25px 0; }

.subpage { padding: 29px 0 72px; }
.subpage-heading { text-align: center; padding: 24px 0 27px; }
.subpage-heading .tool-icon { width: 53px; height: 53px; font-size: 1.4rem; margin-bottom: 11px; }
.subpage-heading h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.11; font-weight: 850; letter-spacing: -.066em; }
.subpage-heading p { margin: 10px auto 0; max-width: 540px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.conversion-switch { display: flex; width: fit-content; gap: 3px; margin: 0 auto 26px; padding: 4px; border-radius: 10px; background: #ebedf7; }
.conversion-switch button { min-width: 115px; border: 1px solid transparent; border-radius: 8px; padding: 8px 17px; background: transparent; color: var(--muted); font-size: .92rem; font-weight: 800; }
.conversion-switch button[aria-pressed="true"] { color: var(--brand); background: #fff; border-color: #e0e2ee; box-shadow: 0 2px 5px #151e5410; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.breadcrumb a { color: var(--brand); font-weight: 800; }
.breadcrumb a:hover { text-decoration: underline; }
.workspace { max-width: 836px; }
.work-form { display: grid; gap: 12px; }
.dropzone { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 13px; padding: 29px 15px; min-height: 194px; border: 1.5px dashed #aca9f0; border-radius: 15px; background: #f0efff; text-align: center; }
.dropzone.is-dragging { border-color: #524adb; background: #e1ddff; }
.upload-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; color: var(--brand); background: #e2dfff; font-size: 1.06rem; }
.dropzone h2 { font-size: 1.03rem; font-weight: 820; }
.private-note { display: flex; justify-content: center; align-items: center; gap: 6px; text-align: center; color: #3b6b5f; margin-top: 18px; font-size: .88rem; }
.planned-panel { max-width: 550px; display: grid; justify-items: center; gap: 12px; text-align: center; margin: auto; padding: 30px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.planned-panel h2, .result h2 { font-size: 1.22rem; letter-spacing: -.04em; }
.planned-panel p, .result p { color: var(--muted); }
.inline-feedback { padding: 11px 14px; border-radius: 8px; color: #3b467b; background: #edecff; font-size: .9rem; }
.inline-feedback[data-type="error"] { background: #ffedf0; color: #922746; }

.file-list, .pages { display: grid; padding: 0; margin: 0; list-style: none; gap: 7px; }
.file-list li { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 11px; background: #fff; border: 1px solid var(--border); border-radius: 9px; }
.file-list li[draggable="true"], .pages li[draggable="true"] { cursor: grab; }
.file-glyph { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 7px; background: #edebff; color: var(--brand); }
.file-details strong, .file-details small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-details strong { font-size: .9rem; }
.file-details small { font-size: .8rem; color: var(--muted); }
.row-actions { display: flex; gap: 4px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #4a5674; background: #fff; border: 1px solid #e1e5ef; border-radius: 6px; }
.icon-button:hover:not(:disabled) { color: var(--brand); border-color: #a8a3ed; background: #f3f2ff; }
.icon-button:disabled { color: #939bb2; background: #f4f5f9; }
.page-order { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.page-order h2 { font-size: 1.1rem; }
.page-order > p { font-size: .88rem; color: var(--muted); margin: 5px 0 12px; }
.pages { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); max-height: 465px; overflow: auto; padding: 4px; }
.pages li { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.page-image { aspect-ratio: 1 / 1.1; background: #edf0f8; display: grid; place-items: center; color: #737c9c; }
.page-image img { max-width: 85%; max-height: 87%; object-fit: contain; box-shadow: 0 1px 6px #1e2b5030; }
.page-meta { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; align-items: center; justify-content: space-between; }
.page-meta strong { font-size: .78rem; }
.page-meta .icon-button { width: 28px; height: 28px; }

.operation { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.field { display: grid; align-content: start; gap: 5px; }
.field label { font-weight: 800; font-size: .88rem; }
.field input, .field select { min-width: 0; width: 100%; border: 1px solid #cdd3e5; border-radius: 7px; padding: 8px 10px; background: #fff; color: var(--ink); font-size: .92rem; }
.field select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2355617a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 18px; }
.field small, .field-note { color: var(--muted); font-size: .84rem; }
.field-note { grid-column: 1 / -1; }
.run-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.run-row [role="status"] { font-size: .89rem; color: var(--muted); }
.result { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #edf9f3; border: 1px solid #cbeadc; border-radius: 11px; padding: 15px; }
.result-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.result p { overflow-wrap: anywhere; font-size: .85rem; }
.result-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; background: #d7f2e5; color: #277259; border-radius: 8px; }
.site-footer { background: #fff; border-top: 1px solid #e8ebf4; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding: 17px 0; color: var(--muted); font-size: .86rem; }
.footer-inner span:first-child { color: var(--ink); font-weight: 820; }

@media (max-width: 920px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { gap: 25px; }
  .hero-graphic { min-height: 276px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; height: 61px; gap: 15px; }
  .header-privacy { display: none; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .845rem; }
  .brand-icon { width: 30px; height: 30px; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding-block: 34px 25px; }
  .hero h1 { font-size: clamp(2.55rem, 8.4vw, 3.75rem); }
  .hero p { margin: 13px 0 17px; }
  .hero-graphic { min-height: 185px; border-radius: 17px; }
  .paper { top: 8px; scale: .8; }
  .graphic-lock { top: 30px; }
  .graphic-stack { top: 110px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-card { padding: 10px; min-height: 148px; }
  .tool-card h3 { font-size: .93rem; }
  .tool-card p { font-size: .84rem; }
  .planned { font-size: .64rem; padding: 4px; }
  .tool-icon { width: 34px; height: 34px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 1.46rem; }
  .fields { grid-template-columns: 1fr; }
  .result { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .hero-search .button { padding-inline: 10px; }
  .site-nav { gap: 10px; }
  .tool-card { min-height: 162px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
