:root {
  --red: #d92332;
  --red-dark: #b91927;
  --red-soft: #fff0f1;
  --red-border: #f3c5c9;

  --ink: #171a21;
  --text: #3f4652;
  --muted: #737b88;
  --faint: #9ba2ad;

  --line: #e6e8ec;
  --soft: #f7f8fa;
  --white: #ffffff;

  --green: #16845b;
  --green-soft: #eef9f4;

  --radius: 18px;
  --shadow: 0 12px 35px rgba(24, 28, 38, .07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.section-width {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--red);
  box-shadow: 0 5px 12px rgba(217,35,50,.18);
}

.brand-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: -.02em;
}

.brand-text small {
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav button {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.desktop-nav button:hover {
  color: var(--red);
  background: var(--red-soft);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.mobile-nav {
  display: none;
}


/* HERO */

.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(217,35,50,.075), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 365px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 70px;
  align-items: center;
  padding: 58px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  margin: 13px 0 0;
  max-width: 700px;
  font-size: clamp(39px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.hero h1 span {
  display: block;
  color: #747b86;
}

.hero-copy > p {
  max-width: 650px;
  margin: 21px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.hero-points {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-points span::first-letter {
  color: var(--green);
}

.quick-upload {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 29px;
  text-align: center;
  box-shadow: var(--shadow);
}

.quick-upload-icon {
  width: 57px;
  height: 57px;
  margin: 0 auto 15px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
}

.quick-upload-icon svg,
.drop-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-upload strong {
  display: block;
  font-size: 17px;
}

.quick-upload p {
  margin: 6px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.process-button {
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.primary-button {
  background: var(--red);
  color: white;
  padding: 11px 18px;
  font-size: 12px;
}

.primary-button:hover,
.process-button:hover {
  background: var(--red-dark);
}


/* POPULAR */

.popular-strip {
  border-bottom: 1px solid var(--line);
  background: white;
}

.popular-inner {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
}

.popular-label {
  margin-right: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.popular-inner button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.popular-inner button:hover {
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-soft);
}


/* TOOLS */

.tools-section {
  padding: 60px 0 72px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.section-heading h2,
.info-main h2,
.ocr-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(27px, 3vw, 37px);
  letter-spacing: -.045em;
}

.section-heading p,
.info-main > p,
.ocr-copy > p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.tool-count {
  min-width: 70px;
  text-align: right;
}

.tool-count strong {
  display: block;
  color: var(--red);
  font-size: 24px;
}

.tool-count span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.category-pills {
  margin: 29px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-pills button {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 750;
}

.category-pills button:hover,
.category-pills button.active {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.tool-card {
  position: relative;
  min-height: 183px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-align: left;
  color: var(--ink);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #e6aeb3;
  box-shadow: 0 12px 28px rgba(28,31,40,.08);
}

.tool-card.featured {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
  border-color: var(--red-border);
}

.tool-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
}

.tool-name {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 800;
}

.tool-description {
  display: block;
  min-height: 36px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tool-privacy {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.tool-privacy.neutral {
  color: var(--faint);
}

.tool-badge {
  position: absolute;
  top: 15px;
  right: 14px;
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
}


/* WORKSPACE */

.workspace-section {
  padding: 43px 0 70px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.back-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.back-button:hover {
  color: var(--red);
}

.workspace-heading {
  margin: 25px auto 25px;
  max-width: 850px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.workspace-icon {
  width: 53px;
  height: 53px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.workspace-heading h2 {
  margin: 3px 0 0;
  font-size: 28px;
  letter-spacing: -.035em;
}

.workspace-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: white;
  box-shadow: var(--shadow);
}

.drop-zone {
  min-height: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d8dbe1;
  border-radius: 15px;
  background: #fafbfc;
  text-align: center;
  transition: .18s ease;
}

.drop-zone.dragging {
  border-color: var(--red);
  background: var(--red-soft);
}

.drop-icon {
  width: 59px;
  height: 59px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red);
}

.drop-zone h3 {
  margin: 17px 0 0;
  font-size: 17px;
}

.drop-zone p {
  margin: 6px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.file-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-files {
  padding: 20px;
}

.selected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.selected-header strong {
  font-size: 13px;
}

.selected-header button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.file-type {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.file-info span {
  color: var(--faint);
  font-size: 9px;
}

.process-button {
  width: 100%;
  margin-top: 17px;
  padding: 13px;
  background: var(--red);
  color: white;
  font-size: 12px;
}

.privacy-box {
  max-width: 850px;
  margin: 13px auto 0;
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid #d9ece3;
  border-radius: 12px;
  background: var(--green-soft);
}

.privacy-box > span {
  color: var(--green);
  font-weight: 900;
}

.privacy-box strong {
  display: block;
  font-size: 10px;
}

.privacy-box p {
  margin: 3px 0 0;
  color: #617068;
  font-size: 9px;
  line-height: 1.5;
}


/* INFO */

.info-section {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .65fr);
  gap: 35px;
  align-items: start;
}

.info-main {
  padding-right: 25px;
}

.benefit {
  padding-top: 5px;
}

.benefit > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
}

.benefit strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.benefit p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}


/* AD READY */

.ad-ready-section {
  padding: 0 0 55px;
}

.ad-ready {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8dbe0;
  border-radius: 12px;
  color: #a3a8b0;
  background: #fafafa;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}


/* OCR */

.ocr-explainer {
  padding: 65px 0;
  background: #171b24;
  color: white;
}

.ocr-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.ocr-copy h2 {
  max-width: 580px;
}

.ocr-copy > p {
  max-width: 590px;
  color: #b6bdc8;
}

.secondary-button {
  margin-top: 20px;
  padding: 11px 15px;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.paper {
  position: relative;
  max-width: 310px;
  margin: auto;
  padding: 28px;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

.scan-label {
  display: block;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fake-line {
  width: 67%;
  height: 7px;
  margin-top: 9px;
  border-radius: 5px;
  background: #dfe2e7;
}

.fake-line.long {
  width: 90%;
}

.fake-line.medium {
  width: 78%;
}

.ocr-arrow {
  margin: 23px 0 12px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.search-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}


/* FOOTER */

footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner strong {
  font-size: 13px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: min(100% - 30px, 600px);
    margin: 0 auto;
    padding: 10px 0 14px;
  }

  .mobile-nav button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 9px;
    color: var(--text);
    font-size: 10px;
    font-weight: 750;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quick-upload {
    max-width: 500px;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-main {
    grid-column: 1 / -1;
  }

  .ocr-inner {
    gap: 45px;
  }
}

@media (max-width: 680px) {
  .section-width,
  .header-inner,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    height: 62px;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    padding: 42px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .quick-upload {
    padding: 23px;
  }

  .popular-inner {
    width: calc(100% - 28px);
  }

  .tools-section {
    padding: 45px 0 55px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .tool-card {
    min-height: 175px;
    padding: 15px;
  }

  .tool-description {
    min-height: 50px;
  }

  .tool-badge {
    top: 12px;
    right: 10px;
    font-size: 7px;
  }

  .tool-count {
    display: none;
  }

  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .category-pills button {
    flex: 0 0 auto;
  }

  .workspace-section {
    padding-top: 30px;
  }

  .drop-zone {
    min-height: 280px;
    padding: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .info-main {
    grid-column: auto;
  }

  .ocr-inner {
    grid-template-columns: 1fr;
  }

  .ocr-copy {
    order: -1;
  }

  .footer-inner {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 150px;
  }

  .tool-description {
    min-height: auto;
  }
}


/* ============================================================
   PDF PROCESSING UI
============================================================ */

.file-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.file-actions button {
  width: 29px;
  height: 29px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.file-actions button:hover:not(:disabled) {
  border-color: var(--red-border);
  background: var(--red-soft);
  color: var(--red);
}

.file-actions button:disabled {
  opacity: .3;
  cursor: default;
}

.remove-file {
  color: var(--red) !important;
}

.add-more-files {
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  border: 1px dashed #d6d9df;
  border-radius: 9px;
  background: white;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.add-more-files:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.tool-status {
  margin-top: 15px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.tool-status.info {
  border: 1px solid #dce2eb;
  background: #f5f7fa;
  color: #536070;
}

.tool-status.working {
  border: 1px solid #f0d7a7;
  background: #fff9ed;
  color: #8a641e;
}

.tool-status.success {
  border: 1px solid #cde8dc;
  background: #eef9f4;
  color: #167653;
}

.tool-status.error {
  border: 1px solid #f1c9cd;
  background: #fff2f3;
  color: #ad2330;
}

.process-button:disabled {
  opacity: .65;
  cursor: wait;
}


/* ============================================================
   TOOL OPTIONS
============================================================ */

.tool-options {
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}

.options-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.options-heading > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.options-heading strong {
  font-size: 12px;
}

.options-heading span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.option-group + .option-group {
  margin-top: 15px;
}

.option-group > label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.option-group > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.option-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d9dde3;
  border-radius: 9px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.option-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,35,50,.08);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.choice-card {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 0 !important;
  padding: 11px;
  border: 1px solid #dfe2e7;
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--red-border);
}

.choice-card input {
  margin-top: 3px;
  accent-color: var(--red);
}

.choice-card span {
  display: block;
}

.choice-card strong {
  display: block;
  font-size: 10px;
}

.choice-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}


@media (max-width: 520px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   EDIT / CREATE TOOL CONTROLS
============================================================ */

.option-two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-two-column .option-group + .option-group {
  margin-top: 0;
}

@media (max-width: 520px) {
  .option-two-column {
    grid-template-columns: 1fr;
  }

  .option-two-column .option-group + .option-group {
    margin-top: 15px;
  }
}


/* ============================================================
   VISUAL PAGE ORGANIZER
============================================================ */

.organize-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.page-organizer {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(125px, 1fr));
  gap: 11px;
}

.organizer-page {
  min-width: 0;
  padding: 7px;
  border: 1px solid #dfe2e7;
  border-radius: 10px;
  background: white;
  cursor: grab;
  transition:
    border-color .15s ease,
    transform .15s ease,
    opacity .15s ease;
}

.organizer-page:hover {
  border-color: var(--red-border);
}

.organizer-page.dragging-page {
  opacity: .4;
  transform: scale(.97);
}

.organizer-page.drag-over-page {
  border-color: var(--red);
  box-shadow:
    0 0 0 2px rgba(217,35,50,.08);
}

.organizer-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f2f4;
}

.organizer-preview canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow:
    0 2px 7px rgba(0,0,0,.12);
}

.preview-loading {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
}

.organizer-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 2px 0;
}

.organizer-footer > span {
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.organizer-remove {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.organizer-remove:hover {
  background: var(--red);
  color: white;
}

.option-help {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}


@media (max-width: 520px) {
  .page-organizer {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* ============================================================
   SIGN PDF
============================================================ */

.signature-builder {
  display: grid;
  grid-template-columns:
    minmax(260px, .8fr)
    minmax(320px, 1.2fr);
  gap: 22px;
}

.signature-draw-section,
.signature-place-section {
  min-width: 0;
}

.signature-section-heading {
  margin-bottom: 12px;
}

.signature-section-heading strong {
  display: block;
  font-size: 11px;
}

.signature-section-heading span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.signature-pad-wrap {
  overflow: hidden;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      #fff,
      #fff 31px,
      #f4f5f7 32px
    );
}

.signature-pad {
  display: block;
  width: 100%;
  height: 155px;
  touch-action: none;
  cursor: crosshair;
}

.signature-pad-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.secondary-tool-button,
.page-nav-button {
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
}

.secondary-tool-button {
  padding: 8px 11px;
}

.secondary-tool-button:hover,
.page-nav-button:hover {
  border-color: var(--red-border);
  background: var(--red-soft);
  color: var(--red);
}

.signature-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}

.signature-page-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.signature-page-controls input {
  width: 56px;
  height: 31px;
  padding: 4px 6px;
  border: 1px solid #d9dde3;
  border-radius: 7px;
  background: white;
  text-align: center;
}

.signature-page-controls > span {
  color: var(--muted);
  font-size: 9px;
}

.page-nav-button {
  width: 31px;
  height: 31px;
}

.signature-preview-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  background: #e8eaed;
  box-shadow:
    0 4px 15px rgba(0,0,0,.08);
}

.signature-page-preview {
  display: grid;
  place-items: center;
  min-width: 260px;
  min-height: 340px;
  background: #eceef1;
}

.signature-page-preview canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.signature-page-preview > span {
  padding: 30px;
  color: var(--muted);
  font-size: 9px;
}

.signature-placement {
  position: absolute;
  z-index: 5;
  min-width: 45px;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.signature-placement img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.signature-placement::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed var(--red);
  border-radius: 4px;
  pointer-events: none;
}

.signature-size-control {
  max-width: 330px;
  margin: 14px auto 0;
}

.signature-size-control label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.signature-size-control input {
  width: 100%;
  accent-color: var(--red);
}

.signature-tip {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}


@media (max-width: 760px) {

  .signature-builder {
    grid-template-columns: 1fr;
  }

  .signature-page-preview {
    min-width: 220px;
  }

}


/* ============================================================
   OCR PDF
============================================================ */

.ocr-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.ocr-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}

.ocr-intro strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 11px;
}

.ocr-intro p {
  max-width: 480px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.ocr-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 9px;
  background: white;
}

.ocr-notice strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 9px;
}

.ocr-notice span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}


@media (max-width: 520px) {

  .ocr-notice {
    display: block;
  }

  .ocr-notice span {
    display: block;
    margin-top: 4px;
  }

}


/* ============================================================
   OCR LIMITS
============================================================ */

.ocr-limit-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #f0d6d8;
  border-radius: 9px;
  background: var(--red-soft);
}

.ocr-limit-box > div {
  min-width: 0;
}

.ocr-limit-box strong {
  display: block;
  color: var(--ink);
  font-size: 9px;
}

.ocr-limit-box span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.ocr-split-button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--red-border);
  border-radius: 8px;
  background: white;
  color: var(--red);
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.ocr-split-button:hover {
  background: var(--red);
  color: white;
}


@media (max-width: 520px) {

  .ocr-limit-box {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* ============================================================
   PROCESSING PRIVACY BAR
============================================================ */

.processing-privacy-bar {
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

.processing-privacy-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}

.privacy-lock {
  flex: 0 0 auto;
  font-size: 10px;
}


@media (max-width: 520px) {

  .processing-privacy-inner {
    align-items: flex-start;
    padding:
      7px 14px;
    text-align: left;
  }

}


/* ============================================================
   PRODUCT UX PASS 1
============================================================ */


/* ---------- Trust strip ---------- */

.quick-trust-strip {
  width: min(100%, 1050px);
  margin: 20px auto 17px;
  padding: 0 18px;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 9px;
}


.quick-trust-item {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 12px;

  border:
    1px solid #e7e8eb;

  border-radius:
    10px;

  background:
    #fff;
}


.quick-trust-icon {
  width: 28px;
  height: 28px;

  flex:
    0 0 28px;

  display: grid;
  place-items: center;

  border-radius:
    8px;

  background:
    var(--red-soft);

  color:
    var(--red);

  font-size:
    12px;

  font-weight:
    900;
}


.quick-trust-item strong {
  display: block;

  color:
    var(--ink);

  font-size:
    9px;

  line-height:
    1.25;
}


.quick-trust-item small {
  display: block;

  margin-top:
    2px;

  color:
    var(--muted);

  font-size:
    7.5px;

  line-height:
    1.35;
}



/* ---------- Tool filters ---------- */

















/* ---------- Coming-soon cards ---------- */

[data-tool="compress"],
[data-tool="protect"],
[data-tool="unlock"] {
  position:
    relative;
}


[data-tool="compress"]
.tool-privacy,

[data-tool="protect"]
.tool-privacy,

[data-tool="unlock"]
.tool-privacy {
  color:
    #777;
}


[data-tool="compress"]::after,
[data-tool="protect"]::after,
[data-tool="unlock"]::after {

  content:
    "COMING SOON";

  position:
    absolute;

  top:
    8px;

  right:
    8px;

  padding:
    3px 6px;

  border-radius:
    999px;

  background:
    #f2f3f5;

  color:
    #666;

  font-size:
    6px;

  font-weight:
    900;

  letter-spacing:
    .35px;

  pointer-events:
    none;
}



/* ---------- Why section ---------- */

.why-tools {
  margin-top:
    46px;

  padding:
    44px 20px;

  border-top:
    1px solid #ececef;

  background:
    #fafafa;
}


.why-tools-inner {
  max-width:
    1050px;

  margin:
    0 auto;
}


.section-heading {
  max-width:
    610px;

  margin:
    0 auto 24px;

  text-align:
    center;
}


.section-kicker {
  display:
    inline-block;

  margin-bottom:
    7px;

  color:
    var(--red);

  font-size:
    7px;

  font-weight:
    900;

  letter-spacing:
    .8px;
}


.section-heading h2 {
  margin:
    0;

  color:
    var(--ink);

  font-size:
    clamp(
      20px,
      3vw,
      30px
    );

  line-height:
    1.15;
}


.section-heading p {
  margin:
    10px auto 0;

  color:
    var(--muted);

  font-size:
    10px;

  line-height:
    1.65;
}


.why-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap:
    12px;
}


.why-card {
  padding:
    19px;

  border:
    1px solid #e5e6e9;

  border-radius:
    12px;

  background:
    #fff;
}


.why-card-icon {
  width:
    34px;

  height:
    34px;

  display:
    grid;

  place-items:
    center;

  margin-bottom:
    12px;

  border-radius:
    9px;

  background:
    var(--red-soft);

  color:
    var(--red);

  font-size:
    12px;

  font-weight:
    900;
}


.why-card h3 {
  margin:
    0;

  color:
    var(--ink);

  font-size:
    11px;
}


.why-card p {
  margin:
    7px 0 0;

  color:
    var(--muted);

  font-size:
    8.5px;

  line-height:
    1.65;
}



/* ---------- Future advertising ---------- */

.ad-reserve {
  min-height:
    82px;

  margin-top:
    28px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px dashed #d9dade;

  border-radius:
    10px;

  background:
    #fff;

  color:
    #aaa;

  font-size:
    7px;

  text-transform:
    uppercase;

  letter-spacing:
    .7px;
}


/*
 * This is a layout reservation only.
 * No advertising code is being inserted yet.
 */



/* ---------- Focus accessibility ---------- */

[data-tool]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {

  outline:
    2px solid var(--red);

  outline-offset:
    2px;
}



/* ---------- Tablet ---------- */

@media (max-width: 760px) {

  .quick-trust-strip {
    grid-template-columns:
      1fr;
  }


  .why-grid {
    grid-template-columns:
      1fr;
  }


  .why-card {
    padding:
      16px;
  }

}



/* ---------- Mobile ---------- */

@media (max-width: 520px) {

  .quick-trust-strip {
    margin-top:
      14px;

    padding:
      0 12px;
  }


  


  


  


  .why-tools {
    margin-top:
      34px;

    padding:
      34px 14px;
  }


  .section-heading {
    text-align:
      left;
  }


  .ad-reserve {
    min-height:
      65px;
  }

}


/* ============================================================
   PRESENTATION CLEANUP
============================================================ */


/*
 * Unfinished tools remain visible so visitors can see what
 * is planned, but they should not look identical to live tools.
 */

.tool-card[data-tool="compress"],
.tool-card[data-tool="protect"],
.tool-card[data-tool="unlock"] {
  position: relative;
  background: #fafafa;
  border-style: dashed;
}


.tool-card[data-tool="compress"] .tool-icon,
.tool-card[data-tool="protect"] .tool-icon,
.tool-card[data-tool="unlock"] .tool-icon {
  opacity: .72;
}


.tool-card[data-tool="compress"] .tool-privacy,
.tool-card[data-tool="protect"] .tool-privacy,
.tool-card[data-tool="unlock"] .tool-privacy {
  color: #777;
  font-weight: 700;
}


.tool-card[data-tool="compress"]::after,
.tool-card[data-tool="protect"]::after,
.tool-card[data-tool="unlock"]::after {
  content: "SOON";

  position: absolute;
  top: 9px;
  right: 9px;

  padding: 3px 6px;

  border-radius: 999px;

  background: #f1f1f2;
  color: #777;

  font-size: 6px;
  font-weight: 900;
  letter-spacing: .45px;

  pointer-events: none;
}


/*
 * Improve card interaction without making the interface flashy.
 */

.tool-card {
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    border-color .14s ease;
}


.tool-card:not([data-tool="compress"]):
:not([data-tool="protect"]):
:not([data-tool="unlock"]):hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .055);
}


/*
 * Strong keyboard focus for accessibility.
 */

.tool-card:focus-visible,
.popular-strip button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


/*
 * Make the Local processing message easier to recognize
 * without allowing it to dominate the card.
 */

.tool-privacy {
  margin-top: auto;
}


/*
 * Mobile cards should remain comfortably tappable.
 */

@media (max-width: 520px) {

  .tool-card {
    min-height: 126px;
  }

  .tool-card[data-tool="compress"]::after,
  .tool-card[data-tool="protect"]::after,
  .tool-card[data-tool="unlock"]::after {
    top: 7px;
    right: 7px;
  }

}


/* ==========================================================
   PDF TOOLS — VISUAL PASS 1
   Stronger hierarchy / clearer tools / more dimensional UI
   ========================================================== */

:root {
  --pdf-page: #f7f8fa;
  --pdf-surface: #ffffff;
  --pdf-surface-soft: #fffafb;
  --pdf-ink: #171a21;
  --pdf-muted: #687080;
  --pdf-line: #e1e4e9;
  --pdf-red: #e52231;
  --pdf-red-dark: #c91827;
  --pdf-red-soft: #fff0f2;
  --pdf-green: #07883f;
}

/* Give the application a defined canvas instead of endless white */
body {
  background: var(--pdf-page);
}

/* Header remains crisp white */
.site-header {
  background: rgba(255,255,255,.98);
}

/* Hero gets its own visual territory */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 32%, rgba(229,34,49,.10), transparent 29%),
    linear-gradient(135deg, #ffffff 0%, #fffafa 58%, #fff4f5 100%);
  border-bottom: 1px solid var(--pdf-line);
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -180px;
  top: -180px;
  background: rgba(229,34,49,.035);
  pointer-events: none;
}

.hero-copy h1 {
  color: var(--pdf-ink);
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  color: #747b87;
}

/* Make upload panel feel like a real primary action */
.hero-upload {
  background: rgba(255,255,255,.96);
  border: 1px solid #dfe2e7;
  box-shadow:
    0 18px 45px rgba(20,24,32,.09),
    0 3px 10px rgba(20,24,32,.035);
}

.hero-upload:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(20,24,32,.12),
    0 4px 12px rgba(20,24,32,.05);
}

/* Toolbox becomes a clearly separate working section */
.tools-section {
  background: var(--pdf-page);
}

/* Stronger category controls */
.category-pills button {
  background: #fff;
  border-color: #d9dde4;
  color: #333945;
  font-weight: 700;
}

.category-pills button:hover {
  border-color: #f0a4ab;
  background: var(--pdf-red-soft);
  color: var(--pdf-red-dark);
}

.category-pills button.active {
  background: var(--pdf-red);
  border-color: var(--pdf-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(229,34,49,.18);
}

/* ----------------------------------------------------------
   TOOL CARDS
   ---------------------------------------------------------- */

.tool-card {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(17,24,39,.025);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #f1a2aa;
  background: #fff;
  box-shadow:
    0 15px 32px rgba(20,24,32,.09),
    0 3px 8px rgba(20,24,32,.035);
}

/* Larger and more recognizable icon block */
.tool-card .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pdf-red-soft);
  color: var(--pdf-red);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(229,34,49,.035);
}

.tool-card:hover .tool-icon {
  background: var(--pdf-red);
  color: #fff;
  box-shadow: 0 7px 16px rgba(229,34,49,.18);
}

.tool-card .tool-name {
  color: var(--pdf-ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.015em;
}

.tool-card .tool-description {
  color: var(--pdf-muted);
  line-height: 1.55;
}

/* Local-processing label becomes deliberate, not tiny decoration */
.tool-card .tool-privacy {
  margin-top: 18px;
  font-weight: 800;
  letter-spacing: .025em;
}

/* Coming-soon tools visually distinct without looking broken */
.tool-card:has(.tool-privacy.neutral),
.tool-card.coming-soon {
  background: #fafafa;
  border-style: dashed;
}

.tool-card:has(.tool-privacy.neutral):hover,
.tool-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: #d8dce2;
}

/* Featured OCR retains identity */
.tool-card.featured {
  background:
    linear-gradient(145deg, #ffffff 0%, #fff7f8 100%);
  border-color: #f3a5ad;
}

.tool-card.featured .tool-icon {
  background: #ffe8eb;
}

/* Supporting benefit cards gain depth */
.feature-card,
.benefit-card {
  background: #fff;
  border: 1px solid var(--pdf-line);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(20,24,32,.035);
}

/* Workspace/dialog surfaces */
.tool-modal,
.tool-workspace,
.workspace-panel {
  background: #fff;
}

/* Stronger primary buttons */
.primary-button,
.process-button,
button.process-button {
  box-shadow: 0 7px 18px rgba(229,34,49,.18);
}

.primary-button:hover,
.process-button:hover,
button.process-button:hover {
  transform: translateY(-1px);
}

/* Make advertisement area intentionally separate */
.ad-placeholder,
.advertisement-area {
  background: rgba(255,255,255,.62);
  border-color: #d9dde3;
}

/* Slightly stronger footer/section separation */
footer,
.site-footer {
  border-top: 1px solid var(--pdf-line);
}

/* Mobile: keep depth without oversized effects */
@media (max-width: 700px) {
  .tool-card {
    border-radius: 14px;
  }

  .tool-card .tool-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .tool-card:hover {
    transform: none;
  }
}


/* ==========================================================
   PDF TOOLS — VISUAL PASS 2
   Utility-first hierarchy / stronger navigation
   ========================================================== */


/* ----------------------------------------------------------
   HEADER
   The PDF application navigation must be immediately visible.
   ---------------------------------------------------------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e1e4e8;
  box-shadow: 0 2px 10px rgba(20,24,32,.035);
}

.site-header .header-inner {
  min-height: 82px;
}

/* Stronger product identity */
.site-header .brand {
  gap: 13px;
}

.site-header .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 7px 17px rgba(229,34,49,.20);
}

.site-header .brand-title,
.site-header .brand strong {
  font-size: 19px;
  font-weight: 850;
  color: #171a21;
  letter-spacing: -.025em;
}

.site-header .brand-subtitle,
.site-header .brand small {
  font-size: 11px;
  color: #747b87;
}


/* ----------------------------------------------------------
   DESKTOP NAVIGATION
   Larger, darker and more spacious.
   ---------------------------------------------------------- */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav button {
  position: relative;

  min-height: 44px;
  padding: 0 15px;

  border: 0;
  border-radius: 9px;

  background: transparent;

  color: #252a34;

  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;

  cursor: pointer;

  transition:
    color .16s ease,
    background .16s ease,
    transform .16s ease;
}

.desktop-nav button:hover {
  color: #df1f2e;
  background: #fff1f2;
}

.desktop-nav button.active {
  color: #df1f2e;
  background: #fff0f2;
}

/* Red indicator under selected navigation */
.desktop-nav button.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;

  height: 3px;
  border-radius: 4px;

  background: #e52231;
}


/* First navigation control becomes obvious entry point */
.desktop-nav button[data-filter="all"] {
  padding-left: 18px;
  padding-right: 18px;

  background: #e52231;
  color: #ffffff;

  box-shadow: 0 6px 14px rgba(229,34,49,.17);
}

.desktop-nav button[data-filter="all"]:hover {
  background: #ca1927;
  color: #ffffff;
}

.desktop-nav button[data-filter="all"]::after {
  display: none;
}


/* ----------------------------------------------------------
   HERO
   Keep it, but reduce its dominance slightly so the actual
   tools become the star of the application.
   ---------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 84% 22%,
      rgba(229,34,49,.105),
      transparent 30%),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fffafa 55%,
      #fff2f4 100%
    );
}

.hero-inner {
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(48px, 5vw, 68px);
  line-height: .94;
}

.hero-copy > p {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.65;
}


/* ----------------------------------------------------------
   POPULAR SHORTCUTS
   Make these read as useful navigation rather than tiny tags.
   ---------------------------------------------------------- */

.popular-strip {
  background: #ffffff;
  border-top: 1px solid #e4e6ea;
  border-bottom: 1px solid #e4e6ea;
}

.popular-inner {
  min-height: 66px;
}

.popular-label {
  color: #6e7582;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.popular-inner button {
  min-height: 36px;
  padding: 0 15px;

  background: #ffffff;
  border: 1px solid #d8dce2;
  border-radius: 9px;

  color: #282d36;

  font-size: 13px;
  font-weight: 750;

  transition:
    border-color .15s ease,
    background .15s ease,
    color .15s ease,
    transform .15s ease;
}

.popular-inner button:hover {
  background: #fff0f2;
  border-color: #ef9da5;
  color: #d91e2c;
  transform: translateY(-1px);
}


/* ----------------------------------------------------------
   TOOLBOX INTRO
   Much stronger transition into the actual product.
   ---------------------------------------------------------- */

.tools-section {
  background: #f5f6f8;
}

.tools-section .section-heading h2,
.tools-section h2 {
  color: #171a21;
  font-weight: 850;
  letter-spacing: -.035em;
}


/* ----------------------------------------------------------
   CATEGORY PILLS
   These are primary controls, not decoration.
   ---------------------------------------------------------- */

.category-pills {
  gap: 9px;
}

.category-pills button {
  min-height: 42px;
  padding: 0 19px;

  border: 1px solid #d5d9df;
  border-radius: 10px;

  background: #ffffff;
  color: #2a303a;

  font-size: 13px;
  font-weight: 800;

  box-shadow: 0 1px 2px rgba(20,24,32,.02);
}

.category-pills button:hover {
  background: #fff0f2;
  border-color: #ef9da5;
  color: #d91e2c;
}

.category-pills button.active {
  background: #e52231;
  border-color: #e52231;
  color: #ffffff;

  box-shadow: 0 6px 15px rgba(229,34,49,.17);
}


/* ----------------------------------------------------------
   TOOL CARDS
   Less "blank rectangle", stronger information hierarchy.
   ---------------------------------------------------------- */

.tool-card {
  min-height: 205px;

  padding: 25px 21px 21px;

  background: #ffffff;
  border: 1px solid #dde1e6;
  border-radius: 14px;

  box-shadow:
    0 2px 4px rgba(20,24,32,.025),
    0 8px 20px rgba(20,24,32,.025);
}

.tool-card:hover {
  transform: translateY(-3px);

  border-color: #ed929b;

  box-shadow:
    0 14px 28px rgba(20,24,32,.075),
    0 3px 7px rgba(20,24,32,.035);
}


/* Much stronger tool identifier */
.tool-card .tool-icon {
  width: 58px;
  height: 58px;

  margin-bottom: 20px;

  border-radius: 14px;

  background: #fff0f2;
  color: #e52231;

  font-size: 20px;
  font-weight: 850;

  box-shadow:
    inset 0 0 0 1px rgba(229,34,49,.035);
}

.tool-card:hover .tool-icon {
  background: #e52231;
  color: #ffffff;

  box-shadow: 0 8px 18px rgba(229,34,49,.20);
}


/* Tool title must be instantly scannable */
.tool-card .tool-name {
  display: block;

  margin-bottom: 7px;

  color: #141820;

  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;

  letter-spacing: -.02em;
}


/* Description secondary */
.tool-card .tool-description {
  color: #697180;

  font-size: 13px;
  line-height: 1.5;
}


/* Privacy text deliberately quieter */
.tool-card .tool-privacy {
  margin-top: 17px;

  color: #07883f;

  font-size: 10px;
  line-height: 1.2;

  font-weight: 850;
  letter-spacing: .045em;
}


/* ----------------------------------------------------------
   COMING SOON
   Clearly unavailable.
   ---------------------------------------------------------- */

.tool-card:has(.tool-privacy.neutral),
.tool-card.coming-soon {
  background: #fafafa;
  border-style: dashed;
  box-shadow: none;
}

.tool-card:has(.tool-privacy.neutral) .tool-icon,
.tool-card.coming-soon .tool-icon {
  background: #f2f2f3;
  color: #9096a0;
}

.tool-card:has(.tool-privacy.neutral) .tool-name,
.tool-card.coming-soon .tool-name {
  color: #565d68;
}

.tool-card:has(.tool-privacy.neutral):hover,
.tool-card.coming-soon:hover {
  transform: none;
  border-color: #d5d9df;
  box-shadow: none;
}


/* ----------------------------------------------------------
   OCR
   Preserve a distinct premium/featured identity.
   ---------------------------------------------------------- */

.tool-card.featured {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fff5f6 100%
    );

  border-color: #ef9da5;

  box-shadow:
    0 7px 22px rgba(229,34,49,.055);
}

.tool-card.featured .tool-icon {
  background: #ffe7ea;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .site-header .header-inner {
    min-height: 70px;
  }

  .hero-inner {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 10vw, 58px);
  }

  .category-pills {
    gap: 7px;
  }

  .category-pills button {
    min-height: 39px;
    padding: 0 14px;
  }
}


@media (max-width: 700px) {

  .tool-card {
    min-height: 185px;
    padding: 20px 18px;
  }

  .tool-card .tool-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .tool-card .tool-name {
    font-size: 16px;
  }
}


/* ==========================================================
   PDF TOOLS — NAVIGATION-FIRST PASS
   Main application navigation is the visual priority.
   Tool-card design intentionally left alone.
   ========================================================== */


/* ----------------------------------------------------------
   APPLICATION HEADER
   ---------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;

  background: #ffffff;

  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #dfe2e7;

  box-shadow:
    0 1px 0 rgba(20,24,32,.02),
    0 5px 18px rgba(20,24,32,.035);
}


.site-header .header-inner {
  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 36px;
}


/* ----------------------------------------------------------
   BRAND
   ---------------------------------------------------------- */

.site-header .brand {
  display: flex;
  align-items: center;

  gap: 13px;

  flex: 0 0 auto;
}


.site-header .brand-icon {
  width: 46px;
  height: 46px;

  border-radius: 11px;

  box-shadow:
    0 7px 17px rgba(229,34,49,.18);
}


.site-header .brand-title,
.site-header .brand strong {
  color: #171a21;

  font-size: 20px;
  line-height: 1.05;

  font-weight: 850;

  letter-spacing: -.025em;
}


.site-header .brand-subtitle,
.site-header .brand small {
  margin-top: 4px;

  color: #737a87;

  font-size: 11px;
  line-height: 1.2;
}


/* ----------------------------------------------------------
   MAIN DESKTOP MENU

   No icons.
   Larger type.
   Clear spacing.
   Obvious interaction.
   ---------------------------------------------------------- */

.desktop-nav {
  display: flex;
  align-items: center;

  gap: 3px;

  margin-left: auto;
}


.desktop-nav button {
  position: relative;

  min-height: 48px;

  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #252a34;

  font-family: inherit;
  font-size: 15px;
  line-height: 1;

  font-weight: 750;

  letter-spacing: -.015em;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color .15s ease,
    background .15s ease;
}


.desktop-nav button:hover {
  color: #df1f2e;

  background: #fff2f3;
}


/* Selected category */
.desktop-nav button.active {
  color: #df1f2e;
  background: #fff2f3;
}


.desktop-nav button.active::after {
  content: "";

  position: absolute;

  left: 17px;
  right: 17px;
  bottom: 4px;

  height: 3px;

  border-radius: 4px;

  background: #e52231;
}


/* ----------------------------------------------------------
   ALL TOOLS

   Strongest menu entry, but still part of the navigation.
   ---------------------------------------------------------- */

.desktop-nav button[data-filter="all"] {
  margin-right: 5px;

  padding-left: 20px;
  padding-right: 20px;

  background: #e52231;

  color: #ffffff;

  font-weight: 800;

  box-shadow:
    0 5px 13px rgba(229,34,49,.16);
}


.desktop-nav button[data-filter="all"]:hover,
.desktop-nav button[data-filter="all"].active {
  background: #ca1927;

  color: #ffffff;
}


.desktop-nav button[data-filter="all"]::after {
  display: none;
}


/* ----------------------------------------------------------
   TOOL CATEGORY CONTROLS

   These should feel related to the main menu rather than
   looking like tiny decorative pills.
   ---------------------------------------------------------- */

.category-pills {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;
}


.category-pills button {
  min-height: 42px;

  padding: 0 19px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border: 1px solid #d5d9df;
  border-radius: 8px;

  color: #303640;

  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition:
    color .15s ease,
    border-color .15s ease,
    background .15s ease;
}


.category-pills button:hover {
  color: #df1f2e;

  border-color: #ee9ba4;

  background: #fff4f5;
}


.category-pills button.active {
  color: #ffffff;

  border-color: #e52231;

  background: #e52231;

  box-shadow:
    0 5px 13px rgba(229,34,49,.14);
}


/* ----------------------------------------------------------
   POPULAR SHORTCUTS

   Keep them secondary to the main navigation.
   ---------------------------------------------------------- */

.popular-inner button {
  color: #333944;

  font-size: 13px;
  font-weight: 700;
}


.popular-inner button:hover {
  color: #df1f2e;

  border-color: #eca1a8;

  background: #fff4f5;
}


/* ----------------------------------------------------------
   HERO

   Slightly less vertical dominance.
   Navigation + tools should remain visually important.
   ---------------------------------------------------------- */

.hero-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}


