/* Self-hosted Inter (woff2) — see public/fonts/ */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400-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:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500-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:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600-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:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700-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:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/inter-800-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;}

/* ============================================================
   SaveJet — design tokens
   ============================================================ */
:root {
  /* brand accent (shared light/dark) */
  --grad: linear-gradient(120deg, #8A2BE2, #B026A8, #E1306C);
  --grad-start: #8a2be2; --grad-mid: #b026a8; --grad-end: #e1306c;
  --solid: #B026A8;
  --glow: rgba(176, 38, 168, 0.38);
  --radius: 16px;
  --input-border: #7b7b7b; /* deliberately stronger than --border so the paste box stands out */

  /* neutrals — light */
  --page: #F7F8FB;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --text: #11151C;
  --muted: #6B7280;
  --faint: #9AA3B2;
  --border: #E7EBF3;
  --hover: #EDF0F6;
  --shadow: 0 8px 24px rgba(20, 30, 60, 0.07);

  /* state colors */
  --ok: #12B76A;
  --err: #F04438;

  /* result-view aliases (keep the existing downloader UI unchanged) */
  --blue: #2f7bf6;
  --blue-hover: #1f63d6;
  --page-bg: var(--page);
  --card-bg: var(--surface);
  --nav-bg: var(--surface);
}

body.dark {
  --page: #0F1217;
  --surface: #181C24;
  --surface-2: #0F1217;
  --text: #EEF1F6;
  --muted: #9AA6B4;
  --faint: #717B89;
  --border: #262B36;
  --hover: #1E2430;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --ok: #34D399;
  --err: #F97066;
  /* re-resolve result-view aliases against the dark surface */
  --page-bg: var(--page);
  --card-bg: var(--surface);
  --nav-bg: var(--surface);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
input::placeholder { color: var(--faint); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 8px; }
.hbtn { display: flex; align-items: center; gap: 6px; height: 38px; font-family: inherit; font-size: 14px; cursor: pointer; border-radius: 10px; color: var(--text); }
.hbtn-text { padding: 0 14px; text-decoration: none; font-weight: 600; background: transparent; border: none; }
.hbtn-text:hover { background: var(--surface); }
.hbtn-bordered { padding: 0 12px; background: transparent; border: 1px solid var(--border); font-weight: 500; }
.hbtn-bordered:hover { background: var(--surface); }
.hbtn-icon { width: 38px; justify-content: center; background: transparent; border: 1px solid var(--border); }
.hbtn-icon:hover { background: var(--surface); }
.lang-btn .chev { color: var(--faint); transition: transform 180ms ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.adv-short { display: none; }

/* ── Language dropdown ─────────────────────────────────────────────── */
.lang-wrap { position: relative; }
.lang-backdrop { display: none; } /* desktop: dropdown, no page dim */
.lang-menu {
  position: fixed; z-index: 60; /* top/right set by JS, anchored to the button */
  width: 400px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20,30,60,0.16); padding: 12px;
  display: flex; flex-direction: column;
}
body.dark .lang-menu { box-shadow: 0 18px 48px rgba(0,0,0,0.6); }
.lang-menu[hidden] { display: none; }
.lang-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.lang-menu-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lang-close { display: none; border: none; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; }
.lang-close:hover { background: var(--surface-2); color: var(--text); }
.lang-search { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; margin-bottom: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--faint); }
.lang-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; color: var(--text); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow-y: auto; }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 12px; border: none; background: transparent; border-radius: 9px;
  font-family: inherit; font-size: 14.5px; color: var(--text); text-align: left; cursor: pointer;
}
html[dir="rtl"] .lang-opt { text-align: right; }
.lang-opt:hover { background: var(--surface-2); }
.lang-opt:focus-visible { outline: 2px solid var(--solid); outline-offset: -2px; }
.lang-opt .lo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-opt .lo-check { flex: none; color: var(--solid); display: none; }
.lang-opt[aria-selected="true"] { background: color-mix(in srgb, var(--solid) 10%, transparent); color: var(--solid); font-weight: 600; }
.lang-opt[aria-selected="true"] .lo-check { display: inline-flex; }
.lang-empty { margin: 8px 6px; font-size: 14px; color: var(--muted); text-align: center; }
.lang-empty[hidden] { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 88px 24px 50px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pills { margin: 0 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.pill .ic { display: inline-flex; color: var(--muted); }
.pill:hover { transform: translateY(-1px); }
.pill.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--glow); }
.pill.active .ic { color: #fff; }

.hero-title { margin: 0; max-width: 780px; font-size: 54px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.hero-sub { margin: 22px 0 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* Paste box (= functional search form) */
.paste-box { position: relative; margin-top: 48px; width: 100%; max-width: 740px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--input-border); border-radius: 16px; box-shadow: var(--shadow); padding: 15px 12px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.paste-box:focus-within { border-color: var(--solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--solid) 13%, transparent); }
.paste-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 12px; transition: background 0.2s ease; }
.paste-ico { flex: none; display: inline-flex; color: var(--faint); }
.paste-ico .ico-check { display: none; }
/* Ready state — fetch succeeded (mirrors Components "Ready") */
.paste-field.is-ready .paste-ico { color: #12B76A; }
.paste-field.is-ready .paste-ico .ico-link { display: none; }
.paste-field.is-ready .paste-ico .ico-check { display: inline-flex; }
body.dark .paste-field.is-ready { background: rgba(18, 183, 106, 0.10); border-color: rgba(108, 233, 166, 0.5); }
body.dark .paste-field.is-ready .paste-ico { color: #34D399; }
#url-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 16.5px; color: var(--text); }
.paste-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: none; background: var(--border); border-radius: 9px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--solid); cursor: pointer; transition: background 140ms ease; }
.paste-btn:hover { background: var(--hover); }
.paste-btn .ic { display: inline-flex; transition: transform 160ms ease; }
.paste-btn:hover .ic { transform: scale(1.14); }
.btn-grad { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; padding: 0 16px;border-radius: 12px; background: var(--grad); color: #fff; text-decoration: none; font-family: inherit; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 6px 18px var(--glow); transition: box-shadow 180ms ease; }
.btn-grad:hover { box-shadow: 0 10px 26px var(--glow); }
.download-cta { flex: none; height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; }
.download-cta .ic { display: inline-flex; }
.download-cta:disabled { cursor: default; }
/* default / processing label swap */
.dl-default { display: inline-flex; align-items: center; gap: 9px; }
.dl-loading { display: none; align-items: center; gap: 9px; }
.download-cta.is-loading { opacity: 0.55; }
.download-cta.is-loading .dl-default { display: none; }
.download-cta.is-loading .dl-loading { display: inline-flex; }
.dl-loading .spin-ic { display: inline-flex; animation: spin 0.9s linear infinite; }

.trust-row { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust-row li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--solid); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Ad slot */
.ad-slot { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B6BECC; }
/* Clean reserved container — content is injected from /ads.json by app.js.
   Fixed size keeps layout stable (no CLS) whether empty or filled. */
.ad-box { max-width: 100%; display: flex; align-items: center; justify-content: center; }
.ad-728 { width: 728px; height: 90px; }

/* ============================================================
   Sections
   ============================================================ */
.sec { border-top: 1px solid var(--border); }
.sec > .wrap { padding: 88px 24px; }
.sec-surface { background: var(--surface); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto; }
.sec-head h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.sec-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sec-h2 { margin: 14px 0 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.sec-p { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Steps */
.steps { margin-top: 64px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps::before { content: ""; position: absolute; top: 30px; left: 16.6%; right: 16.6%; height: 1px; background: var(--border); }
/* glowing accent that travels along the connector line */
.steps::after {
  content: ""; position: absolute; top: 29.5px; left: 16.6%; right: 16.6%; height: 2px; border-radius: 2px;
  z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--grad-mid), var(--grad-end), transparent);
  background-size: 32% 100%; background-repeat: no-repeat; background-position: -32% 0;
  animation: step-flow 3.2s linear infinite;
}
@keyframes step-flow { 0% { background-position: -32% 0; } 100% { background-position: 132% 0; } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-icon-wrap { position: relative; }
.step-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: transform 200ms ease; }
/* each icon pulses in turn as the comet passes */
.step:nth-child(1) .step-icon { animation: step-glow 3.2s ease-in-out infinite; }
.step:nth-child(2) .step-icon { animation: step-glow 3.2s ease-in-out infinite; animation-delay: 1.06s; }
.step:nth-child(3) .step-icon { animation: step-glow 3.2s ease-in-out infinite; animation-delay: 2.13s; }
@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border); color: var(--text); }
  10% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--solid) 16%, transparent), 0 8px 22px var(--glow); border-color: var(--solid); color: var(--solid); }
  24% { box-shadow: 0 0 0 0 transparent; border-color: var(--border); color: var(--text); }
}
.step:hover .step-icon { transform: translateY(-3px); }
.step-n { position: absolute; top: -9px; right: -9px; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 3px 9px var(--glow); border: 2px solid var(--surface); }
.step h3 { margin: 24px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 290px; text-wrap: pretty; }
.step-tip { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.step-tip strong { color: var(--text); font-weight: 600; }

/* Address bar */
.address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.check-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.ic-check { flex: none; display: inline-flex; color: var(--solid); }
.browser-mock { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; transition: transform 220ms ease, box-shadow 220ms ease; }
.browser-mock:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 30, 60, 0.12); }
body.dark .browser-mock:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55); }
.browser-dots { display: flex; gap: 7px; margin-bottom: 14px; }
.browser-dots span { position: relative; width: 12px; height: 12px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
/* macOS-style window controls — symbols reveal on hover, clean at rest */
.browser-dots span::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; line-height: 1; color: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.18s ease; }
.browser-mock:hover .d-red::after { content: "\00d7"; opacity: 1; }
.browser-mock:hover .d-yel::after { content: "\2013"; opacity: 1; }
.browser-mock:hover .d-grn::after { content: "+"; opacity: 1; }
.browser-bar { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; height: 54px; padding: 0 8px 0 18px; }
.browser-bar .lock { flex: none; color: var(--faint); }
.browser-url { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url .grad-text { font-weight: 700; }
.browser-url .url-rest { color: var(--muted); }
/* prefix types itself with a blinking caret */
.browser-url .type-prefix { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid var(--solid); animation: type-prefix 5s infinite, prefix-caret 0.8s step-end infinite; }
@keyframes type-prefix { 0% { max-width: 0; } 18% { max-width: 7ch; } 82% { max-width: 7ch; } 90% { max-width: 0; } 100% { max-width: 0; } }
@keyframes prefix-caret { 0%, 100% { border-color: var(--solid); } 50% { border-color: transparent; } }
.enter-key { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); animation: enter-press 5s infinite; }
@keyframes enter-press { 0%, 16% { transform: none; box-shadow: none; } 22% { transform: scale(0.95); box-shadow: 0 0 0 3px color-mix(in srgb, var(--solid) 20%, transparent); } 30%, 100% { transform: none; box-shadow: none; } }
.browser-body { margin-top: 14px; min-height: 96px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 16px; }
.browser-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* shortcut action buttons (copy prefix + bookmarklet) */
.shortcut-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sc-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color 140ms ease, color 140ms ease, background 140ms ease; }
.sc-btn:hover { border-color: var(--solid); color: var(--solid); }
.sc-btn svg { display: block; flex: none; }
.bookmarklet { background: var(--surface-2); cursor: grab; }
.bookmarklet:active { cursor: grabbing; }
.bm-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.bm-hint strong { color: var(--text); font-weight: 600; }
.bm-hint[hidden] { display: none; }

