/* Open Publisher Files
   Minimal and calm: one serif with optical sizes for headings, a neutral
   sans for reading, ink plus one deep blue. Movement is the ornament: a
   headline that reveals, a word that cycles through the formats, example
   documents that deal in and straighten as you scroll. Everything is still
   for people who ask for reduced motion. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #121418;
  --body: #41444c;
  --muted: #6f727a;
  --hair: #e7e6e2;
  --accent: #1f3a5f;
  --accent-soft: rgba(31, 58, 95, 0.08);
  --bad: #a3271d;
  --note: #fbf6e6;
  --note-line: #ece0b8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(18, 20, 24, 0.05), 0 24px 60px -30px rgba(18, 20, 24, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(31, 58, 95, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.3s var(--ease); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }

/* header */
.top { animation: fade 1s var(--ease) both; }
.top-row { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.top nav a { text-decoration: none; position: relative; transition: color 0.3s var(--ease); }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.top nav a:hover { color: var(--ink); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* hero */
.hero { text-align: center; padding-block: 72px 32px; position: relative; }
.glow { position: absolute; inset: 20px 8% auto; height: 440px; z-index: -1; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); animation: breathe 9s ease-in-out infinite; pointer-events: none; will-change: transform, opacity; }
.hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: inline-block; animation: rise 1.3s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: 0.12s; }
.rotator { display: inline-grid; justify-items: start; text-align: left; height: 1.04em; overflow: hidden; vertical-align: bottom; font-style: italic; color: var(--accent); }
.rotator span { grid-area: 1 / 1; opacity: 0; animation: cycle 10s var(--ease) infinite; will-change: transform, opacity; }
.rotator span:nth-child(2) { animation-delay: 2.5s; }
.rotator span:nth-child(3) { animation-delay: 5s; }
.rotator span:nth-child(4) { animation-delay: 7.5s; }
.hero .lead { margin: 30px auto 0; max-width: 44ch; color: var(--body); font-size: 19px; animation: fade 1.4s 0.35s var(--ease) both; }

/* upload */
.drop { margin: 46px auto 0; max-width: 580px; animation: lift 1.4s 0.5s var(--ease) both; text-align: left; }
.drop-box { position: relative; display: block; width: 100%; background: var(--surface); border: 0; border-radius: 20px; padding: 28px 28px 26px; box-shadow: var(--shadow); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.drop-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, var(--hair), rgba(31, 58, 95, 0.4), var(--hair)); background-size: 220% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: background-position 1.6s var(--ease); pointer-events: none; }
.drop-box:hover::before { background-position: -120% 0; }
.drop-box:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(18, 20, 24, 0.05), 0 34px 70px -30px rgba(18, 20, 24, 0.36); }
.drop.over .drop-box { transform: scale(1.025); box-shadow: 0 0 0 6px var(--accent-soft), 0 34px 70px -30px rgba(18, 20, 24, 0.36); }
.drop-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.drop-title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; display: block; letter-spacing: -0.01em; }
.drop-sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.drop-busy { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.facts { margin-top: 18px; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--muted); animation: fade 1.4s 0.7s var(--ease) both; }
.err { color: var(--bad); margin-top: 14px; font-weight: 500; text-align: center; }
.err-inline { color: var(--bad); font-size: 15px; font-weight: 500; }

.btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 500 16px var(--sans); cursor: pointer; text-decoration: none; transition: background-color 0.4s var(--ease), gap 0.4s var(--ease), transform 0.2s var(--ease); }
.btn::after { content: "\2192"; }
.btn:hover { background: var(--accent); gap: 14px; color: #fff; }
.btn:active { transform: scale(0.98); }
.btn.big { height: 58px; padding: 0 32px; font-size: 17px; }
.btn.plain::after { content: none; }

.bar { height: 6px; background: var(--hair); border-radius: 99px; overflow: hidden; }
.bar.big { max-width: 520px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.6s var(--ease); }

/* example documents */
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 72px 24px; max-width: 1000px; margin: 0 auto; }
.doc { margin: 0; will-change: transform; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0)); animation: deal 1.5s var(--ease) backwards; transition: transform 0.7s var(--ease); }
.doc:nth-child(1) { --r: -6deg; --x: 40px; animation-delay: 0.75s; }
.doc:nth-child(2) { --y: -18px; animation-delay: 0.9s; z-index: 1; }
.doc:nth-child(3) { --r: 6deg; --x: -40px; animation-delay: 1.05s; }
.doc:hover { transform: translate(var(--x, 0), calc(var(--y, 0px) - 12px)) rotate(0deg) scale(1.02); }
@supports (animation-timeline: view()) {
  .doc { animation: deal 1.5s var(--ease) backwards, straighten linear both; animation-timeline: auto, view(); animation-range: normal, entry 40% cover 45%; }
}
.doc img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; background: #fff; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 40px 70px -40px rgba(18, 20, 24, 0.5); }
.doc figcaption { margin-top: 18px; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.doc figcaption b { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); }
.note-ex { text-align: center; font-size: 13px; color: var(--muted); }

/* sections */
.section { padding-block: 120px 40px; }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); text-align: center; }
.section .sub { margin: 18px auto 0; text-align: center; color: var(--body); max-width: 50ch; }

