/*
 * PDF Editor for Chrome — landing page styles.
 * Dark-only by design: the page mirrors the editor's own chrome, so a light
 * variant would misrepresent the product. One file, no build step.
 */

:root {
  color-scheme: dark;

  --bg: #070a12;
  --bg-raised: #0d1424;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e8eefb;
  --text-dim: #a8b4cc;
  --text-faint: #7c8AA5;

  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-ink: #ffffff;
  --brand: #ef473a;
  --brand-deep: #c01f16;
  --ok: #34d399;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1140px;
  --pad: clamp(1.1rem, 4vw, 2rem);

  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A single soft light source behind the top of the page. */
body::before {
  content: '';
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 22% 0%, rgba(59, 130, 246, 0.2), transparent 65%),
    radial-gradient(45rem 32rem at 82% 8%, rgba(129, 140, 248, 0.14), transparent 60%);
}

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

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

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
}

h3 {
  font-size: 1.08rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.36em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --------------------------------------------------------------- nav / cta */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header[data-scrolled='true'] {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 18, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.95rem;
}

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

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

.btn {
  --btn-bg: var(--surface-strong);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn-primary {
  --btn-bg: linear-gradient(180deg, var(--accent-bright), var(--accent));
  --btn-fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(59, 130, 246, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px -12px rgba(59, 130, 246, 0.95);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.02rem;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.hero-inner {
  max-width: 54rem;
  margin-inline: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.85rem 0.34rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.pill b {
  color: var(--text);
  font-weight: 650;
}

.pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  margin-left: 0.4rem;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.hero h1 .grad {
  background: linear-gradient(100deg, #fff 25%, #9ec2ff 62%, #c3b5fd 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 42rem;
  margin-inline: auto;
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--ok);
  flex: none;
}

/* --------------------------------------------------------------- shotframe */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.shot-bar i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.shot-bar span {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot img {
  width: 100%;
}

.hero-shot {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  position: relative;
}

.hero-shot::after {
  content: '';
  position: absolute;
  inset: auto 8% -1.5rem 8%;
  height: 3rem;
  background: radial-gradient(50% 100% at 50% 0%, rgba(59, 130, 246, 0.35), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

/* ---------------------------------------------------------------- features */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.card {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-bright);
  margin-bottom: 0.9rem;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card.is-brand .card-icon {
  background: rgba(239, 71, 58, 0.13);
  border-color: rgba(239, 71, 58, 0.3);
  color: #ff8a7d;
}

/* ------------------------------------------------------------------ splits */

.split {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3.6rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.split.reverse .split-media {
  order: -1;
}

.split-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.split-body p {
  color: var(--text-dim);
}

.ticks {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.ticks li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.ticks svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  color: var(--accent-bright);
  flex: none;
}

.ticks b {
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.steps li {
  counter-increment: step;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

/* --------------------------------------------------------------- shortcuts */

.keys {
  display: grid;
  gap: 0.55rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
}

.keys div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  color: var(--text-dim);
}

kbd {
  display: inline-block;
  padding: 0.16rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- privacy */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-dim);
}

th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td b {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

details[open] {
  border-color: var(--line-strong);
}

summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

summary::after {
  content: '';
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  flex: none;
}

details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

details .answer {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-dim);
  font-size: 0.96rem;
}

details .answer p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- final cta */

.cta {
  text-align: center;
}

.cta .panel {
  padding: clamp(2rem, 6vw, 3.6rem);
}

.cta h2 {
  margin-bottom: 0.8rem;
}

.cta .lede {
  margin-inline: auto;
  max-width: 34rem;
}

.cta .hero-actions {
  margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem 3rem;
  position: relative;
  z-index: 1;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(14rem, 1.3fr) repeat(auto-fit, minmax(9rem, 1fr));
}

.site-footer h3 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-faint);
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer ul a {
  color: var(--text-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------- docs */

.doc {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
}

.doc p,
.doc li {
  color: var(--text-dim);
}

.doc .updated {
  color: var(--text-faint);
  font-size: 0.92rem;
}

.doc table {
  min-width: 0;
}

/* --------------------------------------------------------------- 404 / misc */

.center-screen {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- small screens */

@media (max-width: 760px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .split.reverse .split-media {
    order: 0;
  }
}

@media print {
  body::before,
  .site-header,
  .hero-actions,
  .cta {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
