/* PDF Studio website — Apple-style product page. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --mark: #f5c518;
  --tile: #ffffff;
  --nav: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 4px 18px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Ubuntu, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: #38383d;
    --link: #2997ff;
    --tile: #1c1c1e;
    --nav: rgba(22, 22, 23, 0.72);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}
kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
}

/* ---------- Glass material ----------
   Frosted, saturated backdrop; a hairline rim that catches light on the top
   edge; and a soft specular sheen across the upper half. */

:root {
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-rim: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(0, 0, 0, 0.08);
  --glass-sheen: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 32px rgba(15, 20, 40, 0.12), 0 1px 3px rgba(15, 20, 40, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(40, 40, 46, 0.45);
    --glass-rim: rgba(255, 255, 255, 0.22);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --glass-sheen: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-rim),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    var(--glass-shadow);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 20% -10%, var(--glass-sheen), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  mix-blend-mode: soft-light;
}
.glass > * {
  position: relative;
}
.glass-dark {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-rim: rgba(255, 255, 255, 0.2);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-sheen: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--bg);
  }
}

/* Soft colour fields that drift slowly behind glass. */
.aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px) saturate(140%);
  opacity: 0.75;
}
.aura i {
  position: absolute;
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
}
.aura i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: -8vw;
  top: 4%;
  background: #ffd84a;
}
.aura i:nth-child(2) {
  width: 40vw;
  height: 40vw;
  right: -6vw;
  top: -6%;
  background: #6fa8ff;
  animation-duration: 26s;
}
.aura i:nth-child(3) {
  width: 34vw;
  height: 34vw;
  left: 34%;
  top: 30%;
  background: #ff8fb8;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}
.aura i:nth-child(4) {
  width: 30vw;
  height: 30vw;
  right: 18%;
  top: 52%;
  background: #8ef0d0;
  animation-duration: 24s;
}
@media (prefers-color-scheme: dark) {
  .aura {
    opacity: 0.38;
  }
}
.aura-dark {
  opacity: 0.32;
}
.aura-dark i:nth-child(1) {
  background: #f5c518;
}
.aura-dark i:nth-child(2) {
  background: #2f6bff;
}
.aura-dark i:nth-child(3) {
  background: #b34dff;
}
@keyframes drift {
  to {
    transform: translate(6vw, 4vw) scale(1.12);
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 980px;
  height: 52px;
  margin: 0 auto;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.nav-brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  opacity: 0.78;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s;
}
.pill:hover {
  background: var(--blue-hover);
  text-decoration: none;
}
.pill-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.pill-lg {
  min-height: 50px;
  padding: 0 28px;
  font-size: 19px;
}
.link-arrow {
  font-size: 17px;
}
.link-arrow::after {
  content: ' ›';
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 150px 22px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(var(--bg) 55%, var(--bg-alt));
}
.hero-icon {
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
}
.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-sub {
  margin: 10px auto 0;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 34px;
}
.hero-meta {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

/* Mac-style window around screenshots. The app's own title bar leaves room
   for traffic lights, which are drawn here. */
.window {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9ecef;
  container-type: inline-size;
}
.window img {
  width: 100%;
}
.lights {
  position: absolute;
  top: 1.15cqw;
  left: 1.1cqw;
  display: flex;
  gap: 0.6cqw;
}
.lights i {
  width: 0.85cqw;
  height: 0.85cqw;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}

.hero-window {
  max-width: 1160px;
  margin: 64px auto 0;
  padding: 14px 14px 0;
  border-radius: 30px 30px 0 0;
  border-bottom: 0;
  transform-origin: 50% 100%;
  animation: rise 1.1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
  }
}

/* ---------- Statement ---------- */

.statement {
  background: var(--bg-alt);
  padding: 120px 22px;
}
.statement p {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}
.hl {
  background-image: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  color: inherit;
}
@media (prefers-color-scheme: dark) {
  .hl {
    color: #000;
    background-image: linear-gradient(transparent 8%, var(--mark) 8%, var(--mark) 96%, transparent 96%);
    padding: 0 0.1em;
  }
}

/* ---------- Feature sections ---------- */

.feature {
  max-width: 1024px;
  margin: 0 auto;
  padding: 120px 22px;
}
.feature-copy h2 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.feature-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.38;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.feature-copy p.small {
  font-size: 17px;
  color: var(--ink-3);
}
.feature-split {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.feature-split.reverse {
  grid-template-columns: 1.2fr 0.8fr;
}
.feature-split.reverse .feature-copy {
  order: 2;
}

.chips {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 9px 18px;
  border-radius: 980px;
  background: var(--bg-alt);
  font-size: 15px;
  font-weight: 500;
}
.chips li:first-child {
  background: var(--mark);
  color: #1d1d1f;
}

/* ---------- Bento ---------- */

.bento {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  padding: 36px 32px;
  border-radius: 28px;
  background: var(--bg-alt);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.tile h3 {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.tile p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}
.tile-wide {
  grid-column: span 2;
}
.tile-dark {
  background: #1d1d1f;
  color: #f5f5f7;
  justify-content: flex-end;
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.035) 14px 28px);
}
.tile-dark p {
  color: #a1a1a6;
  max-width: 520px;
}
.tile-dark h3::before {
  content: '';
  display: block;
  width: 140px;
  height: 22px;
  margin-bottom: 22px;
  background: #000;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.tile-media {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding-right: 0;
  overflow: hidden;
}
.tile-media img {
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow);
}

/* ---------- Privacy ---------- */

.privacy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
  color: #f5f5f7;
  padding: 140px 22px;
  text-align: center;
}
.privacy h2 {
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff, #8a8a8f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.privacy-grid {
  max-width: 1024px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.privacy-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 24px 28px;
  border-radius: 26px;
}
.privacy-grid strong {
  font-size: 21px;
}
.privacy-grid span {
  color: #a1a1a6;
}

