/* Visual system shared with pdf-access.busy-wait.com. Light is the default; dark only when the visitor picks it. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --fg: #0a0a0a;
  --fg-muted: #4b4b55;
  --line: #e4e4e7;
  --line-strong: #0a0a0a;
  --accent: #7a00e6;
  --accent-ink: #5f00b3;
  --accent-soft: #f1e6ff;
  --accent-soft-2: #d9bfff;
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --font-sans: 'Inter Variable', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-elev: #131316;
  --fg: #f4f4f5;
  --fg-muted: #b4b4bd;
  --line: #2a2a31;
  --line-strong: #f4f4f5;
  --accent: #b57bff;
  --accent-ink: #cfa3ff;
  --accent-soft: #24123b;
  --accent-soft-2: #3c1f63;
  --btn-bg: #f4f4f5;
  --btn-fg: #0b0b0d;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--fg); }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft-2); color: var(--fg); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.75rem 1rem;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section-head p { color: var(--fg-muted); font-size: 1.1rem; margin-top: 0.9rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--fg-muted); max-width: 40rem; }
.grid { display: grid; gap: 1px; background: var(--bg); border: 1px solid var(--line); }
.grid > * { background: var(--bg); padding: clamp(1.25rem, 2.5vw, 2rem); outline: 1px solid var(--line); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid h3 { margin-bottom: 0.5rem; }
.grid p:last-child { margin-bottom: 0; }
.prose { max-width: 44rem; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--fg-muted); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); max-width: 64rem; }
.two-col p { color: var(--fg-muted); }
.two-col p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-strong); background: var(--bg); position: relative; z-index: 10; }
.site-header .bar { display: flex; align-items: stretch; justify-content: space-between; min-height: 4.25rem; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; align-items: stretch; margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; }
.site-nav li { display: flex; align-items: stretch; }
.site-nav a { display: inline-flex; align-items: center; padding: 0 1rem; text-decoration: none; color: var(--fg); font-weight: 500; }
.site-nav a:hover { color: var(--accent-ink); }
.cluster { display: flex; align-items: center; gap: 0.25rem; }
.lang-link { display: inline-flex; align-items: center; padding: 0 0.75rem; min-height: 2.75rem; text-decoration: none; color: var(--fg); font-weight: 500; font-size: 0.95rem; }
.lang-link:hover { color: var(--accent-ink); text-decoration: underline; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; cursor: pointer; color: var(--fg); padding: 0; }
.theme-toggle:hover { color: var(--accent-ink); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
@media (max-width: 760px) {
  .site-header .bar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .brand { order: 1; }
  .cluster { order: 2; margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-nav ul { flex-wrap: wrap; gap: 0 1rem; }
  .site-nav a { padding: 0.5rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; min-height: 3.25rem; border: 1px solid var(--line-strong);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 500; font-size: 1.05rem; line-height: 1.2;
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn .arrow { font-family: var(--font-mono); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hero-actions .link { font-weight: 500; }

/* ---------- Hero ---------- */
.hero .container { padding-top: clamp(3rem, 8vw, 7rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 20ch; margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2rem; }
.hero .hero-actions { margin-bottom: 2.25rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.facts li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.facts svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent-ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--bg); padding: 1.5rem; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); color: var(--accent-ink); margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--fg-muted); font-size: 0.97rem; }

.steps-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price-card { background: var(--bg); padding: clamp(1.25rem, 2.5vw, 2rem); }
.price-card:first-child { outline: 2px solid var(--accent); outline-offset: -2px; }
.price-card .eyebrow { margin-bottom: 0.75rem; }
.price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 0 0 0.75rem; }
.price-card p:last-child { margin-bottom: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-family: var(--font-mono); font-weight: 600; }
.check-list + p { margin-top: 1rem; }
.small { font-size: 0.92rem; }
.after-grid { margin: 1.5rem 0 0; max-width: 46rem; }

/* ---------- Contact ---------- */
.contact-box { margin-top: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line-strong); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.contact-lead { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 2.5rem 0; font-size: 0.95rem; color: var(--fg-muted); }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--fg); }
.site-footer a:hover { color: var(--accent-ink); }
