@import url("/css/fonts.css");
/* ==============================
   CSS Variables — Candy Brutalism
   ============================== */
:root {
  --yellow: #f5e642;
  --sky-blue: #6dc8f3;
  --pink: #f075c2;
  --mint: #3dd68c;
  --red: #e8302a;
  --amber: #f5a623;
  --cream: #fafae8;
  --light-blue: #d9edf7;
  --blush-pink: #f5c8e8;
  --black: #0d0d0d;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Bricolage Grotesque", sans-serif;

  --border-std: 2px solid #0d0d0d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-hard: 4px 4px 0px #0d0d0d;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==============================
   Reset & Base
   ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
textarea {
  font-family: inherit;
}

.text-pdf-input {
  width: 100%;
  min-height: 220px;
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background: var(--white);
}

/* ==============================
   Shared Layout
   ============================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==============================
   Navbar
   ============================== */
.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 32px;
  min-height: 64px;
  background: var(--white);
  border-bottom: var(--border-std);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.04em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-text {
  line-height: 1;
}

.pipe {
  color: #ccc;
  font-weight: 300;
  font-size: 20px;
}

.tagline {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.nav-end {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  width: 76px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.15;
  flex-direction: column;
}
.nav-link:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

/* ==============================
   Hero
   ============================== */
.hero {
  background: var(--cream);
  padding: 80px 32px 0;
  border-bottom: var(--border-std);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}

.hero-content-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content-bottom {
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--mint);
  border: var(--border-std);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-auto-rows: 1fr;
}

.hero-actions .cta-btn {
  width: 100%;
  height: 100%;
  justify-content: center;
  text-align: center;
}

/* Homepage Hero Image */
.hero-visual {
  position: relative;
}

.homepage-hero-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==============================
   How It Works
   ============================== */
.how-it-works {
  background: var(--white);
  border-bottom: var(--border-std);
  padding: 80px 0;
}

.section-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 48px;
}

