/* getfreepdfeditor.com. The page is a desk covered in the demo invoice's own PDF source
   (pattern.svg, made by site/tools/pattern.py); sections sit on it as white sheets. IBM Plex is
   served from this site; nothing loads from anywhere else. */

@font-face { font-family: "Plex Sans"; src: url("fonts/IBMPlexSans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --desk: #f3f1ec;
  --sheet: #ffffff;
  --text: #17171b;
  --muted: #5a5c63;
  --dim: #8a8c93;
  --line: #e7e4de;
  --line-2: #d8d4cc;
  --accent: #d9442a;
  --accent-hover: #c0391f;
  --on-accent: #ffffff;
  --code: #15161a;
  --code-line: #262830;
  --code-text: #b9bdc6;
  --code-dim: #6c717c;
  --add: #56d364;
  --add-bg: rgba(46, 160, 67, 0.16);
  --del: #ff7b72;
  --del-bg: rgba(248, 81, 73, 0.14);
  --name: #8cc2ff;
  --hex: #e7b75f;
  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--desk);
  min-height: 100vh; display: flex; flex-direction: column;
}
body::before {
  content: ""; position: fixed; z-index: -1; top: -1150px; left: -1600px; width: calc(100vw + 3200px); height: calc(100vh + 2300px);
  background: url("pattern.svg") repeat; animation: drift 360s linear infinite; pointer-events: none;
}
@keyframes drift { to { transform: translate(1600px, 1150px); } }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
::selection { background: rgba(217, 68, 42, 0.2); }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

/* header */
.topbar { background: rgba(243, 241, 236, 0.94); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav .opt { display: none; } }

