:root {
  --bg: #f8f9fc;
  --card: #fff;
  --ink: #22283e;
  --muted: #60677b;
  --line: #e1e4ee;
  --brand: #5546bb;
  --brand-soft: #f0edfc;
  --radius: 14px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--brand);
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 34px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
p {
  color: var(--muted);
}
.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 28px;
}
.top {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 760;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -1px;
}
.logo-mark {
  background: var(--brand);
  color: white;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  text-align: center;
  font-size: 26px;
  line-height: 30px;
}
.beta-free {
  font-size: 9px;
  letter-spacing: 1.2px;
  margin-left: 12px;
  color: var(--muted);
  font-weight: 600;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
.link-button {
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 11px 18px;
  font-size: 14px;
}
.btn.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn:hover {
  filter: brightness(0.96);
  box-shadow: 0 2px 8px #23214412;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.btn.large {
  padding: 14px 30px;
}
.btn.small {
  padding: 7px 12px;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--brand);
  margin-bottom: 17px;
}
.hero {
  padding-top: 58px;
  padding-bottom: 48px;
  text-align: center;
}
.hero h1 {
  font-size: 64px;
  letter-spacing: -3px;
  line-height: 1.07;
  margin: 0 0 22px;
  font-weight: 740;
}
.hero h1 span {
  color: var(--brand);
}
.lead {
  font-size: 17px;
  line-height: 1.65;
}
.trust {
  display: flex;
  justify-content: center;
  gap: 25px;
  color: #6b7182;
  font-size: 11px;
  margin: 22px 0 32px;
}
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: auto;
  text-align: left;
}
.input-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  background: white;
  box-shadow: 0 5px 22px #1e214205;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.card-top h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0;
}
.card-top .link-button {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  padding: 0;
}
.version-number {
  font-size: 10px;
  font-weight: 700;
  background: #f0f1f5;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--muted);
}
.version-number.revised {
  background: var(--brand-soft);
  color: var(--brand);
}
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px dashed #c9ccdc;
  border-radius: 9px;
  background: #fbfbfe;
  min-height: 178px;
  padding: 17px;
  cursor: pointer;
  gap: 4px;
}
.drop.over {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.drop strong {
  font-size: 13px;
  font-weight: 600;
}
.drop > span:not(.file-icon):not(.choose) {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.file-icon {
  font-size: 27px;
  color: #8e88b1;
  line-height: 1;
  margin: 4px 0 9px;
}
.choose {
  font-size: 11px;
  color: var(--brand);
  font-weight: 650;
  margin-top: 8px;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.drop:focus-within {
  outline: 3px solid #9687ec;
  outline-offset: 2px;
}
.paste {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.paste textarea {
  width: 100%;
  margin-top: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}
.hero-actions {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.privacy-line {
  font-size: 11px;
  margin: 15px 0 0;
}
.demo-section {
  border-block: 1px solid var(--line);
  padding: 60px 0;
  background: #f0f0f8;
}
.demo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.demo-grid h2 {
  font-size: 34px;
}
.demo-grid p {
  font-size: 14px;
}
.demo-paper {
  background: white;
  border: 1px solid #e0dfeb;
  box-shadow: 0 12px 30px #3028540b;
  border-radius: 9px;
  padding: 28px;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 21px;
}
.paper-top span:last-child {
  color: var(--brand);
  letter-spacing: 1.2px;
  font-size: 8px;
}
.demo-paper h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: 0;
}
.demo-paper p {
  font:
    15px/1.9 Georgia,
    serif;
  color: #303349;
}
.demo-note {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 9px;
  color: var(--muted);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 11px;
}
.delete {
  color: #b52133;
  text-decoration: line-through;
}
.insert {
  color: #174fc4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.move {
  color: #087047;
  text-decoration: underline double;
  text-underline-offset: 3px;
}
.format {
  background: #fff0a5;
}
.section {
  padding-top: 76px;
  padding-bottom: 76px;
}
.three-grid,
.four-grid {
  display: grid;
  gap: 36px;
  margin-top: 35px;
}
.three-grid {
  grid-template-columns: repeat(3, 1fr);
}
.four-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.three-grid p,
.four-grid p {
  font-size: 13px;
}
.step {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding-bottom: 14px;
}
.features {
  background: white;
  border-block: 1px solid var(--line);
}
.feature-icon {
  font-family: Georgia, serif;
  display: block;
  color: var(--brand);
  font-size: 21px;
  height: 48px;
}
.privacy-block {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  max-width: 900px;
}
.privacy-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--brand-soft);
  font-size: 65px;
  color: var(--brand);
  border-radius: 30px;
}
.privacy-block p {
  font-size: 14px;
}
.privacy-block a {
  font-size: 12px;
  text-decoration: none;
}
.pricing {
  background: #f0f0f8;
  border-block: 1px solid var(--line);
  text-align: center;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 790px;
  margin: 34px auto 0;
  text-align: left;
}
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.pro {
  border: 1px solid var(--brand);
}
.price-card p {
  font-size: 12px;
  margin-bottom: 10px;
}
.amount {
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -2px;
}
.amount span {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.price-card ul {
  padding: 0;
  list-style: none;
  font-size: 12px;
  margin: 20px 0 30px;
  flex: 1;
}
.price-card li {
  padding: 6px 0;
}
.price-card li:before {
  content: "✓";
  color: var(--brand);
  margin-right: 10px;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--brand);
  color: white;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 8px;
  letter-spacing: 1px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
}
.faq summary {
  font-weight: 600;
  list-style: none;
}
.faq summary:after {
  content: "+";
  float: right;
  color: var(--brand);
}
.faq details[open] summary:after {
  content: "−";
}
.faq p {
  margin: 14px 0 0;
}
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
footer .logo {
  font-size: 19px;
}
footer p {
  font-size: 11px;
  margin: 0;
}
footer .wrap > div {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
}
footer a {
  text-decoration: none;
  color: var(--muted);
}
#workspace {
  max-width: 1600px;
  margin: auto;
  padding: 28px;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.workspace-head h1 {
  font-size: 22px;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}
.workspace-head .eyebrow {
  margin-bottom: 7px;
}
.workspace-head p {
  font-size: 12px;
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.segmented button {
  border: 0;
  background: white;
  padding: 8px 12px;
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}
.options-menu,
.export-menu {
  position: relative;
}
.export-menu {
  margin-left: auto;
}
.toolbar summary {
  list-style: none;
}
.popover {
  position: absolute;
  top: 42px;
  left: 0;
  width: 245px;
  background: white;
  box-shadow: 0 10px 30px #1c254a20;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  z-index: 10;
}
.export-menu .popover {
  left: auto;
  right: 0;
}
.popover label,
.popover button {
  display: block;
  padding: 9px 7px;
  font-size: 12px;
  border: 0;
  background: white;
  text-align: left;
  width: 100%;
}
.popover button:hover {
  background: var(--brand-soft);
}
.pro-label {
  font-size: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.review-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.changes-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}
.changes-header {
  padding: 16px;
  background: white;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.changes-header h2 {
  font-size: 17px;
  margin-bottom: 13px;
}
.changes-header select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafbfe;
  padding: 7px;
  border-radius: 6px;
  font-size: 12px;
}
.change-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.change-navigation button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 30px;
  height: 28px;
}
.change-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
}
.change-item:hover,
.change-item.selected {
  background: var(--brand-soft);
}
.change-kind {
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.change-item strong {
  font-size: 12px;
}
.change-preview {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.keyboard-hint {
  font-size: 9px;
  padding: 12px;
  margin: 0;
}
.review-main > .legend {
  padding: 4px 0 15px;
}
#document {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 55px;
  box-shadow: 0 8px 20px #2a2b3a06;
}
.document-row {
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 12px;
  scroll-margin-top: 90px;
}
.document-row.changed {
  border-left-color: #e5e0f8;
}
.document-row.active {
  background: #f6f3ff;
  border-left-color: var(--brand);
}
.document-row p {
  font:
    15px/1.85 Georgia,
    serif;
  color: #2b3143;
  margin: 0 0 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.document-row.heading p {
  font-weight: 700;
  font-size: 18px;
  margin-top: 25px;
}
.change-anchor {
  position: absolute;
  top: 0;
}
.cell-label {
  font-size: 9px;
  color: var(--muted);
}
.table-cell {
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.table-cell p {
  margin: 0;
}
.aligned-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.side-pane {
  min-width: 0;
}
.side-pane.new {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.side-by-side {
  padding: 25px !important;
}
.empty {
  padding: 16px;
  font-size: 12px;
}
dialog {
  max-width: 540px;
  width: calc(100% - 32px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 25px 80px #14162640;
}
dialog::backdrop {
  background: #14162677;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 28px;
}
dialog p {
  font-size: 13px;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--muted);
}
dialog label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 8px;
}
dialog input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin: 8px 0 15px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.checkout-links {
  display: flex;
  gap: 10px;
}
#error {
  background: #fff0f0;
  color: #a22332;
  border: 1px solid #efb9c0;
  margin: 18px auto;
  padding: 15px 20px;
  max-width: 1000px;
  border-radius: 8px;
}
#progress {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px #10132933;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  max-width: calc(100% - 24px);
  width: max-content;
}
.spinner {
  border: 2px solid #ffffff55;
  border-top-color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  display: block;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid #9b8aec;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .beta-free {
    display: none;
  }
  .four-grid {
    grid-template-columns: 1fr 1fr;
  }
  .review-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  #document {
    padding: 22px;
  }
  .demo-grid {
    gap: 28px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .faq {
    gap: 25px;
  }
  .workspace-head h1 {
    font-size: 18px;
  }
}
@media (max-width: 580px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .top-inner {
    height: 64px;
  }
  .logo {
    font-size: 20px;
  }
  nav {
    gap: 14px;
  }
  nav > a:first-child {
    display: none;
  }
  nav a,
  nav button {
    font-size: 11px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .lead {
    font-size: 14px;
  }
  .desktop {
    display: none;
  }
  .trust {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 9px;
    margin: 20px 0;
  }
  .input-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .drop {
    min-height: 140px;
  }
  .input-card {
    padding: 13px;
  }
  .file-icon {
    margin: 0;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .privacy-line {
    font-size: 10px;
  }
  .demo-grid,
  .three-grid,
  .price-grid,
  .faq {
    grid-template-columns: 1fr;
  }
  .demo-section {
    padding: 36px 0;
  }
  .demo-paper {
    padding: 20px;
  }
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  h2,
  .demo-grid h2 {
    font-size: 29px;
  }
  .three-grid {
    gap: 16px;
  }
  .four-grid {
    gap: 20px;
  }
  .four-grid h3 {
    font-size: 16px;
  }
  .privacy-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .privacy-symbol {
    height: 70px;
    width: 70px;
    font-size: 45px;
    border-radius: 18px;
  }
  .price-grid {
    gap: 30px;
  }
  .faq {
    gap: 5px;
  }
  footer .wrap {
    gap: 12px;
  }
  footer .wrap > div {
    margin-left: 0;
    flex-wrap: wrap;
  }
  #workspace {
    padding: 16px 10px;
  }
  .workspace-head {
    align-items: flex-start;
  }
  .workspace-head .btn {
    font-size: 10px;
    padding: 7px;
    white-space: nowrap;
  }
  .toolbar {
    gap: 5px;
    flex-wrap: wrap;
  }
  .segmented button {
    padding: 7px;
    font-size: 11px;
  }
  .toolbar .btn {
    font-size: 11px;
    padding: 6px 8px;
  }
  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .changes-panel {
    position: static;
    max-height: 240px;
  }
  .changes-header {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .changes-header h2 {
    font-size: 14px;
    margin: 4px 0;
  }
  .change-navigation {
    grid-column: 1/-1;
    margin: 0;
  }
  .change-item {
    padding: 10px 13px;
  }
  .keyboard-hint {
    display: none;
  }
  #document {
    padding: 20px 12px;
  }
  .document-row p {
    font-size: 14px;
  }
  .aligned-columns {
    gap: 8px;
  }
  .side-pane.new {
    padding-left: 8px;
  }
  .side-by-side .document-row p {
    font-size: 12px;
  }
  .side-by-side {
    padding: 10px !important;
  }
  .popover {
    width: 220px;
  }
  .options-menu .popover {
    left: -80px;
  }
  dialog {
    padding: 28px 22px;
  }
  .checkout-links {
    flex-wrap: wrap;
  }
  #progress {
    font-size: 11px;
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .spinner {
    animation: none;
  }
}
.table-grid {
  display: grid;
  margin: 14px 0 24px;
}
.table-grid .document-row {
  min-width: 0;
}
.table-grid p {
  font-size: 13px;
}
.table-grid .cell-label {
  font-size: 8px;
}
.delete + .insert {
  margin-left: 0.18em;
}

.comparison-notice {
  margin: 12px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: #f3f0ff;
  font-weight: 600;
}