/* steps with a line that draws as you scroll */
.track { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.track::before, .track::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; }
.track::before { background: var(--hair); }
.track::after { background: var(--ink); transform-origin: left; }
@supports (animation-timeline: view()) {
  .track::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
}
.step { position: relative; padding-top: 34px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); z-index: 1; }
.step b { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; margin-bottom: 6px; }
.step span { color: var(--body); font-size: 15.5px; }

/* formats */
.formats { margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); list-style: none; padding: 0; }
.formats li { padding: 26px 16px; border-left: 1px solid var(--hair); text-align: center; }
.formats li:first-child { border-left: 0; }
.formats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.formats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* before / after */
.compare { position: relative; max-width: 860px; margin: 56px auto 0; --pos: 50%; }
.compare-frame { position: relative; overflow: hidden; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); user-select: none; }
.compare-frame img { width: 100%; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--ink); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(18, 20, 24, 0.35); font-size: 16px; }
.compare-tag { position: absolute; top: 14px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 8px -2px rgba(18, 20, 24, 0.2); }
.compare-tag.left { left: 14px; }
.compare-tag.right { right: 14px; color: var(--accent); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.compare input[type="range"]:focus-visible + .compare-frame { outline: 2px solid var(--accent); outline-offset: 4px; }

/* prices */
.price-row { margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tier { padding: 30px 12px; text-align: center; border-left: 1px solid var(--hair); transition: background-color 0.5s var(--ease); font-variant-numeric: tabular-nums lining-nums; }
.tier:first-child { border-left: 0; }
.tier:hover { background: var(--surface); }
.tier strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -0.02em; transition: transform 0.6s var(--ease); }
.tier:hover strong { transform: translateY(-4px); }
.tier .cur { display: inline; margin: 0 2px 0 0; font-family: var(--sans); font-weight: 400; font-size: 0.42em; vertical-align: 0.95em; letter-spacing: 0; color: var(--body); }
.tier span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.fine { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }

/* faq */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--body); max-width: 66ch; }

.closing { padding-block: 120px; text-align: center; }
.closing h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 30px; }

/* job page */
.job { padding-block: 40px 96px; }
.job-head { display: grid; gap: 14px; max-width: 760px; }
.job-head h1 { font-size: clamp(38px, 5vw, 60px); }
.job .lead { font-size: 19px; color: var(--body); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.paybox { margin-top: 30px; padding: 26px 28px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; max-width: 760px; }
.paybox .row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.files { margin-top: 40px; display: grid; gap: 22px; }
.file { background: var(--surface); border-radius: 16px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(18, 20, 24, 0.04); border: 1px solid var(--hair); animation: fade 0.8s var(--ease) both; }
.file.bad { border-color: #ecc8c3; }
.file-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.file-name { font-family: var(--serif); font-size: 20px; word-break: break-word; }
.label { font-size: 13px; color: var(--muted); }
.previews { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; }
.previews img { height: 420px; width: auto; border-radius: 3px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 20px 40px -24px rgba(18, 20, 24, 0.45); }
.fonts { margin-top: 8px; font-size: 15px; color: var(--muted); }
.fonts summary { cursor: pointer; }
.fonts ul { margin: 8px 0 0; padding-left: 20px; }
.note { margin-top: 22px; padding: 14px 18px; background: var(--note); border: 1px solid var(--note-line); border-radius: 12px; }
.note ul { margin: 6px 0 0; padding-left: 20px; }

/* help articles */
.article { max-width: 720px; padding-block: 48px 96px; }
.article h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 22px; }
.article h2 { font-size: 30px; margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.02em; }
.article p, .article li { color: var(--body); }
.article p + p { margin-top: 12px; }
.article ol, .article ul { padding-left: 22px; display: grid; gap: 6px; }
.article .lead { font-size: 20px; color: var(--ink); }
.cta { margin: 36px 0; padding: 28px 30px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; justify-items: start; }

/* footer */
.foot { border-top: 1px solid var(--hair); padding-block: 48px; font-size: 15px; color: var(--muted); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; }
.foot .brand { color: var(--ink); }
.foot p { margin-top: 10px; max-width: 40ch; }
.foot nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes deal { from { opacity: 0; transform: translate(0, 80px) rotate(0deg) scale(0.94); } }
@keyframes straighten { to { transform: translate(0, 0) rotate(0deg); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
@keyframes cycle {
  0% { opacity: 0; transform: translateY(60%); }
  5%, 21% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-60%); }
}

@media (max-width: 820px) {
  .hero { padding-block: 40px 24px; }
  .deck { grid-template-columns: minmax(0, 1fr); max-width: 380px; gap: 56px; }
  .doc:nth-child(n) { --r: 0deg; --x: 0px; --y: 0px; }
  .track, .formats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .track { gap: 34px; }
  .track::before, .track::after { display: none; }
  .formats li { border-left: 0; border-top: 1px solid var(--hair); }
  .formats li:first-child { border-top: 0; }
  .price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier { border-left: 0; border-top: 1px solid var(--hair); }
  .drop-row { flex-direction: column; align-items: flex-start; }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 88px 24px; }
  .previews img { height: 300px; }
  .top nav { gap: 18px; }
}
@media (max-width: 520px) {
  .top nav a:first-child { display: none; }
  .facts { gap: 8px 18px; }
  .brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rotator span:first-child { opacity: 1; }
}
