/* Piko browser extension install page. Website tokens (contact.css); radii, motion and 44pt targets
   from the Piko design system: input/button 12, settings card 20, capsule picker; enter 0.32 s
   (0.16,1,0.30,1), layout 0.24 s, press 0.97. */
:root { color-scheme: light; --canvas: #fff; --ink: #111; --muted: #66666b; --line: #e5e5ea; --wash: #f5f5f3; --raised: #fff; --on-ink: #fff;
  --enter: cubic-bezier(.16, 1, .3, 1); --smooth: cubic-bezier(.2, .8, .2, 1); }
:root[data-theme="dark"] { color-scheme: dark; --canvas: #000; --ink: #f4f4f4; --muted: #acacb4; --line: #2c2c30; --wash: #141414; --raised: #1c1c1e; --on-ink: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --canvas: #000; --ink: #f4f4f4; --muted: #acacb4; --line: #2c2c30; --wash: #141414; --raised: #1c1c1e; --on-ink: #000; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
p, h1, ol { margin: 0; }
button, select { font: inherit; color: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
:where(a, button, select):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--on-ink); z-index: 10; }
.skip-link:focus { top: 12px; }

.ex-shell { width: min(100% - 56px, 1080px); margin: auto; }
.ex-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 23px; font-weight: 650; letter-spacing: -.04em; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.header-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.theme-control select { min-height: 44px; max-width: 132px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }

main { max-width: 720px; margin: auto; padding: 64px 0 40px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.25; letter-spacing: -.05em; font-weight: 650; margin-bottom: 32px; }
html[lang="en"] h1 { letter-spacing: -.035em; }

/* Browser picker: one capsule, a sliding selection plate (layout 0.24 s). */
.ex-picker { --ex-at: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: var(--wash); isolation: isolate; }
.ex-picker::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--raised);
  box-shadow: 0 1px 2px #0000001f, 0 0 0 .5px #0000000f; transform: translateX(calc(var(--ex-at) * 100%)); transition: transform .24s var(--smooth); }
:root[data-theme="dark"] .ex-picker::before { box-shadow: 0 0 0 .5px #ffffff1f; }
.ex-picker button { min-height: 44px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .18s ease; }
.ex-picker button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.ex-picker button:active { transform: scale(.97); transition: transform .1s var(--smooth); }
.ex-detected { margin-top: 14px; min-height: 24px; font-size: 13px; color: var(--muted); }

.ex-panel { margin-top: 32px; }
.ex-panel.ex-enter { animation: ex-enter .32s var(--enter) both; }
@keyframes ex-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 48px; }
.ex-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--ink); color: var(--on-ink);
  font-weight: 600; text-decoration: none; transition: transform .28s cubic-bezier(.3, 1.3, .5, 1), opacity .15s ease; }
.ex-primary:hover { opacity: .88; }
.ex-primary:active { transform: scale(.97); transition-duration: .1s; }
.ex-actions .ex-primary + .ex-primary { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ex-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-lead { color: var(--muted); margin-bottom: 20px; }
.ex-mobile { margin-bottom: 32px; padding: 20px; border-radius: 20px; background: var(--wash); }
.ex-mobile .ex-lead { color: var(--ink); margin-bottom: 16px; }

.ex-manual { margin-top: 28px; }
.ex-steps { list-style: none; padding: 0; counter-reset: ex; display: grid; gap: 4px; }
.ex-steps li { counter-increment: ex; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 4px 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ex-steps li::before { content: counter(ex); width: 24px; height: 24px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-steps p { min-width: 0; overflow-wrap: anywhere; }
.ex-steps code { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 8px; background: var(--wash); white-space: nowrap; }
.ex-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: none; font-size: 13px; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.ex-copy:hover { background: var(--wash); color: var(--ink); }
.ex-copy:active { transform: scale(.97); }
.ex-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ex-copy.ex-done { color: var(--ink); }
.ex-shot { display: block; margin-top: 24px; }
.ex-shot img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); background: var(--wash); }
.ex-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.ex-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; }
.ex-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 640px) {
  .ex-shell { width: calc(100% - 32px); }
  .ex-header { padding: 12px 0; gap: 8px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 32px; height: 36px; }
  .header-actions { gap: 12px; }
  .theme-control { display: none; }
  main { padding: 36px 0 24px; }
  h1 { margin-bottom: 24px; }
  .ex-picker button { font-size: 14px; }
  .ex-actions { min-height: 84px; }
  .ex-primary { width: 100%; }
  .ex-actions .ex-meta { width: 100%; text-align: center; }
  .ex-steps li { grid-template-columns: 28px 1fr; }
  .ex-copy { grid-column: 2; justify-self: start; margin-left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-picker::before, .ex-picker button, .ex-primary, .ex-copy { transition: none; }
  .ex-panel.ex-enter { animation: ex-fade .12s ease both; }
  @keyframes ex-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Real screenshots (简体) and questions. */
.ex-gallery { display: grid; gap: 16px; margin-top: 24px; }
.ex-gallery .ex-shot { margin-top: 0; }
.ex-faq { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.ex-faq h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
.ex-faq details { border-bottom: 1px solid var(--line); }
.ex-faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; list-style: none; }
.ex-faq summary::-webkit-details-marker { display: none; }
.ex-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-weight: 500; transition: transform .24s var(--smooth); }
.ex-faq details[open] summary::after { transform: rotate(45deg); }
.ex-faq details p { color: var(--muted); padding: 0 0 18px; }
.ex-faq details[open] p { animation: ex-enter .32s var(--enter) both; }
@media (prefers-reduced-motion: reduce) { .ex-faq summary::after { transition: none; } .ex-faq details[open] p { animation: none; } }