/* ----------------------------------------------------------
   RESPONSIVE NAVIGATION
   ---------------------------------------------------------- */

@media (max-width: 1050px) {

  .desktop-nav button {
    padding-left: 11px;
    padding-right: 11px;

    font-size: 14px;
  }

  .desktop-nav button[data-filter="all"] {
    padding-left: 15px;
    padding-right: 15px;
  }

}


@media (max-width: 900px) {

  .site-header .header-inner {
    min-height: 72px;
  }

  .desktop-nav {
    display: none;
  }

}


/* ----------------------------------------------------------
   MOBILE MENU
   ---------------------------------------------------------- */

.mobile-nav button {
  min-height: 48px;

  padding: 0 17px;

  color: #242a34;

  font-size: 15px;
  font-weight: 750;

  border-radius: 7px;
}


.mobile-nav button:hover,
.mobile-nav button.active {
  color: #df1f2e;

  background: #fff2f3;
}



/* ==========================================================
   PDF TOOLS — TYPOGRAPHY PASS
   Stronger, more readable utility-site hierarchy
   ========================================================== */

:root {
  --type-xs: 12px;
  --type-sm: 14px;
  --type-base: 16px;
  --type-md: 18px;
  --type-lg: 20px;
  --type-section: 38px;
}


/* Base reading size */
body {
  font-size: var(--type-base);
  line-height: 1.55;
}


