/* ==========================================================================
   A2Z Converter — Home page sections
   ========================================================================== */

/* ---------- Hero (light mesh + sentence converter) ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 36px 0 72px;
  color: var(--text);
  background:
    radial-gradient(42% 55% at 6% 8%, #FFE2D4 0%, rgba(255, 226, 212, 0) 70%),
    radial-gradient(38% 50% at 96% 6%, #FFDDE6 0%, rgba(255, 221, 230, 0) 70%),
    radial-gradient(40% 45% at 88% 88%, #FFEBD9 0%, rgba(255, 235, 217, 0) 70%),
    radial-gradient(45% 50% at 10% 92%, #FDE7F0 0%, rgba(253, 231, 240, 0) 70%),
    linear-gradient(180deg, #FFF9F6 0%, #FFFFFF 100%);
}
@media (min-width: 992px) { .hero { padding: 48px 0 88px; } }

/* glows + grid are clipped here so the format popover can overflow the hero */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: drift 20s ease-in-out infinite alternate;
}
.hero-glow--a { width: 460px; height: 460px; left: -120px; top: 10%; background: #FFD3BF; opacity: .55; }
.hero-glow--b { width: 420px; height: 420px; right: -100px; top: -80px; background: #FFC9D8; opacity: .45; animation-duration: 24s; animation-delay: -6s; }
.hero-glow--c { width: 380px; height: 380px; left: 42%; top: 20%; background: #FFE6D6; opacity: .5; animation-duration: 28s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 25px) scale(.96); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 76, 41, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 76, 41, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
}

.hero-copy { text-align: center; max-width: 1000px; margin-inline: auto; }

/* Small SEO title above the sentence */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-2);
}
.hero-eyebrow .pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.hero-eyebrow .pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* "Convert [PDF ▾] to [DOCX ▾]" */
.sentence {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .14em .3em;
  margin-top: 22px;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.15;
}
.fmt-btn {
  display: inline-flex; align-items: center; gap: .16em;
  padding: .04em .26em .08em .3em;
  border-radius: .26em;
  font: inherit; letter-spacing: -.02em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.fmt-btn i { font-size: .3em; opacity: .75; transition: transform .2s var(--ease); }
.fmt-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.fmt-btn:hover { transform: translateY(-2px); }
.fmt-btn--from {
  color: var(--primary);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--primary-100), 0 .12em .4em -.12em rgba(255, 76, 41, .35);
}
.fmt-btn--from:hover, .fmt-btn--from[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--primary), 0 .16em .5em -.12em rgba(255, 76, 41, .45); }
.fmt-btn--to {
  color: #fff;
  background: linear-gradient(135deg, #FF7A4D, var(--primary) 55%, var(--primary-600));
  box-shadow: 0 .14em .45em -.12em rgba(230, 62, 28, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fmt-btn--to[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--primary-ring), 0 .14em .45em -.12em rgba(230, 62, 28, .6); }
.fmt-val { display: inline-block; min-width: 3em; text-align: center; }
.fmt-val.is-swapping { animation: swap .45s var(--ease); }
@keyframes swap {
  0% { opacity: 0; transform: translateY(.4em); filter: blur(4px); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Format picker popover */
.fmt-pop {
  position: absolute; z-index: 30;
  top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: min(580px, calc(100vw - 32px));
  padding: 12px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-align: left;
  animation: pop .18s var(--ease);
}
.fmt-pop[hidden] { display: none; }
.fmt-pop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; height: 46px; border-radius: 12px; background: var(--panel);
}
.fmt-pop-head i { color: var(--muted-2); font-size: 14px; }
.fmt-pop-head input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.fmt-pop-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fmt-pop-cats[hidden] { display: none; }
.fmt-pop-cats .fmt-cat { height: 30px; padding: 0 12px; font-size: 13px; }
.fmt-pop-title { padding: 10px 6px 0; font-size: 13px; color: var(--muted); }
.fmt-pop-title strong { color: var(--text); }
.fmt-groups { max-height: 320px; overflow-y: auto; padding: 4px 4px 2px; }
.fmt-group { padding-top: 12px; }
.fmt-group h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 8px;
}
.fmt-group h3 i { color: var(--accent, var(--primary)); font-size: 12px; }
.fmt-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-opt {
  min-width: 58px; padding: 7px 12px; border-radius: 10px;
  background: var(--panel); color: var(--text-2);
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.fmt-opt:hover, .fmt-opt:focus-visible { background: var(--primary-50); color: var(--primary-700); }
.fmt-opt.is-selected { background: var(--primary); color: #fff; }
.fmt-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 14px; }

.hero-sub {
  margin: 26px auto 0; max-width: 700px;
  font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); text-wrap: pretty;
}

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  margin-top: 26px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary); font-size: 11px;
}

/* ---------- Uploader ---------- */
.converter { max-width: 900px; margin: 32px auto 0; }
/* One card: white surface with the dashed drop area inset by 8px */
.converter-card {
  padding: 8px; border-radius: 24px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 30px 60px -30px rgba(200, 60, 30, .28);
}

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 12px; min-height: 200px; padding: 28px 20px;
  border: 2px dashed var(--primary-200); border-radius: 16px;
  background: linear-gradient(180deg, var(--primary-50), #fff);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--primary); }
.dropzone.is-dragover { background: var(--primary-50); }
.dropzone.is-compact { min-height: 0; flex-direction: row; padding: 14px 16px; gap: 12px; }
.dropzone.is-compact .dropzone-folder { width: 44px; height: 40px; }
.dropzone.is-compact .dz-hint, .dropzone.is-compact .dz-or { display: none; }
.dropzone.is-compact .dz-title { font-size: 15px; }
.dropzone-folder {
  flex: none;
  filter: drop-shadow(0 12px 18px rgba(230, 62, 28, .28));
  transition: transform .25s var(--ease);
}
.dropzone-folder .dz-doc { transition: transform .25s var(--ease); }
.dropzone:hover .dropzone-folder, .dropzone.is-dragover .dropzone-folder { transform: translateY(-3px); }
.dropzone:hover .dz-doc, .dropzone.is-dragover .dz-doc { transform: translateY(-4px); }
.dz-text { display: grid; gap: 4px; }
.dz-title { font-size: 19px; font-weight: 700; }
.dz-title strong { color: var(--primary); }
.dz-btn { pointer-events: none; margin-top: 4px; }
@media (min-width: 720px) {
  .dropzone:not(.is-compact) { flex-direction: row; text-align: left; min-height: 132px; padding: 22px 28px; gap: 22px; }
  .dropzone:not(.is-compact) .dz-text { flex: 1; }
  .dropzone:not(.is-compact) .dz-btn { margin: 0; }
}
.dropzone.is-compact .dz-btn { display: none; }
.dz-title u { text-decoration-color: var(--primary-200); text-underline-offset: 4px; color: var(--primary); }
.dz-hint { font-size: 14px; color: var(--muted); }
.dz-or { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.dz-or .btn { position: relative; z-index: 1; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file-list { margin: 8px 0 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-item {
  display: grid; align-items: center; gap: 10px 14px;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas: "icon meta remove" "icon format action";
  padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
@media (min-width: 640px) {
  .file-item { grid-template-columns: 40px 1fr auto auto auto; grid-template-areas: "icon meta format action remove"; }
}
.file-item .icon-tile { grid-area: icon; }
.file-meta { grid-area: meta; min-width: 0; }
.file-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Size ("193 B ·") never splits; a long status ("Server conversion not connected") wraps on its own */
.file-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.file-status { font-weight: 600; }
.file-status.is-done { color: var(--c-emerald); }
.file-status.is-error { color: var(--c-red); }
.file-progress { height: 4px; border-radius: 4px; background: var(--panel-2); margin-top: 8px; overflow: hidden; }
.file-progress span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .2s linear; }
.file-format { grid-area: format; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.file-action { grid-area: action; justify-self: end; }
.file-remove { grid-area: remove; width: 36px; height: 36px; border-radius: 10px; color: var(--muted-2); display: grid; place-items: center; }
.file-remove:hover { background: var(--panel); color: var(--c-red); }


.converter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--border);
}
.converter-bar[hidden] { display: none; }
.bar-left { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bar-right { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 539px) { .bar-right, .bar-right .btn { flex: 1; } }

/* ---------- Uploaded files: mobile only (below 640px) ----------
   Compact, one row per file:  [icon] name / size · status  [DOCX ▾] [⬇ when done] [×]
   The per-file Convert button is hidden (the "Convert all" bar below is always shown while
   files are listed), and icon buttons keep their text for screen readers via font-size: 0. */
@media (max-width: 639px) {
  .file-list { gap: 6px; }
  .file-item {
    grid-template-columns: 32px minmax(0, 1fr) auto auto auto;
    grid-template-areas: "icon meta format action remove";
    gap: 8px; padding: 8px 4px 8px 8px; border-radius: 12px;
  }
  .file-item .icon-tile { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .file-name { font-size: 13px; line-height: 1.3; }
  .file-sub { gap: 0 5px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
  .file-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .file-progress { height: 3px; margin-top: 5px; }

  .file-format > span { display: none; }   /* the "to" label */
  .file-format .select-btn { min-width: 0; height: 30px; padding: 0 8px; gap: 4px; border-radius: 8px; font-size: 12.5px; }
  .file-format .select-btn i { font-size: 9px; }

  .file-action [data-convert] { display: none; }
  .file-action:not(:has([data-download])) { display: none; }
  .file-action [data-download] { width: 30px; min-height: 30px; padding: 0; gap: 0; font-size: 0; }
  .file-action [data-download] i { font-size: 13px; }

  .file-remove { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }

  /* Bar on one row:  [DOCX ▾] [🗑] [⬇] [⚡ Convert all] */
  .converter-bar { flex-wrap: nowrap; gap: 6px; margin-top: 6px; padding: 10px 2px 2px; }
  #convertAllLabel { display: none; }
  .bar-left .select-btn { min-width: 0; height: 36px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .bar-right { flex: 1; flex-wrap: nowrap; gap: 6px; }
  .bar-right .btn { flex: none; min-height: 36px; padding: 0 14px; font-size: 13.5px; }
  .bar-right :is(#clearAll, #downloadAll) { width: 36px; padding: 0; gap: 0; font-size: 0; --btn-bd: var(--border-strong); }
  .bar-right :is(#clearAll, #downloadAll) i { font-size: 14px; }
  .bar-right { min-width: 0; }
  .bar-right #convertAll { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 389px) { .bar-right #convertAll i { display: none; } }
  /* Compact "Add more files or browse" row stays on one line */
  .dropzone.is-compact { padding: 10px 12px; gap: 10px; }
  .dropzone.is-compact .dropzone-folder { width: 36px; height: 33px; }
  .dropzone.is-compact .dz-title { font-size: 14px; }
}

.converter-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 8px 2px; font-size: 13px; color: var(--muted);
}
.converter-note i { color: var(--c-emerald); }
@media (max-width: 599px) { 
  .hero-eyebrow, .converter-note { font-size: 12px; } 
  .hero-sub{ font-size: 14px; }
  /* One hero heading size on every page: converter H1, home/standalone "Convert X to Y", tool title.
     The IDs outrank the per-design sizes in hero-variants.css and tools.css. */
  #converter .sentence, #tool .tool-title { font-size: 34px; }
  /* When the note wraps, keep the shield beside the text instead of stranded on the left */
  .converter-note { display: block; text-align: center; text-wrap: balance; }
  .converter-note i { margin-right: 6px; }
  :is(.hero--editorial, .hero--palette, .hero--vertical, .hero--chat, .hero--swiss, .hero--terminal) .converter-note { text-align: left; }
}


/* ---------- Video downloader ---------- */
.dl-section { padding-top: 56px; padding-bottom: 0; }
@media (min-width: 992px) { .dl-section { padding-top: 72px; } }

.dl-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 40px; align-items: center;
  padding: 28px 20px;
  border-radius: 32px;
  border: 1px solid #FBE3DA;
  background:
    radial-gradient(70% 90% at 100% 0%, #FFE6DC 0%, rgba(255, 230, 220, 0) 60%),
    radial-gradient(60% 80% at 0% 100%, #FFF1E6 0%, rgba(255, 241, 230, 0) 60%),
    linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
}
@media (min-width: 640px) { .dl-card { padding: 40px; } }
@media (min-width: 1024px) { .dl-card { grid-template-columns: 1.08fr 1fr; gap: 48px; padding: 56px; } }
.dl-blob {
  position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 76, 41, .14), rgba(255, 76, 41, 0));
}
.dl-copy .section-sub { margin-top: 10px; }

/* URL form: one box holding icon, input, paste and the button */
.dl-copy { min-width: 0; }
.url-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 28px; padding: 8px;
  border-radius: 20px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 14px 32px -20px rgba(200, 60, 30, .4);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.url-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.url-field { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; }
.url-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--panel); color: var(--muted-2); font-size: 16px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.url-icon.is-youtube   { background: #FF0000; color: #fff; }
.url-icon.is-facebook  { background: #1877F2; color: #fff; }
.url-icon.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.url-icon.is-linkedin  { background: #0A66C2; color: #fff; }
.url-icon.is-detected { animation: popIn .35s var(--ease); }
@keyframes popIn { 0% { transform: scale(.6); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.url-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; }
.url-paste {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-size: 17px; color: var(--muted);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.url-paste:hover { background: var(--panel); color: var(--text); }
.url-submit { flex: 1 0 100%; min-height: 48px; border-radius: 14px; }
@media (min-width: 540px) { .url-submit { flex: 0 0 auto; } }
.url-hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); min-height: 1.6em; }
.url-hint.is-error { color: var(--c-red); }
.url-hint strong { color: var(--text); }

/* platform chips */
.dl-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dl-platform {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 6px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.dl-platform i {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 13px;
}
.dl-platform:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.dl-platform.is-youtube i   { background: #FF0000; }
.dl-platform.is-facebook i  { background: #1877F2; }
.dl-platform.is-instagram i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.dl-platform.is-linkedin i  { background: #0A66C2; }

/* Visual: mock download preview */
.dl-visual { position: relative; display: grid; place-items: center; padding: 24px 8px; }
@media (max-width: 1023px) { .dl-visual { display: none; } }
.dl-preview {
  position: relative; z-index: 1;
  width: min(100%, 400px);
  padding: 12px; border-radius: 24px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(16, 16, 24, .04), 0 40px 70px -34px rgba(200, 60, 30, .45);
  transform: rotate(-2deg);
}
.dl-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 20%, #FFB38A 0%, rgba(255, 179, 138, 0) 60%),
    radial-gradient(70% 90% at 90% 90%, #FF3D7F 0%, rgba(255, 61, 127, 0) 60%),
    linear-gradient(135deg, #FF7A4D, #E6284F);
}
.dl-thumb::after {   /* faux landscape */
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%;
  background: radial-gradient(50% 60% at 30% 100%, rgba(120, 20, 40, .35), transparent 70%),
              radial-gradient(45% 55% at 75% 100%, rgba(120, 20, 40, .28), transparent 70%);
}
.dl-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92); color: var(--text);
  font-size: 12px; font-weight: 700;
}
.dl-badge i { color: #FF0000; }
.dl-badge.is-instagram i { color: #d6249f; }
.dl-badge.is-facebook i { color: #1877F2; }
.dl-badge.is-linkedin i { color: #0A66C2; }
.dl-play {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--primary); font-size: 18px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.dl-play i { margin-left: 3px; }
.dl-duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11.5px; font-weight: 600;
}
.dl-file { display: flex; align-items: center; gap: 12px; padding: 14px 6px 10px; }
.dl-file-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--c-violet) 12%, #fff); color: var(--c-violet);
}
.dl-file-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dl-file-meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-file-meta small { font-size: 12px; color: var(--muted); }
.dl-progress { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.dl-progress span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #FF7A4D, var(--primary));
  animation: dlFill 3.6s var(--ease) infinite;
}
@keyframes dlFill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.dl-file-done {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-emerald); color: #fff; font-size: 12px;
  animation: dlDone 3.6s var(--ease) infinite;
}
@keyframes dlDone { 0%, 66% { transform: scale(0); opacity: 0; } 76%, 100% { transform: scale(1); opacity: 1; } }
.dl-qualities { display: flex; gap: 6px; padding: 0 6px 6px; }
.dl-q {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px;
  background: var(--panel); font-size: 13px; font-weight: 700; color: var(--text-2);
}
.dl-q small { font-weight: 500; color: var(--muted-2); }
.dl-q.is-active { background: var(--primary); color: #fff; }
.dl-q.is-active small { color: rgba(255, 255, 255, .8); }

.dl-bubble {
  position: absolute; z-index: 2;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  color: #fff; font-size: 22px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35);
  animation: bob 6s ease-in-out infinite;
}
.dl-bubble--ig { top: 4%; right: 8%; transform: rotate(10deg); background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.dl-bubble--fb { top: 34%; left: 0; transform: rotate(-8deg); background: #1877F2; animation-delay: -2s; }
.dl-bubble--in { bottom: 2%; right: 4%; transform: rotate(6deg); background: #0A66C2; width: 44px; height: 44px; font-size: 18px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Tools tabs + grid ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: var(--radius-pill); background: var(--panel-2);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

.tab-panel[hidden] { display: none; }
.tool-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tool-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.tool-card {
  --accent: var(--primary);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 10px 10px 18px; border-radius: 22px;
  background: #fff; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, #fff);
  box-shadow: 0 2px 4px rgba(16, 16, 24, .04), 0 24px 44px -22px color-mix(in srgb, var(--accent) 55%, transparent);
}
.tool-card.accent-orange  { --accent: var(--c-orange); }
.tool-card.accent-indigo  { --accent: var(--c-indigo); }
.tool-card.accent-amber   { --accent: var(--c-amber); }
.tool-card.accent-pink    { --accent: var(--c-pink); }
.tool-card.accent-emerald { --accent: var(--c-emerald); }
.tool-card.accent-red     { --accent: var(--c-red); }
.tool-card.accent-blue    { --accent: var(--c-blue); }
.tool-card.accent-violet  { --accent: var(--c-violet); }
.tool-card.accent-sky     { --accent: var(--c-sky); }

/* Illustration panel: source file → target file */
.tool-visual {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  height: 128px; border-radius: 16px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 7%, #fff));
}
.tv-file {
  position: relative;
  display: grid; place-items: end center;
  width: 58px; height: 72px; padding-bottom: 12px;
  border-radius: 10px 18px 10px 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 16, 24, .06), 0 10px 20px -12px color-mix(in srgb, var(--accent) 60%, transparent);
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--text-2);
  transition: transform .3s var(--ease);
}
/* folded corner */
.tv-file::before {
  content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  border-radius: 0 18px 0 8px;
  background: color-mix(in srgb, var(--accent) 18%, #fff);
}
/* text lines */
.tv-file::after {
  content: ''; position: absolute; left: 12px; right: 18px; top: 16px; height: 18px;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--panel-2), var(--panel-2)) 0 9px / 70% 4px no-repeat;
}
.tv-file--out { background: var(--accent); color: #fff; transform: rotate(4deg); }
.tv-file--out::before { background: color-mix(in srgb, var(--accent) 70%, #000); opacity: .35; }
.tv-file--out::after {
  background:
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) 0 0 / 100% 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) 0 9px / 70% 4px no-repeat;
}
.tv-file:first-child { transform: rotate(-4deg); }
.tv-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--accent); font-size: 12px;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform .3s var(--ease);
}
.tool-card:hover .tv-file:first-child { transform: rotate(-8deg) translateX(-4px); }
.tool-card:hover .tv-file--out { transform: rotate(6deg) translateY(-6px) scale(1.05); }
.tool-card:hover .tv-arrow { transform: translateX(3px); animation: nudge .9s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* Icon variant for non-conversion tools */
.tool-visual--icon { gap: 0; }
.tv-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: var(--accent); color: #fff; font-size: 26px;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 12%, transparent), 0 14px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .3s var(--ease);
}
.tv-tag {
  position: absolute; right: 14px; top: 14px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover .tv-icon { transform: rotate(-6deg) scale(1.06); }

.tool-body { flex: 1; padding: 16px 8px 0; }
.tool-body h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.tool-body p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tool-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 12px 8px 0; font-size: 13.5px; font-weight: 700; color: var(--accent);
}
.tool-cta i { font-size: 11px; transition: transform .2s var(--ease); }
.tool-card:hover .tool-cta i { transform: translateX(4px); }

.tools-more { margin-top: 28px; text-align: center; }

/* ---------- Profession / category cards ---------- */



/* ---------- Why ---------- */
.why { display: grid; gap: 40px; }
@media (min-width: 992px) { .why { grid-template-columns: 380px 1fr; gap: 64px; align-items: start; } .why-intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.why-intro .section-sub { margin-bottom: 28px; }
.feature-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.feature {
  --accent: var(--primary);
  display: flex; flex-direction: column;
  padding: 8px; border-radius: 22px;
  background: #fff; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature.accent-orange  { --accent: var(--c-orange); }
.feature.accent-amber   { --accent: var(--c-amber); }
.feature.accent-emerald { --accent: var(--c-emerald); }
.feature.accent-violet  { --accent: var(--c-violet); }
.feature.accent-blue    { --accent: var(--c-blue); }
.feature.accent-pink    { --accent: var(--c-pink); }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, #fff); box-shadow: 0 24px 44px -24px color-mix(in srgb, var(--accent) 55%, transparent); }

.feature-visual {
  position: relative; overflow: hidden;
  height: 150px; border-radius: 16px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(90% 100% at 50% 0%, color-mix(in srgb, var(--accent) 15%, #fff), color-mix(in srgb, var(--accent) 6%, #fff));
}
.feature-body { padding: 18px 14px 14px; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.feature-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 13px;
}
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* shared bits */
.fv { position: relative; width: 100%; height: 100%; }

/* 1. formats: floating chips */
.fv-formats { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px 22px; }
.fv-chip {
  padding: 5px 11px; border-radius: 9px; background: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--text-2);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: chipFloat 4s ease-in-out infinite;
}
.fv-chip:nth-child(3n) { background: var(--accent); color: #fff; }
.fv-chip:nth-child(2n) { animation-delay: -1.3s; }
.fv-chip:nth-child(3n+1) { animation-delay: -2.6s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 2. batch: progress rows */
.fv-batch { display: grid; align-content: center; gap: 8px; padding: 0 22px; }
.fv-row {
  display: grid; grid-template-columns: 10px 92px 1fr; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: #fff;
  box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.fv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-bar { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.fv-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); animation: barFill 2.8s var(--ease) infinite; }
.fv-row:nth-child(2) .fv-bar span { animation-delay: .35s; }
.fv-row:nth-child(3) .fv-bar span { animation-delay: .7s; }
@keyframes barFill { 0% { width: 0; } 60%, 100% { width: 100%; } }

/* 3. secure: shield + timer */
.fv-secure { display: grid; place-items: center; align-content: center; gap: 14px; padding-top: 10px; }
.fv-shield {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--accent); color: #fff; font-size: 24px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 0 16px color-mix(in srgb, var(--accent) 7%, transparent);
  animation: shieldPulse 2.6s ease-in-out infinite;
}
@keyframes shieldPulse { 0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 0 16px color-mix(in srgb, var(--accent) 7%, transparent); } 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 4%, transparent); } }
.fv-timer {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 5px 12px; border-radius: var(--radius-pill); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
.fv-timer i { color: var(--accent); }

/* 4. sliders */
.fv-sliders { display: grid; align-content: center; gap: 12px; padding: 0 26px; }
.fv-slider { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.fv-track { position: relative; height: 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.fv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--accent); animation: slide 3.6s ease-in-out infinite; }
.fv-fill::after {
  content: ''; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow-sm);
}
.fv-fill--1 { width: 80%; }
.fv-fill--2 { width: 45%; animation-delay: -1.2s; }
.fv-fill--3 { width: 65%; animation-delay: -2.4s; }
@keyframes slide { 0%, 100% { transform: scaleX(1); transform-origin: left; } 50% { transform: scaleX(.75); transform-origin: left; } }

/* 5. devices */
.fv-devices { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 30px; }
.fv-devices span {
  display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--accent);
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .3s var(--ease);
}
.fv-laptop { width: 92px; height: 70px; font-size: 34px; }
.fv-tablet { width: 60px; height: 76px; font-size: 28px; }
.fv-phone  { width: 42px; height: 64px; font-size: 22px; background: var(--accent) !important; color: #fff !important; }
.feature:hover .fv-laptop { transform: translateY(-4px); }
.feature:hover .fv-tablet { transform: translateY(-8px); }
.feature:hover .fv-phone  { transform: translateY(-12px); }

/* 6. chat */
.fv-chat { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 24px; }
.fv-msg { max-width: 88%; padding: 7px 12px; font-size: 12.5px; font-weight: 600; border-radius: 14px; box-shadow: var(--shadow-sm); }
.fv-msg--in { align-self: flex-start; background: #fff; color: var(--text-2); border-bottom-left-radius: 4px; }
.fv-msg--out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.fv-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 14px; border-bottom-left-radius: 4px; background: #fff; box-shadow: var(--shadow-sm); }
.fv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s ease-in-out infinite; }
.fv-typing i:nth-child(2) { animation-delay: .15s; }
.fv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center;
  padding: 40px 28px; border-radius: 28px;
  background: var(--primary); color: #fff;
}
.cta::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(120, 10, 0, .35), transparent 60%);
}
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; padding: 56px 64px; } }
.cta small { display: block; font-size: 14px; font-weight: 600; opacity: .9; margin-bottom: 8px; letter-spacing: .02em; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cta p { margin-top: 10px; opacity: .92; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn--light { --btn-fg: var(--primary-700); }

/* ---------- FAQ ---------- */
.faq-wrap .faq-list, .faq-more { max-width: 860px; margin-inline: auto; }
.faq-more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 24px; padding: 14px 14px 14px 16px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
}
.faq-more p { flex: 1 1 240px; font-size: 15px; color: var(--muted); }
.faq-more p strong { color: var(--text); }
.faq-more-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-50); color: var(--primary);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background-color: var(--panel-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center 55%;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.faq-item summary:hover::after { background-color: var(--border); }
.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.faq-item p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 80% at 80% 10%, color-mix(in srgb, var(--accent, var(--primary)) 45%, transparent), transparent 70%),
    var(--dark);
  color: #fff; font-size: 40px;
}
.post-thumb i { opacity: .92; transition: transform .3s var(--ease); }
.post:hover .post-thumb i { transform: scale(1.08); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.post:hover .post-thumb img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.post-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--primary); }
.post h3 { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.post p { font-size: 14.5px; color: var(--muted); }
.post-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted-2); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Section that directly follows another white section */
.section--tight-top { padding-top: 0; }

/* Home + converter pages: one even rhythm between sections (48px mobile / 96px desktop per gap).
   - Two sections in a row on the same background (white + white, grey + grey)
     share one gap instead of stacking two.
   - "tight-top" sections that follow a grey panel get their full top back,
     otherwise their heading sits right on the panel's edge.
   - The 40px kept under some sections is room for the design switcher, which
     built pages never show (their designs are locked), so drop it. */
@media (max-width: 991px) { body .section { padding-block: 48px; } }
.section:not(.section--panel) + .section:not(.section--panel),
.section--panel + .section--panel { padding-top: 0; }
.section--panel + .section--tight-top { padding-top: 48px; }
@media (min-width: 992px) { .section--panel + .section--tight-top { padding-top: 96px; } }
/* 2026-11-24: the homepage video downloader card has no bottom padding (as in v2), so the
   section after it keeps its full top padding instead of sitting on the card's edge. */
.section.dl-section + .section:not(.section--panel) { padding-top: 48px; }
@media (min-width: 992px) { .section.dl-section + .section:not(.section--panel) { padding-top: 96px; } }
:is(#kits, #why, #faq, #howto, #stream, #cta, #categories, #blog) > .container:not(:has(> .hx-switch--section)) { padding-bottom: 0; }

/* Sentence must fit between the ad rails */
@media (min-width: 1280px) {
  .has-side-ads .sentence { font-size: min(76px, calc((100vw - var(--ad-rail) * 2 - var(--gutter) * 2) / 15)); }
}

/* ---------- Hero drag & drop overlay ---------- */
.hero-drop {
  position: absolute; inset: 12px; z-index: 40;
  display: grid; place-items: center;
  border-radius: 30px;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(255, 255, 255, .92), rgba(255, 244, 239, .86) 70%),
    rgba(255, 244, 239, .85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: scale(.985);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
  pointer-events: none;
}
.hero.is-dragging .hero-drop { opacity: 1; visibility: visible; transform: none; }

/* marching dashed border */
.hero-drop-border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-drop-border rect {
  fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 14 10; stroke-linecap: round;
  animation: march 1s linear infinite;
}
@keyframes march { to { stroke-dashoffset: -24; } }

.hero-drop-inner { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px; }
.hero-drop-folder {
  filter: drop-shadow(0 18px 26px rgba(230, 62, 28, .3));
  animation: dropBob 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}
.hero-drop-docs { animation: docsUp 1.4s ease-in-out infinite; }
@keyframes dropBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes docsUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hero-drop-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.hero-drop-hint { font-size: 15px; color: var(--muted); }

/* soften the content underneath while dragging */
.hero > .container { transition: filter .25s var(--ease), transform .25s var(--ease); }
.hero.is-dragging > .container { filter: blur(2px); transform: scale(.99); }

/* card glow while dragging + pulse after a drop */
.converter-card { transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.hero.is-dragging .converter-card { border-color: var(--primary-200); box-shadow: 0 0 0 6px var(--primary-ring), 0 30px 60px -30px rgba(200, 60, 30, .35); }
.converter-card.is-received { animation: received .7s var(--ease); }
@keyframes received {
  0% { box-shadow: 0 0 0 0 rgba(255, 76, 41, .45), 0 30px 60px -30px rgba(200, 60, 30, .28); }
  100% { box-shadow: 0 0 0 18px rgba(255, 76, 41, 0), 0 30px 60px -30px rgba(200, 60, 30, .28); }
}
@media (min-width: 1280px) {
  .has-side-ads .hero-drop { left: var(--ad-rail); right: var(--ad-rail); }
}

/* ---------- Tool kits (profession carousel) ---------- */
.kit {
  --accent: var(--primary);
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%; min-height: 400px;
  display: flex; flex-direction: column;
  padding: 22px; border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--accent) 80%, #000);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.kit.accent-orange  { --accent: var(--c-orange); }
.kit.accent-indigo  { --accent: var(--c-indigo); }
.kit.accent-amber   { --accent: #E58A00; }
.kit.accent-pink    { --accent: var(--c-pink); }
.kit.accent-emerald { --accent: #0EA371; }
.kit.accent-red     { --accent: var(--c-red); }
.kit.accent-blue    { --accent: var(--c-blue); }
.kit.accent-violet  { --accent: var(--c-violet); }
.kit:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px color-mix(in srgb, var(--accent) 85%, #000); }

/* big watermark icon */
.kit-mark {
  position: absolute; z-index: -1; right: -26px; top: 64px;
  font-size: 170px; line-height: 1; color: #fff; opacity: .12;
  transform: rotate(-14deg);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.kit:hover .kit-mark { transform: rotate(-4deg) scale(1.08); opacity: .18; }

.kit-top { display: flex; align-items: center; justify-content: space-between; }
.kit-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 20px;
}
.kit-count {
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .95); color: color-mix(in srgb, var(--accent) 80%, #000);
  font-size: 12.5px; font-weight: 800;
}
.kit h3 { margin-top: 26px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.kit p { margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* white inset panel with the kit's popular tools */
.kit-tools {
  margin-top: auto; padding: 6px;
  border-radius: 16px; background: #fff; color: var(--text);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35);
}
.kit p + .kit-tools { margin-top: 22px; }
.kit-tools li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.kit-tools li + li { border-top: 1px dashed var(--border); border-radius: 0; }
.kit-tools li span {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 13px;
}
.kit:hover .kit-tools li { transform: translateX(3px); }
.kit:hover .kit-tools li:nth-child(2) { transition-delay: .04s; }
.kit:hover .kit-tools li:nth-child(3) { transition-delay: .08s; }

.kit-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; font-size: 14.5px; font-weight: 700;
}
.kit-cta-arrow {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--accent); font-size: 13px;
  transition: transform .25s var(--ease);
}
.kit:hover .kit-cta-arrow { transform: translateX(3px) rotate(-45deg); }

/* ---------- Browse by category (bento) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cat--lg { grid-row: span 2; }
  .cat--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cat--lg { grid-column: span 2; grid-row: span 2; }
  .cat--wide { grid-column: span 2; }
}

.cat {
  --accent: var(--primary);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 210px; padding: 22px; border-radius: 24px;
  background: #fff; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cat::before {   /* accent glow in the corner */
  content: ''; position: absolute; z-index: -1; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  transition: transform .4s var(--ease);
}
.cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, #fff); box-shadow: 0 24px 44px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.cat:hover::before { transform: scale(1.4); }
.cat.accent-orange  { --accent: var(--c-orange); }
.cat.accent-indigo  { --accent: var(--c-indigo); }
.cat.accent-amber   { --accent: var(--c-amber); }
.cat.accent-pink    { --accent: var(--c-pink); }
.cat.accent-emerald { --accent: var(--c-emerald); }
.cat.accent-red     { --accent: var(--c-red); }
.cat.accent-blue    { --accent: var(--c-blue); }
.cat.accent-violet  { --accent: var(--c-violet); }

.cat-top { display: flex; align-items: center; justify-content: space-between; }
.cat-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 20px;
}
.cat-go {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cat:hover .cat-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.cat-text { margin-top: auto; }
.cat h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.cat p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cat-tags li {
  padding: 3px 9px; border-radius: 7px;
  background: var(--panel); color: var(--text-2);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

/* Feature cards */
.cat--lg, .cat--wide {
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--accent) 14%, #fff), #fff 70%);
}
.cat--lg h3 { font-size: 26px; }
.cat--lg p { font-size: 15px; max-width: 340px; }
.cat--lg .cat-icon { width: 56px; height: 56px; font-size: 24px; background: var(--accent); color: #fff; box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.cat--wide .cat-icon { background: var(--accent); color: #fff; }
.cat--wide h3 { font-size: 22px; }

/* fanned stack of file "documents" */
.cat-fan { position: relative; flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.cat-file {
  position: absolute;
  display: grid; place-items: end center;
  width: 92px; height: 116px; padding-bottom: 16px;
  border-radius: 14px 26px 14px 14px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--accent) 60%, #000);
  font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--text-2);
  transition: transform .4s var(--ease);
}
.cat-file::before {   /* folded corner */
  content: ''; position: absolute; top: -1px; right: -1px; width: 26px; height: 26px;
  border-radius: 0 26px 0 10px; background: color-mix(in srgb, var(--accent) 18%, #fff);
}
.cat-file::after {    /* text lines */
  content: ''; position: absolute; left: 16px; right: 26px; top: 26px; height: 30px;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--panel-2), var(--panel-2)) 0 12px / 80% 6px no-repeat,
    linear-gradient(var(--panel-2), var(--panel-2)) 0 24px / 55% 6px no-repeat;
}
.cat-file:last-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-file:last-child::before { background: rgba(0, 0, 0, .15); }
.cat-file:last-child::after {
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 0 0 / 100% 6px no-repeat,
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 0 12px / 80% 6px no-repeat,
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 0 24px / 55% 6px no-repeat;
}
/* 3-file fan (Images) */
.cat--lg .cat-file:nth-child(1) { transform: translateX(-78px) rotate(-14deg); }
.cat--lg .cat-file:nth-child(2) { transform: translateX(0) translateY(-10px) rotate(-2deg); }
.cat--lg .cat-file:nth-child(3) { transform: translateX(78px) rotate(12deg); }
.cat--lg:hover .cat-file:nth-child(1) { transform: translateX(-96px) rotate(-18deg); }
.cat--lg:hover .cat-file:nth-child(2) { transform: translateY(-20px) rotate(0); }
.cat--lg:hover .cat-file:nth-child(3) { transform: translateX(96px) rotate(16deg); }

/* Wide card (Documents): text left, 2 files right */
@media (min-width: 600px) {
  .cat--wide { display: grid; grid-template-columns: 1fr 200px; grid-template-rows: auto 1fr; column-gap: 20px; }
  .cat--wide .cat-top { grid-column: 1 / -1; }
  .cat--wide .cat-fan { grid-column: 2; grid-row: 2; min-height: 130px; }
  .cat--wide .cat-text { grid-column: 1; grid-row: 2; align-self: end; }
}
.cat--wide .cat-file { width: 76px; height: 96px; font-size: 13px; }
.cat--wide .cat-file:nth-child(1) { transform: translateX(-34px) rotate(-10deg); }
.cat--wide .cat-file:nth-child(2) { transform: translateX(34px) rotate(8deg); }
.cat--wide:hover .cat-file:nth-child(1) { transform: translateX(-46px) rotate(-14deg); }
.cat--wide:hover .cat-file:nth-child(2) { transform: translateX(46px) translateY(-6px) rotate(12deg); }
@media (max-width: 599px) { .cat-fan { min-height: 140px; } }