.steps-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-card {
  flex: 1;
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 200px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step-body {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.step-arrow {
  font-size: 28px;
  font-weight: 900;
  color: var(--black);
  padding: 0 16px;
  flex-shrink: 0;
}

/* ==============================
   Converter Sections
   ============================== */
.converter-section {
  border-bottom: var(--border-std);
  padding: 80px 0;
}

.converter-header {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.converter-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .converter-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 24px;
  }
  .converter-badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .converter-title {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    width: auto;
  }
  .merge-result-illustration {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

.converter-badge {
  display: inline-block;
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0px;
}

@media (max-width: 767px) {
  .converter-badge {
    margin-bottom: 0px;
  }
  .converter-title {
    margin-bottom: 0px;
  }
}

.converter-desc {
  font-size: 16px;
  color: #444;
  max-width: 560px;
  line-height: 1.6;
}

/* ==============================
   Drop Zone
   ============================== */
.drop-zone {
  will-change: transform;
  background: var(--white);
  border: 2.5px dashed var(--black);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
  background: var(--yellow);
  transform: scale(1.01);
}

.dz-upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.dz-headline {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dz-subtext {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

.dz-browse-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dz-formats {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ==============================
   Options Bar
   ============================== */
.options-bar {
  margin-top: 24px;
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.option-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.opt-pill {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.1s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.opt-pill:hover {
  background: var(--cream);
}
.opt-pill.active {
  background: var(--black);
  color: var(--white);
}

/* Color Pills */
.color-pill-black {
  color: #000;
  border-color: #000;
  font-weight: bold;
}
.color-pill-black.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.color-pill-blue {
  color: #0000ff;
  border-color: #0000ff;
  font-weight: bold;
}
.color-pill-blue.active {
  background: #0000ff;
  color: #fff;
  border-color: #0000ff;
}

.color-pill-red {
  color: #ff0000;
  border-color: #ff0000;
  font-weight: bold;
}
.color-pill-red.active {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.color-pill-green {
  color: #008000;
  border-color: #008000;
  font-weight: bold;
}
.color-pill-green.active {
  background: #008000;
  color: #fff;
  border-color: #008000;
}

.range-input {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  min-width: 200px;
}
.range-input:focus {
  box-shadow: 3px 3px 0 var(--black);
}

.option-group-page-numbering {
  min-width: 260px;
}

.page-number-position-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.position-card {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  width: 110px;
  padding: 8px;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.1s ease;
}

.position-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

.position-card.active {
  background: var(--yellow);
}

.position-preview {
  display: block;
  position: relative;
  width: 100%;
  height: 62px;
  border: 1.5px solid var(--black);
  border-radius: 6px;
  background: var(--cream);
  margin-bottom: 8px;
}

.position-preview::after {
  content: "1";
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: #444;
}

.position-bottom-right::after {
  right: 7px;
  bottom: 5px;
}

.position-top-right::after {
  right: 7px;
  top: 5px;
}

.position-bottom-center::after {
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;
}

.position-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

/* ==============================
   Preview Area
   ============================== */
.preview-area {
  margin-top: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.preview-count {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  flex: 1;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.preview-page-card {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

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

.preview-page-label {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--cream);
  border-top: 1px solid var(--black);
  text-align: center;
}

/* Image reorder grid */
.img-reorder-hint {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.img-thumb-card {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: grab;
  position: relative;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.img-thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}
.img-thumb-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.img-thumb-card.drag-target {
  box-shadow: 0 0 0 3px var(--pink);
}

.img-thumb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.img-thumb-label {
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 600;
  border-top: 1px solid var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--red);
  border: 1.5px solid var(--black);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.img-thumb-num {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--yellow);
  border: 1.5px solid var(--black);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
}

/* ==============================
   Progress
   ============================== */
.progress-area {
  margin-top: 24px;
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 28px;
}

.progress-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.progress-track {
  background: #eee;
  border: var(--border-std);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--mint);
  border-radius: 100px;
  transition: width 0.25s ease;
  width: 0%;
}

/* ==============================
   Results
   ============================== */
.results-area {
  margin-top: 24px;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--mint);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  flex-wrap: wrap;
}

.results-title {
  font-size: 16px;
  font-weight: 800;
  flex: 1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.result-img-card {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.result-img-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}

.result-img-card img {
  width: 100%;
  height: auto;
  display: block;
}

.result-img-actions {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--black);
  background: var(--cream);
}

.result-img-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.result-download-btn {
  background: var(--yellow);
  border: 1.5px solid var(--black);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
  flex-shrink: 0;
}
.result-download-btn.icon-btn {
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--black);
}

.img-result-info {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.reset-btn {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.12s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.reset-btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

/* ==============================
   CTA Buttons
   ============================== */
.cta-btn {
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  text-decoration: none;
  color: var(--black);
  font-family: inherit;
}
.cta-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 var(--black);
}

.cta-yellow {
  background: var(--yellow);
}
.cta-pink {
  background: var(--pink);
}
.cta-mint {
  background: var(--mint);
}
.cta-sky {
  background: var(--sky-blue);
}

/* ==============================
   Trust Section
   ============================== */
.trust-section {
  background: var(--cream);
  padding: 80px 0;
  border-bottom: var(--border-std);
}

.trust-inner {
  text-align: center;
}

.trust-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.trust-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trust-pill {
  background: var(--white);
  border: var(--border-std);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}
.trust-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
  background: var(--sky-blue);
}

/* ==============================
   Footer
   ============================== */
.footer {
  background: var(--black);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0px #0d0d0d;
}

.footer-social-img.img-ig {
  background: #0d0d0d;
  padding: 0px;
  width: 29px;
  height: 29px;
  border-radius: 6px;
}

.footer-social-img.img-gmail {
  background: #ffffff;
  padding: 4px;
  width: 29px;
  height: 29px;
  border-radius: 6px;
}

/* ==============================
   Toast Notifications
   ============================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--black);
  color: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-hard);
  animation: toast-in 0.2s ease;
  pointer-events: auto;
}

.toast.toast-success {
  border-left: 4px solid var(--mint);
}
.toast.toast-error {
  border-left: 4px solid var(--red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1023px) {
  .hero-content-top {
    gap: 20px;
  }
  .hero-inner {
    gap: 32px;
    padding-bottom: 40px;
  }

  .homepage-hero-img {
    max-width: 400px;
  }
  .steps-row {
    flex-direction: column;
    gap: 16px;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .options-bar {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 0 16px;
  }
  .nav-link {
    display: none;
  }
  .section-inner {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 16px 0;
  }
  .hero-badge {
    font-size: 10px;
    padding: 6px 12px;
  }
  .hero-headline {
    font-size: clamp(40px, 10vw, 56px);
  }
  .homepage-hero-img {
    max-width: 150%;
    width: 150%;
    margin-left: -20%;
    transform: translateY(-40px);
  }
  .hero-content-top {
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
  }
  .converter-section,
  .how-it-works,
  .trust-section {
    padding: 48px 0;
  }
  .drop-zone {
    padding: 40px 20px;
  }
  .preview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
  }
  .cta-btn {
    justify-content: center;
  }
}

/* ==============================
   Tools Grid (Homepage)
   ============================== */
.tools-grid-section {
  background: var(--white);
  padding: 80px 0;
  border-bottom: var(--border-std);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.tool-card {
  will-change: transform;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-decoration: none;
  color: var(--black);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tool-card-icon-wrapper {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: var(--black);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card-icon-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tool-card-content {
  flex: 1;
}

.tool-card-arrow {
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.tool-card-arrow img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-card:hover .tool-card-arrow {
  transform: translateX(4px);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
}

.tool-card-badge {
  display: inline-block;
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tool-card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.tool-page-main {
  padding: 80px 0;
  min-height: 70vh;
}

.tool-page-main .section-inner {
  padding-bottom: 72px;
}

@media (max-width: 767px) {
  .tool-page-main .section-inner {
    padding-bottom: 48px;
  }
}

.nav-link[aria-current="page"] {
  background: var(--yellow);
  box-shadow: var(--shadow-hard);
}

/* ==============================
   Tool Page SEO Content Sections
   ============================== */

.tool-content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px;
  border-top: var(--border-std);
}

.tool-content-section + .tool-content-section {
  padding-top: 48px;
}

.tcs-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--black);
}

.tcs-subheadline {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--black);
}

.tcs-body {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.tcs-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.tcs-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tcs-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border: var(--border-std);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcs-step-body {
  padding-top: 4px;
}

.tcs-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tcs-step-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

.tcs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.tcs-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.tcs-use-case-card {
  background: var(--white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.tcs-use-case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}

.tcs-use-case-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.tcs-use-case-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tcs-use-case-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* FAQ */
.tcs-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border-std);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tcs-faq-item {
  border-bottom: var(--border-std);
  background: var(--white);
}
.tcs-faq-item:last-child {
  border-bottom: none;
}

.tcs-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.12s ease;
}
.tcs-faq-q:hover {
  background: var(--cream);
}
.tcs-faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tcs-faq-item.open .tcs-faq-q::after {
  transform: rotate(45deg);
}

.tcs-faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  border-top: 1px solid #eee;
}
.tcs-faq-item.open .tcs-faq-a {
  display: block;
}

/* Privacy callout */
.tcs-privacy-box {
  background: var(--mint);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tcs-privacy-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.tcs-privacy-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tcs-privacy-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 767px) {
  .tool-content-section {
    padding: 48px 16px;
  }
  .tcs-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==============================
   Related Tools Section
   ============================== */
.related-tools-section {
  border-top: var(--border-std);
  background: var(--white);
}

.related-tools-section .tool-content-section {
  border-top: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.12s ease;
}

.footer-link:hover {
  color: var(--yellow);
}

.footer-link[aria-current="page"] {
  color: var(--yellow);
}

@media (max-width: 767px) {
  .footer-links {
    padding: 20px 16px;
  }
}

/* ==============================
   Blog Post Pages
   ============================== */
.blog-post-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px;
}

.blog-post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: var(--border-std);
}

.blog-post-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 16px;
}

.blog-post-body h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--black);
}

.blog-post-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--black);
}

.blog-post-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.blog-post-body a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body a:hover {
  background: var(--yellow);
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-post-body li {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 6px;
}

.blog-cta-box {
  background: var(--yellow);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 48px 0;
}

.blog-cta-box p {
  margin-bottom: 16px;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 767px) {
  .blog-post-main {
    padding: 48px 16px;
  }
}

/* ==============================
   Product Hunt Badge
   ============================== */
.product-hunt-badge {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.product-hunt-badge img {
  width: clamp(140px, 20vw, 250px);
  height: auto;
  display: block;
}

/* ==============================
   Footer Product Hunt Badge
   ============================== */
.footer-ph-badge {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
}
.footer-ph-badge img {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* ==============================
   GitHub Star Button
   ============================== */
.github-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px; /* Pill shape */
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.github-star-btn:hover {
  transform: translateY(-2px);
  background-color: #222222;
}

.github-star-text {
  line-height: 1;
}

.github-star-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .github-star-btn {
    display: none !important;
  }
}

/* Merge PDF Illustration */
.merge-result-illustration {
  display: block;
  width: 100%;
  max-width: 240px; /* Limit size */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .merge-result-illustration {
    margin: 0;
  }
}

.merge-svg-scene {
  overflow: visible;
  display: block;
  width: 100%;
  height: auto;
}

.ambient-scene .anim-shape {
  transform-origin: center;
}

.ambient-scene .anim-float {
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .ambient-scene .shape-circle {
    animation: pulseScale 8s infinite alternate ease-in-out;
  }

  .ambient-scene .shape-blob {
    animation: driftRotate 12s infinite alternate ease-in-out;
    transform-origin: 100px 100px;
  }

  .ambient-scene .shape-triangle {
    animation: floatVertical 6s infinite alternate ease-in-out;
  }

  .ambient-scene .shape-small-circle {
    animation: pulseScale 5s infinite alternate ease-in-out;
  }

  .ambient-scene .float-1 {
    animation:
      floatVertical 4s infinite alternate ease-in-out,
      driftRotate 7s infinite alternate ease-in-out;
  }

  .ambient-scene .float-2 {
    animation:
      floatVertical 5s infinite alternate ease-in-out 1s,
      driftRotate 8s infinite alternate ease-in-out 0.5s;
  }

  .ambient-scene .float-3 {
    animation:
      floatVertical 4.5s infinite alternate ease-in-out 0.5s,
      driftRotate 6s infinite alternate ease-in-out 1s;
  }

  .ambient-scene .float-shield {
    animation:
      floatVertical 6s infinite alternate ease-in-out 2s,
      driftRotate 9s infinite alternate ease-in-out;
  }

  @keyframes floatVertical {
    0% {
      translate: 0px 0px;
    }
    100% {
      translate: 0px -10px;
    }
  }

  @keyframes driftRotate {
    0% {
      rotate: -3deg;
    }
    100% {
      rotate: 3deg;
    }
  }

  @keyframes pulseScale {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.05);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-scene * {
    animation: none !important;
  }
}
