 :root {
  --ink: #27213b;
  --muted: #77718b;
  --purple: #7655d9;
  --purple-dark: #5d3fc2;
  --lavender: #f1edff;
  --line: #ece8f5;
  --white: #fff;
  --shadow: 0 18px 50px rgba(65, 45, 120, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.site-header {
  height: 78px;
  padding: 0 max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2eff8;
  background: rgba(255, 255, 255, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  font-family: Manrope, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, #a78bfa, #704bd0);
  color: white;
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #716b83;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--purple);
}

.main-nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid #ded5fb;
  border-radius: 12px;
  color: var(--purple);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
}

/* HOME HERO */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 92px max(8vw, 30px);
  display: flex;
  align-items: center;
  background: linear-gradient(
    115deg,
    #fbfaff 0%,
    #f4f0ff 55%,
    #fff 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b7cf0;
  box-shadow: 0 0 0 5px #e9e0ff;
}

.hero h1,
.page-intro h1 {
  font: 800 clamp(42px, 5.3vw, 66px)/1.12 Manrope, sans-serif;
  letter-spacing: -3px;
  margin: 20px 0;
}

.hero h1 span,
.page-intro h1 span,
.section-heading h2 span {
  color: var(--purple);
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  padding: 14px 21px;
  font: 700 14px "DM Sans", sans-serif;
  cursor: pointer;
}

.button-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 10px 22px #7655d933;
}

.button-primary:hover {
  background: var(--purple-dark);
}

.hero-note {
  font-size: 12px;
  color: #928ba2;
}

/* HERO ART */

.hero-art {
  position: absolute;
  right: 10%;
  top: 70px;
  width: 390px;
  height: 360px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 290px;
  height: 290px;
  background: #e5dcff;
  right: 15px;
  top: 25px;
}

.orb-two {
  width: 190px;
  height: 190px;
  background: #d9e7ff;
  right: 170px;
  top: 145px;
  opacity: .7;
}

.doc-card {
  position: absolute;
  width: 175px;
  height: 220px;
  background: #fff;
  border: 1px solid #eee9fa;
  border-radius: 17px;
  box-shadow: 0 25px 55px #58429b22;
  padding: 25px;
}

.doc-back {
  right: 25px;
  top: 30px;
  transform: rotate(10deg);
}

.doc-front {
  right: 145px;
  top: 95px;
  transform: rotate(-8deg);
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  background: #ffe5eb;
  color: #df6383;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 22px;
}

.doc-icon.word {
  background: #e4edff;
  color: #4775d1;
}

.doc-card i {
  display: block;
  height: 6px;
  background: #eeeaf6;
  border-radius: 5px;
  margin: 10px 0;
  width: 100%;
}

.doc-card i:nth-of-type(2) {
  width: 80%;
}

.doc-card i:nth-of-type(3) {
  width: 60%;
}

.doc-check {
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #8c6be7;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 8px 20px #7655d955;
}

.float-tag {
  position: absolute;
  right: 0;
  bottom: 30px;
  background: white;
  border: 1px solid #eee8fb;
  padding: 11px 17px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 12px;
  color: #7960c7;
}

/* GENERAL SECTIONS */

.section {
  padding: 85px max(8vw, 30px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.section-heading h2 {
  font: 800 36px/1.2 Manrope, sans-serif;
  margin: 12px 0 0;
  letter-spacing: -1.5px;
}

.text-link {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
}

/* TOOL CARDS */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.tool-card {
  position: relative;
  padding: 25px 22px 27px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  min-height: 185px;
  transition: .2s;
  box-shadow: 0 3px 15px #3c2c6805;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d8cdfa;
}

.tool-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 19px;
}

.purple {
  background: #f0eaff;
  color: #7957d6;
}

.blue {
  background: #e9f0ff;
  color: #4c75cb;
}

.pink {
  background: #fff0f4;
  color: #d65e87;
}

.orange {
  background: #fff1e5;
  color: #d98640;
}

.green {
  background: #e8f7f0;
  color: #32956b;
}

.yellow {
  background: #fff7df;
  color: #c49a28;
}

.lavender {
  background: #f0edff;
  color: #7963cf;
}

.tool-card h3 {
  font: 800 16px Manrope, sans-serif;
  margin: 0 0 7px;
}

.tool-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 220px;
}

.card-arrow {
  position: absolute;
  right: 20px;
  top: 22px;
  color: #b4a8d6;
}

/* TRUST STRIP */

.trust-strip {
  padding: 30px max(8vw, 30px);
  background: #faf9fd;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.trust-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-strip strong {
  font: 800 14px Manrope, sans-serif;
}

.trust-strip span {
  font-size: 12px;
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  padding: 30px max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.site-footer > span,
.site-footer small {
  font-size: 11px;
  color: #918ba0;
}

.site-footer div {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #716b83;
}

/* GENERAL CONTENT PAGES */

.page-main {
  max-width: 1120px;
  margin: auto;
  padding: 70px 28px 100px;
  min-height: 65vh;
}

.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.page-intro h1 {
  font-size: 48px;
  margin: 15px 0;
}

.page-intro p {
  color: var(--muted);
}

.content-panel {
  max-width: 800px;
  margin: 0 auto 80px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 35px #3c2c6808;
}

.content-panel h2 {
  font: 800 20px Manrope, sans-serif;
}

.content-panel p,
.content-panel li {
  color: #706a80;
  font-size: 14px;
}

.content-panel a {
  color: var(--purple);
}

/* TOOL PAGE LAYOUT */

.tool-layout {
  width: 100%;
  max-width: 1160px;
  margin: 55px auto 90px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: 28px;
}

.tool-panel,
.preview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 35px #3c2c6808;
}

.tool-panel h1 {
  font: 800 30px Manrope, sans-serif;
  margin: 0 0 8px;
  letter-spacing: -1px;
}

.tool-subtitle {
  color: var(--muted);
  margin: 0 0 25px;
  font-size: 13px;
}

/* UPLOAD AREA */

.dropzone {
  border: 1.5px dashed #cfc3f2;
  border-radius: 16px;
  background: #fbfaff;
  padding: 32px 18px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}

.dropzone:hover,
.dropzone.dragover {
  background: #f0eaff;
  border-color: var(--purple);
}

.upload-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eee8ff;
  border-radius: 15px;
  color: var(--purple);
  font-size: 23px;
  margin: 0 auto 12px;
}