.button {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font: 600 15.5px/1.2 var(--sans); text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.button:hover { background: var(--accent-hover); }
.button svg { width: 16px; height: 16px; }
.top nav a.button { color: var(--on-accent); padding: 8px 14px; font-size: 14px; }
.fine { font: 13px/1.4 var(--mono); color: var(--dim); }

/* hero: clear paper behind the words, the source pattern around them */
.hero {
  padding-block: 72px 0; text-align: center;
  background: radial-gradient(ellipse 46% 78% at 50% 50%, var(--desk) 45%, transparent 100%);
}
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.hero .lede { margin: 20px auto 0; max-width: 34em; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fine a { color: inherit; }
.note-os { max-width: 30em; font-size: 13.5px; color: var(--dim); }

/* the app window with its tabs */
.tour { margin-top: 56px; padding-bottom: 96px; text-align: center; }
.tour > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 20px; border-radius: 9px; background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs label { flex: none; cursor: pointer; padding: 7px 14px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.tabs label:hover { color: var(--text); }
#t-edit:checked ~ .tabs-row [for="t-edit"], #t-find:checked ~ .tabs-row [for="t-find"], #t-redact:checked ~ .tabs-row [for="t-redact"],
#t-pages:checked ~ .tabs-row [for="t-pages"], #t-sign:checked ~ .tabs-row [for="t-sign"] { background: var(--text); color: var(--sheet); }
#t-edit:focus-visible ~ .tabs-row [for="t-edit"], #t-find:focus-visible ~ .tabs-row [for="t-find"], #t-redact:focus-visible ~ .tabs-row [for="t-redact"],
#t-pages:focus-visible ~ .tabs-row [for="t-pages"], #t-sign:focus-visible ~ .tabs-row [for="t-sign"] { outline: 2px solid var(--accent); outline-offset: 1px; }

.window {
  width: 100%; max-width: 1072px; margin-inline: auto; border-radius: 11px; overflow: hidden; background: #fafafa; text-align: left;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.13), 0 22px 60px rgba(40, 30, 20, 0.2), 0 6px 16px rgba(40, 30, 20, 0.08);
}
.titlebar {
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; height: 28px; padding-inline: 11px;
  background: #ececee; border-bottom: 1px solid #d4d4d8; font: 500 12.5px/1 var(--sans); color: #6e6e74;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar b { font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .titlebar { height: 20px; grid-template-columns: 40px 1fr 40px; padding-inline: 8px; font-size: 9.5px; } .lights { gap: 4px; } .lights i { width: 7px; height: 7px; } }
.slide { display: none; }
#t-edit:checked ~ .window .s-edit, #t-find:checked ~ .window .s-find, #t-redact:checked ~ .window .s-redact,
#t-pages:checked ~ .window .s-pages, #t-sign:checked ~ .window .s-sign { display: block; }
.captions { margin: 22px auto 0; max-width: 46em; font-size: 15px; color: var(--muted); }
.captions p { display: none; background: var(--desk); padding: 2px 8px; border-radius: 4px; }
#t-edit:checked ~ .captions .c-edit, #t-find:checked ~ .captions .c-find, #t-redact:checked ~ .captions .c-redact,
#t-pages:checked ~ .captions .c-pages, #t-sign:checked ~ .captions .c-sign { display: inline-block; }

/* sections are sheets of paper on the desk, numbered like a document's pages */
.sheet {
  position: relative; margin: 0 max(24px, calc((100% - 1072px) / 2)) 40px; padding: 72px 72px 64px;
  background: var(--sheet); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(40, 30, 20, 0.08), 0 2px 6px rgba(40, 30, 20, 0.04);
}
@media (max-width: 760px) { .sheet { padding: 44px 24px 52px; margin-inline: 0; border-radius: 0; } }
.sheet .folio { position: absolute; right: 24px; bottom: 18px; font: 12px/1 var(--mono); color: var(--dim); }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--accent); margin-bottom: 16px; }
.sheet h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 18em; }
.sheet .intro { margin-top: 16px; max-width: 36em; color: var(--muted); font-size: 17px; }

/* saving: text beside the real diff */
.save { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; }
@media (max-width: 960px) { .save { grid-template-columns: 1fr; gap: 36px; } }
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.facts li { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; align-items: baseline; }
.facts b { font: 500 17px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.diff { margin: 0; background: var(--code); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 20, 30, 0.18); }
.diff header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 16px; border-bottom: 1px solid var(--code-line); font: 12.5px/1.3 var(--mono); color: var(--code-dim); }
.diff header b { font-weight: 500; color: var(--code-text); }
.diff pre { margin: 0; padding: 12px 0 14px; overflow-x: auto; font: 12.75px/1.65 var(--mono); }
.diff pre span { display: block; padding-inline: 16px 20px; white-space: pre; color: var(--code-text); min-width: max-content; }
.diff .d { background: var(--del-bg); color: var(--del); }
.diff .a { background: var(--add-bg); color: var(--add); }
.diff em, .diff .gap { font-style: normal; color: var(--code-dim); }
.diff .n { font-style: normal; color: var(--name); }
.diff .h { font-style: normal; color: var(--hex); }
.diff .d i, .diff .a i { color: inherit; }
.diff figcaption { padding: 11px 16px 13px; border-top: 1px solid var(--code-line); font-size: 13.5px; color: var(--code-dim); }
.diff figcaption code { color: var(--code-text); }

/* features */
.features { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.features > div { padding-block: 24px 26px; border-bottom: 1px solid var(--line); }
.features h3 { font-size: 16.5px; letter-spacing: -0.005em; }
.features p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* engineering */
.notes { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; gap: 28px; } }
.note .num { font: 500 30px/1 var(--mono); letter-spacing: -0.02em; }
.note h3 { margin-top: 14px; font-size: 17px; }
.note p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* the test files, drifting past */
.corpus { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.ribbon { margin-top: 10px; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ribbon ul { flex: none; display: flex; gap: 28px; margin: 0; padding: 0 28px 0 0; list-style: none; font: 12.5px/1.8 var(--mono); color: var(--muted); animation: ribbon 240s linear infinite; }
.ribbon li { white-space: nowrap; }
.ribbon li:nth-child(5n + 2) { color: var(--accent); }
@keyframes ribbon { to { transform: translateX(-100%); } }

/* questions */
.faq { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; gap: 24px; } }
.faq h3 { font-size: 17px; letter-spacing: -0.01em; }
.faq p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* pricing: the free version beside the two ad-free ones, the one most buy marked */
.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 30em; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px; border: 1px solid var(--line-2); border-radius: 10px; }
.plan.chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 17px; letter-spacing: -0.01em; }
.price { font: 500 32px/1 var(--mono); letter-spacing: -0.02em; }
.price span { margin-left: 4px; font: 13px/1 var(--mono); color: var(--dim); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15.5px; }
.plan li::before { content: "✓"; margin-right: 8px; color: var(--accent); }
.plan .button { margin-top: auto; justify-content: center; }
.button.quiet { background: var(--sheet); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.button.quiet:hover { background: var(--desk); }
/* the free version's ad, as the app draws it */
.ad-shot { margin: 32px 0 0; max-width: 684px; }
.ad-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }
.ad-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.plans-note { margin-top: 22px; max-width: 46em; color: var(--muted); font-size: 14.5px; }
.plans-note b { color: var(--text); font-weight: 500; }

