/* =========================================================
   Remote Assistance Tools — redesigned shell
   Layout geometry deliberately matches the original:
   content column stays <= 920px so it never slides under
   the fixed left/right AdSense rails (styles/products.css).
   ========================================================= */

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring, 0 0 0 3px rgba(79,70,229,.35));
  border-radius: 6px;
}

.wrap {
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-border);
}
.site-header .content {
  max-width: 920px;
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-ink);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-header .logo .badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-badge);
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.site-header .logo .badge .material-icons { font-size: 20px; }

.header-note {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 560px) { .header-note { display: none; } }

/* ---------------- Hero ---------------- */
header.hero {
  position: relative;
  background: var(--hero-wash);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vw, 84px) 0 clamp(36px, 6vw, 56px);
  text-align: center;
  overflow: hidden;
}
.hero .title { max-width: 720px; margin-inline: auto; padding-inline: 20px; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.hero .title p {
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* trust chips */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  box-shadow: var(--shadow-sm);
}
.trust span .material-icons { font-size: 15px; color: var(--accent); }

/* ---------------- Section headings ---------------- */
.section-head {
  max-width: 920px;
  margin: clamp(44px, 7vw, 68px) auto 22px;
  padding-inline: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-head p { font-size: .88rem; color: var(--text-muted); }

/* ---------------- Tool cards ---------------- */
.ctas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
  align-items: stretch;
}

.software {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.software:hover,
.software:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.software .link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.software .logo {
  display: grid;
  place-items: center;
  height: 84px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--logo-plate);
  border: 1px solid var(--border);
  padding: 12px;
}
.software .logo img {
  max-width: 132px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.software .name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.software .meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.software .meta .material-icons { font-size: 16px; color: var(--star); }
.software .meta .platform {
  margin-left: auto;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.software .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--accent);
}
.software .go .material-icons {
  font-size: 17px;
  transition: transform .18s ease;
}
.software:hover .go .material-icons { transform: translateX(4px); }

/* ---------------- Ad slot ---------------- */
.ad-bottom {
  max-width: 920px;
  margin: 34px auto 0;
  padding-inline: 20px;
  min-height: 250px;
}

/* ---------------- Article ---------------- */
.blog {
  max-width: 920px;
  margin: clamp(44px, 7vw, 68px) auto 0;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.blog > * { max-width: 68ch; }
.blog h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.blog h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 34px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.blog p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 14px;
}
.blog strong { color: var(--text); font-weight: 600; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  margin-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 0 30px;
}
footer.site-footer .inner {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}
footer.site-footer p {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--text-faint);
  max-width: 620px;
  margin: 0 auto 14px;
}
footer.site-footer a {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}
footer.site-footer a:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
