/* videodownloadaifox — static site styles
 * No web fonts, no remote assets, no third-party SDK. Everything is local so the
 * page works offline and matches the extension's "no remote code" promise.
 */
:root {
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --ink: #14203a;
  --ink-soft: #3d4a63;
  --muted: #64708a;
  --line: #dfe5ef;
  --brand: #1f4fd8;
  --brand-dark: #173ba6;
  --brand-soft: #eaf0ff;
  --accent: #0f8f6c;
  --accent-soft: #e6f6f0;
  --warn-soft: #fff6e6;
  --warn-line: #f0d9a8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px rgba(20, 32, 58, .10);
  --shadow-sm: 0 3px 12px rgba(20, 32, 58, .06);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.07rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .35em 0; }
strong { font-weight: 680; }
:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 730; letter-spacing: -.03em; font-size: 1.06rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, #2a5cf0, #7a4ce0);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(42, 92, 240, .28);
}
.brand-mark svg { width: 17px; height: 17px; fill: #fff; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 550; white-space: nowrap; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 680; }
.header-tools { display: flex; align-items: center; gap: 10px; }
select#lang {
  font: inherit; font-size: .87rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 28px 7px 10px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2364708a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 11px 19px; font: inherit; font-size: .93rem; font-weight: 650;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31, 79, 216, .22); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #b9c5dd; color: var(--brand); }
.btn-small { padding: 8px 14px; font-size: .86rem; }
.btn[aria-disabled="true"] { opacity: .62; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 66px; background:
  radial-gradient(900px 440px at 88% 0%, #eef2ff 0%, transparent 62%),
  radial-gradient(700px 420px at 2% 100%, #eafaf4 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 720;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero p.lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: .85rem; color: var(--muted); }
.hero-note strong { color: var(--ink-soft); }

/* CSS-only product mockup: no screenshot, no brand name baked in */
.browser {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(-.5deg);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd7e5; display: block; }
.browser-bar i:nth-child(1) { background: #f0b4ae; }
.browser-bar i:nth-child(2) { background: #f2d59a; }
.browser-bar i:nth-child(3) { background: #a9dcbc; }
.browser-bar span { margin-left: 12px; font-size: .72rem; color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; flex: 1; }
.browser-body { padding: 16px; }
.popup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.popup-head b { font-size: .87rem; }
.popup-head em { font-style: normal; font-size: .7rem; color: var(--muted); }
.popup-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.popup-tabs span { font-size: .68rem; padding: 5px 11px; border-radius: 20px; background: var(--surface-2); color: var(--muted); }
.popup-tabs span.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.media-card { display: flex; gap: 11px; align-items: center; border: 1px solid var(--line);
  border-radius: 11px; padding: 9px; margin-bottom: 9px; background: #fff; }
.media-thumb { width: 62px; height: 44px; flex: none; border-radius: 7px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5b6be1, #9a5bd8); }
.media-thumb.b { background: linear-gradient(135deg, #e08b45, #d9564a); }
.media-thumb.c { background: linear-gradient(135deg, #1b9c88, #3db7a0); }
.media-thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px;
  border-radius: 50%; background: rgba(255,255,255,.9); }
.media-thumb::before { content: ""; position: absolute; z-index: 2; left: 27px; top: 16px;
  border-left: 8px solid #5b6be1; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.media-meta { min-width: 0; flex: 1; }
.media-meta b { display: block; font-size: .73rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta small { color: var(--muted); font-size: .66rem; }
.media-size { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.media-card .mini-btn { font-size: .64rem; background: var(--brand); color: #fff; border-radius: 6px; padding: 4px 8px; }
.preview-flag { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; color: var(--accent);
  background: var(--accent-soft); border-radius: 5px; padding: 2px 7px; margin-left: 6px; }

/* ---------- trust bar / sections ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .87rem; color: var(--ink-soft); font-weight: 570; }
.trust-item .tick { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
section.block { padding: 74px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card:hover { border-color: #c7d3ea; }
.card-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; font-weight: 750; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .85rem; font-weight: 750; margin-bottom: 12px; }
.step p { font-size: .89rem; color: var(--muted); margin: 0; }
.callout { border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 30px; color: #6b5327; font-size: .93rem; }
.callout strong { color: #58431d; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- legal / prose ---------- */
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.prose { padding: 46px 0 76px; }
.prose h2 { font-size: 1.35rem; margin: 2.1em 0 .55em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 1.5em 0 .4em; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); font-size: .96rem; }
.prose ul { margin: 0 0 1em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .meta-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 30px; font-size: .9rem; color: var(--ink-soft); }
.prose .meta-box p { margin: .25em 0; }
.legal-note { border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; }
.legal-note p { margin: 0; font-size: .92rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 17px 20px; font-weight: 650; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--ink-soft); font-size: .93rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 8px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.contact-card h3 { margin-bottom: .35em; }
.contact-card p { font-size: .91rem; color: var(--muted); margin-bottom: .7em; }
.mail-link { font-weight: 650; }

/* ---------- commerce (renders only when explicitly enabled) ---------- */
#commerce-slot:empty { display: none; }
.commerce { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan .price { font-size: 1.7rem; font-weight: 750; letter-spacing: -.03em; }
.plan .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.license-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.license-form input { flex: 1; min-width: 220px; font: inherit; font-size: .92rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 9px; }
.form-status { font-size: .87rem; color: var(--muted); margin-top: 10px; min-height: 1.3em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { font-size: .88rem; color: var(--muted); max-width: 300px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: .89rem; color: var(--ink-soft); margin: 7px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .browser { max-width: 560px; margin: 0 auto; }
  .grid-3, .steps, .trust-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 14px; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 4px; }
  .header-tools { margin-left: auto; }
  .brand { font-size: .97rem; }
  .grid-3, .steps, .trust-grid, .plan-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  section.block { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