/* closing */
.closing { text-align: center; padding-block: 88px 104px; background: radial-gradient(ellipse 40% 70% at 50% 50%, var(--desk) 45%, transparent 100%); }
.closing img { width: 72px; height: 72px; margin-inline: auto; }
.closing h2 { margin-top: 20px; font-size: clamp(28px, 3.6vw, 40px); }

footer { margin-top: auto; background: var(--sheet); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--dim); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* text pages (privacy, 404): one sheet */
.doc { width: 100%; max-width: 760px; margin: 24px auto 72px; padding: 64px 64px 72px; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(40, 30, 20, 0.08); }
@media (max-width: 760px) { .doc { padding: 40px 20px 48px; border-radius: 0; } }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { margin-top: 12px; font: 13px/1.4 var(--mono); color: var(--dim); }
.doc h2 { font-size: 21px; margin-top: 40px; letter-spacing: -0.01em; }
.doc p, .doc li { margin-top: 14px; color: var(--muted); }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.2em; }
.doc ul { padding-left: 1.2em; margin: 0; }

.doc ol { padding-left: 1.4em; margin: 0; }
/* the code on /thanks (made by the Worker): picked whole with one click, to copy */
.doc .license-code { margin-top: 18px; padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--desk); color: var(--text); font: 500 clamp(19px, 4.4vw, 26px)/1.3 var(--mono); letter-spacing: 0.06em; text-align: center; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }

/* the account (made by the Worker): signing in, the codes and the computers each is on */
button.button { border: 0; cursor: pointer; }
.account-form { margin-top: 24px; display: grid; gap: 10px; max-width: 26em; }
.account-form label { font-weight: 500; }
.account-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sheet); color: var(--text); }
.account-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.account-form .button { justify-self: start; margin-top: 6px; }
.doc .form-error { margin-top: 0; color: var(--accent); }
.doc form { margin-top: 18px; }
.purchase { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.computers { list-style: none; padding: 0 !important; margin-top: 14px !important; display: grid; gap: 10px; }
.doc .computer { margin: 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; }
.computer div { display: grid; gap: 2px; min-width: 0; }
.computer span { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.computer form { margin: 0; flex: none; }
.computer .button { padding: 8px 14px; font-size: 14px; }

/* the diff's lines arrive as they scroll into view (where browsers can tie animation to scrolling) */
@supports (animation-timeline: view()) {
  .diff pre span { animation: line-in linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  @keyframes line-in { from { opacity: 0; transform: translateX(-12px); } }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .ribbon ul, .diff pre span { animation: none; }
  .ribbon { flex-wrap: wrap; }
  .ribbon ul[aria-hidden] { display: none; }
  .ribbon ul { flex-wrap: wrap; row-gap: 0; }
}

/* the Windows coming-soon page's downloads */
.soon-downloads { display: flex; flex-wrap: wrap; gap: 10px; }

/* the advertise page's ad format: a table of its fields, and an example of one */
.doc table.spec { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; }
.doc table.spec th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line-2); padding: 6px 10px 6px 0; }
.doc table.spec td { border-bottom: 1px solid var(--line-2); padding: 7px 10px 7px 0; vertical-align: top; }
.doc table.spec td:last-child { white-space: nowrap; color: var(--muted); }
.doc pre.spec { margin: 16px 0 22px; padding: 14px 16px; overflow-x: auto; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line-2); font: 13.5px/1.5 var(--mono, monospace); }
@media (max-width: 600px) { .doc table.spec { font-size: 14px; } }
