/* Shared compact visual system for all SaveVideoKit secondary pages. */
:root {
  --page: #f8fbff;
  --surface: #ffffff;
  --ink: #0a1020;
  --ink-soft: #263246;
  --muted: #66758a;
  --muted-2: #8794a6;
  --border: #e2eaf4;
  --border-strong: #d3deeb;
  --green: #087cf2;
  --green-hover: #0568d7;
  --green-soft: #102843;
  --green-soft-2: #eef6ff;
  --radius: 10px;
}

html[data-theme="dark"] {
  --page: #090e17;
  --surface: #0f1825;
  --ink: #f4f7fb;
  --ink-soft: #d6dfeb;
  --muted: #9aa9bc;
  --muted-2: #718198;
  --border: #253245;
  --border-strong: #33445a;
  --green: #49a4ff;
  --green-hover: #76b9ff;
  --green-soft: #10253d;
  --green-soft-2: #101b2a;
}

html { background: var(--page); }
body {
  min-height: 100vh;
  background:
    radial-gradient(520px 300px at -8% 15%, rgba(87, 169, 255, .12), transparent 70%),
    radial-gradient(440px 280px at 108% 28%, rgba(148, 123, 255, .08), transparent 72%),
    var(--page);
}

.wrap {
  width: min(100%, 780px);
  max-width: 780px;
  padding: 14px 18px 34px;
}

/* Compact brand bar; the mark matches the homepage identity. */
.topbar {
  min-height: 42px;
  margin-bottom: 14px;
}
.back {
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.035em;
}
.back:hover { border-color: transparent; color: var(--ink); }
.back .back-logo { display: none; }
.back::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='5' y1='5' x2='58' y2='58'%3E%3Cstop stop-color='%23075df5'/%3E%3Cstop offset='.58' stop-color='%230751e6'/%3E%3Cstop offset='1' stop-color='%23128cff'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='18' y1='56' x2='58' y2='31'%3E%3Cstop stop-color='%230b70f8'/%3E%3Cstop offset='1' stop-color='%2365b8ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M11.2 4.3a10 10 0 0 1 10.2.2l34.7 20.8a8 8 0 0 1 0 13.7L21.4 59.6A10 10 0 0 1 6.3 51V13a10 10 0 0 1 4.9-8.7Z'/%3E%3Cpath fill='url(%23b)' opacity='.9' d='M15.2 58.5 56.6 38a8 8 0 0 0 3.2-3.2L31.7 45.5 20.8 57.1a10 10 0 0 1-5.6 1.4Z'/%3E%3Cpath d='M26.5 17v23m-9-9.5 9 9.5 9-9.5' fill='none' stroke='white' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 7px rgba(8, 120, 249, .18));
}
.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.icon-btn:hover { border-color: transparent; background: var(--green-soft-2); color: var(--green); }