.dropzone strong {
  display: block;
  font-size: 14px;
}

.dropzone span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.dropzone input {
  display: none;
}

/* SELECTED FILES */

.file-list {
  margin: 15px 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin: 8px 0;
  font-size: 12px;
  gap: 10px;
}

.file-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

.file-info strong {
  font-size: 12px;
}

.file-item small {
  color: var(--muted);
}

.remove-file {
  flex-shrink: 0;
  border: 0;
  background: #f7f4fc;
  color: #8b6bd7;
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
}

.remove-file:hover {
  background: #eee8ff;
}

/* SETTINGS */

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 18px 0;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #625b76;
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e6e1ef;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: 13px "DM Sans", sans-serif;
  outline: none;
}

.field select:focus,
.field input:focus {
  border-color: #a48ce7;
  box-shadow: 0 0 0 3px #7655d91a;
}

.field.full,
.field-full {
  grid-column: 1 / -1;
}

.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0;
}

.privacy-hint {
  margin-top: 22px;
  line-height: 1.7;
}

/* CONVERT BUTTON */

.convert-button {
  width: 100%;
  margin-top: 14px;
}

.convert-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* STATUS MESSAGES */

.status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
  overflow-wrap: anywhere;
}

.status.show {
  display: block;
}

.status.error {
  background: #fff0f0;
  color: #a53f4b;
}

.status.success {
  background: #eef9f2;
  color: #28754b;
}

.status.info {
  background: #f2efff;
  color: #6547b8;
}

/* PREVIEW PANEL */

.preview-panel {
  background: #faf9fd;
  min-height: 500px;
}

.preview-heading h2 {
  font: 800 19px Manrope, sans-serif;
  margin: 8px 0 5px;
  letter-spacing: -.4px;
}

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

.preview-content {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #eee9f7;
  border-radius: 14px;
  background: #fff;
}

/* EMPTY PREVIEW */

.preview-placeholder {
  width: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 25px;
  text-align: center;
  color: #aaa2ba;
  background: #fdfcff;
  border: 1px dashed #ded7ef;
  border-radius: 10px;
}

