/* RecoveryTools inner page styles. Loaded after common.css on the core pages:
   products, offers, support, about, contact, awards, order and the policy pages.
   Palette and fonts come from /assets/css/common.css (:root). Change colors there only. */

/* Page hero */
.ph { background: radial-gradient(640px 260px at 88% 0, var(--accent-tint), rgba(255, 237, 213, 0) 70%), #fff; border-bottom: 1px solid var(--line); padding-bottom: clamp(32px, 5vw, 52px); }
.crumbs { font-size: 14px; color: var(--ink-4); padding: 16px 0 clamp(16px, 3vw, 28px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.ph h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.ph .lead { font-size: 18px; color: var(--ink-3); max-width: 640px; margin-bottom: 26px; }
.ph-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: 0 14px 30px rgba(17, 24, 39, .07); }
.ph-card h2 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.facts { display: flex; flex-direction: column; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.facts li b { display: block; color: var(--ink); font-size: 16px; }
.facts .ic { width: 22px; height: 22px; margin-top: 1px; }
.facts a { color: var(--accent-text); font-weight: 700; }
.facts a:hover { text-decoration: underline; }

/* Section helpers */
.section.tight { padding-top: 0; }
.section h3 { line-height: 1.25; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head .sub { margin-bottom: 0; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.section.alt .card { background: var(--card-soft); }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { font-size: 15px; color: var(--ink-3); }
.card a:not(.btn) { color: var(--accent-text); font-weight: 700; }
.card a:not(.btn):hover { text-decoration: underline; }
.card .btn { align-self: flex-start; margin-top: 6px; }

/* Steps */
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-3); }
.step-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-top .ic { width: 30px; height: 30px; }
.tool h3 { font-size: 18px; font-weight: 800; }
.tool h3 a:hover { color: var(--accent-text); }
.tool p { font-size: 15px; color: var(--ink-3); flex: 1; }
.tool .more { font-weight: 700; font-size: 14px; color: var(--accent-text); }
.tool .more:hover { text-decoration: underline; }

/* Jump pills (products hero) */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.jump a:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.jump b { font-size: 12px; font-weight: 800; line-height: 1; color: var(--accent-dark); background: var(--accent-tint); border-radius: 999px; padding: 3px 8px; }
.jump a:hover b { background: #fff; }

/* Software catalog (products page) */
.cat-bar { padding-bottom: 0; }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 18px; box-shadow: 0 10px 24px rgba(17, 24, 39, .05); }
.no-js .cat-bar { display: none; }
.cat-search { flex: 1 1 280px; min-width: 0; }
.cat-search input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 11px 18px; }
.cat-search input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.cat-tools .filters { margin: 0; }
.cat-tools .filter { padding: 9px 18px; font-size: 14.5px; }
#sw-status { font-size: 14px; font-weight: 700; color: var(--ink-3); flex: 1 1 100%; margin: 0; }
.empty { margin: 18px 0 0; padding: 14px 18px; background: var(--accent-tint); border-radius: 12px; color: var(--accent-ink); font-weight: 700; }
.grp[hidden], .sw[hidden], .empty[hidden] { display: none; }
.count { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--accent-dark); background: var(--accent-tint); border-radius: 999px; padding: 2px 10px; vertical-align: 1px; white-space: nowrap; }
.tool-grid.cat { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sw { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 9px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.section.alt .sw { background: var(--card); }
.sw:hover, .sw:focus-within { border-color: var(--accent); box-shadow: 0 10px 22px rgba(17, 24, 39, .09); transform: translateY(-2px); }
.sw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sw-top .ic { width: 26px; height: 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip { font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink-3); background: var(--card-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.chip.free { color: var(--accent-dark); background: var(--accent-tint); border-color: var(--accent-soft); }
.sw .tag { align-self: auto; }
.sw h3 { font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.sw h3 a { color: var(--ink); }
.sw h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-m); }
.sw h3 a:hover { color: var(--accent-text); }
.sw p { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.sw-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.sw-act .btn { min-height: 40px; }
.sw .btn-sm { position: relative; z-index: 1; padding: 8px 14px; font-size: 13.5px; border-width: 1.5px; }
.sw .btn-line { border-color: var(--line-strong); }
.sw .btn-line:hover { border-color: var(--ink); }
html:not(.no-js) .tool-grid.cat:not(.open):not(.filtered) .sw.more { display: none; }
@media (max-width: 600px) { html:not(.no-js) .tool-grid.cat:not(.open):not(.filtered) .sw:nth-child(n+7) { display: none; } }
.more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.more-wrap .more-btn { border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 999px; padding: 11px 26px; font-weight: 800; font-size: 15px; }
.more-wrap .more-btn:hover { background: var(--ink); color: #fff; }
.no-js .more-wrap { display: none; }
.tool-grid.filtered + .more-wrap { display: none; }

/* File type table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { background: var(--card-soft); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tbl tbody th { width: 120px; font-weight: 800; white-space: nowrap; }
.tbl td a { color: var(--accent-text); font-weight: 700; margin-right: 14px; display: inline-block; padding: 5px 0; }
.tbl td a:hover { text-decoration: underline; }
.tbl.ft th, .tbl.ft td { vertical-align: middle; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tbl td .chip-row a.lk { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 14px; border: 1.5px solid var(--accent-soft); border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.tbl td .chip-row a.lk::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); flex: none; }
.tbl td .chip-row a.lk:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.tbl.demo tbody th { width: 38%; white-space: normal; }
.tbl.demo th a { color: var(--ink); }
.tbl.demo th a:hover { color: var(--accent-text); }

/* Stats band */
.stats { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.stats h2 { color: #fff; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.stat { border-left: 3px solid var(--accent); padding-left: 18px; }
.stat b { display: block; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--accent-soft); }
.stat span { font-size: 15px; color: #D1D5DB; }
.stats-note { margin-top: 22px; font-size: 13px; color: #9CA3AF; }

/* Awards, badges, people */
.award-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.award-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.award-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.award { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.section.alt .award { background: var(--card-soft); }
.award .ic { width: 34px; height: 34px; margin-bottom: 6px; }
.award b { font-size: 17px; font-weight: 800; }
.award span { font-size: 14px; color: var(--ink-3); }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.badge { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.badge img { width: 210px; max-width: 100%; height: auto; aspect-ratio: 210 / 150; object-fit: contain; }
.badge span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person .av { margin-bottom: 8px; }
.person b { font-size: 17px; font-weight: 800; }
.person span:last-child { font-size: 14px; color: var(--ink-3); }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.av.lg { width: 72px; height: 72px; font-size: 22px; }

/* Split layout, contact lines */
.split > div > p { color: var(--ink-2); margin-bottom: 14px; max-width: 70ch; }
.split .card ul { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.refund-card { background: var(--accent-tint); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.refund-card .ic { width: 40px; height: 40px; stroke: var(--accent-dark); }
.refund-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.refund-card p { color: var(--accent-ink); }
.refund-card .btn { align-self: flex-start; margin-top: 6px; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-3); }
.contact-lines b { color: var(--ink); }
.contact-lines a { color: var(--accent-text); font-weight: 700; word-break: break-word; }
.contact-lines a:hover { text-decoration: underline; }

/* Offers */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.no-js .filters { display: none; }
.filter { border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 15px; }
.filter:hover { border-color: var(--accent); color: var(--accent-text); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bundle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bundle[hidden] { display: none; }
.bundle-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bundle h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.save-tag { flex: none; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.bundle-items { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-3); flex: 1; }
.bundle-items li { padding-left: 24px; position: relative; }
.bundle-items li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.bundle-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.bundle-price s { display: block; font-size: 15px; color: var(--ink-4); }
.bundle-price small { display: block; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.bundle-price b { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }

/* Order list */
.order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; }
.order-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-row b { font-size: 17px; font-weight: 800; }
.order-row span { font-size: 14px; color: var(--ink-3); }
.order-row .btn { flex: none; white-space: nowrap; }

/* Policy pages */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.toc { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.toc h2 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); }
.toc a:hover { background: var(--accent-tint); color: var(--accent-ink); }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 36px 0 12px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; max-width: 74ch; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); max-width: 74ch; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose a { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }
.callout { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; color: var(--accent-ink); }
.callout b { display: block; font-size: 17px; margin-bottom: 6px; }
.callout ul { margin: 0; padding-left: 20px; color: var(--accent-ink); }
.callout li { margin-bottom: 4px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; }
.policy-links a { font-weight: 700; color: var(--accent-text); }
.policy-links a:hover { text-decoration: underline; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.contact-stack { display: flex; flex-direction: column; gap: 16px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 36px); box-shadow: 0 14px 30px rgba(17, 24, 39, .07); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card .sub { font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.form-card .btn { width: 100%; margin-top: 8px; }
.cf-turnstile { margin: 4px 0 8px; min-height: 65px; }
#response { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; }

/* Responsive */
@media (max-width: 1100px) {
  .cards.c4, .step-grid.c4, .team-grid, .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid, .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ph-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--page); }
}
@media (max-width: 640px) {
  .cards, .cards.c2, .cards.c4, .step-grid, .step-grid.c4, .tool-grid, .bundle-grid, .order-list, .award-grid, .award-grid.c3, .award-grid.c2, .team-grid, .badge-grid, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl th, .tbl td { padding: 12px; }
  .tbl tbody th { width: auto; white-space: normal; }
  .ph .btn-row .btn { width: 100%; }
  .bundle-price b { font-size: 30px; }
}
@media (max-width: 380px) {
  .cf-turnstile { transform: scale(.82); transform-origin: 0 0; height: 56px; min-height: 0; margin-bottom: 4px; }
}