/* ----------------------------------------------------------
   PRODUCT BRAND
   ---------------------------------------------------------- */

.site-header .brand-title,
.site-header .brand strong {
  font-size: 21px;
  font-weight: 850;
}

.site-header .brand-subtitle,
.site-header .brand small {
  font-size: 12px;
  line-height: 1.3;
}


/* ----------------------------------------------------------
   MAIN PDF TOOLS NAVIGATION
   ---------------------------------------------------------- */

.desktop-nav button {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.015em;

  padding-left: 18px;
  padding-right: 18px;
}

.desktop-nav button[data-filter="all"] {
  font-size: 17px;
  font-weight: 800;
}


/* ----------------------------------------------------------
   HERO
   Keep headline dominant, improve supporting copy.
   ---------------------------------------------------------- */

.hero-copy > p {
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
}

.hero-points {
  font-size: 15px;
}

.hero-upload h2,
.hero-upload h3 {
  font-size: 20px;
  font-weight: 800;
}

.hero-upload p {
  font-size: 15px;
  line-height: 1.55;
}

.hero-upload button {
  font-size: 16px;
  font-weight: 800;
}


/* ----------------------------------------------------------
   POPULAR SHORTCUTS
   ---------------------------------------------------------- */

.popular-label {
  font-size: 12px;
  font-weight: 850;
}

