:root {
  color-scheme: light;
  --ink: #25212b;
  --muted: #6d6675;
  --line: #e7e1e8;
  --surface: #fff;
  --soft: #faf8fb;
  --purple: #7551c9;
  --purple-dark: #543392;
  --purple-soft: #f2ecff;
  --coral: #ec765f;
  --coral-soft: #fff0e9;
  --teal: #158477;
  --teal-soft: #e9f8f4;
  --link: #4168a9;
  --focus: #e3a638;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow: 0 22px 60px rgb(61 45 79 / 10%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fbfafb;
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgb(236 118 95 / 8%), transparent 25rem),
    radial-gradient(circle at 88% 5%, rgb(117 81 201 / 11%), transparent 30rem),
    linear-gradient(180deg, #fffdfc 0, #faf8fb 42rem, #fbfafb 100%);
}
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
.section-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgb(231 225 232 / 75%); background: rgb(255 253 252 / 82%); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 72px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand__mark { position: relative; width: 31px; height: 31px; border-radius: 11px 11px 11px 4px; background: linear-gradient(145deg, var(--purple), #aa75d2); box-shadow: 0 7px 18px rgb(117 81 201 / 22%); transform: rotate(-5deg); }
.brand__mark::after { position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; background: #ffb28f; content: ""; }
.site-nav { display: flex; align-items: center; gap: 7px; color: #58505f; font-size: .9rem; font-weight: 750; }
.site-nav a, .site-nav__pending { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 12px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--purple-soft); color: var(--purple-dark); }
.site-nav__pending { color: #8c8490; }
.site-nav small { padding: 1px 6px; border: 1px solid #ded7e0; border-radius: 99px; font-size: .68rem; }

.kicker, .section-heading__eyebrow { margin-bottom: 9px; color: var(--purple); font-size: .8rem; font-weight: 850; letter-spacing: .08em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr); gap: clamp(44px, 7vw, 90px); align-items: center; min-height: 570px; padding-block: 88px; }
.hero h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(3.3rem, 7.5vw, 6rem); line-height: .99; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, var(--purple-dark) 8%, #a654a9 52%, var(--coral) 100%); background-clip: text; -webkit-background-clip: text; }
.hero-line { display: block; white-space: nowrap; }
.hero-line:first-child { color: var(--ink); background: none; -webkit-text-fill-color: currentcolor; }
.hero-line--accent { color: transparent; }
.hero__lead { margin-bottom: 26px; color: #554d5d; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.primary-link, .select-button, .save-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(125deg, var(--purple-dark), var(--purple) 72%, #8b62d2); box-shadow: 0 13px 28px rgb(84 51 146 / 22%); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-link { gap: 18px; padding: 12px 20px; }
.primary-link:hover, .select-button:hover, .save-button:hover { background: var(--purple-dark); transform: translateY(-2px); }
.hero__privacy { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #514b56; font-size: .9rem; font-weight: 700; }
.hero__privacy span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.hero__visual { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 350px; gap: 13px; align-items: center; padding: 44px 30px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 45px 45px 45px 15px; background: linear-gradient(145deg, rgb(248 236 255 / 90%), rgb(255 239 231 / 82%)); box-shadow: 0 35px 90px rgb(91 54 111 / 16%); isolation: isolate; }
.hero__visual::before { position: absolute; z-index: -1; inset: 16px; border: 1px dashed rgb(117 81 201 / 22%); border-radius: 34px 34px 34px 10px; content: ""; }
.hero__visual > p { position: absolute; right: 28px; bottom: 18px; margin: 0; color: #65596c; font-size: .82rem; font-weight: 750; }
.hero__spark { position: absolute; z-index: 2; border-radius: 50%; }
.hero__spark--one { top: 22px; right: 24px; width: 17px; height: 17px; background: var(--coral); box-shadow: 0 8px 18px rgb(236 118 95 / 30%); }
.hero__spark--two { bottom: 35px; left: 26px; width: 9px; height: 9px; background: var(--purple); }
.format-card { display: flex; min-width: 0; min-height: 155px; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 24px; box-shadow: 0 15px 36px rgb(71 48 82 / 10%); }
.format-card small { margin-bottom: 9px; font-size: .69rem; font-weight: 900; letter-spacing: .12em; }
.format-card strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1; }
.format-card span { margin-top: 8px; color: #736979; font-size: .72rem; }
.format-card--input { background: rgb(255 255 255 / 82%); transform: translateY(-18px) rotate(-3deg); }
.format-card--input small { color: var(--coral); }
.format-card--output { background: linear-gradient(145deg, var(--purple-dark), #8855bc); color: #fff; transform: translateY(17px) rotate(3deg); }
.format-card--output small { color: #ffd6c6; }
.format-card--output span { color: #f1e8f7; }
.convert-arrow { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--coral); box-shadow: 0 10px 24px rgb(236 118 95 / 25%); color: #fff; font-weight: 900; }
.hero__visual--formats { grid-template-columns: minmax(0, 1.2fr) auto minmax(100px, .8fr); }
.source-formats { display: grid; grid-template-columns: repeat(2, minmax(70px, 1fr)); gap: 12px; }
.source-format { display: grid; min-height: 78px; place-items: center; border: 1px solid rgb(255 255 255 / 88%); border-radius: 18px 18px 18px 7px; background: rgb(255 255 255 / 84%); box-shadow: 0 13px 28px rgb(71 48 82 / 10%); color: var(--purple-dark); font-size: .9rem; font-weight: 900; }
.source-format--webp { transform: rotate(-4deg); }
.source-format--png { transform: rotate(3deg) translateY(4px); }
.source-format--gif { transform: rotate(-2deg) translateY(-2px); }
.source-format--bmp { transform: rotate(4deg) translateY(3px); }
.jpg-format-card { display: grid; min-height: 150px; place-items: center; border-radius: 26px 26px 26px 10px; background: linear-gradient(145deg, var(--purple-dark), #8855bc); box-shadow: 0 18px 38px rgb(84 51 146 / 22%); color: #fff; transform: rotate(2deg); }
.jpg-format-card strong { font-size: clamp(1.6rem, 4vw, 2.5rem); }

.tools-section, .trust-section { padding-block: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.12; }
.section-heading > p { max-width: 390px; margin-bottom: 3px; color: var(--muted); }
.featured-tool { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 26px; align-items: center; min-height: 190px; padding: 34px; overflow: hidden; border: 1px solid #ded1eb; border-radius: var(--radius-xl); background: linear-gradient(120deg, #fff 0 68%, #f6efff 100%); box-shadow: var(--shadow); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.featured-tool::after { position: absolute; right: -55px; bottom: -88px; width: 190px; height: 190px; border: 24px solid rgb(236 118 95 / 8%); border-radius: 50%; content: ""; }
.featured-tool:hover { box-shadow: 0 28px 70px rgb(61 45 79 / 15%); transform: translateY(-3px); }
.featured-tool__icon { display: grid; width: 90px; height: 90px; place-items: center; border-radius: 25px 25px 25px 9px; background: linear-gradient(145deg, var(--purple), var(--purple-dark)); color: #fff; font-size: 1rem; font-weight: 900; box-shadow: 0 15px 28px rgb(84 51 146 / 20%); }
.featured-tool__copy { display: flex; min-width: 0; flex-direction: column; }
.featured-tool__copy .status-badge { position: static; align-self: flex-start; margin-bottom: 9px; }
.featured-tool__copy strong { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; }
.featured-tool__copy small { margin-top: 4px; color: var(--purple); font-weight: 800; }
.featured-tool__copy > span:last-child { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.featured-tool__mobile-badge { display: none; }
.featured-tool__action { position: relative; z-index: 1; display: inline-flex; min-height: 48px; align-items: center; gap: 15px; padding: 10px 17px; border-radius: 13px; background: var(--coral-soft); color: #a64131; font-weight: 850; }
.available-tools { display: grid; gap: 18px; }
.featured-tool--pdf { background: linear-gradient(120deg, #fff 0 68%, #eef9f6 100%); }
.featured-tool--pdf .featured-tool__icon { background: linear-gradient(145deg, #167f74, #0b625a); }
.pending-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 18px; }
.pending-heading h3 { margin: 0; font-size: 1.25rem; }
.pending-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); min-height: 145px; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 10px 30px rgb(61 45 79 / 5%); }
.tool-card--pending { background: rgb(255 255 255 / 58%); color: #756e79; }
.tool-card__symbol { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px 18px 18px 7px; background: #f0ebf2; color: #7c7181; font-size: .78rem; font-weight: 900; }
.tool-card__body { display: flex; min-width: 0; flex-direction: column; }
.tool-card__body strong { padding-right: 43px; color: #3a343e; font-size: 1rem; }
.tool-card__body span { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.status-badge { position: absolute; top: 14px; right: 15px; padding: 3px 9px; border-radius: 99px; background: #efebf0; color: #776f7b; font-size: .72rem; font-weight: 850; }
.status-badge--ready { background: var(--teal-soft); color: var(--teal); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.trust-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(255 255 255 / 75%); }
.trust-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: var(--teal-soft); color: var(--teal); font-size: 1rem; font-weight: 900; }
.trust-grid h3 { margin: 18px 0 7px; font-size: 1.08rem; }
.trust-grid p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.tool-page { width: min(900px, calc(100% - 40px)); padding-block: 48px 84px; }
.tool-page__header { position: relative; margin-bottom: 30px; padding: 30px 24px 12px; text-align: center; }
.tool-page__header::before { position: absolute; z-index: -1; top: -80px; left: 50%; width: min(860px, calc(100vw - 24px)); height: 310px; border-radius: 0 0 50% 50%; background: radial-gradient(circle at 42% 30%, rgb(198 147 226 / 17%), transparent 40%), radial-gradient(circle at 67% 45%, rgb(236 118 95 / 12%), transparent 38%); content: ""; transform: translateX(-50%); }
.back-link { display: inline-block; margin-bottom: 29px; color: var(--link); font-size: .9rem; font-weight: 750; text-decoration: none; }
.tool-page__header h1 { margin-bottom: 10px; font-size: clamp(2.55rem, 7vw, 4.35rem); line-height: 1.06; }
.tool-page__header .ocr-page-title { font-size: clamp(2.55rem, 4vw, 3.15rem); letter-spacing: -.055em; }
.tool-page__lead { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.format-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.format-pills span, .format-pills strong { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgb(255 255 255 / 78%); font-size: .8rem; }
.format-pills strong { border-color: #d7c3eb; background: var(--purple-soft); color: var(--purple-dark); }
.converter, .results { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.converter { padding: 24px; }
.drop-zone { padding: 66px 24px; border: 2px dashed #bda7cf; border-radius: 23px; background: radial-gradient(circle at 50% 0%, rgb(117 81 201 / 9%), transparent 18rem), linear-gradient(145deg, #fffdff, #fff8f4); text-align: center; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.drop-zone.is-dragging { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 5px rgb(117 81 201 / 7%); transform: scale(1.006); }
.drop-zone__icon { display: grid; width: 66px; height: 66px; margin: 0 auto 19px; place-items: center; border-radius: 22px 22px 22px 8px; background: linear-gradient(145deg, var(--purple-soft), var(--coral-soft)); color: var(--purple); font-size: 1.8rem; font-weight: 750; box-shadow: 0 12px 28px rgb(84 51 146 / 12%); }
.drop-zone__title { margin-bottom: 3px; font-size: 1.28rem; font-weight: 850; }
.drop-zone__or, .drop-zone__note { color: #756d7b; }
.drop-zone__or { margin-bottom: 15px; }
.drop-zone__note { margin: 17px 0 0; font-size: .88rem; }
.format-note { margin: 2px 0 0; color: #756d7b; font-size: .8rem; }
.select-button { min-width: 180px; padding: 11px 26px; border: 0; }
.select-button:active, .save-button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.privacy-note { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 15px 17px; border: 1px solid #cfece4; border-radius: 16px; background: var(--teal-soft); color: #475b58; font-size: .88rem; }
.privacy-note__mark { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ccefe6; color: var(--teal); font-weight: 900; }
.privacy-note p { margin-bottom: 0; }
.privacy-note strong { color: #245d56; }
.results { margin-top: 25px; padding: 25px; }
.results__header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.results__header h2 { margin-bottom: 0; font-size: 1.65rem; }
.batch-status { display: flex; min-height: 24px; gap: 8px; align-items: center; margin: 5px 0 0; color: #665d6b; font-size: .9rem; }
.batch-status.is-processing::before { width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid #d8cddd; border-top-color: var(--purple); border-radius: 50%; content: ""; animation: spin 700ms linear infinite; }
.save-location { margin: 2px 0 0; color: #756d7b; font-size: .82rem; }
.clear-button { min-height: 44px; flex: 0 0 auto; padding: 8px 14px; border: 1px solid #c7bec9; border-radius: 12px; background: #fff; color: #504854; cursor: pointer; }
.clear-button:disabled { cursor: not-allowed; opacity: .55; }
.select-button:disabled { background: #b8afb9; box-shadow: none; color: #f7f4f7; cursor: not-allowed; opacity: .72; transform: none; }
.select-button:disabled:hover { background: #b8afb9; transform: none; }
.result-list { display: grid; gap: 13px; margin-top: 21px; }
.result-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; animation: result-in 220ms ease both; }
.result-item.is-error { border-color: #efc5c0; background: #fff9f7; }
.result-thumbnail { display: flex; width: 112px; height: 84px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: #7d7481; font-size: .75rem; text-align: center; }
.result-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.result-copy { min-width: 0; }
.result-name, .result-detail { overflow-wrap: anywhere; }
.result-name { margin-bottom: 2px; font-weight: 850; }
.result-detail { margin-bottom: 0; color: #756d7b; font-size: .85rem; }
.result-item.is-error .result-detail { color: #a1463b; font-weight: 700; }
.save-button { min-height: 44px; padding: 8px 18px; box-shadow: none; }
.related-tools { padding-top: 67px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-grid article { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(255 255 255 / 62%); color: #756d7b; }
.related-tool-link { display: block; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(255 255 255 / 78%); color: #423b46; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.related-tool-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-tool-link strong { display: block; }
.related-tool-link p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.browser-note { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #efc5c0; border-radius: 14px; background: #fff7f5; color: #914236; font-weight: 700; }
.text-tool-guidance { max-width: 680px; margin: -12px auto 22px; color: var(--muted); font-size: .88rem; text-align: center; }
.text-tool-guidance a { color: var(--link); font-weight: 750; text-underline-offset: 3px; }
.pdf-options { margin-top: 25px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.pdf-options__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pdf-options__heading h2 { margin-bottom: 2px; }
.pdf-file-summary { margin-bottom: 0; color: var(--muted); overflow-wrap: anywhere; }
.page-choice { display: flex; gap: 10px; margin: 24px 0 16px; padding: 0; border: 0; }
.page-choice label { display: flex; min-height: 46px; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); cursor: pointer; font-weight: 750; }
.page-choice input { width: 18px; height: 18px; accent-color: var(--purple); }
.page-range-field { display: grid; max-width: 440px; gap: 6px; }
.page-range-field > span { font-weight: 800; }
.page-range-field input { min-height: 48px; padding: 9px 12px; border: 1px solid #c8becb; border-radius: 12px; background: #fff; }
.page-range-field input:focus { outline: 3px solid rgb(227 166 56 / 40%); border-color: var(--focus); }
.page-range-field input:disabled { background: #f2eff3; color: #8a828d; }
.page-range-field small, .preview-note { color: var(--muted); font-size: .82rem; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff0ed; color: #a1463b; font-weight: 750; }
.form-error--standalone { margin-top: 18px; }
.page-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 12px; margin-top: 23px; }
.page-preview figure { margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.page-preview img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.page-preview figcaption { margin-top: 5px; color: var(--muted); font-size: .75rem; text-align: center; }
.page-preview-item { margin: 0; padding: 9px; border: 2px solid transparent; border-radius: 13px; background: var(--soft); color: var(--muted); cursor: pointer; font: inherit; }
.page-preview-item img { pointer-events: none; }
.page-preview-item span { display: block; margin-top: 5px; font-size: .75rem; text-align: center; }
.page-preview-item.is-selected { border-color: var(--purple); background: var(--purple-soft); box-shadow: 0 0 0 2px rgb(117 81 201 / 14%); color: var(--purple-dark); font-weight: 800; }
.page-preview-item:focus-visible { outline: 3px solid rgb(227 166 56 / 45%); outline-offset: 2px; }
.preview-note { margin: 10px 0 0; }
.convert-button { margin-top: 22px; }
.cancel-button { min-height: 44px; padding: 8px 14px; border: 1px solid #dda89f; border-radius: 12px; background: #fff4f1; color: #963f32; cursor: pointer; font-weight: 800; }
.result-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cancel-button:disabled { cursor: wait; opacity: .6; }
.text-extract-note { margin: 22px 0 0; padding: 13px 15px; border-radius: 13px; background: var(--soft); color: var(--muted); font-size: .86rem; }
.extracted-text { display: block; width: 100%; min-height: 360px; max-height: 65vh; margin-top: 20px; padding: 17px; resize: vertical; border: 1px solid #c8becb; border-radius: 14px; background: #fcfbfc; color: var(--ink); font: .95rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.extracted-text:focus { outline: 3px solid rgb(227 166 56 / 40%); border-color: var(--focus); }
.text-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.text-actions .save-button { padding-inline: 24px; }
.copy-status { min-height: 26px; margin: 8px 0 0; color: var(--teal); font-size: .88rem; font-weight: 750; }
.heading-note { white-space: nowrap; }
.no-break { white-space: nowrap; }
.mobile-block { margin-top: 28px; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.mobile-block h2 { margin: 7px 0 12px; font-size: clamp(1.35rem, 4vw, 2rem); }
.mobile-block p:not(.section-heading__eyebrow) { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.mobile-block__link { display: inline-flex; margin-top: 22px; text-decoration: none; }
.ocr-accuracy-note { max-width: 620px; margin: 20px auto 0; padding: 13px 16px; border: 1px solid #ded7e0; border-radius: 14px; background: rgb(255 255 255 / 72%); color: var(--muted); font-size: .86rem; font-style: normal; text-align: left; }
.ocr-accuracy-note strong { display: block; margin-bottom: 2px; color: #514858; }
.ocr-accuracy-note p { margin: 0; }
.ocr-file-list { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.ocr-file-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ocr-file-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocr-file-item span { flex: none; color: var(--muted); font-size: .82rem; }
.ocr-file-item.is-error { border-color: #efc5c0; background: #fff9f7; color: #a1463b; }
.image-pdf-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.image-pdf-item { display: grid; grid-template-columns: 38px 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.image-pdf-item.is-error { border-color: #efc5c0; background: #fff9f7; }
.image-pdf-item.is-processing { border-color: #bda7cf; background: var(--purple-soft); }
.image-pdf-order { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--purple-soft); color: var(--purple-dark); font-weight: 850; }
.image-pdf-result-item .result-thumbnail { color: var(--teal); font-weight: 900; }
.related-grid strong { display: block; padding-right: 58px; color: #423b46; }
.related-grid p { margin: 5px 0 0; font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); background: rgb(255 255 255 / 60%); color: #756d7b; font-size: .84rem; }
.site-footer > div { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__contact { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--link); font-weight: 750; text-underline-offset: 3px; }
.site-footer__contact:hover { color: var(--purple-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes result-in { from { opacity: 0; transform: translateY(5px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 66px; }
  .hero__copy { max-width: 740px; }
  .hero__visual { width: min(540px, 100%); min-height: 280px; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 36px; }
  .hero h1 { font-size: clamp(3.4rem, 6.5vw, 5rem); }
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: 1fr; }
  .featured-tool { grid-template-columns: 76px minmax(0, 1fr); }
  .featured-tool__icon { width: 76px; height: 76px; }
  .featured-tool__action { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .section-shell, .site-header__inner, .tool-page { width: min(100% - 24px, 1120px); }
  .site-header__inner { min-height: 64px; gap: 7px; }
  .brand { font-size: .94rem; }
  .brand__mark { width: 27px; height: 27px; border-radius: 9px 9px 9px 4px; }
  .site-nav { gap: 0; font-size: .8rem; }
  .site-nav a, .site-nav__pending { padding-inline: 8px; }
  .site-nav__pending small { display: none; }
  .hero { gap: 36px; padding-block: 48px 58px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(2.15rem, 10.8vw, 3.35rem); }
  .hero-line { white-space: nowrap; }
  .hero__lead { margin-bottom: 22px; font-size: 1rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero__visual { grid-template-columns: 1fr auto 1fr; min-height: 225px; padding: 31px 18px; border-radius: 31px 31px 31px 12px; }
  .source-formats { gap: 8px; }
  .source-format { min-height: 62px; font-size: .76rem; }
  .jpg-format-card { min-height: 118px; border-radius: 20px 20px 20px 8px; }
  .format-card { min-height: 116px; padding: 12px; border-radius: 18px; }
  .format-card strong { font-size: 1.22rem; }
  .format-card span { font-size: .61rem; }
  .convert-arrow { width: 31px; height: 31px; }
  .hero__visual > p { right: 20px; bottom: 12px; font-size: .72rem; }
  .tools-section, .trust-section { padding-block: 54px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .featured-tool { grid-template-columns: 60px minmax(0, 1fr); min-height: 185px; gap: 15px; padding: 24px 18px; }
  .featured-tool__icon { width: 60px; height: 60px; border-radius: 18px 18px 18px 7px; }
  .featured-tool__copy strong { font-size: 1.4rem; }
  .featured-tool__copy > span:last-child { font-size: .83rem; }
  .featured-tool--ocr .featured-tool__mobile-badge { display: inline-flex; align-self: flex-start; margin-bottom: 5px; padding: 2px 7px; border-radius: 99px; background: var(--purple-soft); color: var(--purple-dark); font-size: .67rem; font-weight: 850; letter-spacing: .06em; line-height: 1.35; }
  .featured-tool__action { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .pending-heading { margin-top: 40px; }
  .tool-card { min-height: 136px; padding: 22px 18px; }
  .tool-page { padding-block: 31px 58px; }
  .tool-page__header { padding-inline: 4px; }
  .back-link { margin-bottom: 25px; }
  .converter, .results { padding: 14px; border-radius: 21px; }
  .drop-zone { padding: 48px 12px; border-radius: 17px; }
  .drop-zone__icon { width: 58px; height: 58px; }
  .drop-zone__title { font-size: 1.08rem; }
  .results__header { flex-direction: column; }
  .result-header-actions { width: 100%; justify-content: stretch; }
  .result-header-actions > * { width: 100%; }
  .clear-button { width: 100%; }
  .result-item { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .result-thumbnail { width: 88px; height: 72px; }
  .save-button { grid-column: 1 / -1; width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .pdf-options { padding: 16px; border-radius: 21px; }
  .pdf-options__heading { flex-direction: column; }
  .pdf-options__heading .clear-button { width: 100%; }
  .page-choice { flex-direction: column; }
  .page-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .convert-button { width: 100%; }
  .extracted-text { min-height: 300px; font-size: .88rem; }
  .text-actions { flex-direction: column; }
  .text-actions .select-button, .text-actions .save-button { width: 100%; }
  .ocr-file-item { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ocr-file-item strong { width: 100%; }
  .image-pdf-item { grid-template-columns: 32px 72px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .image-pdf-item .result-thumbnail { width: 72px; height: 62px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}
@media (max-width: 390px) {
  .site-nav { flex: 1; justify-content: flex-end; }
  .site-nav a, .site-nav__pending { padding-inline: 7px; }
}
