/* PanelSharp site styles. No external fonts, no frameworks. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --fg: #16181d;
  --muted: #5b6270;
  --line: #e2e6ee;
  --accent: #2f6fe0;
  --accent-fg: #ffffff;
  --accent-soft: #e8f0ff;
  --gold: #f2b705;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 14px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --bg-alt: #171a21;
    --fg: #eceef2;
    --muted: #a3a9b5;
    --line: #2a2e38;
    --accent: #6d9cff;
    --accent-fg: #0b1020;
    --accent-soft: #1c2740;
    --card: #191c24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
code { font-size: .9em; background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .nav { gap: 12px; }
}

/* 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;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); margin: 0 0 16px; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Before / after */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; --pos: 50%; }
.compare .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.compare figure { margin: 0; position: relative; }
.compare .tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(20, 22, 28, .78); color: #fff; pointer-events: none;
}
.compare .tag.before { left: 12px; }
.compare .tag.after { right: 12px; background: #2f6fe0; }
.compare input[type=range] { display: none; }
/* Slider mode (enabled by site.js) */
.compare.is-slider .pair { display: block; position: relative; }
.compare.is-slider .after-fig { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare.is-slider .after-fig img { width: 100%; height: 100%; object-fit: cover; }
.compare.is-slider .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.compare.is-slider .divider::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center;
  font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.compare.is-slider input[type=range] {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare:not(.is-slider) .divider { display: none; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin: 14px auto 0; max-width: 760px; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 20px; font-weight: 700;
}
.shots { margin-top: 36px; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 24px; background: var(--gold); color: #1a1400;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
}
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 40px; font-weight: 800; margin: 10px 0 0; line-height: 1.1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0; margin: 18px 0 24px; list-style: none; flex: 1; }
.plan li { padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line); position: relative; }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "\2713"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.plan .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.seller-note { text-align: center; font-size: 14px; color: var(--muted); max-width: 720px; margin: 28px auto 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Doc pages (privacy, terms, support, thanks) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 38px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.box ul { margin: 6px 0; padding-left: 20px; }
.box.accent { background: var(--accent-soft); border-color: transparent; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700;
}
.steps li strong { display: block; }
.path { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.path span { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font-size: 14px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 36px 0 28px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.site-footer p { margin: 6px 0; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-fg); }
@media (max-width: 400px) { .brand { font-size: 17px; } .nav .btn-sm { padding: 7px 10px; } }
.section-head .eyebrow { color: var(--accent); font-size: 13px; margin-bottom: 8px; }
.early-access { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.early-access p { margin: 0; }
