/* ---------- Extension setup guide ---------- */
.setup { max-width: 900px; }
.setup-hero { text-align: center; padding: 16px 0 8px; }
.setup-hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -1.6px; line-height: 1.02; margin: 8px 0 14px; }
.setup-hero > p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 620px; margin: 0 auto 22px; }

.browser-pick { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.browser-pick .muted { padding: 0 8px 0 12px; font-size: 14px; font-weight: 600; }
.browser-pick button { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.browser-pick button[aria-pressed="true"] { background: var(--orange); color: #121212; }
#unsupported { margin: 20px auto 0; max-width: 640px; text-align: left; }

.progress-wrap { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 26px auto 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.progress-track { flex: 1; height: 8px; border-radius: 999px; background: var(--rest); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 999px; transition: width .4s ease; }

.steps { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 26px 26px 22px; transition: border-color .3s ease, opacity .3s ease; }
.step.is-done { border-color: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.step-head { display: flex; gap: 18px; align-items: flex-start; padding-right: 90px; }
.step-num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #121212; font-family: var(--hand); font-size: 34px; font-weight: 700; line-height: 1; padding-bottom: 4px;
}
.step.is-done .step-num { background: var(--ok); color: var(--bg); }
.step h2 { margin: 4px 0 8px; font-size: 22px; letter-spacing: -.4px; }
.step-head p { margin: 0 0 8px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.step-head p b { color: var(--text); }
.step-body { margin: 16px 0 0 70px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.step-body.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.small { font-size: 14px; margin: 0; }
.tip { padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--border); line-height: 1.55; font-size: 15px; color: var(--muted); }
.tip b { color: var(--text); }
.done { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.done input { width: 20px; height: 20px; accent-color: var(--ok); cursor: pointer; }
.step.is-done .done { color: var(--ok); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }
.copy-row code { font-size: 16px; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Mock screenshots */
.mock { width: 100%; max-width: 440px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); overflow: hidden; font-size: 14px; box-shadow: 0 18px 40px -26px rgba(0,0,0,.5); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--rest); }
.mock-bar em { margin-left: 10px; font-style: normal; font-weight: 700; color: var(--muted); font-size: 13px; }
.hl-ring { box-shadow: 0 0 0 3px var(--orange), 0 0 0 7px rgba(255, 85, 0, .22); border-radius: 10px; animation: ping 1.8s ease-in-out infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 3px var(--orange), 0 0 0 7px rgba(255,85,0,.22); } 50% { box-shadow: 0 0 0 3px var(--orange), 0 0 0 11px rgba(255,85,0,.08); } }

.files { display: flex; gap: 18px; padding: 18px; }
.file { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.file svg { width: 52px; height: 44px; fill: #f2b84b; }
.file.dim { opacity: .45; }
.file.hl { background: rgba(255, 85, 0, .12); outline: 2px solid var(--orange); }

.address { display: flex; align-items: center; gap: 10px; margin: 14px; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--orange); }
.address svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.address b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.caret { width: 2px; height: 18px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ext-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ext-top b { font-size: 16px; }
.devmode { display: inline-flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 600; }
.toggle { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--rest); display: inline-block; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s ease; }
.toggle.on { background: #1a73e8; }
.toggle.on::after { left: 19px; }
.ext-buttons { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px; }
.ext-buttons.faded { opacity: .45; }
.fake-btn { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: #1a73e8; background: var(--bg); }
[data-theme="dark"] .fake-btn { color: #8ab4f8; }
.fake-btn.orange { background: var(--orange); color: #121212; border: 0; border-radius: 999px; padding: 9px 18px; }
.ext-card { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); line-height: 1.35; }
.ext-card img { width: 36px; height: 36px; border-radius: 9px; }
.ext-card > div { flex: 1; min-width: 0; }

.tb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.tb-address { flex: 1; height: 28px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.tb-icon { width: 30px; height: 30px; padding: 5px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; border-radius: 8px; }
.tb-pinned { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 2px var(--orange); }
.tb-menu { margin: 10px 14px 14px auto; width: 230px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.tb-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; }
.tb-item img { width: 24px; height: 24px; border-radius: 6px; }
.tb-item span { flex: 1; }
.pin { width: 26px; height: 26px; padding: 4px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; border-radius: 8px; }

.mock-popup { max-width: 300px; padding: 0 0 16px; }
.mock-popup .pp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-popup .pp-head img { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 2px var(--orange); }
.mock-popup p { margin: 12px 14px 8px; font-size: 13px; }
.pp-code { margin: 0 14px 12px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.mock-popup .fake-btn { margin-left: 14px; }

.mock-live { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ml-track { display: flex; gap: 12px; align-items: center; }
.ml-track img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; object-position: top; background: var(--surface); }
.mock-live .bar { width: 100%; }

.all-done { text-align: center; margin: 30px 0 10px; padding: 34px 24px; border-radius: 28px; background: var(--surface); border: 2px solid var(--ok); }
.all-done h2 { font-size: 30px; margin: 6px 0 8px; letter-spacing: -.8px; }
.all-done p { color: var(--muted); margin: 0 0 20px; }

.faq-card { margin: 28px 0 10px; }
.faq-card h2 { margin-bottom: 10px; }
.faq-card details { border-top: 1px solid var(--border); }
.faq-card summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; transition: rotate .2s ease; }
.faq-card details[open] summary::after { rotate: 45deg; }
.faq-card details p { margin: 0 0 16px; line-height: 1.6; }

@media (max-width: 760px) {
  .step { padding: 20px 18px 18px; }
  .step-head { gap: 14px; padding-right: 0; }
  .step-num { width: 42px; height: 42px; font-size: 28px; }
  .step-body { margin-left: 0; }
  .step-body.two { grid-template-columns: 1fr; }
  .done { position: static; margin-top: 14px; }
  .step h2 { font-size: 19px; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-ring, .caret { animation: none; }
}

/* "It's easy, promise" note with the girl */
.easy-note { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 0 auto 24px; max-width: 560px; }
.easy-note img { width: 92px; height: auto; flex-shrink: 0; transform-origin: 50% 100%; animation: easySway 4.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.easy-bubble {
  position: relative; margin-bottom: 34px; padding: 14px 18px; text-align: left;
  background: var(--surface); border: 2px solid var(--text); border-radius: 20px 20px 20px 6px;
  font-family: var(--hand); line-height: 1.15; rotate: -1.5deg; animation: easyFloat 3s ease-in-out infinite;
}
.easy-bubble::before { content: ""; position: absolute; left: -9px; bottom: 12px; width: 14px; height: 14px; background: var(--surface);
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); rotate: 45deg; }
.easy-bubble b { display: block; font-size: 26px; color: var(--accent-text); }
.easy-bubble span { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; color: var(--text); }
@keyframes easySway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@keyframes easyFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 520px) {
  .easy-note img { width: 70px; }
  .easy-bubble b { font-size: 22px; }
  .easy-bubble span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .easy-note img, .easy-bubble { animation: none; } }