/* Feature / why cards */
.feature-grid { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.feature-grid .feature-card { flex: 1 1 300px; max-width: 360px; cursor: pointer; }
.why-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform 160ms ease; }
a.feature-card { text-decoration: none; color: inherit; }
.feature-card:hover { transform: translateY(-2px); }
/* 1px conic-gradient glow that orbits the border on hover — border width unchanged */
@property --bd-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.feature-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--bd-angle), transparent 0%, var(--solid) 12%, var(--grad-end) 24%, transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity 250ms ease; pointer-events: none;
}
.feature-card:hover::before { opacity: 1; animation: bd-rotate 2.4s linear infinite; }
@keyframes bd-rotate { to { --bd-angle: 360deg; } }
.fc-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: transform 200ms ease; }
.fc-icon svg { width: 24px; height: 24px; }
.feature-card:hover .fc-icon { transform: translateY(-3px); }
.feature-card h3 { margin: 18px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.about-graphic { width: 100%; height: 400px; max-width: 480px; border-radius: 20px; background: linear-gradient(135deg, rgba(138,43,226,0.12), rgba(225,48,108,0.12)); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 32px; }
.ag-card { width: 100%; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
/* animated micro-demo: type link → fetch → results pop in → download pulses */
.ag-bar { display: flex; align-items: center; gap: 10px; }
.ag-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); flex: none; }
.ag-typed { height: 10px; border-radius: 6px; background: var(--surface-2); width: 72%; max-width: 72%; animation: ag-type 5.5s ease-in-out infinite; }
.ag-progress { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 0; }
.ag-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); opacity: 0; animation: ag-prog 5.5s ease-in-out infinite; }
.ag-grid { margin: 14px 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag-grid span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, rgba(138,43,226,0.22), rgba(225,48,108,0.22)); opacity: 1; animation: ag-cell 5.5s ease-in-out infinite; }
.ag-grid span:nth-child(1) { animation-delay: 0s; }
.ag-grid span:nth-child(2) { animation-delay: 0.08s; }
.ag-grid span:nth-child(3) { animation-delay: 0.16s; }
.ag-grid span:nth-child(4) { animation-delay: 0.24s; }
.ag-grid span:nth-child(5) { animation-delay: 0.32s; }
.ag-grid span:nth-child(6) { animation-delay: 0.4s; }
.ag-btn { height: 40px; border-radius: 10px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px var(--glow); animation: ag-btn 5.5s ease-in-out infinite; }
@keyframes ag-type { 0% { width: 0; } 15% { width: 72%; } 88% { width: 72%; } 96%, 100% { width: 0; } }
@keyframes ag-prog { 0%, 15% { width: 0; opacity: 1; } 35% { width: 100%; opacity: 1; } 42%, 100% { width: 100%; opacity: 0; } }
@keyframes ag-cell { 0%, 33% { opacity: 0; transform: scale(0.92); } 44% { opacity: 1; transform: scale(1); } 86% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(0.92); } }
@keyframes ag-btn { 0%, 52% { transform: none; box-shadow: 0 6px 16px var(--glow); } 60% { transform: scale(1.04); box-shadow: 0 12px 28px var(--glow); } 68%, 100% { transform: none; box-shadow: 0 6px 16px var(--glow); } }

