@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #061a13; --panel: #0b261c; --line: #174534; --text: #f1fff8; --soft: #a3d4be; --mint: #2aeb8d; --ink: #05241a; --red: #ef4444;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 'Poppins', system-ui, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--mint); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; font-weight: 600; margin: 36px 0 10px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--mint); }
h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.lead { font-size: 19px; color: var(--soft); margin: 0 0 24px; }
p, li { color: #d6f5e6; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--mint); color: var(--ink); font: 600 16px 'Poppins', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--mint); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.small { font-size: 14px; color: var(--soft); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--soft); }

/* the licence key */
.key-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.key { flex: 1 1 260px; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1px dashed var(--mint); background: var(--bg); color: var(--text); font: 600 17px/1.3 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
[hidden] { display: none !important; }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 600; display: grid; place-items: center; }
.steps b { color: var(--text); font-weight: 600; }

/* the moving demo: a small copy of the extension window */
.demo { display: grid; gap: 14px; justify-items: center; }
.bar { width: min(100%, 420px); display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 8px 12px; border-radius: 12px 12px 0 0; background: #202124; border: 1px solid #3c4043; border-bottom: 0; }
.bar .url { flex: 1; height: 26px; border-radius: 13px; background: #303134; }
.bar .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: background 0.3s, box-shadow 0.3s; }
.bar .ico img { width: 18px; height: 18px; }
.pop { width: min(100%, 300px); background: var(--bg); border: 1px solid var(--line); border-radius: 0 0 14px 14px; padding: 14px; margin-top: -14px; opacity: 0.25; transition: opacity 0.4s; }
.pop .head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; }
.pop .head img { width: 24px; height: 24px; }
.pop .fake { border-radius: 10px; padding: 9px; text-align: center; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pop .start { background: var(--mint); color: var(--ink); }
.pop .plan { font-size: 12px; color: var(--soft); text-align: center; }
.pop .plan u { color: var(--mint); border-radius: 4px; padding: 0 2px; transition: background 0.3s, color 0.3s; }
.pop .field { border: 1px solid var(--line); border-radius: 10px; padding: 9px; font: 500 13px ui-monospace, Consolas, monospace; min-height: 38px; margin: 10px 0 8px; color: var(--text); background: var(--panel); overflow: hidden; white-space: nowrap; transition: border-color 0.3s; }
.pop .act { background: var(--mint); color: var(--ink); transition: transform 0.2s, box-shadow 0.3s; }
.pop .ok { font-size: 13px; color: var(--mint); text-align: center; min-height: 20px; font-weight: 600; }
.pop .keypart { max-height: 0; overflow: hidden; transition: max-height 0.5s; }
.caption { min-height: 52px; text-align: center; font-weight: 500; color: var(--text); }
.demo[data-s="1"] .ico.me { background: #3c4043; box-shadow: 0 0 0 3px var(--mint); }
.demo[data-s="2"] .pop, .demo[data-s="3"] .pop, .demo[data-s="4"] .pop, .demo[data-s="5"] .pop { opacity: 1; }
.demo[data-s="2"] .plan u { background: var(--mint); color: var(--ink); }
.demo[data-s="3"] .keypart, .demo[data-s="4"] .keypart, .demo[data-s="5"] .keypart { max-height: 140px; }
.demo[data-s="3"] .field { border-color: var(--mint); }
.demo[data-s="4"] .act { transform: scale(0.96); box-shadow: 0 0 0 3px rgba(42, 235, 141, 0.35); }
@media (prefers-reduced-motion: reduce) { .pop, .bar .ico, .pop * { transition: none; } }
@media (max-width: 520px) { body { font-size: 16px; } .wrap { padding: 20px 16px 40px; } }
