/* MediaJar website — same palette as the extension popup and settings */
:root {
  --bg: #f4f3f8; --surface: #ffffff; --text: #17141f; --muted: #615d70; --border: #e3e0ec;
  --accent: #4b3486; --accent-2: #5d43a3; --accent-soft: #efebf8; --on-accent: #ffffff;
  --honey: #e6b761; --honey-2: #d9a13f; --on-honey: #2b1d05; --ok: #1f8a4c;
  --wm-media: #4b3486; --wm-jar: #d39a2e; --mark-lid: #d9a13f; --mark-jar: #4b3486;
  --shadow: 23, 20, 40;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019; --surface: #1c1926; --text: #f3f1f8; --muted: #a6a1b6; --border: #2e2a3b;
    --accent: #b8a3f2; --accent-2: #a690ea; --accent-soft: #2a2440; --on-accent: #15111f;
    --honey: #e9bd68; --honey-2: #dca445; --on-honey: #241803; --ok: #5fd08d;
    --wm-media: #f3f1f8; --wm-jar: #f2cc7d; --mark-lid: #f2cc7d; --mark-jar: #fbf6ec;
    --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; }
.logo .wordmark { height: 20px; width: auto; display: block; }
.mark .lid { fill: var(--mark-lid); }
.mark .jar { fill: var(--mark-jar); }
.wm-media { fill: var(--wm-media); }
.wm-jar { fill: var(--wm-jar); }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav a.hide-sm { display: none; } .top nav { gap: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px 20px; line-height: 1.2;
  transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(75, 52, 134, .25); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.honey { background: linear-gradient(135deg, var(--honey), var(--honey-2)); color: var(--on-honey); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
h1 .hl { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.shots { position: relative; min-height: 470px; }
.shots img { position: absolute; width: 280px; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(var(--shadow), .18), 0 4px 14px rgba(var(--shadow), .08); background: var(--surface); }
.shots .a { left: 0; top: 0; z-index: 2; }
.shots .b { left: 250px; top: 80px; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shots { min-height: 0; display: flex; gap: 14px; justify-content: center; }
  .shots img { position: static; width: min(46%, 300px); }
}

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 46em; }
.center { text-align: center; }
.center .sub, .sub.center { margin-left: auto; margin-right: auto; }
h3 { font-size: 18px; margin: 0 0 6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section:not(.alt) .step { background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .steps, .cards { grid-template-columns: 1fr; } }

/* free vs pro */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--accent-soft); font-size: 14px; }
.compare td.c, .compare th.c { text-align: center; width: 130px; white-space: nowrap; }
.compare .group td { background: var(--bg); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.yes { color: var(--ok); font-weight: 800; }
.no { color: var(--muted); }
.pro-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(135deg, var(--honey), var(--honey-2)); color: var(--on-honey); vertical-align: middle; }
@media (max-width: 560px) { .compare td.c, .compare th.c { width: 84px; } .compare th, .compare td { padding: 10px; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px;
  display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(75, 52, 134, .16); }
.plan .badge { position: absolute; top: -13px; left: 24px; font-size: 12px; font-weight: 800; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 8px; background: linear-gradient(135deg, var(--honey), var(--honey-2)); color: var(--on-honey); }
.plan h3 { font-size: 18px; margin-bottom: 2px; }
.plan .kind { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.price s { color: var(--muted); font-size: 20px; }
.plan .note { color: var(--muted); font-size: 14px; margin: 8px 0 18px; flex: 1; }
.plan ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; margin: 6px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { width: 100%; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* notice */
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; }
.notice p { margin: 0; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
section.alt details { background: var(--bg); }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 8px; font-size: 22px; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p, details ul { margin: 0 0 14px; color: var(--muted); }

/* documents (terms, refunds) */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 26px; }
.doc p, .doc li { color: var(--text); }
.doc .box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--text); }
footer p { margin: 0; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }
