/* edityourPDF landing page. Plain CSS, no build step. The colours (--bg, --surface, --text, ...) and the
   top bar come from /css/shell.css, shared with the app, so the two always match. Dark unless the
   visitor picks light. */
:root {
  /* the editor showcase and the red panel behind it keep their own darkroom colours in both themes */
  --red: #e0262f; --red-2: #ff5a36; --blue: #3b64f6; --blue-2: #2c50dc; --blue-soft: #e8eeff;
  --win-canvas: #0f1218; --win-surface: #171b23; --win-surface-2: #1f2530; --win-line: #2a313d;
  --win-text: #e7eaf0; --win-muted: #9aa4b5; --win-accent: #5b9dff; --win-accent-soft: #17263f;
  --win-ink-light: #ffffff;
  --bar-h: 58px;
  /* the sections */
  --hero: var(--bg); --page: var(--bg); --page-alt: #131720; --card: var(--surface); --chip: var(--surface-2);
  --band: var(--surface); --band-card: var(--surface-2); --band-line: var(--line);
  /* type in the hero and the "why it's free" band */
  --head: #fff; --copy: #e9edf5; --copy-muted: #a7b0c2;
}
:root[data-theme="light"] {
  --hero: #f6f7f9; --page: #ffffff; --page-alt: #f5f6f8; --card: #ffffff; --chip: #f5f6f8;
  --band: #fff5f2; --band-card: #ffffff; --band-line: #f5d9d2;
  --head: var(--text); --copy: #3a4050; --copy-muted: var(--muted);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 1rem/1.55 var(--font); color: var(--text); background: var(--page); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.02em; overflow-wrap: break-word; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
main { outline: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 0.96875rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s, translate .15s; white-space: nowrap; }
.btn:hover { translate: 0 -1px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.outline { border-color: var(--head); color: var(--head); }
.btn.outline:hover { background: color-mix(in srgb, var(--head) 10%, transparent); }
.btn.outline-light { border-color: var(--line-strong); color: var(--text); background: var(--card); }
.btn.outline-light:hover { border-color: var(--text); }

/* ---- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100svh - var(--bar-h)), 820px); }
.hero-copy { background: var(--hero); color: var(--copy); padding: 70px clamp(16px, 6vw, 84px) 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-copy > * { max-width: 560px; margin-left: auto; width: 100%; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 550; letter-spacing: -.03em; color: var(--head); }
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 3.125rem); font-weight: 700; color: var(--head); margin-bottom: 4px; }
.lede { font-size: 1.0625rem; color: var(--copy); text-wrap: pretty; }
.lede strong { color: var(--head); }
.fine { display: flex; gap: 10px; align-items: flex-start; font-size: 0.90625rem; color: var(--copy-muted); }
.fine .i { margin-top: 2px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.ctas.center { justify-content: center; }

.hero-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--red) 0%, #b5122a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 38px) clamp(18px, 2.8vw, 34px);
}

/* recorded Edit PDF showcase */
.showcase {
  width: 100%;
  max-width: 760px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(15, 18, 24, .34);
  color: rgba(255, 255, 255, .9);
  font: 600 0.84375rem/1 var(--font);
  cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s;
}
.demo-tab:hover {
  background: rgba(15, 18, 24, .56);
  border-color: rgba(255, 255, 255, .42);
}
.demo-tab.on {
  background: var(--win-surface);
  border-color: rgba(255, 255, 255, .32);
  color: var(--win-text);
  box-shadow: 0 8px 22px rgba(15, 18, 24, .28);
}
.demo-tab svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-tab.on svg { color: var(--win-accent); }
.demo-num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.demo-tab.on .demo-num {
  background: var(--win-accent-soft);
  color: var(--win-accent);
}

.win {
  width: 100%;
  background: var(--win-canvas);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(15, 18, 24, .36), 0 4px 14px rgba(15, 18, 24, .22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--win-surface);
  border-bottom: 1px solid var(--win-line);
  color: var(--win-text);
  font-size: 0.8125rem;
  line-height: 1.2;
}
.demo-dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}
.demo-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(231, 234, 240, .22);
}
.demo-file {
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-badge {
  margin-left: auto;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--win-accent-soft);
  border: 1px solid rgba(91, 157, 255, .36);
  color: var(--win-accent);
  font-size: 0.75rem;
  font-weight: 600;
}
.demo-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 782;
  background: var(--win-canvas);
  overflow: hidden;
}
.demo-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.demo-progress {
  position: relative;
  height: 3px;
  background: var(--win-line);
  overflow: hidden;
}
.demo-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--win-accent);
  will-change: width;
}
.demo-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 37.6%;
  width: 2px;
  background: var(--win-canvas);
  opacity: .85;
}

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-cap {
  flex: 1 1 240px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .94);
  font-weight: 500;
}

.motion {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(15, 18, 24, .52);
  color: var(--win-ink-light);
  font: 600 0.78125rem/1 var(--font);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.motion:hover {
  background: rgba(15, 18, 24, .78);
  border-color: rgba(255, 255, 255, .36);
}

/* ---- sections */
.sec { padding: 96px 0; }
.sec.alt { background: var(--page-alt); }
.sec.band { background: var(--band); color: var(--copy); }
.sec h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; max-width: 760px; }
.band h2 { color: var(--head); }
.sub { margin-top: 14px; font-size: 1.0625rem; color: var(--muted); max-width: 680px; text-wrap: pretty; }
.band .sub { color: var(--copy-muted); }

.cats { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 8px 28px rgba(16, 24, 40, .07); }
.cat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; margin-bottom: 12px; }
.dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); flex: none; }
.dot svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cat a { display: block; padding: 5px 10px; border-radius: 8px; background: var(--chip); font-size: 0.875rem; text-decoration: none; color: var(--text); transition: background-color .15s, color .15s; }
.cat a:hover { background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
.cat p { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

.feats { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.feats li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.feats h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15625rem; margin-bottom: 10px; }
.f-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; color: var(--brand); }
.f-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feats p { color: var(--muted); font-size: 0.96875rem; text-wrap: pretty; }

.stats { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.stats > div { padding: 24px; border-radius: 18px; background: var(--band-card); border: 1px solid var(--band-line); }
.stats dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copy-muted); }
.stats dd { margin: 6px 0 0; display: grid; gap: 6px; }
.stats strong { font-size: 2.75rem; line-height: 1.05; font-weight: 750; letter-spacing: -.03em; color: var(--head); }
.stats dd > span { font-size: 0.9375rem; color: var(--copy-muted); }

.final { text-align: center; background: var(--page-alt); border-top: 1px solid var(--line); }
.final h2, .final .sub { margin-left: auto; margin-right: auto; }
.final .ctas { margin-top: 28px; }

.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 0.875rem; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 20px; font-size: 0.78125rem; max-width: 820px; text-wrap: pretty; }

/* ---- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-top: 56px; }
  .hero-copy > * { margin-left: 0; max-width: 640px; }
  .hero-art { padding: 26px 20px 28px; }
}
@media (max-width: 600px) {
  .hero-art { padding: 20px 14px 22px; }
  .demo-tab { font-size: 0.78125rem; padding: 6px 11px 6px 8px; }
  .demo-bar { padding: 8px 11px; font-size: 0.75rem; }
  .sec { padding: 72px 0; }
  .btn { width: 100%; white-space: normal; text-align: center; padding: 10px 16px; }
}

/* ---- motion: everything here is decorative and stops for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .btn:hover { translate: none; }
  .demo-tab, .motion { transition: none; }
}

