/* Advanced Media Offloader — shared styles for all pages. No build step. */

@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --dark: #0a1020;
  --dark-2: #121b30;
  --dark-line: #26324d;
  --on-dark: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --sky: #38bdf8;
  --display: "Satoshi", system-ui, sans-serif;
  --body: "General Sans", system-ui, sans-serif;
  --radius: 16px;
  --header-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 16, 32, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: calc(var(--header-h) - 1px); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 700 1.05rem var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.nav { display: flex; gap: 36px; }
.nav a { color: var(--on-dark); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: #fff; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .site-header .btn { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 12px; font: 600 1rem var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.85); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--soft); border-color: #cbd5e1; }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 0.95rem; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  margin-top: calc(var(--header-h) * -1); /* glow continues behind the see-through header */
  color: var(--on-dark);
  background:
    radial-gradient(55% 60% at 12% 0%, rgba(37, 99, 235, 0.55), transparent 70%),
    radial-gradient(40% 45% at 90% 55%, rgba(56, 189, 248, 0.2), transparent 70%),
    radial-gradient(35% 40% at 40% 100%, rgba(99, 102, 241, 0.26), transparent 70%),
    var(--dark);
}
.hero { padding: calc(var(--header-h) + 104px) 0 104px; text-align: center; }
.hero h1 { max-width: 1040px; margin: 28px auto 0; color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.08; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #38bdf8, #60a5fa 50%, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 740px; margin: 28px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.providers { margin-top: 72px; color: #94a3b8; font-size: 0.9rem; }
.providers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.providers li { padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: #e2e8f0; font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.875rem; font-weight: 500; }
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero .pill, .section-dark .pill { border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1); color: #7dd3fc; }
.hero .pill { padding: 9px 20px; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: radial-gradient(circle at 1px 1px, #e6ebf2 1px, transparent 0) 0 0 / 40px 40px, var(--soft); }
.section-dark { background: radial-gradient(45% 55% at 88% 0%, rgba(37, 99, 235, 0.3), transparent 70%), radial-gradient(35% 45% at 5% 100%, rgba(99, 102, 241, 0.2), transparent 70%), var(--dark); color: var(--on-dark); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; text-wrap: balance; }
.section-head p { margin-top: 16px; font-size: 1.125rem; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.card:hover { border-color: #bfdbfe; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.card h3 { font-size: 1.25rem; font-weight: 600; }
.card > p { margin-top: 8px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; font: 700 1.15rem var(--display); }
.tint-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.tint-violet { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.tint-emerald { background: rgba(16, 185, 129, 0.12); color: #047857; }

.section-dark .card { border-color: var(--dark-line); background: var(--dark-2); }
.section-dark .card:hover { border-color: #3b4a6b; box-shadow: none; }
.section-dark .card.card-featured { border: 2px solid #3b82f6; }
.badge { position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 600; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tag { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; }
.alt { margin-top: 6px; color: #7dd3fc; font-size: 0.85rem; }
.card .checks { margin-bottom: 32px; }
.card .btn { margin-top: auto; }

/* ---------- Pricing ---------- */
.pricing { position: relative; }
.pricing::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(30% 34% at 27% 6%, rgba(191, 219, 254, 0.6), transparent 70%), radial-gradient(28% 30% at 75% 98%, rgba(186, 230, 253, 0.55), transparent 70%); }
.pricing .container { position: relative; }
.plans { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; max-width: 940px; margin-inline: auto; }
.plan { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan h3 { font-size: 1.25rem; font-weight: 600; }
.plan-sub { margin-top: 4px; font-size: 0.9rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; font-size: 0.9rem; }
.price strong { font: 700 2.5rem/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.plan .btn { margin-top: 24px; }
hr { margin: 24px 0; border: 0; border-top: 1px solid #f1f5f9; }
.included { margin-bottom: 16px; color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.checks li { padding-left: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") 0 2px / 18px no-repeat; }
.checks small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.84rem; }

.plan-premium { border: 2px solid transparent; border-radius: 18px; background: linear-gradient(var(--dark), var(--dark)) padding-box, linear-gradient(135deg, #2563eb, #38bdf8, #2563eb) border-box; color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(37, 99, 235, 0.55); }
.plan-premium h3, .plan-premium .included { color: #fff; }
.plan-premium .price strong { background: linear-gradient(90deg, #38bdf8, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-premium hr, .section-dark hr { border-color: var(--dark-line); }
.plan-premium .checks li, .section-dark .checks li { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2338bdf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E"); }
.plan-premium .checks small { color: #94a3b8; }
.section-dark .price strong { color: #fff; }
@media (min-width: 821px) { .plan-premium { margin-top: -16px; } }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* Site-count switch: plain radio buttons, no JavaScript */
.seg { display: flex; min-width: 0; margin: 24px 0 0; padding: 4px; border: 0; border-radius: 10px; background: #1e293b; }
.seg label { position: relative; flex: 1; padding: 9px 4px; border-radius: 7px; color: var(--on-dark); font-size: 0.875rem; font-weight: 500; text-align: center; white-space: nowrap; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg label:hover { color: #fff; }
.seg input { position: absolute; width: 0; height: 0; opacity: 0; }
.seg label:has(input:checked) { background: var(--primary); color: #fff; box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.95); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
.tier { display: none; animation: fade 0.25s ease; }
.plan-premium:has(#sites-1:checked) #tier-1,
.plan-premium:has(#sites-5:checked) #tier-5,
.plan-premium:has(#sites-15:checked) #tier-15,
.plan-premium:has(#sites-all:checked) #tier-all { display: block; }
.tier-note { min-height: 4.8em; margin-top: 12px; font-size: 0.9rem; }
.tier-note b { color: #fff; font-weight: 600; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
/* Old browsers without :has(): hide the switch and list all four plans */
@supports not selector(:has(a)) { .seg { display: none; } .tier { display: block; margin-bottom: 24px; } }

.fineprint { max-width: 660px; margin: 48px auto 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.fineprint a { color: var(--primary-hover); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq details { padding: 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 1.05rem/1.4 var(--display); color: var(--ink); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.faq details p { padding-bottom: 22px; }
.faq strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; background: var(--dark); color: #94a3b8; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.footer-grid > div > p { max-width: 360px; margin-top: 16px; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; }
.footer-bottom p + p { margin-top: 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 64px; }
.page-hero .container { max-width: 808px; } /* line up with .prose */
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
.page-hero p { margin-top: 12px; }
.prose { max-width: 808px; margin-inline: auto; padding: 56px 24px 96px; }
.prose h2 { margin: 40px 0 12px; font-size: 1.4rem; font-weight: 700; }
.prose h3 { margin: 24px 0 8px; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--primary-hover); }
.prose strong { color: var(--ink); font-weight: 600; }

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero .pill { font-size: 0.8rem; padding: 8px 14px; }
  .card, .plan { padding: 24px; }
  .seg label { font-size: 0.8rem; }
  .actions .btn { width: 100%; }
  /* Long button labels may wrap on small phones instead of pushing the page wider */
  main .btn { height: auto; min-height: 48px; padding: 10px 16px; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