/* Tool landing pages. */
.lp-hero {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-soft-2), rgba(255,255,255,.82));
  box-shadow: 0 12px 32px rgba(34, 87, 143, .06);
}
html[data-theme="dark"] .lp-hero {
  background: linear-gradient(135deg, var(--green-soft), #111b2a);
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
}
.lp-hero h1 {
  max-width: 650px;
  margin-bottom: 7px;
  font-size: clamp(25px, 4.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.lp-sub { margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.lp-card { padding: 12px; border-radius: 10px; box-shadow: 0 7px 20px rgba(28, 73, 120, .06); }
.lp-label { margin-bottom: 6px; font-size: 12.5px; }
.lp-row { gap: 8px; }
.lp-input { height: 42px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
.lp-btn { min-height: 42px; padding: 0 17px; border-radius: 8px; font-size: 14px; }
.lp-result { margin-top: 11px; padding-top: 11px; }
.lp-meta { align-items: flex-start; margin-bottom: 8px; }
.lp-meta > div { min-width: 0; }
.lp-thumb { width: 56px; height: 56px; }
.lp-alt {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.75px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lp-alt[hidden], .lp-file[hidden] { display: none; }
.lp-file {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11.75px;
  line-height: 1.42;
}
.lp-status { min-height: 18px; }

.lp h2 { margin: 22px 0 8px; font-size: 18px; }
.lp p, .lp ol li { font-size: 14px; line-height: 1.62; }
.lp p { margin-bottom: 10px; }
.lp ol { margin-bottom: 11px; }
.lp ol li { margin-bottom: 6px; }
.answer-note { margin-bottom: 12px; }
.cap-wrap, .matrix-wrap { margin-bottom: 14px; border-radius: 9px; }
.cap-table th, .cap-table td, .matrix th, .matrix td { padding: 8px 10px; font-size: 12.75px; }
.lp-facts { margin-bottom: 12px; padding: 10px 13px; border-radius: 9px; }
.lp-facts li { padding: 3px 0; font-size: 13.25px; line-height: 1.52; }
.verification { padding: 12px 13px; border-radius: 9px; }
.faq { padding: 12px 0; }
.faq h3 { margin-bottom: 5px; font-size: 14.5px; }
.lp-related ul { gap: 8px; }
.lp-related a { padding: 9px 11px; border-radius: 8px; font-size: 13.25px; }

/* Informational pages. */
.doc-head {
  margin-bottom: 18px;
  padding: 19px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-soft-2), rgba(255,255,255,.82));
  box-shadow: 0 12px 32px rgba(34, 87, 143, .05);
}
html[data-theme="dark"] .doc-head { background: linear-gradient(135deg, var(--green-soft), #111b2a); }
.doc-head h1 { margin-bottom: 7px; font-size: clamp(25px, 4.8vw, 30px); line-height: 1.12; letter-spacing: -.035em; }
.doc-head p { font-size: 14px; line-height: 1.55; }
.verified { margin-top: 7px !important; font-size: 11.75px !important; }
.doc-section { margin-bottom: 20px; }
.doc-section h2 { margin-bottom: 8px; font-size: 18px; }
.doc-section p, .doc-section li { font-size: 14px; line-height: 1.62; }
.doc-section p { margin-bottom: 9px; }
.doc-section li { margin-bottom: 5px; }
.related-box { padding: 11px 13px; border-radius: 9px; }
.related-box ul { gap: 7px 16px; }

/* Terms and privacy pages. */
.doc {
  padding: 23px 26px 27px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(34, 87, 143, .05);
}
.doc h1 { margin-bottom: 13px; font-size: clamp(25px, 4.8vw, 29px); line-height: 1.14; }
.doc h2 { margin: 21px 0 7px; font-size: 17px; }
.doc h3 { margin: 16px 0 6px; font-size: 14.5px; }
.doc p, .doc li { font-size: 14px; line-height: 1.62; }
.doc p { margin-bottom: 10px; }
.doc li { margin-bottom: 6px; }
.updated { margin-bottom: 15px; padding-bottom: 12px; }

footer { margin-top: 20px; padding-top: 13px; }
.foot-links { gap: 8px; font-size: 12px; }
.copy { margin-top: 8px; font-size: 11.5px; }

@media (min-width: 900px) {
  .wrap { max-width: 780px; padding: 18px 22px 36px; }
  .lp-hero { padding: 22px; }
  .lp p, .lp ol li, .doc p, .doc li { font-size: 14px; }
  .doc { padding: 25px 29px 29px; }
  .doc h2 { margin-top: 22px; font-size: 17px; }
  footer { margin-top: 20px; padding-top: 13px; }
}

@media (max-width: 520px) {
  body { background: var(--page); }
  .wrap { padding: 11px 14px 28px; }
  .topbar { min-height: 40px; margin-bottom: 11px; }
  .back { font-size: 15.5px; }
  .back::before { width: 26px; height: 26px; }
  .lp-hero, .doc-head { padding: 16px 15px; margin-bottom: 15px; }
  .lp-hero h1, .doc-head h1 { font-size: clamp(24px, 8vw, 28px); }
  .lp-card { padding: 9px; }
  .lp-row { gap: 7px; }
  .lp-input {
    flex: none;
    width: 100%;
    height: 46px;
    min-height: 46px;
    font-size: 16px;
  }
  .lp-btn { flex: none; width: 100%; min-height: 46px; }
  .lp-msg:empty { display: none; margin: 0; min-height: 0; }
  .lp h2 { margin-top: 19px; }
  .doc-section { margin-bottom: 17px; }
  .doc { padding: 18px 16px 22px; }
  .doc h2 { margin-top: 19px; }
  .related-box ul, .lp-related ul { grid-template-columns: 1fr; }
}
