:root {
  --blue-700: #1b6cf2;
  --blue-800: #1458c7;
  --blue-050: #eef4ff;
  --slate-950: #132033;
  --slate-900: #192638;
  --slate-700: #4f6077;
  --slate-500: #6f8098;
  --slate-300: #c8d3e2;
  --slate-200: #dfe7f2;
  --slate-100: #edf2f8;
  --canvas: #ffffff;
  --canvas-muted: #f7f9fc;
  --success: #198754;
  --warning: #f59f00;
  --shadow-lg: 0 26px 60px rgba(19, 32, 51, 0.12);
  --shadow-md: 0 14px 34px rgba(19, 32, 51, 0.08);
  --shadow-sm: 0 6px 20px rgba(19, 32, 51, 0.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top right, rgba(27, 108, 242, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 24%, #ffffff 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue-800);
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 231, 242, 0.92);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
}

.site-header__inner,
.section__inner,
.site-footer__inner,
.article-shell,
.hero-panel {
  width: var(--container);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-950);
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), #59a4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand__docx {
  color: var(--blue-700);
}

.brand__viewer {
  color: var(--slate-900);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-700);
  background: rgba(27, 108, 242, 0.08);
}

main {
  display: block;
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--canvas-muted);
}

.section--tight {
  padding: 48px 0;
}

.section__header {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--slate-950);
  font-family: "DM Sans", "Inter", sans-serif;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

p,
li,
td,
th {
  color: var(--slate-700);
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.hero-panel {
  padding: 52px 0 36px;
}

.hero-panel__surface {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(223, 231, 242, 0.88);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98)),
    radial-gradient(circle at top left, rgba(27, 108, 242, 0.08), transparent 34%);
  box-shadow: var(--shadow-lg);
}

.hero-panel__surface::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 108, 242, 0.14) 0%, transparent 66%);
  pointer-events: none;
}

.hero-panel__content {
  display: grid;
  gap: 28px;
}

.hero-panel__copy {
  max-width: 760px;
}

.hero-panel__copy p:last-child,
.section__header p:last-child {
  margin-bottom: 0;
}

.subtitle,
.lead {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--slate-700);
}

.button-row,
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button {
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue-700), var(--blue-800));
  box-shadow: 0 12px 26px rgba(27, 108, 242, 0.24);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--blue-700);
  background: rgba(27, 108, 242, 0.1);
}

.button-ghost {
  color: var(--slate-700);
  background: #ffffff;
  border: 1px solid rgba(200, 211, 226, 0.9);
}

.button-ghost:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.tool-card {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(200, 211, 226, 0.88);
  border-radius: calc(var(--radius-xl) - 4px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.tool-dropzone {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 34px 22px;
  border: 2px dashed rgba(27, 108, 242, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(238, 244, 255, 0.68), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top left, rgba(27, 108, 242, 0.08), transparent 38%);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-dropzone:hover,
.tool-dropzone:focus-visible,
.tool-dropzone.is-active {
  border-color: rgba(27, 108, 242, 0.72);
  background:
    linear-gradient(180deg, rgba(227, 238, 255, 0.86), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top left, rgba(27, 108, 242, 0.12), transparent 44%);
  transform: translateY(-1px);
}

.tool-dropzone[aria-busy="true"] {
  opacity: 0.74;
  pointer-events: none;
}

.tool-dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue-700), #3f8dff);
  box-shadow: 0 18px 36px rgba(27, 108, 242, 0.22);
}

.tool-dropzone strong {
  color: var(--slate-950);
  font-size: 1.3rem;
  line-height: 1.25;
}

.tool-dropzone span {
  color: var(--slate-500);
  font-weight: 600;
}

.tool-note,
.tool-helper,
.tool-status {
  font-size: 0.96rem;
}

.tool-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--success);
  font-weight: 700;
}

.tool-helper {
  margin-top: 14px;
  color: var(--slate-500);
}

.tool-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--slate-500);
}

.tool-status.is-error {
  color: #b42318;
}

.tool-status.is-success {
  color: var(--success);
}

.tool-output {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.tool-output[hidden] {
  display: none;
}

.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: 18px;
  background: #ffffff;
}

.tool-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-toolbar__actions .button,
.tool-toolbar__actions .button-secondary,
.tool-toolbar__actions .button-ghost {
  min-height: 44px;
  padding-inline: 14px;
}

.tool-toolbar__meta {
  color: var(--slate-500);
  font-size: 0.94rem;
  font-weight: 600;
}

.tool-toolbar__actions [data-emphasis="primary"] {
  box-shadow: 0 12px 24px rgba(27, 108, 242, 0.2);
}

.viewer-stage {
  overflow: hidden;
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.viewer-stage__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 0;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 159, 0, 0.14);
  color: #8d5b00;
  font-size: 0.9rem;
  font-weight: 700;
}

