/* QuickPDFTooles — stylesheet
   Palette: ink navy + paper + pine accent. Motif: stacked sheets. */

:root {
  --ink: #101b2d;
  --ink-2: #2a3852;
  --slate: #606c82;
  --slate-2: #8a94a6;
  --paper: #f6f6f3;
  --card: #ffffff;
  --line: #e2e5ea;
  --line-2: #eef0f3;
  --accent: #186b58;
  --accent-dark: #10513f;
  --accent-soft: #e7f1ed;
  --amber: #c98a1f;
  --danger: #a93c28;
  --danger-soft: #fbeeec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 27, 45, .05), 0 10px 30px -18px rgba(16, 27, 45, .35);
  --shadow-lift: 0 2px 4px rgba(16, 27, 45, .06), 0 18px 40px -20px rgba(16, 27, 45, .4);
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}

html[lang="ar"] {
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Sans Arabic", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.16rem; letter-spacing: -.01em; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.25em; }
li { margin-bottom: .45em; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-weight: 600; }

.lede { font-size: 1.14rem; color: var(--ink-2); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.03em; }
.brand-name b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.lang { display: flex; gap: 3px; margin-inline-start: 10px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.lang a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate); text-decoration: none; padding: 5px 7px; border-radius: 6px;
}
.lang a:hover { background: var(--line-2); color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--line-2); font-weight: 600; }

.menu-btn {
  display: none; margin-inline-start: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 12px; top: 62px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; box-shadow: var(--shadow-lift); margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .lang { margin: 6px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
}

/* ---------- hero ---------- */

.hero { padding: 54px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 44ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: .84rem; color: var(--ink-2); margin: 0;
}
.chip svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }

@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 280px; }
}

/* ---------- sections & cards ---------- */

section { scroll-margin-top: 80px; }
.band { padding: 56px 0; }
.band + .band { padding-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--slate); margin: 0; }

.grid-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-tools { grid-template-columns: 1fr; } }

.tool-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfd6dd; color: var(--ink); }
.tool-card .glyph { width: 46px; height: 40px; color: var(--accent); }
.tool-card h3 { margin: 0; font-size: 1.05rem; }
.tool-card p { margin: 0; font-size: .9rem; color: var(--slate); line-height: 1.5; }
.tool-card .go { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: auto; padding-top: 8px; }
html[lang="ar"] .tool-card .go { letter-spacing: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 18px; margin: 0; position: relative;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
  display: block; margin-bottom: 8px; letter-spacing: .08em;
}
.steps strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.02rem; }
.steps span { color: var(--slate); font-size: .92rem; }

.note-card {
  background: var(--accent-soft); border: 1px solid #cfe3db; border-radius: var(--radius);
  padding: 24px 26px;
}
.note-card h2 { margin-top: 0; }
.note-card p:last-child { margin-bottom: 0; }

/* ---------- tool app ---------- */

.tool-app {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .tool-app { padding: 16px; } }