.popular-inner button {
  font-size: 15px;
  font-weight: 750;
}


/* ----------------------------------------------------------
   TOOLBOX HEADING
   ---------------------------------------------------------- */

.tools-section .section-heading h2,
.tools-section h2 {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.tools-section .section-heading p,
.tools-section > div > p {
  font-size: 16px;
  line-height: 1.6;
}


/* ----------------------------------------------------------
   CATEGORY NAVIGATION
   ---------------------------------------------------------- */

.category-pills button {
  font-size: 16px;
  font-weight: 750;

  min-height: 44px;

  padding-left: 20px;
  padding-right: 20px;
}


/* ----------------------------------------------------------
   TOOL CARDS
   ---------------------------------------------------------- */

.tool-card .tool-name {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.tool-card .tool-description {
  font-size: 15px;
  line-height: 1.55;
}

.tool-card .tool-privacy {
  font-size: 11px;
  line-height: 1.3;
}


/* Give larger typography enough room */
.tool-card {
  min-height: 220px;
}


/* ----------------------------------------------------------
   GENERAL BUTTONS / WORKSPACE
   ---------------------------------------------------------- */

.primary-button,
.process-button,
button.process-button {
  font-size: 16px;
  font-weight: 800;
}

.tool-workspace button,
.workspace-panel button,
.tool-modal button {
  font-size: 15px;
}

.tool-workspace input,
.tool-workspace select,
.tool-workspace textarea,
.workspace-panel input,
.workspace-panel select,
.workspace-panel textarea {
  font-size: 16px;
}


/* ----------------------------------------------------------
   SUPPORTING SECTIONS
   ---------------------------------------------------------- */

.feature-card h3,
.benefit-card h3 {
  font-size: 19px;
  line-height: 1.3;
}

.feature-card p,
.benefit-card p {
  font-size: 15px;
  line-height: 1.6;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .mobile-nav button {
    font-size: 16px;
  }

  .tools-section .section-heading h2,
  .tools-section h2 {
    font-size: 34px;
  }

}


@media (max-width: 700px) {

  body {
    font-size: 15px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .category-pills button {
    font-size: 15px;
  }

  .tool-card {
    min-height: 205px;
  }

  .tool-card .tool-name {
    font-size: 18px;
  }

  .tool-card .tool-description {
    font-size: 14px;
  }

}

/* ==========================================================
   PDF TOOLS — FINAL APP NAVIGATION
   Keep this navigation visually dominant inside the app.
   ========================================================== */

.site-header .header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header .brand {
    font-size: 21px;
    font-weight: 800;
    color: #171a22;
}

.site-header .brand strong {
    font-size: 21px;
    font-weight: 800;
    color: #171a22;
}

.site-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .desktop-nav button {
    border: 0;
    background: transparent;
    color: #252833;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 15px 18px;
    border-radius: 9px;
    cursor: pointer;
}

/* Active/default All Tools */
.site-header .desktop-nav button[data-filter="all"] {
    background: #e92032;
    color: #fff;
    box-shadow: 0 7px 16px rgba(233, 32, 50, 0.18);
}

.site-header .desktop-nav button:hover {
    background: #fff0f2;
    color: #e92032;
}

.site-header .desktop-nav button[data-filter="all"]:hover {
    background: #d91d2e;
    color: #fff;
}