/* ---------- CLI ---------- */

.cli {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
}
.terminal {
  margin: 0;
  padding: 28px 28px 30px;
  border-radius: 18px;
  background: #1d1d1f;
  color: #f5f5f7;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow);
  letter-spacing: 0;
}
.terminal .c {
  color: #8e8e93;
}
.terminal .p {
  color: var(--mark);
}

/* ---------- Download ---------- */

.download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 140px 22px;
  text-align: center;
}
.download h2 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
}
.download-sub {
  margin: 10px 0 0;
  font-size: 21px;
  color: var(--ink-2);
}
.platforms {
  max-width: 1024px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px 34px;
  border-radius: 32px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.platform:hover {
  transform: translateY(-4px);
}
.platform.recommended {
  box-shadow: inset 0 0 0 2px var(--blue), var(--glass-shadow);
}
.platform.recommended::after {
  content: 'Recommended for you';
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.platform svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
  margin-bottom: 4px;
}
.platform h3 {
  font-size: 28px;
}
.platform p {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 15px;
}
.platform .pill {
  margin-bottom: 6px;
}
.platform .link-arrow {
  font-size: 15px;
}
.download-note {
  max-width: 760px;
  margin: 40px auto 0;
  color: var(--ink-3);
  font-size: 14px;
}
.download-note code {
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tile);
  color: var(--ink-2);
}

/* ---------- Floating download dock ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 14px;
  border-radius: 999px;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
.dock.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.dock-text {
  display: grid;
  line-height: 1.2;
  text-align: left;
  padding-right: 6px;
}
.dock-text strong {
  font-size: 15px;
}
.dock-text span {
  font-size: 12px;
  color: var(--ink-2);
}
.dock .pill {
  min-height: 40px;
  font-size: 15px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-3);
  font-size: 12px;
}
.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer a {
  color: var(--ink-2);
}

/* ---------- Scroll reveal (only when JS is on) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature-split,
  .feature-split.reverse,
  .cli {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-split.reverse .feature-copy {
    order: 0;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile-media {
    grid-template-columns: 1fr;
    padding-right: 32px;
  }
  .tile-media img {
    border-radius: 12px;
  }
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .platforms {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .dock-text span {
    display: none;
  }
  .nav-inner .pill-sm {
    margin-left: auto;
  }
  .hero {
    padding-top: 104px;
  }
  .feature,
  .statement,
  .download {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .bento {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }
  .tile-wide {
    grid-column: auto;
  }
  .tile {
    min-height: 0;
  }
  .privacy {
    padding: 96px 22px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .feature-copy p {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aura i {
    animation: none;
  }
  .hero-window {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
