/* ==========================================================================
   PinCatch — Pinterest Video Downloader
   Theme: Pinterest red (#e60023) on white. BEM naming. Mobile-first.
   ========================================================================== */

:root {
  /* colors */
  --red: #e60023;
  --red-dark: #bd001c;
  --red-soft: #fdeef1;
  --red-glow: rgba(230, 0, 35, .12);
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --surface: #ffffff;
  --line: #ececf0;
  --text: #191922;
  --muted: #6d6d7a;
  --green: #16a34a;
  --dark: #191922;
  /* type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* shape */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(230, 0, 35, .10);
  --shadow-sm: 0 4px 18px rgba(20, 20, 30, .05);
  /* layout */
  --wrap: 1140px;
  --pad: 22px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font);
  background: var(--red); color: #fff; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 14px 32px; font-size: 15.5px;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(230, 0, 35, .30); }
.btn:focus-visible { outline: 3px solid rgba(230, 0, 35, .45); outline-offset: 2px; }
.btn--sm { padding: 10px 24px; font-size: 14px; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #f6f6f6; box-shadow: 0 12px 26px rgba(0, 0, 0, .20); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__logo img { border-radius: 9px; }
.site-header__brand { font-weight: 800; font-size: 21px; color: var(--red); letter-spacing: -.5px; }
.site-header__nav { display: flex; gap: 26px; }
.site-header__link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: color .15s; }
.site-header__link:hover { color: var(--red); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

/* language dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown__btn {
  display: flex; align-items: center; gap: 8px; font-family: var(--font);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
}
.lang-dropdown__btn:hover { border-color: var(--red); }
.lang-dropdown__current { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-dropdown__chev { transition: transform .18s; }
.lang-dropdown.open .lang-dropdown__chev { transform: rotate(180deg); }
.lang-dropdown__list {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 20, 30, .14); list-style: none;
  max-height: 320px; overflow-y: auto; min-width: 210px; padding: 6px; z-index: 120;
}
.lang-dropdown.open .lang-dropdown__list { display: block; }
.lang-dropdown__item {
  display: block; padding: 9px 14px; border-radius: 9px; font-size: 14px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.lang-dropdown__item:hover { background: var(--red-soft); color: var(--red); }
.lang-dropdown__item.is-active { background: var(--red); color: #fff; font-weight: 700; }

/* hamburger + mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.6px; background: var(--text); border-radius: 3px; transition: all .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 15px 22px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--red); background: var(--red-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 72px 0 60px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff5f6 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 340px at 50% -80px, var(--red-glow), transparent 70%); }
.hero--compact { padding: 54px 0 44px; }
.hero__title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.14; position: relative; }
.hero__hl { color: var(--red); }
.hero__sub { color: var(--muted); font-size: 17px; max-width: 680px; margin: 16px auto 0; position: relative; }
.hero__updated { color: var(--muted); font-size: 14px; margin-top: 10px; position: relative; }

/* ==========================================================================
   Downloader tool widget
   ========================================================================== */
.tool {
  background: #fff; border: 2px solid var(--line); border-radius: 24px;
  max-width: 780px; margin: 36px auto 0; box-shadow: var(--shadow);
  position: relative; text-align: left; overflow: hidden;
}
.tool__topline { height: 6px; background: linear-gradient(135deg, var(--red), #ff4d4d); }
.tool__tabs { display: flex; gap: 8px; padding: 16px 16px 0; }
.tool__tab {
  flex: 1; border: none; background: var(--bg-soft); padding: 14px 8px; font-family: var(--font);
  font-size: 15px; font-weight: 700; color: var(--muted); border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .16s;
}
.tool__tab:hover { color: var(--red); }
.tool__tab.is-active { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(230, 0, 35, .30); }
.tool__tab-ico { font-size: 18px; }
.tool__body { padding: 20px; }
.tool__form { display: flex; gap: 10px; }
.tool__input {
  flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: 15px 22px;
  font-size: 15px; font-family: var(--font); outline: none; background: var(--bg-soft); color: var(--text);
  min-width: 0;
}
.tool__input:focus { border-color: var(--red); background: #fff; }
.tool__error { color: var(--red-dark); font-size: 14px; font-weight: 600; margin-top: 12px; }
.tool__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; list-style: none; }
.tool__trust i { color: var(--green); font-style: normal; margin-right: 5px; }
.tool__spinner {
  display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-left: 8px;
}
.tool__submit.is-loading .tool__spinner { display: inline-block; }
.tool__submit.is-loading { opacity: .75; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result preview */
.tool-result { border-top: 2px dashed var(--line); margin: 4px 16px 16px; padding: 20px 6px 6px; display: flex; gap: 20px; align-items: flex-start; }
.tool-result[hidden] { display: none; }
.tool-result__thumb { width: 200px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--red-soft); }
.tool-result__thumb img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.tool-result__info { flex: 1; min-width: 0; }
.tool-result__title { font-size: 16px; margin-bottom: 4px; word-break: break-word; }
.tool-result__meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tool-result__quals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tool-result__q {
  background: var(--bg-soft); border: 2px solid var(--line); color: var(--text); border-radius: 12px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: all .15s;
}
.tool-result__q small { display: block; font-weight: 500; opacity: .7; font-size: 11.5px; }
.tool-result__q.is-sel { background: var(--red); border-color: var(--red); color: #fff; }
.tool-result__row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tool-result__name {
  flex: 1; background: var(--bg-soft); border: 2px solid var(--line); border-radius: 999px;
  color: var(--text); padding: 11px 18px; font-size: 13.5px; font-family: var(--font); min-width: 0;
}
.tool-result__cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-result__cloudbtn {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font);
}
.tool-result__cloudbtn:hover { border-color: var(--red); color: var(--red); }

/* ==========================================================================
   Sections — consistent title bars, varied per-section design
   ========================================================================== */
.section { padding: 66px 0; }
.sec-title { margin-bottom: 18px; }
.sec-title > span {
  display: inline-block; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.8px;
  padding-left: 16px; border-left: 5px solid var(--red); line-height: 1.25;
}
.sec-title--light > span { border-left-color: #fff; }
.sec-subtitle { font-size: 20px; font-weight: 800; margin: 34px 0 12px; padding-left: 14px; border-left: 4px solid var(--red); }
.sec-lead { color: var(--muted); font-size: 16.5px; max-width: 700px; margin-bottom: 26px; }
.lede { font-size: 18px; color: var(--text); margin-bottom: 26px; }

/* steps — numbered cards */
.section--steps { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px 26px; position: relative; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__n { position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 8px 18px rgba(230, 0, 35, .35); }
.step__title { margin: 6px 0 10px; font-size: 17px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* split — editorial two-column */
.section--split { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.split__text p + p { margin-top: 14px; }
.split__media img { border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* features — bento grid */
.section--features { background: #fff; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__e { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card--wide { grid-column: span 2; background: linear-gradient(135deg, #fff, var(--red-soft)); border: 1px solid #f6d3da; position: relative; overflow: hidden; }
.card--wide::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(230, 0, 35, .14), transparent 70%); pointer-events: none; }

/* quality — tinted panels */
.section--quality { background: linear-gradient(180deg, var(--red-soft), #fff); }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.qcard { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--red); box-shadow: var(--shadow-sm); }
.qcard h3 { font-size: 17px; margin-bottom: 10px; }
.qcard p { font-size: 14.5px; color: var(--muted); }
.codeblock { background: var(--dark); color: #f4f4f6; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; margin: 14px 0; }
.codeblock code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* types — icon tiles */
.section--types { background: #fff; }
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .16s, transform .16s; background: #fff; }
.type-card:hover { border-color: var(--red); transform: translateY(-3px); }
.type-card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--red); }
.type-card p { font-size: 14px; color: var(--muted); }

/* devices — dark contrast band */
.section--devices { background: var(--dark); color: #f4f4f6; }
.section--devices .sec-title > span { color: #fff; }
.section--devices .sec-lead { color: #b9b9c4; }
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.device { background: #22222c; border: 1px solid #33333f; border-radius: var(--radius); padding: 26px; }
.device h3 { font-size: 17px; margin-bottom: 10px; color: #fff; }
.device p { font-size: 14.5px; color: #b9b9c4; }
.device p + p { margin-top: 10px; }
.device--wide { grid-column: span 2; border-left: 4px solid var(--red); }
.device--tint { background: #fff; border: 1px solid var(--line); }
.device--tint h3 { color: var(--text); }
.device--tint p, .device--tint li { color: var(--muted); }

/* links — soft cards */
.section--links { background: var(--bg-soft); }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.link-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border-bottom: 4px solid var(--red); }
.link-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.link-card p { font-size: 14px; color: var(--muted); }
.copylink-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.copylink-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.copylink-step img { border-radius: 12px; margin: 0 auto; }
.copylink-step figcaption { font-size: 14px; font-weight: 700; margin-top: 12px; }

/* compare — table section */
.section--compare { background: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.data-table th { background: var(--dark); color: #fff; text-align: left; padding: 14px 18px; font-weight: 700; }
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare-notes p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

/* troubleshooting + faq — accordions */
.section--trouble { background: var(--bg-soft); }
.section--faq { background: #fff; }
.faq { max-width: 800px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__q { padding: 18px 22px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 800; flex-shrink: 0; }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq__a p + p { margin-top: 10px; }

/* safety — checklist hero card */
.section--safety { background: linear-gradient(135deg, #fff, var(--red-soft)); }
.checklist { list-style: none; margin: 18px 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.checklist--cols { columns: 2; column-gap: 32px; }
.checklist--cols li { break-inside: avoid; }

/* legal — document cards */
.section--legal { background: #fff; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.legal-card { border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 14px; padding: 24px; background: var(--bg-soft); }
.legal-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.legal-card p { font-size: 14.5px; color: var(--muted); }
.legal-card--wide { grid-column: span 2; }

/* uses */
.section--uses { background: var(--bg-soft); }
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--red); }
.use-card h3 { font-size: 16px; margin-bottom: 8px; }
.use-card p { font-size: 14px; color: var(--muted); }
.use-card--wide { grid-column: span 2; }

/* prose pages */
.section--prose { background: #fff; padding: 56px 0 70px; }
.section--prose p { margin-bottom: 16px; color: #3d3d49; }
.section--prose .sec-title { margin-top: 38px; }
.numlist { margin: 14px 0 18px 4px; padding-left: 20px; }
.numlist li { margin-bottom: 10px; color: #3d3d49; }

/* video embed slot */
.video-embed { background: var(--dark); border-radius: var(--radius); padding: 40px 28px; text-align: center; margin-top: 18px; }
.video-embed__note { color: #b9b9c4; font-size: 14.5px; max-width: 560px; margin: 0 auto; }

/* contact form */
.contact-form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 20px 0 30px; }
.contact-form__row { margin-bottom: 16px; }
.contact-form__row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.contact-form__row input, .contact-form__row textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font-family: var(--font); font-size: 15px; background: #fff; color: var(--text);
}
.contact-form__row input:focus, .contact-form__row textarea:focus { border-color: var(--red); outline: none; }
.contact-form__note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* CTA band */
.section--cta { background: #fff; }
.cta-band { background: linear-gradient(135deg, var(--red), #ff4d4d); border-radius: 26px; padding: 56px 34px; text-align: center; color: #fff; }
.cta-band .sec-title > span { color: #fff; }
.cta-band p { opacity: .93; max-width: 640px; margin: 0 auto 24px; }
.cta-band__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: #b9b9c4; padding: 56px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.site-footer__logo img { border-radius: 8px; }
.site-footer__logo span { font-weight: 800; font-size: 20px; color: #fff; }
.site-footer__desc { font-size: 14px; max-width: 300px; margin-bottom: 18px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #26262f; color: #cfcfda; transition: all .18s;
}
.site-footer__social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.site-footer__title { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.site-footer__col a { display: block; color: #b9b9c4; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.site-footer__col a:hover { color: var(--red); }
.site-footer__bottom { border-top: 1px solid #2c2c36; padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.site-footer__indep { opacity: .75; }

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */
.is-rtl .sec-title > span, .is-rtl .sec-subtitle { padding-left: 0; padding-right: 16px; border-left: none; border-right: 5px solid var(--red); }
.is-rtl .sec-subtitle { padding-right: 14px; border-right-width: 4px; }
.is-rtl .checklist li { padding-left: 0; padding-right: 34px; }
.is-rtl .checklist li::before { left: auto; right: 0; }
.is-rtl .step__n { left: auto; right: 24px; }
.is-rtl .numlist { padding-left: 0; padding-right: 20px; }
.is-rtl .legal-card { border-left: 1px solid var(--line); border-right: 5px solid var(--red); }
.is-rtl .lang-dropdown__list { right: auto; left: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bento, .quality-grid, .types-grid, .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide, .use-card--wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .site-header__nav { display: none; }
  .hamburger { display: flex; }
  .lang-dropdown__current { display: none; }
  .steps, .devices, .link-cards, .copylink-steps, .legal-grid { grid-template-columns: 1fr; }
  .device--wide, .legal-card--wide { grid-column: span 1; }
  .bento, .quality-grid, .types-grid, .uses-grid { grid-template-columns: 1fr; }
  .card--wide, .use-card--wide { grid-column: span 1; }
  .tool__form { flex-direction: column; }
  .tool-result { flex-direction: column; }
  .tool-result__thumb { width: 100%; }
  .checklist--cols { columns: 1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .hero { padding: 52px 0 44px; }
  .tool__tabs { padding: 12px 12px 0; }
  .tool__tab { font-size: 13.5px; padding: 12px 6px; }
  .tool__body { padding: 16px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 22px; }
}

/* ==========================================================================
   Headings v2 (2026-10-13): 1-2 red accent words + full-width title bars
   ========================================================================== */

/* Red accent words inside headings */
.hl-red { color: var(--red); }

/* Hero H1: no longer all-red second half — only hl-red words are red */
.hero__hl { color: inherit; }

/* Section titles: full-width beautiful title bar */
.sec-title {
  display: block;
  background: linear-gradient(to right, #ffffff 0%, #fff8f9 100%);
  border: 1px solid #f3e2e6;
  border-inline-start: 6px solid var(--red);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 18px rgba(20, 20, 30, .05);
}
.sec-title > span {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.35;
  border: none;
  padding: 0;
}
/* Dark section (devices): dark bar variant */
.section--devices .sec-title {
  background: #22222c;
  border-color: #33333f;
  border-inline-start-color: var(--red);
}
.section--devices .sec-title > span { color: #fff; }
/* CTA band: no bar, keep clean centered light title */
.sec-title--light {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
  text-align: center;
}
.sec-title--light > span { color: #fff; }
.sec-title--light .hl-red { color: #ffdce3; }

@media (max-width: 768px) {
  .sec-title { padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; }
  .sec-title > span { font-size: clamp(20px, 5vw, 24px); }
}

/* ==========================================================================
   Design Refinements 12-point (2026-10-13)
   ========================================================================== */

/* ---- 1. Hero: full-width content, tool higher, trust as small labels ---- */
.hero__sub { max-width: 100%; }
.hero { padding: 40px 0 30px; }
.tool { margin: 22px auto 0; }
.tool__trust { gap: 8px; margin-top: 16px; }
.tool__trust li {
  font-size: 12px; padding: 6px 12px; border-radius: 8px;
  background: #fff; border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(20,20,30,.04); font-weight: 700;
}
.tool__trust li i { font-size: 11px; }
@media (max-width: 768px) {
  .hero { padding: 28px 0 20px; }
  .tool { margin-top: 16px; }
}

/* ---- 2. Steps: no cards — clean numbered rows ---- */
.steps { display: block; max-width: 860px; }
.step {
  background: none; border: none; border-radius: 0; box-shadow: none;
  padding: 26px 0; display: flex; gap: 22px; align-items: flex-start;
  border-bottom: 1px solid var(--line); overflow: visible;
}
.step:last-child { border-bottom: none; }
.step:hover { transform: none; box-shadow: none; }
.step__n {
  position: static; flex: none; width: 54px; height: 54px; font-size: 22px;
  margin: 0; border-radius: 18px;
}
.step__body { flex: 1; }
.step__title { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; }
/* restructure: wrap title+p — handled via flex */

/* ---- 3. Features: full-red hover ---- */
.card { transition: transform .2s, box-shadow .25s, border-color .2s; }
.card:hover {
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: 0 24px 60px rgba(230, 0, 35, .28);
}
.card--wide:hover { box-shadow: 0 24px 60px rgba(230, 0, 35, .28); }

/* ---- 4. Quality: bigger boxes, 2+1 layout ---- */
.quality-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.qcard {
  padding: 38px 34px; border-radius: 20px;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.qcard:last-child {
  grid-column: 1 / -1; max-width: 620px; width: 100%; margin: 0 auto;
  background: linear-gradient(135deg, #fff 0%, #fff5f6 100%);
  border: 2px solid #fbdce2;
}
.qcard:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 22px 55px rgba(230, 0, 35, .20);
}
@media (max-width: 768px) {
  .quality-grid { grid-template-columns: 1fr; }
  .qcard:last-child { grid-column: auto; max-width: none; }
}

/* ---- 5. Type cards: icons + improved ---- */
.type-card { position: relative; overflow: hidden; }
.type-card__icon {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), #ff4d6d); color: #fff;
  box-shadow: 0 10px 24px rgba(230, 0, 35, .30);
}
.type-card__icon svg { width: 26px; height: 26px; }
.type-card { padding: 34px 26px; }
.type-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(230, 0, 35, .16);
}
.type-card h3 { font-size: 17px; }

/* ---- 6. Devices: red headings, icons, hover ---- */
.device { transition: transform .2s, box-shadow .25s, border-color .2s; }
.device:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 18px 45px rgba(230, 0, 35, .18);
}
.device h3 { color: var(--red); }
.device-card__icon {
  display: inline-flex; vertical-align: -4px; margin-inline-end: 10px;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(230,0,35,.12); align-items: center; justify-content: center;
}
.device-card__icon svg { width: 18px; height: 18px; }

/* ---- 7. Link cards: red headings, shadow + hover ---- */
.link-card {
  box-shadow: 0 6px 20px rgba(20,20,30,.05);
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(230, 0, 35, .16);
}
.link-card h3 { color: var(--red); }

/* ---- 8. Compare notes: numbered list ---- */
.compare-notes { counter-reset: cmpnote; max-width: 800px; }
.compare-notes p {
  position: relative; counter-increment: cmpnote;
  padding-inline-start: 52px; margin-bottom: 18px; min-height: 36px;
}
.compare-notes p::before {
  content: counter(cmpnote);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(230, 0, 35, .30);
}

/* ---- 9. Troubleshooting: always-open cards (not accordion) ---- */
.trouble-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.trouble-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.trouble-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; bottom: 0;
  width: 4px; background: linear-gradient(180deg, var(--red), #ff6b8a);
}
.trouble-card:hover {
  transform: translateY(-4px);
  border-color: #f5c6cf;
  box-shadow: 0 16px 40px rgba(230, 0, 35, .10);
}
.trouble-card__title {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; margin-bottom: 10px; line-height: 1.4;
}
.trouble-card__icon {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.trouble-card__icon svg { width: 19px; height: 19px; }
.trouble-card__text { font-size: 14.5px; color: var(--muted); }
.trouble-card__text p { margin: 0; }
@media (max-width: 768px) {
  .trouble-grid { grid-template-columns: 1fr; }
}

/* ---- 10. Copyright: red corner accents (start + end) ---- */
.legal-card {
  position: relative; overflow: hidden;
  border: 1px solid #f3e2e6;
}
.legal-card::before, .legal-card::after {
  content: ""; position: absolute; width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--red), #ff4d6d);
  z-index: 0;
}
.legal-card::before {
  top: 0; inset-inline-start: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.legal-card::after {
  bottom: 0; inset-inline-end: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.legal-card > * { position: relative; z-index: 1; }
.legal-card h3 { color: var(--red); }

/* ---- 11. FAQ: improved ---- */
.faq { max-width: 860px; }
.faq__item {
  border-radius: 16px; margin-bottom: 14px;
  border: 1.5px solid var(--line);
  transition: border-color .2s, box-shadow .25s, transform .15s;
}
.faq__item:hover { border-color: #f5c6cf; transform: translateX(4px); }
.is-rtl .faq__item:hover { transform: translateX(-4px); }
.faq__item[open] {
  border-color: var(--red);
  box-shadow: 0 14px 36px rgba(230, 0, 35, .12);
  transform: none;
}
.faq__q { padding: 20px 24px; font-size: 16.5px; }
.faq__q::after {
  width: 34px; height: 34px; font-size: 20px; font-weight: 700;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none;
}
.faq__item[open] .faq__q::after {
  background: var(--red); color: #fff; transform: rotate(45deg);
}
.faq__a { padding: 0 24px 24px; }

/* ---- 12. Conclusion: smaller, left-aligned, new style ---- */
.cta-band {
  max-width: 780px; margin: 0; text-align: start;
  padding: 44px 40px; border-radius: 20px;
  background: #fff; border: 1px solid #f3e2e6;
  border-inline-start: 6px solid var(--red);
  box-shadow: 0 16px 44px rgba(20, 20, 30, .07);
  color: var(--text);
}
.cta-band::before { display: none; }
.cta-band .sec-title { margin-bottom: 14px; }
.cta-band .sec-title > span { color: var(--text); }
.cta-band p { color: var(--muted); margin: 0 0 1.6em; font-size: 15.5px; }
.cta-band .btn--light {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 26px rgba(230, 0, 35, .35);
}
@media (max-width: 768px) {
  .cta-band { padding: 32px 26px; }
}

/* ---- Fixes for 12-point refinements ---- */
/* Steps: grid layout (number left, title+text stacked right) */
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas: "num title" "num text";
  column-gap: 22px; align-items: start;
}
.step__n { grid-area: num; }
.step__title { grid-area: title; margin-bottom: 8px; }
.step p { grid-area: text; }
/* CTA band is now white — hl-red must be normal red, not light pink */
.cta-band .hl-red { color: var(--red); }
.cta-band .sec-title--light > span { color: var(--text); }

/* ==========================================================================
   Refinements round 2 (2026-10-13) — 6 points
   ========================================================================== */

/* ---- 5. Title bar: red accent on BOTH ends (start + end) ---- */
.sec-title { border-inline-end: 6px solid var(--red); }
.sec-title--light { border-inline-end: none; }

/* ---- 6. Content black in white sections ---- */
.section:not(.section--dark):not(.section--devices) p,
.section:not(.section--dark):not(.section--devices) .faq__a,
.section:not(.section--dark):not(.section--devices) .trouble-card__text {
  color: #191920;
}
.hero__sub { color: #191920; }

/* ==========================================================================
   Interlinking (2026-10-13) — anchor text red
   ========================================================================== */
.section p a, .section li a,
.prose p a, .prose li a,
.card p a, .step p a, .qcard p a, .type-card p a,
.device p a, .link-card p a,
.trouble-card__text a, .faq__a a, .compare-notes p a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.section p a:hover, .prose p a:hover {
  color: #b3001b;
}
