/* HiBit Uninstaller — shared design system (English pages) */
:root {
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --color-bg: #f1f5f9;
  --color-bg-subtle: #e2e8f0;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-accent: #0ea5e9;
  --color-accent-dark: #0284c7;
  --color-accent-soft: rgba(14, 165, 233, 0.12);
  --color-border: #e2e8f0;
  --color-ink: #020617;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --max-content: 72rem;
  --max-prose: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ——— Site chrome (guides, 404, internal pages) ——— */
.site-skip {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.site-skip:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.site-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.site-brand span {
  line-height: 1.2;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-link-muted {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.site-link-muted:hover {
  color: var(--color-accent-dark);
}

.btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-site--primary {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.35);
}
.btn-site--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.site-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-main--narrow {
  max-width: var(--max-prose);
}

.site-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-ink);
}

.site-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  line-height: 1.65;
}

.site-breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.site-breadcrumb a {
  color: var(--color-accent-dark);
  text-decoration: none;
  font-weight: 500;
}
.site-breadcrumb a:hover {
  text-decoration: underline;
}

.site-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.site-article p,
.site-article li {
  color: #1e293b;
}

.site-article ul,
.site-article ol {
  padding-left: 1.25rem;
}

.site-article li {
  margin-bottom: 0.35rem;
}

.site-article code {
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
}

.site-article a {
  color: var(--color-accent-dark);
  font-weight: 500;
}

.site-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.35rem;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.site-cta:hover {
  filter: brightness(1.06);
}

.site-footer-min {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.site-footer-min a {
  color: var(--color-accent-dark);
  font-weight: 500;
  text-decoration: none;
}
.site-footer-min a:hover {
  text-decoration: underline;
}

/* Guide index list */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.guide-list a {
  display: block;
  padding: 1.125rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guide-list a:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-md);
}

.guide-list__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.guide-list__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* 404 */
.site-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--color-bg);
}

.site-error__card {
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 28rem;
  width: 100%;
  text-align: center;
}

.site-error__card h1 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.site-error__card p {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.site-error__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

/* Homepage helpers (used with Tailwind on index) */
.hero-mesh {
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(14, 165, 233, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(14, 165, 233, 0.08), transparent);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c4a6e;
}

/* Eyebrow on dark hero / download bands */
.section-label--on-dark,
.hero-mesh .section-label {
  color: #bae6fd;
}

.card-refined {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-refined:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-md);
}

.resource-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.resource-toc a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #e2e8f0;
  transition: background 0.15s ease, color 0.15s ease;
}
.resource-toc a:hover {
  background: var(--color-accent-soft);
  color: #0369a1;
}

.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Homepage long-form sections: readable line length & rhythm */
.page-section-prose p {
  line-height: 1.72;
}

.page-section-prose > .text-center > p.text-lg,
.page-section-prose > .text-center > p.text-slate-700 {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-section-prose .bg-white p,
.page-section-prose .bg-slate-50 p,
.page-section-prose article p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.page-section-prose .bg-slate-900 p,
.page-section-prose .bg-gradient-to-r p {
  line-height: 1.65;
}

.page-section-prose li {
  line-height: 1.6;
}

.page-section-prose h3.text-2xl,
.page-section-prose h3.text-xl {
  margin-top: 0;
}

/* Rich internal pages: figures, callouts, blog cards */
.site-figure {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.site-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.site-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
}

.site-media-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0;
}
@media (min-width: 768px) {
  .site-media-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.site-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(241, 245, 249, 0.9) 100%);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.site-callout strong {
  color: var(--color-ink);
}

.site-hub-layout {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .site-hub-layout {
    grid-template-columns: 1fr minmax(260px, 340px);
    align-items: start;
  }
}

.site-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.site-pill-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-pill-nav a:hover {
  background: var(--color-accent-soft);
  color: #0369a1;
}

.blog-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-card-list a {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  align-items: center;
}
@media (max-width: 480px) {
  .blog-card-list a {
    grid-template-columns: 1fr;
  }
}
.blog-card-list a:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-md);
}
.blog-card-list__thumb {
  width: 100%;
  max-width: 132px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.blog-card-list .guide-list__title {
  margin-bottom: 0.35rem;
}

.site-dl-spaced dt {
  margin-top: 1.25rem;
}
.site-dl-spaced dt:first-child {
  margin-top: 0;
}

.download-hero {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .download-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 1.75rem 2rem;
  }
}
.download-hero img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.site-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.site-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.site-table-wrap th,
.site-table-wrap td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.site-table-wrap th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--color-ink);
}
.site-table-wrap tr:last-child td {
  border-bottom: none;
}
