/* Campaign URL Builder site pages: the Blueprint (Чертёж) direction of the extension. Colour tokens are copied from
   panel.css on main (890086d); keep them in step with it. PT Mono for the mono parts, system sans for text. */
@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/pt-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/pt-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #EEF2F7; --surface: #FFFFFF; --surface-2: #E4EAF2; --line: #D3DCE7; --field-line: #7D8CA1;
  --ink: #0E1B2E; --muted: #4B5B71; --accent: #1F4FBF; --accent-ink: #FFFFFF; --accent-hover: #1A44A6;
  --tag-bg: #E1E9FB; --tag-ink: #1A43A3; --kept-ink: #5A6A80; --grid: rgba(31, 79, 191, 0.10);
  --grid-page: rgba(31, 79, 191, 0.045); --focus: #1F4FBF; --tile: #4E82F2;
  --shadow: 0 1px 0 rgba(14, 27, 46, 0.04), 0 12px 32px -16px rgba(14, 27, 46, 0.22);
  --radius: 10px; --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'PT Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1420; --surface: #121C2B; --surface-2: #192536; --line: #243349; --field-line: #5E7090;
    --ink: #E3EAF4; --muted: #9DABC0; --accent: #6F9BF5; --accent-ink: #0A1424; --accent-hover: #86ABF7;
    --tag-bg: rgba(111, 155, 245, 0.16); --tag-ink: #9DBCFA; --kept-ink: #A3B0C3; --grid: rgba(111, 155, 245, 0.09);
    --grid-page: rgba(111, 155, 245, 0.04); --focus: #86ABF7;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: linear-gradient(var(--grid-page) 1px, transparent 1px), linear-gradient(90deg, var(--grid-page) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.mono, code, kbd { font-family: var(--mono); }
code { font-size: 0.92em; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); }
kbd { font-size: 0.86em; padding: 1px 6px; border: 1px solid var(--field-line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--surface); border-radius: 6px; z-index: 2; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-read { max-width: 760px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none;
  font: 400 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted);
  font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--ink); }

.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 40px;
  color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot a { display: inline-block; padding-block: 1px; color: inherit; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-note { flex-basis: 100%; font-size: 13px; }

/* Mono captions with a drawing rule, the Blueprint signature */
.label { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted);
  font: 400 12.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.label b { color: var(--accent); font-weight: 400; }

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 56px; align-items: center; padding-top: 40px; }
.hero h1 { margin: 18px 0 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 20px 0 0; max-width: 32em; color: var(--muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.store { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 12px 18px 12px 14px; min-height: 52px;
  border-radius: 12px; background: var(--tag-bg); }
.store-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.store-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: var(--accent); opacity: 0.18; animation: halo 2.4s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.32; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.store-text { display: flex; flex-direction: column; gap: 2px; }
.store-text strong { font-size: 15px; line-height: 1.3; }
.store-text span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.hero-meta { margin: 14px 0 0; color: var(--ink); font-size: 16px; font-weight: 500; }

/* The specimen: a real merge, as on the Welcome page */
.specimen { position: relative; margin: 0; padding: 22px 24px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); background-color: var(--surface); box-shadow: var(--shadow);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.2px); background-size: 10px 10px; display: flex; flex-direction: column; gap: 14px; }
.spec-before { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.spec-before b { display: block; margin-bottom: 2px; font: 600 12.5px/1.4 var(--font); color: var(--ink); }
.link { display: block; margin: 0; color: var(--ink); font: 400 15px/1.6 var(--mono); overflow-wrap: anywhere; }
.link .seg { display: inline-block; width: 100%; padding-left: 2ch; text-indent: -2ch; }
.seg-kept { color: var(--kept-ink); }
.seg-sep { color: var(--muted); }
.seg-tag { color: var(--tag-ink); }
.seg-tag .tag-key, .seg-tag .tag-eq, .seg-tag .tag-val { background: var(--tag-bg); }
.seg-tag .tag-key { border-radius: 3px 0 0 3px; }
.seg-tag .tag-val { border-radius: 0 3px 3px 0; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.lg-page i { background: var(--ink); } .lg-kept i { background: var(--kept-ink); } .lg-tags i { background: var(--accent); }
.spec-changes { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.spec-changes b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.spec-changes s { color: var(--kept-ink); }

/* Figures */
.fig { margin: 0; }
.frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.fig figcaption { display: flex; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.fig figcaption .mono { flex: none; color: var(--accent); font-size: 12.5px; letter-spacing: 0.06em; padding-top: 2px; }
.shot-main { margin-top: 72px; }

/* Sections */
.sec { margin-top: 112px; }
.sec h2 { margin: 18px 0 0; max-width: 20em; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font: 400 14px/1 var(--mono); letter-spacing: 0.04em; }
.steps h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.features { margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature .mono { color: var(--accent); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.feature h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }

.faq { margin: 32px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 7px; color: var(--accent); font: 400 18px/1 var(--mono); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); text-wrap: pretty; }

/* Reading pages: Privacy and Support */
.doc { padding-top: 24px; }
.doc h1 { margin: 18px 0 8px; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.doc .date { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc .intro { margin: 0 0 32px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.card { padding: 8px 32px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.card h2 { margin: 28px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.card h2 .mono { margin-right: 10px; color: var(--accent); font-size: 14px; font-weight: 400; letter-spacing: 0.04em; }
.card p, .card ul { margin: 0 0 14px; text-wrap: pretty; }
.card ul { padding-left: 22px; }
.card li { margin: 6px 0; }
.card li::marker { color: var(--accent); }
.card h3 { margin: 22px 0 6px; font-size: 17px; line-height: 1.35; }
.card h2 + h3 { margin-top: 12px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); background-color: var(--surface);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.2px); background-size: 10px 10px; box-shadow: var(--shadow); }
.mail p { margin: 0; }
.mail .label { margin-bottom: 6px; }
.mail .label::after { display: none; }
.mail a.addr { font: 400 clamp(17px, 2.4vw, 22px)/1.3 var(--mono); overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 22px 24px 26px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 719px) {
  .wrap { padding: 0 20px; }
  .top { padding-top: 16px; padding-bottom: 16px; }
  .brand { gap: 8px; font-size: 12px; letter-spacing: 0.04em; }
  .nav a { padding: 0 8px; }
  .lead { font-size: 17px; }
  .specimen { padding: 18px 16px; }
  .link { font-size: 13.5px; }
  .sec { margin-top: 80px; }
  .shot-main { margin-top: 48px; }
  .steps, .figs, .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(2n) { padding: 20px 0 22px; border-left: 0; }
  .faq summary { font-size: 17px; }
  .card { padding: 4px 20px 8px; }
  .foot { margin-top: 72px; }
}
@media (max-width: 379px) {
  .brand span { display: none; }
}
@media (max-width: 359px) {
  .wrap { padding: 0 16px; }
  .store { padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
