:root {
  --bg: #fbfaf8;
  --bg-alt: #f3f0eb;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #64646b;
  --line: #e7e2da;
  --accent: #e8761e;
  --accent-hover: #cf6410;
  --accent-soft: #fdeedf;
  --ink: #18181a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(30,20,10,.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --bg-alt: #1a1a1d;
    --card: #222225;
    --text: #f1f1f3;
    --muted: #a3a3aa;
    --line: #333337;
    --accent-soft: #3a2817;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
code { font: .9em Consolas, ui-monospace, monospace; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }
kbd {
  display: inline-block; min-width: 24px; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); font: 600 .82em/1.5 "Segoe UI", sans-serif; text-align: center; color: var(--text);
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: 600 16px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn.small { padding: 9px 15px; font-size: 14px; }
.btn svg { width: 19px; height: 19px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; }

/* Top nav */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: #d2d2d8; text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: #fff; }

/* Install / uninstall notices */
.notice { padding: 14px 0; font-size: 15px; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.notice.installed { background: #e7f6ec; color: #17502c; }
.notice.uninstalled { background: var(--accent-soft); color: var(--text); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 14px inherit; font-family: inherit; cursor: pointer; }
.reasons button:hover { border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .notice.installed { background: #183323; color: #bfe8cc; } }

/* Hero */
.hero {
  color: #fff; padding: 72px 0 84px;
  background:
    radial-gradient(800px 500px at 85% 40%, rgba(232,118,30,.32), transparent 65%),
    linear-gradient(150deg, #262629, #121214 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: #f2a866; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: #f39a4c; }
.lead { margin: 20px 0 28px; font-size: 19px; color: #c9c9cf; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #b3b3ba; font-size: 14.5px; }
.trust li::before { content: "✓ "; color: #f39a4c; font-weight: 700; }
.hero-shot img { border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.hero-shot { margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Launch */
.launch { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: end; padding: 26px; max-width: 860px; }
.launch-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.launch .hint { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
select, input[type="number"] {
  font: 16px inherit; font-family: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
select:focus, input:focus, .btn:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Ads */
.ad { margin: 8px auto 40px; }
.ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; margin-bottom: 6px; }

/* Features */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip > img { order: 2; }
.feature img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.01em; }
.feature p { margin: 0 0 14px; color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Clippings tool */
.tool { padding: 26px; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 38px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop span { color: var(--muted); font-size: 15px; }
#sampleClips { margin-top: 12px; }
.clip-summary { margin: 22px 0 14px; font-weight: 600; }
.clip-controls { display: grid; grid-template-columns: 2fr 1.2fr; gap: 14px; align-items: end; }
.clip-controls .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.preview {
  margin: 16px 0; max-height: 340px; overflow: auto; padding: 16px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); font: 13.5px/1.55 Consolas, ui-monospace, monospace; white-space: pre-wrap; word-break: break-word;
}
.clip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status { color: #2e7d32; font-size: 15px; font-weight: 600; }

/* Guides */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guide { padding: 26px; }
.guide.wide { grid-column: 1 / -1; }
.guide h3 { margin: 0 0 14px; font-size: 21px; }
.guide ol { margin: 0; padding-left: 22px; }
.guide li { margin: 8px 0; }
.keys { width: 100%; border-collapse: collapse; }
.keys td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.keys td:first-child { width: 128px; white-space: nowrap; }
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }
.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-out { margin: 16px 0 8px; font-size: 18px; }
.calc-out b { color: var(--accent); }

/* FAQ */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq:first-of-type { border-top: 1px solid var(--line); }

/* Final CTA + footer */
.final { text-align: center; padding: 72px 0; background: linear-gradient(150deg, #262629, #121214); color: #fff; }
.final img { margin: 0 auto 14px; border-radius: 16px; }
.final h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 34px); }
.foot { padding: 30px 0 40px; font-size: 15px; color: var(--muted); }
.foot p { margin: 6px 0; }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .links { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .feature, .guides { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip > img { order: 0; }
  .launch { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .clip-controls, .calc { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .top .btn { width: auto; }
  .launch-actions { width: 100%; }
}
