/* proPDF's website. Colours and type follow the Dog-ear brand: Signal Red,
   Deep Red, Blush, Ink and Paper, set in Plus Jakarta Sans. */

:root {
  --red: #d6372b;
  --red-deep: #a8261d;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f5f2;
  --text: #1d2129;
  --muted: #4b5160;
  --line: #e4e2dd;
  --accent-text: #a8261d;
  --icon: #d6372b;
  --tint: #fde8e6;
  --wordmark-accent: #d6372b;
  --focus: #2563eb;
  --shadow: rgba(122, 22, 14, 0.18);

  /* The app window in the hero, in the app's own light theme. */
  --app-bg: #e9ebef;
  --app-panel: #ffffff;
  --app-panel-2: #f5f6f8;
  --app-chrome: #e4e7ec;
  --app-border: #d5d8de;
  --app-line: #eceef1;
  --app-text: #1d2129;
  --app-muted: #4b5160;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --surface: #1d2129;
    --surface-alt: #1b1e24;
    --text: #e8eaee;
    --muted: #a3a9b4;
    --line: #2f343d;
    --accent-text: #ff8a80;
    --icon: #ff8a80;
    --tint: #3a1f1c;
    --wordmark-accent: #f0544a;
    --focus: #60a5fa;
    --shadow: rgba(0, 0, 0, 0.45);

    /* The app's dark theme. */
    --app-bg: #1b1d22;
    --app-panel: #25282e;
    --app-panel-2: #2d3138;
    --app-chrome: #1f2227;
    --app-border: #3a3f48;
    --app-line: #30343b;
    --app-text: #e6e8eb;
    --app-muted: #9aa1ac;

    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: var(--accent-text);
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 72px;
}

.nav nav {
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  flex: none;
}

.wordmark {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.wordmark span {
  font-weight: 600;
}

.wordmark b {
  font-weight: 800;
  color: var(--wordmark-accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-text);
}

@media (max-width: 720px) {
  .nav {
    gap: 16px;
    justify-content: space-between;
  }
  .nav nav {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 64px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  padding: 36px;
  border-radius: 24px;
  background: var(--tint);
}

@media (max-width: 960px) {
  .hero {
    padding: 40px 0 72px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .hero-visual {
    padding: 16px;
    border-radius: 18px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* The app window drawn in the hero */
.app-window {
  display: flex;
  flex-direction: column;
  height: 470px;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-bg);
  box-shadow: 0 24px 48px var(--shadow);
  color: var(--app-text);
  font-size: 12px;
  line-height: 1.2;
}

.app-titlebar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--app-chrome);
  font-weight: 600;
  white-space: nowrap;
}

.app-titlebar-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.app-controls {
  flex: none;
  width: 76px;
  height: 12px;
  margin-left: auto;
  fill: none;
  stroke: var(--app-muted);
  stroke-width: 1.2;
}

.app-tabs {
  display: flex;
  flex: none;
  gap: 2px;
  height: 30px;
  padding: 0 8px;
  overflow: hidden;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
}

.app-tabs span {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.app-tabs .app-tab-file {
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}

.app-tabs .app-tab-on {
  color: var(--accent-text);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--red);
}

.app-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 62px;
  padding: 0 8px;
  overflow: hidden;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 10px;
}

.tool {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 60px;
  height: 52px;
  border-radius: 6px;
}

.tool svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--app-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool .caret {
  stroke: var(--red);
}

.tool .marker {
  fill: #ffe07a;
  stroke: none;
}

.tool .solid {
  fill: var(--app-text);
}

.tool-on {
  background: var(--tint);
  color: var(--accent-text);
  font-weight: 600;
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.app-sidebar {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 104px;
  padding-top: 14px;
  background: var(--app-panel-2);
  border-right: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 10px;
}

.thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 58px;
  height: 75px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d5d8de;
}

.thumb-on {
  border-color: #fff;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.thumb .bar {
  height: 3px;
}

.thumb .bar.dark {
  height: 4px;
  width: 70%;
  background: #1d2129;
}

.thumb .bar.short {
  width: 80%;
}

.thumb .bar.shorter {
  width: 60%;
}

.app-canvas {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
  padding: 18px 12px 0;
  overflow: hidden;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 300px;
  max-width: 100%;
  height: 400px;
  flex: none;
  padding: 30px 28px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 33, 41, 0.14);
}

.bar {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: #d5d8de;
}

.page .title {
  height: 11px;
  width: 62%;
  background: #1d2129;
}

.page .subtitle {
  width: 38%;
  margin-bottom: 10px;
  background: #9aa1ac;
}

.page .w94 { width: 94%; }
.page .w97 { width: 97%; }
.page .w91 { width: 91%; }
.page .w96 { width: 96%; }
.page .w72 { width: 72%; }
.page .w58 { width: 58%; }
.page .gap { margin-bottom: 10px; }

.highlight {
  display: flex;
  align-items: center;
  height: 12px;
  margin: 0 -3px;
  padding: 0 3px;
  background: #ffe07a;
}

.highlight .bar {
  width: 88%;
  background: #c9b25a;
}

.stamp {
  position: absolute;
  top: 236px;
  right: 22px;
  padding: 5px 12px;
  border: 2.5px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-9deg);
}

@media (max-width: 560px) {
  .app-window {
    height: 400px;
  }
  .app-sidebar {
    display: none;
  }
  .stamp {
    top: 176px;
  }
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}

.section-lede {
  font-size: 18px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--tint);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--icon);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.also {
  margin-top: 32px;
  font-size: 16px;
  color: var(--muted);
}

.also strong {
  color: var(--text);
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The dark band */
.band {
  padding: 88px 0;
  background: #1d2129;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .band {
    background: #23272f;
  }
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: start;
}

.band h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
}

.band-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.band-points div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--red);
}

.band h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.band p {
  font-size: 15px;
  line-height: 1.55;
  color: #b9bec7;
}

@media (max-width: 960px) {
  .band-grid,
  .band-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .band-grid {
    gap: 32px;
  }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.price-card-featured {
  border: 2px solid var(--red);
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-note {
  color: var(--muted);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--icon);
  border-bottom: 2.5px solid var(--icon);
  transform: rotate(-45deg);
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 720px) {
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.download-card h3 {
  font-size: 24px;
  font-weight: 800;
}

.download-meta {
  font-size: 15px;
  font-weight: 600;
}

.download-note {
  font-size: 14px;
  color: var(--muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.release-line {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: 18px;
  background: var(--tint);
}

.contact h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Footer */
.site-footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand p,
.footer-maker p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-text);
}

.footer-maker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-maker img {
  display: block;
  width: 200px;
}

.copyright {
  font-size: 13px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
