/* PDF to Word Converter — site design system
   Brand from app icon: PDF red, DOC blue, orange arrows, soft light ground. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6B84;
  --line: #E2E8F0;
  --red: #E5484D;
  --red-deep: #C0393E;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-soft: #EAF1FF;
  --orange: #F59E0B;
  --green: #16A34A;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 40px -16px rgba(37, 99, 235, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 8px 16px;
  border-radius: 999px; font-size: 14px !important; white-space: nowrap;
}
.nav-cta:hover { background: #000; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; padding: 4px 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  background:
    radial-gradient(56rem 30rem at 12% -8%, rgba(229, 72, 77, .10), transparent 60%),
    radial-gradient(56rem 32rem at 88% -10%, rgba(37, 99, 235, .12), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; display: flex; align-items: center; gap: 7px;
}
.badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* badges on one line, supporting note beneath — otherwise the note's length pushes the
   second badge onto its own row */
.store-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-row--center { align-items: center; text-align: center; }
.store-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.appstore-btn, .googleplay-btn { display: inline-flex; transition: transform .15s ease; }
.appstore-btn:hover, .googleplay-btn:hover { transform: translateY(-2px); }
.appstore-btn img { height: 52px; width: auto; }
/* The official Play badge bakes in transparent padding — the black pill is only 67% of
   the image height. Rendering at 77px makes that pill 52px, matching the App Store badge;
   the negative margin absorbs the leftover transparent space so rows stay tight. */
.googleplay-btn img { height: 77px; width: auto; margin: -12px 0; }
.store-note { font-size: 13px; color: var(--muted); }

/* ---------- tool widget ---------- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: 22px;
}
.tool-card h2, .tool-card .tool-title { font-size: 19px; margin: 0 0 4px; }
.tool-card .tool-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.dropzone {
  border: 2px dashed #B9C6DB;
  border-radius: 14px;
  background: var(--blue-soft);
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue); }
.dropzone.dragover { border-color: var(--blue); background: #DFEAFF; transform: scale(1.01); }
.dropzone .dz-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.dropzone .dz-main { font-weight: 700; font-size: 16.5px; }
.dropzone .dz-hint { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.dropzone input[type="file"] { display: none; }
.dz-btn {
  display: inline-block; margin-top: 14px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 22px; border-radius: 10px; border: 0; cursor: pointer;
}
.dropzone:hover .dz-btn { background: var(--blue-deep); }

.tool-options { margin-top: 14px; display: none; }
.tool-options label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 6px; }
.tool-options input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fff;
}
.tool-options .opt-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.file-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.file-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 14px;
}
.file-list .f-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .f-size { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.file-list .f-remove { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 4px; }
.file-list .f-remove:hover { color: var(--red); }

.convert-btn {
  width: 100%; margin-top: 14px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff; font-weight: 700; font-size: 16.5px; font-family: var(--font);
  padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.convert-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.convert-btn:disabled { opacity: .55; cursor: not-allowed; }
.tool--blue .convert-btn { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }

.progress { margin-top: 14px; display: none; }
.progress .bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress .fill {
  height: 100%; width: 8%; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width .25s ease;
}
.progress .p-label { font-size: 13.5px; color: var(--muted); margin-top: 7px; text-align: center; }

.tool-error {
  display: none; margin-top: 14px; padding: 12px 14px;
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  border-radius: 10px; font-size: 14px;
}
.tool-result { display: none; margin-top: 14px; text-align: center; }
.result-ok {
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 18px;
}
.result-ok .r-title { font-weight: 700; color: #14532D; margin-bottom: 10px; font-size: 15.5px; }
.download-btn {
  display: inline-block;
  background: var(--green); color: #fff !important; font-weight: 700; font-size: 16px;
  padding: 12px 26px; border-radius: 12px;
}
.download-btn:hover { background: #12813C; text-decoration: none; }
.again-btn { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; text-decoration: underline; font-family: var(--font); }
.privacy-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.privacy-note strong { color: var(--green); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.step .n {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* tools grid */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-link {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #C7D6F5; }
.tool-link .t-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px; background: var(--blue-soft);
}
.tool-link.red .t-icon { background: #FDEBEC; }
.tool-link h3 { margin: 0 0 4px; font-size: 16.5px; }
.tool-link p { margin: 0; color: var(--muted); font-size: 13.8px; }

/* screenshots */
.shots { background: linear-gradient(180deg, #FFF 0%, var(--bg) 100%); }
.shots-row {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots-row img {
  height: 460px; width: auto; border-radius: 22px; flex: 0 0 auto;
  scroll-snap-align: center; box-shadow: var(--shadow-lift); border: 1px solid var(--line);
}

/* download card */
.download-card {
  display: flex; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 34px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto;
}
.download-card .d-icon { width: 112px; height: 112px; border-radius: 24px; flex: 0 0 auto; box-shadow: var(--shadow); }
.download-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.download-card .d-meta { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.download-card .d-desc { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.download-card .d-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.download-card .d-more { font-size: 14.5px; font-weight: 600; }
@media (max-width: 640px) {
  .download-card { flex-direction: column; text-align: center; padding: 26px 20px; gap: 18px; }
  .download-card .d-actions { justify-content: center; }
}

/* guides */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card .g-tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.guide-card h3 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.35; }
.guide-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; flex: 1; }
.guide-card .g-more { font-size: 14px; font-weight: 600; color: var(--blue); }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 18px 20px; font-weight: 650; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--muted); flex: 0 0 auto; transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }
.faq-list .faq-body a { font-weight: 600; }

/* cta band */
.cta-band {
  background: linear-gradient(120deg, #1E3A8A 0%, var(--blue-deep) 55%, var(--red-deep) 130%);
  border-radius: 24px; padding: 52px 40px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta-band p { color: #DBE5FF; margin: 0 0 24px; font-size: 16.5px; }
.cta-band .appstore-btn img { height: 54px; }
/* keep the Play pill matched to the slightly larger App Store badge used in CTA bands */
.cta-band .googleplay-btn img { height: 80px; margin: -13px 0; }
.cta-badges { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-app-link {
  display: inline-block; background: #fff; color: var(--blue-deep) !important;
  font-weight: 700; font-size: 16px; padding: 13px 28px; border-radius: 999px;
  transition: transform .15s ease;
}
.cta-app-link:hover { transform: translateY(-2px); text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); font-size: 14.5px; }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.site-footer .f-brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-footer .f-note { font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- article / guide pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 20px; }
.article h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.article .lede { font-size: 17.5px; color: var(--muted); margin: 0 0 8px; }
.article h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.article h3 { font-size: 18.5px; margin: 28px 0 8px; }
.article p, .article li { font-size: 16px; color: var(--ink-2); }
.article ol, .article ul { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article .tip {
  background: var(--blue-soft); border: 1px solid #C7D6F5; border-radius: 12px;
  padding: 14px 18px; font-size: 15px; color: var(--ink-2); margin: 20px 0;
}
.article .tip strong { color: var(--blue-deep); }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.tool-embed { margin: 28px 0; }

/* related strip on articles */
.related { max-width: 760px; margin: 24px auto 0; padding: 0 20px 40px; }
.related h2 { font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps, .tools-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 20px; gap: 16px; align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .steps, .tools-grid, .guides-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .shots-row img { height: 380px; }
  .cta-band { padding: 40px 22px; }
}