.dropzone {
  border: 1.5px dashed #c4ccd6; border-radius: var(--radius);
  background: #fbfbfa; padding: 34px 20px; text-align: center; cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.dropzone:hover, .dropzone.hot { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .stack { width: 62px; height: 54px; color: var(--accent); margin-bottom: 12px; }
.dz-title { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin: 0 0 4px; }
.dz-hint { margin: 0; font-size: .88rem; color: var(--slate); }

.filelist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filelist li {
  display: flex; align-items: center; gap: 10px; margin: 0;
  background: #fbfbfa; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.filelist .fname { font-size: .92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .fmeta { font-family: var(--mono); font-size: .74rem; color: var(--slate-2); }
.filelist .fgrow { min-width: 0; flex: 1; }
.icon-btn {
  background: none; border: 1px solid var(--line); border-radius: 7px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--slate);
  flex: none; font: inherit; font-size: .95rem; line-height: 1;
}
.icon-btn:hover:not(:disabled) { background: var(--line-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.remove:hover { color: var(--danger); border-color: #e6c9c2; background: var(--danger-soft); }

.options { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 170px; flex: 1; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
html[lang="ar"] .field label { letter-spacing: 0; font-weight: 600; }
.field select, .field input[type="text"] {
  font: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 9px 11px; width: 100%;
}
.field .help { font-size: .78rem; color: var(--slate-2); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }

.btn {
  font: inherit; font-weight: 600; font-size: .96rem; cursor: pointer;
  border-radius: var(--radius-sm); padding: 11px 20px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); color: #fff; }
.btn-primary:disabled { background: #c3cbd3; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-lg { padding: 13px 24px; font-size: 1rem; }

.status { margin-top: 14px; font-size: .92rem; color: var(--slate); min-height: 1.4em; }
.status.error { color: var(--danger); }

.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

.result {
  margin-top: 18px; border: 1px solid #cfe3db; background: var(--accent-soft);
  border-radius: var(--radius); padding: 18px;
}
.result h3 { margin: 0 0 6px; font-size: 1.05rem; }
.result p { margin: 0 0 12px; font-size: .92rem; color: var(--ink-2); }
.result .stat { font-family: var(--mono); font-size: .84rem; }

/* ---------- content ---------- */

.prose { max-width: 72ch; }
.prose h2:first-child { margin-top: 0; }
.prose ol li, .prose ul li { color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.15rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 16px; color: var(--ink-2); font-size: .97rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 500; }

/* Ad containers: paste your ad code inside. Empty = invisible. */
.ad-slot { margin: 32px auto; text-align: center; max-width: 970px; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 32px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin: 0 0 12px; font-weight: 500; }
html[lang="ar"] .footer-grid h4 { letter-spacing: 0; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { font-size: .9rem; color: var(--slate); margin: 10px 0 0; max-width: 34ch; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .85rem; color: var(--slate-2);
}

/* ---------- misc ---------- */

.skip {
  position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip:focus { inset-inline-start: 12px; color: #fff; }

.breadcrumb { font-size: .84rem; color: var(--slate-2); margin: 24px 0 0; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.center { text-align: center; }
.mt-lg { margin-top: 34px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- grouped tool sections ---------- */

.group-title {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); font-weight: 500;
  margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.group-title:first-child { margin-top: 0; }
html[lang="ar"] .group-title { letter-spacing: 0; font-weight: 600; font-size: .85rem; }

/* ---------- word counter ---------- */

.text-area {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfbfa;
  padding: 14px 16px; resize: vertical; min-height: 220px;
}
.text-area:focus { background: #fff; }

.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  background: #fbfbfa; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center;
}
.stat-num {
  display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  line-height: 1.1; letter-spacing: -.02em; color: var(--accent);
}
.stat-label {
  display: block; margin-top: 4px; font-size: .74rem; color: var(--slate);
  line-height: 1.3;
}

/* ---------- password generator ---------- */

.pw-output {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fbfbfa; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.pw-output code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 1.18rem;
  letter-spacing: .04em; word-break: break-all; color: var(--ink); direction: ltr;
  text-align: start;
}
@media (max-width: 520px) { .pw-output code { font-size: 1rem; } }

.checks { gap: 9px; }
.checks legend {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate); padding: 0; margin-bottom: 4px;
}
html[lang="ar"] .checks legend { letter-spacing: 0; font-weight: 600; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
.checks label {
  display: flex; align-items: center; gap: 9px; font-size: .94rem;
  color: var(--ink-2); cursor: pointer; text-transform: none; letter-spacing: 0;
  font-family: var(--body);
}
.checks input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }

input[type="range"] {
  width: 100%; accent-color: var(--accent); height: 26px;
}

/* ---------- coloured tool tiles ---------- */

.brand-mark { border-radius: 7px; }

.tool-card .tile,
.tool-head .tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 46px; border-radius: 13px;
  background: var(--tc, var(--accent)); color: #fff; flex: none;
}
.tool-card .tile .glyph,
.tool-head .tile .glyph { width: 34px; height: 26px; color: #fff; }

.tool-card { --tc: var(--accent); }
.tool-card:hover { border-color: var(--tc); }
.tool-card .go { color: var(--tc); }

.tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.tool-head h1 { margin: 0; }
.tool-head .tile { width: 62px; height: 56px; border-radius: 16px; }
.tool-head .tile .glyph { width: 40px; height: 31px; }
@media (max-width: 560px) {
  .tool-head { gap: 12px; }
  .tool-head .tile { width: 50px; height: 46px; border-radius: 13px; }
  .tool-head .tile .glyph { width: 32px; height: 25px; }
}

/* ---------- comparison table ---------- */

.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare table { margin: 0; }
.compare th, .compare td { padding: 13px 16px; }
.compare thead th { background: #fbfbfa; font-size: .72rem; }
.compare tbody th { font-weight: 500; font-family: var(--body); font-size: .94rem; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.compare td { text-align: center; width: 22%; font-size: .92rem; }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--slate-2); }
.compare col.us { background: var(--accent-soft); }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 8px; font-size: .85rem; } }

/* ---------- tools dropdown ---------- */

.nav-drop { position: relative; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .94rem; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  padding: 7px 11px; border-radius: 8px;
}
.nav-trigger svg { width: 12px; height: 12px; transition: transform .18s ease; }
.nav-trigger:hover { background: var(--line-2); color: var(--ink); }
.nav-trigger[aria-expanded="true"] { background: var(--line-2); color: var(--ink); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop[data-active="1"] .nav-trigger { color: var(--accent); background: var(--accent-soft); }

.tools-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0;
  width: 560px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  z-index: 60;
}
.tools-panel[hidden] { display: none; }

.tp-group h4 {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate-2); font-weight: 500;
  margin: 0 0 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line-2);
}
html[lang="ar"] .tp-group h4 { letter-spacing: 0; font-weight: 600; font-size: .76rem; }

.tp-group a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: .89rem; font-weight: 500;
  line-height: 1.25;
}
.tp-group a:hover { background: var(--line-2); color: var(--ink); }
.tp-group a.active { color: var(--tc); background: var(--accent-soft); }
.tp-group .dot {
  width: 28px; height: 26px; border-radius: 8px; flex: none;
  background: var(--tc); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.tp-group .dot .glyph { width: 19px; height: 15px; color: #fff; }

@media (max-width: 860px) {
  .nav-drop { position: static; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 10px 12px; }
  .tools-panel {
    position: static; width: auto; max-width: none; margin-top: 6px;
    grid-template-columns: 1fr; gap: 14px; box-shadow: none;
    border-color: var(--line-2); padding: 14px;
  }
}

/* ---------- tools slideshow ---------- */

.slider { position: relative; }
.sl-viewport { overflow: hidden; padding: 4px 2px 8px; }
.sl-track {
  display: flex; gap: 16px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.sl-track.dragging { transition: none; }

.slide {
  flex: 0 0 300px; width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.slide::after {
  content: ""; position: absolute; inset-inline-end: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--tc); opacity: .06;
}
.slide .sl-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 58px; border-radius: 17px;
  background: var(--tc); color: #fff; margin-bottom: 4px;
}
.slide .sl-glyph .glyph { width: 42px; height: 33px; color: #fff; }
.slide h3 { margin: 0; font-size: 1.22rem; }
.slide p { margin: 0; color: var(--slate); font-size: .93rem; line-height: 1.5; flex: 1; }
.slide .btn { align-self: flex-start; margin-top: 8px; background: var(--tc); }
.slide .btn:hover { filter: brightness(.9); background: var(--tc); }

@media (max-width: 560px) { .slide { flex-basis: 78vw; width: 78vw; } }

.sl-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.sl-arrow svg { width: 17px; height: 17px; }
.sl-arrow:hover:not(:disabled) { background: var(--line-2); }
.sl-arrow:disabled { opacity: .25; cursor: default; }
.sl-prev { inset-inline-start: -14px; }
.sl-next { inset-inline-end: -14px; }
html[dir="rtl"] .sl-arrow svg { transform: scaleX(-1); }
@media (max-width: 1180px) {
  .sl-prev { inset-inline-start: 4px; }
  .sl-next { inset-inline-end: 4px; }
}

.sl-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.sl-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: width .2s ease, background .2s ease;
}
.sl-dots button[aria-current="true"] { width: 24px; border-radius: 5px; background: var(--accent); }

/* ---------- slideshow inside the hero frame ---------- */

.hero-frame {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden;
}
.hf-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfbfa;
}
.hf-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.hf-url {
  flex: 1; height: 11px; border-radius: 6px; background: var(--line-2);
  margin-inline-start: 10px; max-width: 190px;
}

.hero-frame .slider { position: relative; }
.hero-frame .sl-viewport { padding: 0; }
.hero-frame .slide {
  flex: 0 0 100%; width: 100%;
  border: 0; border-radius: 0; box-shadow: none; background: var(--card);
  padding: 30px 30px 26px; min-height: 264px; gap: 9px;
}
.hero-frame .slide::after { inset-inline-end: -50px; top: -50px; width: 170px; height: 170px; }
.hero-frame .slide h3 { font-size: 1.3rem; }
.hero-frame .slide p { font-size: .95rem; }

.hero-frame .sl-arrow {
  width: 34px; height: 34px; top: auto; bottom: 24px; transform: none;
  box-shadow: 0 1px 3px rgba(16,27,45,.12);
}
.hero-frame .sl-arrow svg { width: 14px; height: 14px; }
.hero-frame .sl-prev { inset-inline-start: auto; inset-inline-end: 66px; }
.hero-frame .sl-next { inset-inline-start: auto; inset-inline-end: 24px; }

.hero-frame .sl-dots {
  margin: 0; padding: 14px 16px; border-top: 1px solid var(--line-2); background: #fbfbfa;
}

@media (max-width: 900px) {
  .hero-frame { max-width: 100%; }
  .hero-art { order: 0; }
}
@media (max-width: 560px) {
  .hero-frame .slide { padding: 24px 22px 22px; min-height: 250px; }
}