.preview-empty-icon {
  width: 58px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0eaff;
  color: var(--purple);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 7px;
}

.preview-placeholder strong {
  color: #716987;
  font-size: 13px;
}

.preview-placeholder span {
  max-width: 260px;
  font-size: 11px;
  line-height: 1.6;
}

/* PDF IFRAME */

.preview-frame {
  display: block;
  width: 100%;
  height: 500px;
  margin: 0;
  border: 1px solid #e8e3f1;
  border-radius: 10px;
  background: white;
}

/*
  Important:
  These rules make sure the hidden attribute works
  even when the elements have their own display styles.
*/

.preview-frame[hidden],
.preview-placeholder[hidden] {
  display: none !important;
}

/* RESPONSIVE TABLET */

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

  .hero-art {
    right: -70px;
    opacity: .55;
  }

  .hero-content {
    max-width: 550px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .preview-panel {
    min-height: 300px;
  }

  .preview-placeholder {
    min-height: 350px;
  }

  .preview-frame {
    height: 430px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 620px) {
  .site-header {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 18px 24px;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding: 70px 25px;
    min-height: 480px;
  }

  .hero-art {
    right: -190px;
    top: 160px;
    opacity: .24;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 60px 22px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 30px;
  }

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

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

  .trust-strip {
    padding: 25px;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    flex-wrap: wrap;
  }

  .page-main {
    padding: 50px 20px;
  }

  .page-intro h1 {
    font-size: 37px;
  }

  .tool-layout {
    padding: 0 15px;
    margin: 35px auto 60px;
  }

  .tool-panel,
  .preview-panel {
    padding: 20px;
  }

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

  .field.full,
  .field-full {
    grid-column: auto;
  }

  .preview-content {
    padding: 8px;
  }

  .preview-placeholder {
    min-height: 300px;
    padding: 15px;
  }

  .preview-frame {
    height: 380px;
  }
}

/* IMAGES TO PDF SETTINGS AND PREVIEW */

.image-settings {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.image-settings h2 {
  margin: 0 0 12px;
  font: 800 16px Manrope, sans-serif;
}

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

.file-thumbnail {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #faf9fd;
}

.order-file {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f4fc;
  color: var(--purple);
  font-size: 17px;
  cursor: pointer;
}

.order-file:hover:not(:disabled) {
  background: #eee8ff;
}

.order-file:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.images-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.image-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.image-preview-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 8px;
  background: #f8f7fb;
}

.image-preview-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.image-preview-caption strong {
  color: var(--purple);
  font-size: 11px;
}

.image-preview-caption span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.images-preview .preview-placeholder {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .images-preview {
    grid-template-columns: 1fr;
  }

  .image-preview-card img {
    height: 220px;
  }

  .file-item {
    flex-wrap: wrap;
  }

  .file-actions {
    margin-left: auto;
  }
}

/* HOMEPAGE VIDEO — isolated styles; does not affect existing components */
.home-video-section {
  padding: 78px max(8vw, 30px);
  background: linear-gradient(180deg, #fff 0%, #faf8ff 48%, #f4efff 100%);
}

.home-video-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.home-video-heading {
  max-width: 650px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-video-heading h2 {
  margin: 10px 0 12px;
  color: #302044;
  font: 800 clamp(28px, 3.8vw, 40px)/1.2 Manrope, sans-serif;
  letter-spacing: -1.3px;
}

.home-video-heading h2 span {
  color: #7041c5;
}

.home-video-heading p {
  margin: 0;
  color: #797187;
  font-size: 14px;
  line-height: 1.8;
}

.home-video-frame {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #e6dcf8;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #eee6ff);
  box-shadow: 0 20px 48px rgba(65, 35, 120, .14), 0 0 28px rgba(137, 95, 214, .10);
}

.home-video {
  display: block;
  width: 100%;
  max-height: 470px;
  height: auto;
  margin: 0 auto;
  border-radius: 15px;
  background: #21143a;
  object-fit: contain;
}

@media (max-width: 620px) {
  .home-video-section {
    padding: 58px 20px;
  }

  .home-video-frame {
    padding: 5px;
    border-radius: 16px;
  }

  .home-video {
    border-radius: 11px;
  }
}