/* Privacy note */
.privacy-note { margin-top: 24px; display: flex; align-items: flex-start; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.pn-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--solid); }
.privacy-note p { margin: 0; align-self: center; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.privacy-note strong { color: var(--text); font-weight: 600; }

/* Tools nav */
.tools-list { margin: 48px auto 0; max-width: 840px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.tool-row { display: flex; align-items: center; gap: 16px; padding: 18px 24px; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); }
.tool-row:first-child { border-top: none; }
.tool-row:hover { background: var(--surface-2); }
.tr-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: transform 180ms ease; }
.tool-row:hover .tr-icon { transform: translateY(-2px); }
.tr-name { flex: none; width: 130px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tr-desc { flex: 1; min-width: 0; font-size: 15px; color: var(--muted); }
.tr-arrow { flex: none; display: inline-flex; color: var(--faint); transition: transform 180ms ease; }
.tool-row:hover .tr-arrow { transform: translateX(4px); }

/* FAQ */
.faq-list { margin: 48px auto 0; max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-group-title { margin: 26px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--solid); }
.faq-group-title:first-child { margin-top: 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--text); }
.faq-toggle { flex: none; position: relative; width: 20px; height: 20px; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: var(--solid); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
.faq-toggle::before { top: 9px; left: 2px; width: 16px; height: 2.4px; }
.faq-toggle::after { left: 9px; top: 2px; width: 2.4px; height: 16px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.faq-cta { margin: 32px auto 0; max-width: 820px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.faq-cta p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============================================================
   Inner tool pages (generated via scripts/build-pages.js)
   ============================================================ */
/* breadcrumb bar (matches BreadcrumbList schema) + freshness date */
.crumbs { border-bottom: 1px solid var(--border); background: var(--surface); }
.crumbs-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; flex-wrap: wrap; }
.crumb-list { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; }
.crumb-list li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.crumb-list li::after { content: "›"; color: var(--faint); }
.crumb-list li:last-child::after { content: ""; }
.crumb-list a { color: var(--muted); text-decoration: none; }
.crumb-list a:hover { color: var(--text); }
.crumb-list li[aria-current="page"] { color: var(--text); font-weight: 600; }
.crumb-updated { font-size: 12.5px; color: var(--muted); }
/* AI-Overview / featured-snippet answer callout */
.answer-box { max-width: 760px; margin: 20px auto 8px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--solid); border-radius: 12px; padding: 20px 24px; font-size: 17px; line-height: 1.65; color: var(--text); text-align: left; text-wrap: pretty; }
.answer-box + .steps { margin-top: 48px; }
/* long-form body copy */
.prose { max-width: 760px; margin: 0 auto; text-align: left; margin-top: 40px; }
.prose h2 { margin: 40px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 14px 0 0; font-size: 16px; line-height: 1.75; color: var(--text); text-wrap: pretty; }
.prose strong { font-weight: 700; }
/* how-to guide numbered steps */
.guide-steps { max-width: 760px; margin: 22px auto 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.guide-steps li { position: relative; padding-left: 46px; font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.guide-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px var(--glow); }
.guide-steps strong { font-weight: 700; }
/* figure list-item sits between steps with no number/indent */
.guide-steps .gf-li { padding-left: 0; list-style: none; }
.guide-steps .gf-li::before { content: ""; counter-increment: none; display: none; }
.guide-steps .gf-li .guide-figure { margin: 6px 0 4px; }
/* illustrative figure in how-to guides */
.guide-figure { max-width: 760px; margin: 30px auto 0; }
.guide-figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.guide-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; text-wrap: pretty; }

/* comparison table (vs pages) */
.compare-wrap { max-width: 760px; margin: 26px auto 0; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface-2); font-weight: 700; color: var(--text); text-align: center; }
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th:nth-child(2) { color: var(--solid); }
.compare-table tbody th { font-weight: 600; color: var(--text); text-align: left; }
.compare-table tbody td { text-align: center; color: var(--text); }
.compare-table td.ct-sj { background: color-mix(in srgb, var(--solid) 7%, transparent); font-weight: 600; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.ct-yes { color: var(--ok); font-weight: 700; }
.ct-no { color: var(--faint); }
.compare-note { max-width: 760px; margin: 12px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; text-wrap: pretty; }

/* spec table */
.spec-table { width: 100%; max-width: 760px; margin: 28px auto 0; border-collapse: collapse; font-size: 15px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.spec-table td { color: var(--text); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ============================================================
   404 page
   ============================================================ */
.notfound { border-top: 1px solid var(--border); text-align: center; }
.notfound > .wrap { max-width: 640px; padding: 72px 24px 88px; }
.nf-code { margin: 0; font-size: 108px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.notfound h1 { margin: 12px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.notfound > .wrap > p { margin: 14px auto 0; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.nf-actions { margin: 28px 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf-tools { margin: 48px auto 0; max-width: 560px; }
.nf-tools h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.nf-tools .tools-list { margin: 0; text-align: left; }
@media (max-width: 640px) { .nf-code { font-size: 84px; } .notfound h1 { font-size: 25px; } }

/* ============================================================
   Content pages (legal / contact / advertise)
   ============================================================ */
.legal { border-top: 1px solid var(--border); }
.legal > .wrap { max-width: 820px; padding: 60px 24px 80px; }
.legal h1 { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.legal .updated { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.legal .lead { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.legal h2 { margin: 44px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.legal p { margin: 14px 0 0; font-size: 16px; line-height: 1.75; color: var(--text); text-wrap: pretty; }
.legal ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal li { font-size: 16px; line-height: 1.65; color: var(--text); }
.legal a { color: var(--solid); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
/* button-style links inside content pages must keep their own colours, not the prose-link pink */
.legal a.btn-grad { color: #fff; }
.legal a.btn-grad:hover, .legal a.sc-btn:hover { text-decoration: none; }
.legal a.sc-btn { color: var(--text); }
.legal a.sc-btn:hover { color: var(--solid); }
.legal strong { font-weight: 700; }
.legal .panel { margin: 28px 0 0; padding: 22px 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.legal .panel p:first-child { margin-top: 0; }
.legal .contact-actions { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.legal .btn-grad.cta-lg { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .legal h1 { font-size: 30px; } .legal > .wrap { padding: 44px 20px 60px; } }

/* editorial byline + author card (guides / comparisons / roundups) */
.byline { max-width: 760px; margin: 2px auto 14px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.byline-mark { width: 18px; height: 18px; border-radius: 6px; flex: none; }
.byline-by a { color: var(--text); font-weight: 600; text-decoration: none; }
.byline-by a:hover { text-decoration: underline; }
.byline-sep { color: var(--faint); }
.byline-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.author-box { max-width: 760px; margin: 44px auto 0; display: flex; gap: 16px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.ab-avatar { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.ab-body { text-align: start; }
p.ab-name { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
p.ab-bio { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
p.ab-bio a { color: var(--text); font-weight: 600; }
a.ab-link { font-size: 13.5px; font-weight: 600; color: var(--solid); text-decoration: none; }
a.ab-link:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { padding: 64px 24px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin: 18px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.footer-col h4 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.footer-col a { display: block; margin-bottom: 11px; text-decoration: none; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
    text-wrap: pretty;
    margin-bottom: 10px;
}

/* ── Back to top ───────────────────────────────────────────────────── */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--solid); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s, background 0.18s ease, color 0.18s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* ============================================================
   Icon animations (CSS reproduction of lucide-animated)
   ============================================================ */
.theme-btn .ic-moon { transition: transform 240ms ease; }
.theme-btn:hover .ic-moon { transform: rotate(-18deg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Results view (downloader UI) — kept as-is, themed via tokens
   ============================================================ */
#output { width: 100%; }
.status { text-align: center; margin: 22px auto 0; font-size: 15px; color: var(--muted); min-height: 1em; max-width: 760px; }
.status.error { color: var(--err); background: color-mix(in srgb, var(--err) 9%, transparent); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); border-radius: 12px; padding: 14px 18px; font-weight: 500; }

.results-title { text-align: center; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 80px 0 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; text-align: left; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1.12; background: var(--surface-2); overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 12px; background: rgba(40, 44, 52, 0.6); color: #fff; border: none; width: 34px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; backdrop-filter: blur(2px); }
.badge:hover { background: rgba(40, 44, 52, 0.8); }
.badge-expand { right: 12px; }
.badge-play { right: 54px; pointer-events: none; }
.card-tags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-tag { background: rgba(17, 21, 28, 0.72); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1; backdrop-filter: blur(2px); }
.card-tag.type { display: inline-flex; align-items: center; gap: 5px; }
.card-tag.type svg { display: block; }

.card-caption { padding: 10px 14px 0; font-size: 14px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 20px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 14px; color: var(--muted); font-size: 12.5px; }
.card-footer .cf-left { display: inline-flex; align-items: center; gap: 14px; }
.card-footer .cf-item { display: inline-flex; align-items: center; gap: 5px; }
.card-footer .cf-item svg { width: 14px; height: 14px; }

.card-actions { padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.btn-download { display: block; flex: 1 1 auto; width: auto; min-width: 140px; text-align: center; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 16px; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; }
.btn-download:hover { background: var(--blue-hover); }
.btn-download.loading { opacity: 0.7; pointer-events: none; }
.btn-audio { display: inline-flex; align-items: center; justify-content: center; background: var(--card-bg); color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; font-weight: 700; font-size: 14px; padding: 0 14px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-audio:hover { background: var(--blue); color: #fff; }

/* Result summary bar + Download All */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 20px; margin: 0 0 22px; text-align: left; }
.rb-info { font-size: 16px; color: var(--muted); }
.rb-info b { color: var(--text); font-weight: 700; }
.rb-sub { color: var(--faint); }
.btn-dlall { display: inline-flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--solid) 10%, transparent); color: var(--solid); border: 1px solid color-mix(in srgb, var(--solid) 32%, transparent); cursor: pointer; font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: background 140ms ease; }
.btn-dlall:hover { background: color-mix(in srgb, var(--solid) 16%, transparent); }
.btn-dlall:disabled { opacity: 0.65; cursor: default; }
.btn-dlall .ic { display: inline-flex; }

/* Post details — caption card + meta strip (token-driven, blends in dark) */
.post-details { max-width: 680px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 16px; }
.post-caption { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 20px 22px; }
.post-caption-text { font-size: 15px; color: var(--text); line-height: 1.6; white-space: pre-wrap; margin: 0 0 14px; text-align: left; }
.caption-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-copy { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; padding: 7px 14px; cursor: pointer; }
.btn-copy:hover { border-color: var(--solid); color: var(--solid); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.chip { background: color-mix(in srgb, var(--solid) 12%, transparent); color: var(--solid); font-size: 13px; padding: 4px 10px; border-radius: 20px; }
.post-meta-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; }
.meta-item .mico { display: inline-flex; color: var(--muted); }

/* Batch result blocks */
.result-block { margin: 0 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.result-block:last-child { border-bottom: none; }
.result-src { font-size: 13px; color: var(--muted); word-break: break-all; margin: 0 0 12px; padding: 6px 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; display: inline-block; }

/* Profile */
.profile-head { display: flex; gap: 28px; align-items: center; justify-content: center; padding: 12px 0 6px; flex-wrap: wrap; text-align: left; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: var(--border); border: 3px solid var(--card-bg); box-shadow: var(--shadow); }
.avatar-badge { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; border: 2px solid var(--card-bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.avatar-badge:hover { background: var(--blue-hover); }
.avatar-badge svg { width: 20px; height: 20px; display: block; }
.profile-info { max-width: 460px; }
.profile-username { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 600; color: var(--text); text-decoration: none; }
.profile-username .ext { display: inline-flex; color: var(--muted); }
.profile-username .ext svg { display: block; }
.verified { width: 19px; height: 19px; flex: none; }
.profile-bio .bio-mention { color: var(--solid); text-decoration: none; font-weight: 600; }
.profile-bio .bio-mention:hover { text-decoration: underline; }
.stats { display: flex; gap: 26px; margin: 12px 0; }
.stats b { font-size: 18px; color: var(--text); }
.stats span { display: block; color: var(--muted); font-size: 13.5px; }
.profile-name { font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.profile-bio { color: var(--text); white-space: pre-wrap; font-size: 14.5px; }
.tabs { display: flex; justify-content: center; gap: 40px; border-bottom: 1px solid var(--border); margin: 22px auto 26px; max-width: 1000px; }
.tab { background: none; border: none; cursor: pointer; padding: 12px 4px; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--text); border-bottom-color: var(--text); }

/* Load more / messages / tray */
.loadmore-wrap { text-align: center; margin: 28px 0 10px; }
.btn-loadmore { background: var(--blue); color: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: 10px; }
.btn-loadmore:disabled { opacity: 0.6; }
.empty-msg { text-align: center; color: var(--muted); padding: 36px 0; font-size: 15px; }
.tray { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 6px 0 20px; }
.tray-item { text-align: center; cursor: pointer; width: 96px; }
.tray-item img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); padding: 3px; background: var(--card-bg); }
.tray-item span { display: block; font-size: 12.5px; color: var(--text); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Loading dots */
.loading { text-align: center; padding: 30px 0; }
.dots { display: inline-flex; gap: 9px; margin-bottom: 14px; }
.dots span { width: 13px; height: 13px; border-radius: 50%; background: #6d28d9; opacity: 0.4; animation: dotpulse 1s infinite ease-in-out; }
.dots span:nth-child(2) { background: #b026a8; animation-delay: 0.15s; }
.dots span:nth-child(3) { background: #e1306c; animation-delay: 0.3s; }
@keyframes dotpulse { 0%,100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
.loading p { color: var(--muted); font-size: 16px; margin: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 56px 20px 20px; }
.lightbox[hidden] { display: none; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: rgba(255, 255, 255, 0.15); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.lb-inner { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.lb-photo-wrap { position: relative; flex-shrink: 0; line-height: 0; }
.lightbox-content img, .lightbox-content video { max-width: 75vw; max-height: 82vh; border-radius: 10px; display: block; }
.lb-page-indicator { position: absolute; left: 14px; top: 14px; background: rgba(17, 21, 28, 0.72); color: #fff; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1; z-index: 3; pointer-events: none; backdrop-filter: blur(2px); }
.lb-page-indicator[hidden] { display: none; }
.lb-download {position: absolute;right: 14px;top: 14px;z-index: 3;background: var(--blue);color: #fff;width: 50px;height: 50px;border-radius: 10px;display: flex;align-items: center;justify-content: center;text-decoration: none;box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);}
.lb-download:hover { background: var(--blue-hover); }
.lb-download svg {width: 28px;height: 28px;display: block;}
.lb-download[hidden] { display: none; }
.lb-arrow { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; border: none; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-arrow svg { width: 26px; height: 26px; display: block; }
.lb-arrow:hover { background: rgba(255, 255, 255, 0.32); }
.lb-arrow[hidden] { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 34px 20px 54px; }
  .hero-title { font-size: 33px; }
  .hero-sub { font-size: 16px; }
  .sec > .wrap { padding: 54px 20px; }
  .sec-head h2 { font-size: 25px; }
  .sec-h2 { font-size: 26px; }
  .adv-full { display: none; }
  .adv-short { display: inline; }
  /* language menu becomes a bottom sheet */
  .lang-menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); max-height: 82vh; animation: sheet-up 220ms ease; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .lang-close { display: inline-flex; align-items: center; justify-content: center; }
  .lang-grid { grid-template-columns: 1fr; max-height: 60vh; }
  .lang-menu-title { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 700; }
  .lang-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.45); }
  /* icon-only chips, all fit one row — no scroll */
  .pills { flex-wrap: nowrap; justify-content: center; gap: 6px; width: auto; margin: 0 0 22px; padding: 0; }
  .pill { flex: none; width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
  .pill .ic svg { width: 17px; height: 17px; }
  .paste-box { flex-direction: column; align-items: stretch; }
  .download-cta { width: 100%; height: 52px; }
  .ad-728 { width: 300px; height: 250px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .steps::after { display: none; }
  .steps .step-icon { animation: none; }
  .feature-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom p:last-child { text-align: left; }
  .tool-row { display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; align-items: center; }
  .tr-icon { grid-row: 1 / 3; }
  .tr-name { grid-column: 2; grid-row: 1; width: auto; }
  .tr-desc { grid-column: 2; grid-row: 2; font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
  .tr-arrow { grid-column: 3; grid-row: 1 / 3; }
  .lightbox-content img, .lightbox-content video { max-width: 88vw; }
  .lb-arrow { width: 40px; height: 40px; font-size: 22px; }
}

/* Guides hub — group headings between card grids */
.guides-h2 { margin: 2.75rem 0 1.25rem; font-size: 1.4rem; font-weight: 700; }
.guides-h2:first-of-type { margin-top: 1.5rem; }
/* PWA / bookmark retention nudge — slides in after a successful download */
.pwa-nudge { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%); z-index: 1200; display: flex; align-items: center; gap: 14px; width: calc(100% - 32px); max-width: 440px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 13px 15px; transition: transform .38s cubic-bezier(.22,1,.36,1); }
.pwa-nudge.show { transform: translate(-50%, 0); }
.pwa-nudge .nudge-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; text-align: start; }
.pwa-nudge .nudge-text strong { font-size: 14.5px; font-weight: 700; }
.pwa-nudge .nudge-text span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pwa-nudge .nudge-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.pwa-nudge .nudge-cta { background: var(--grad); color: #fff; border: 0; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pwa-nudge .nudge-x { background: transparent; border: 0; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; padding: 6px 7px; border-radius: 8px; }
.pwa-nudge .nudge-x:hover { background: var(--surface-2); color: var(--text); }
.pwa-nudge kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 11px; font-family: inherit; }
@media (max-width: 520px) { .pwa-nudge { left: 0; bottom: 0; width: 100%; max-width: none; border-radius: 14px 14px 0 0; transform: translateY(160%); } .pwa-nudge.show { transform: translateY(0); } }

/* Inline "faster next time" shortcut promo in results (above the caption) —
   full-width white card matching the result bar, reusing the .browser-bar mock. */
.result-shortcut { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 44px 16px 20px; margin: 22px 0 0; }
.result-shortcut .rs-x { position: absolute; top: 10px; right: 10px; background: transparent; border: 0; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; padding: 5px 7px; border-radius: 8px; }
.result-shortcut .rs-x:hover { background: var(--surface-2); color: var(--text); }
.result-shortcut .rs-line { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); text-align: center; }
.result-shortcut .rs-spark { color: var(--solid); }
.result-shortcut .rs-line code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 13px; color: var(--solid); font-weight: 600; }
.result-shortcut .rs-bm { color: var(--solid); font-weight: 700; text-decoration: none; cursor: grab; }
.result-shortcut .rs-bm:hover { text-decoration: underline; }
.result-shortcut .browser-bar { max-width: 740px; margin: 0 auto; margin-top: 20px; }

/* Post caption owner header — small circular avatar + @username */
.post-caption .post-owner { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.po-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.po-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; border: 0; }
.po-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