.word-content {
  min-height: 220px;
  padding: 26px;
  color: var(--slate-900);
  line-height: 1.7;
}

.word-content > :first-child {
  margin-top: 0;
}

.word-content > :last-child {
  margin-bottom: 0;
}

.word-content h1,
.word-content h2,
.word-content h3,
.word-content h4 {
  margin: 1.2em 0 0.5em;
  font-size: 1.25rem;
}

.word-content p,
.word-content li,
.word-content td,
.word-content th {
  color: var(--slate-900);
}

.word-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.word-content table th,
.word-content table td {
  padding: 10px 12px;
  border: 1px solid rgba(200, 211, 226, 0.9);
}

.word-content img {
  height: auto;
  display: block;
  margin: 18px auto;
}

.text-panel {
  padding: 0 16px 16px;
}

.text-panel[hidden] {
  display: none;
}

.text-panel__box {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  color: var(--slate-900);
  background: var(--canvas-muted);
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: 16px;
  resize: vertical;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-pill,
.card,
.step-card,
.faq-item,
.cta-panel,
.list-panel,
.table-wrap,
.screenshot-card {
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.trust-pill svg {
  flex: 0 0 auto;
}

.trust-pill strong,
.card h3,
.step-card h3,
.faq-item h3,
.list-panel h3 {
  color: var(--slate-950);
}

.grid-3,
.grid-2,
.feature-grid,
.blog-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

.grid-3,
.feature-grid,
.related-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step-card,
.list-panel,
.faq-item,
.cta-panel,
.screenshot-card {
  padding: 24px;
}

.card p:last-child,
.step-card p:last-child,
.list-panel p:last-child,
.faq-item p:last-child,
.cta-panel p:last-child {
  margin-bottom: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--blue-700);
  background: rgba(27, 108, 242, 0.12);
  font-family: "DM Sans", "Inter", sans-serif;
  font-weight: 800;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(223, 231, 242, 0.92);
  text-align: left;
}

.comparison-table thead th {
  color: var(--slate-950);
  background: var(--canvas-muted);
}

.table-wrap {
  overflow-x: auto;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item h3 {
  margin-bottom: 10px;
}

.article-shell {
  padding: 52px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 0.94rem;
  font-weight: 600;
}

.breadcrumb a {
  text-decoration: none;
}

.article-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--slate-500);
  font-size: 0.95rem;
  font-weight: 600;
}

.prose {
  display: grid;
  gap: 26px;
}

.prose section {
  padding: 24px;
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
}

.prose section > *:last-child {
  margin-bottom: 0;
}

.callout-list {
  display: grid;
  gap: 16px;
}

.method-card {
  padding: 22px;
  border: 1px solid rgba(223, 231, 242, 0.92);
  border-radius: 18px;
  background: #ffffff;
}

.method-card h3 {
  margin-bottom: 12px;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
}

.site-footer {
  border-top: 1px solid rgba(223, 231, 242, 0.92);
  background: linear-gradient(180deg, #f9fbff, #f4f8fd);
}

.site-footer__inner {
  padding: 44px 0 28px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 108, 242, 0.1);
  transition: background 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(27, 108, 242, 0.2);
}

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

.footer-nav-grid h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-nav-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-700);
  text-decoration: none;
}

.footer-nav-grid a:hover {
  color: var(--blue-700);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(223, 231, 242, 0.92);
  color: var(--slate-500);
  font-size: 0.94rem;
}

.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.screenshot-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-stack {
  display: grid;
  gap: 18px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--slate-500);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .grid-3,
  .feature-grid,
  .blog-grid,
  .related-grid,
  .trust-bar,
  .footer-top,
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    position: static;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-panel__surface {
    padding: 24px;
  }

  .tool-card,
  .word-content {
    padding: 18px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .section,
  .article-shell {
    padding: 56px 0;
  }

  .hero-panel {
    padding: 32px 0 20px;
  }

  .site-nav a {
    padding-inline: 12px;
  }

  .tool-toolbar {
    padding: 12px;
  }

  .tool-toolbar__actions {
    width: 100%;
  }

  .tool-toolbar__actions .button,
  .tool-toolbar__actions .button-secondary,
  .tool-toolbar__actions .button-ghost {
    flex: 1 1 100%;
  }

  .card,
  .step-card,
  .list-panel,
  .faq-item,
  .cta-panel,
  .prose section,
  .screenshot-card {
    padding: 18px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .trust-bar,
  .button-row,
  .tool-toolbar,
  .tool-status,
  .tool-helper,
  .tool-note,
  .text-panel {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .viewer-stage,
  .tool-card,
  .hero-panel__surface {
    box-shadow: none;
    border: 0;
  }
}
