.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 0;
  font-size: 18px;
}
.page-header .subtitle { color: var(--muted); font-size: 16px; }
.page-header .subtitle::before { content: "/"; margin-right: 12px; color: var(--border); }

main { max-width: 980px; margin: 0 auto; padding: 8px 20px 64px; }

/* Hero */
.hero { padding: 36px 0 12px; }
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; }
.hero p { margin: 0; max-width: 620px; color: var(--muted); font-size: 16px; }
.quick-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.quick-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}
.quick-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
}

/* Steps */
.step { margin-top: 48px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-head h2 { margin: 2px 0 4px; font-size: 22px; }
.step-head p { margin: 0; color: var(--muted); }
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}
.step-num svg { width: 20px; height: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card figcaption { padding: 16px 20px 20px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); }
.card p b, .card li b { color: var(--text); }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }

.figure-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.shot { display: block; max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.shot-popup { width: 260px; border: 1px solid var(--border); }
.inline-icon { width: 16px; height: 16px; vertical-align: -3px; }

code, kbd {
  padding: 1px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font: 12.5px Consolas, monospace;
  color: var(--text);
}
kbd { border-bottom-width: 2px; }

/* Mock right-click menu (always light, like Chrome's own menu) */
.mock-menu-wrap { position: relative; display: flex; align-items: flex-start; padding-bottom: 8px; }
.mock-menu {
  width: 190px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d6d9dd;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  color: #1f1f1f;
  font: 13px "Segoe UI", system-ui, sans-serif;
}
.mock-menu li { display: flex; align-items: center; gap: 8px; padding: 5px 14px; }
.mock-menu li img { width: 16px; height: 16px; }
.mock-menu li.sep { height: 1px; margin: 5px 0; padding: 0; background: #e3e5e8; }
.mock-menu li.active, .mock-menu li.hover { background: #e8f0fe; }
.mock-menu .chev { margin-left: auto; color: #666; font-size: 15px; }
.mock-menu.sub { width: 220px; margin: 132px 0 0 -6px; }
.mock-menu-wrap .cursor { position: absolute; left: 360px; top: 146px; width: 22px; height: 22px; }

/* Mock browser window and page */
.mock-browser {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid #d6d9dd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.mock-browser.small { max-width: 170px; }
.mock-browser .bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #eef1f4; }
.mock-browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c4c9cf; }
.mock-browser .url { flex: 1; height: 12px; margin-left: 8px; border-radius: 6px; background: #fff; }

.mock-page { position: relative; padding: 14px; background: #fff; }
.mock-page .ln { height: 7px; margin: 7px 0; border-radius: 4px; background: #dfe3e8; }
.mock-page .blk { height: 46px; border-radius: 6px; background: #c9d8f5; }
.mock-page .hero-blk { height: 54px; margin-bottom: 10px; background: linear-gradient(135deg, #a8c3f3, #c5b8f0); }
.mock-page .blk.wide { height: 40px; margin: 10px 0; background: #f3d9b8; }
.mock-page .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.mock-page .cols .blk:nth-child(2) { background: #c8ead3; }
.mock-page .cols .blk:nth-child(3) { background: #f5cdd6; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

.mock-page.captured { outline: 3px solid var(--accent); outline-offset: -3px; }
.mock-page .tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Entire page illustration */
.tall-wrap { position: relative; display: flex; align-items: center; gap: 18px; }
.tall-page {
  position: relative;
  width: 170px;
  background: #fff;
  border: 1px solid #d6d9dd;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.tall-page .mock-page { padding: 10px; }
.tall-page .mock-page .ln { height: 5px; margin: 5px 0; }
.tall-page .mock-page .blk { height: 30px; }
.tall-page .mock-page .hero-blk { height: 36px; }
.screen-frame {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  border: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(26, 115, 232, 0.08);
}
.scroll-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 600; }
.scroll-arrow svg { width: 34px; height: 34px; }
.badge-demo { position: absolute; top: 4px; right: -6px; display: flex; align-items: center; }
.badge-demo img { width: 24px; height: 24px; }
.badge-demo span {
  margin: -16px 0 0 -8px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Select area illustration */
.mock-page.dimmed::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); pointer-events: none; }
.select-box {
  position: absolute;
  z-index: 1;
  left: 22%;
  top: 34%;
  width: 52%;
  height: 34%;
  border: 2px dashed #fff;
  outline: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.001);
}
.mock-page.dimmed .select-box { background: transparent; }
.mock-page.dimmed { isolation: isolate; }
.mock-page.dimmed::after {
  /* Darken everything except the selection, like the real overlay. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 34%, 22% 34%, 22% 68%, 74% 68%, 74% 34%, 0 34%);
}
.select-box .size {
  position: absolute;
  top: -24px;
  left: -2px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}
.drag-cursor { position: absolute; z-index: 2; left: calc(74% - 11px); top: calc(68% - 11px); width: 22px; height: 22px; }

/* Blur before/after */
.before-after { display: flex; align-items: center; gap: 14px; width: 100%; justify-content: center; }
.before-after .mock-page { padding: 10px; }
.before-after .ln { height: 6px; margin: 6px 0; }
.arrow-right { width: 28px; height: 28px; flex: none; color: var(--accent); }
.exclude-box {
  margin: 8px -4px;
  padding: 2px 4px;
  border: 2px dashed #d93025;
  background: repeating-linear-gradient(45deg, rgba(217, 48, 37, 0.3) 0 6px, rgba(255, 255, 255, 0.3) 6px 12px);
}
.blurred { margin: 8px 0; padding: 4px 0; filter: blur(3px); }
.blurred .ln { background: #8f9aa8; }

/* Preview illustration */
.card.wide .figure-box { min-height: 0; padding: 28px; }
.mock-preview {
  width: 100%;
  max-width: 640px;
  background: #f4f6f9;
  border: 1px solid #d6d9dd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: #1c2129;
}
.mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #dde2e8;
}
.mt-info { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mt-info img { width: 22px; height: 22px; }
.mt-info small { display: block; color: #5e6875; font-size: 11px; }
.mt-actions { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.seg { display: inline-flex; padding: 2px; background: #f0f3f7; border: 1px solid #dde2e8; border-radius: 7px; font-size: 11px; font-weight: 600; color: #5e6875; }
.seg span { padding: 2px 8px; border-radius: 5px; }
.seg .on { background: #fff; color: #1c2129; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.mbtn { padding: 4px 10px; border: 1px solid #dde2e8; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 600; }
.mbtn.primary { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.mock-image { padding: 16px 40px; }
.mock-image .mock-page { border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

[data-callout] { position: relative; }
[data-callout]::after {
  content: attr(data-callout);
  position: absolute;
  top: -12px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8710a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.callout-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.callout-list li { display: flex; gap: 10px; align-items: flex-start; }
.callout {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: #e8710a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Settings */
.settings-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; padding: 20px; }
.shot-settings { border: 1px solid var(--border); }
.feature-groups h3 { margin: 18px 0 8px; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.feature-groups h3:first-child { margin-top: 0; }
.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.feature-list li { position: relative; padding-left: 26px; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tip { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; }
.tip h3 { margin: 0 0 4px; font-size: 15px; }
.tip p { margin: 0; color: var(--muted); }

.page-footer { margin-top: 40px; }

@media (max-width: 760px) {
  .grid-2, .tips, .settings-card { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .mock-menu.sub { margin-top: 120px; }
}
@media (max-width: 480px) {
  .mock-menu-wrap { zoom: 0.72; }
  .figure-box { padding: 16px; }
}
