/* Page Extractor website. System fonts, light and dark, no dependencies. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --bg-tint: #eeecfb;
  --fg: #1f2328;
  --muted: #59636e;
  --faint: #8c959f;
  --border: #d8dee4;
  --card: #ffffff;
  --accent: #5b4cf0;
  --accent-hover: #4a3cdb;
  --accent-fg: #ffffff;
  --brand: #1b1f27;
  --ok: #1a7f37;
  --code-bg: #f6f8fa;
  --shadow: 0 1px 2px rgba(31, 35, 40, .06), 0 12px 32px rgba(31, 35, 40, .10);
  --radius: 14px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121116;
    --bg-soft: #18171e;
    --bg-tint: #1f1c2e;
    --fg: #f0f6fc;
    --muted: #9198a1;
    --faint: #6e7681;
    --border: #2c2a35;
    --card: #1b1a21;
    --accent: #8f85ff;
    --accent-hover: #a59dff;
    --accent-fg: #15121f;
    --ok: #3fb950;
    --code-bg: #121116;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
kbd {
  font-size: .85em;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-soft);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-nav .btn { color: var(--accent-fg); }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--bg-soft); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-small { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 32px;
  text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, var(--bg-tint) 0%, var(--bg) 70%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.eyebrow img { width: 18px; height: 18px; }
h1 {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 750;
}
.lead {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin: 16px 0 0; color: var(--faint); font-size: 14px; }

/* ---- Browser frame ---- */
.frame {
  margin: 56px auto 0;
  max-width: 1040px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.frame-dots { display: flex; gap: 7px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.frame-dots i:nth-child(1) { background: #ff5f57; }
.frame-dots i:nth-child(2) { background: #febc2e; }
.frame-dots i:nth-child(3) { background: #28c840; }
.frame-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-spacer { width: 47px; }
.frame img { width: 100%; height: auto; }
@media (max-width: 560px) { .frame-spacer, .frame-dots { display: none; } }

/* ---- Sections ---- */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 720;
}
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 19px; }
h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.015em; line-height: 1.25; }

/* ---- Before / after ---- */
.compare { display: grid; gap: 20px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.pane {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pane-label .tag { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.raw {
  margin: 0;
  padding: 20px;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.rendered { padding: 20px 24px; flex: 1; font-size: 15px; line-height: 1.55; }
.rendered .r-h1 { font-size: 26px; font-weight: 650; padding-bottom: 6px; margin: 0 0 12px; border-bottom: 1px solid var(--border); letter-spacing: -.01em; }
.rendered .r-h2 { font-size: 19px; font-weight: 650; padding-bottom: 4px; margin: 18px 0 10px; border-bottom: 1px solid var(--border); }
.rendered p { margin: 0 0 12px; }
.rendered ul { margin: 0 0 12px; padding-left: 22px; }
.rendered code { font-size: 13px; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.r-note { margin: 0 0 14px; padding: 6px 14px; border-left: 3px solid #0969da; }
.r-note b { display: flex; align-items: center; gap: 6px; color: #0969da; font-weight: 600; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .r-note { border-color: #4493f8; } .r-note b { color: #4493f8; } }
.r-note svg { width: 15px; height: 15px; fill: currentColor; }

/* ---- Feature rows ---- */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 96px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 56px; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy p { margin: 0 0 16px; color: var(--muted); font-size: 18px; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231a7f37' d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 1 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

/* ---- Small things grid ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.tile .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.tile .icon svg { width: 18px; height: 18px; fill: currentColor; }
.tile h3 { font-size: 17px; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---- Pricing ---- */
.price-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.price-card img { width: 72px; height: 72px; margin: 0 auto 16px; }
.price { margin: 8px 0 4px; font-size: 56px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .ticks { display: inline-block; text-align: left; margin: 20px 0 28px; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--faint);
  font-size: 24px;
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* ---- Text pages (privacy, support) ---- */
.page { max-width: 760px; margin: 0 auto; padding: 64px 16px 80px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); text-align: left; margin: 0; }
.page .lead { margin: 12px 0 32px; text-align: left; }
.page h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.015em; }
.page p, .page li { color: var(--fg); }
.page .callout {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.page code { font-size: .9em; padding: 2px 6px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--border); }

/* ---- Polish ---- */
h1, h2, h3 { text-wrap: balance; }
.lead, .section-head p, .feature-copy p { text-wrap: pretty; }
:not(pre) > code {
  font-size: .86em;
  padding: .12em .4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--muted) 13%, transparent);
}
.price-card h2 { font-size: 24px; letter-spacing: -.015em; }
.price { margin-top: 14px; }
.brand, .btn, .site-nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .site-nav { gap: 14px; }
}

/* ---- Page Extractor additions ---- */
.trio { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.trio .tile h3 { display: flex; align-items: center; gap: 10px; }
.tile .icon svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { max-width: 760px; margin: 0 auto; padding-left: 22px; }
.steps li { margin: 10px 0; }
