/* Chrome Safe Download Hub — Set 1 ROOT: Clean minimal */
:root {
  --chrome-blue: #1a73e8;
  --chrome-blue-hover: #1557b0;
  --chrome-blue-soft: #e8f0fe;
  --text: #202124;
  --text-muted: #5f6368;
  --border: #dadce0;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 1px 2px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 4px 12px rgba(60, 64, 67, 0.12);
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--chrome-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--chrome-blue-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul, ol {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.logo:hover {
  color: var(--chrome-blue);
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--chrome-blue);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--chrome-blue);
  border-bottom-color: var(--chrome-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--chrome-blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--chrome-blue-hover);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-secondary {
  background: var(--chrome-blue-soft);
  color: var(--chrome-blue);
}

.btn-secondary:hover {
  background: #d2e3fc;
  color: var(--chrome-blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--chrome-blue);
  border: 1px solid var(--chrome-blue);
}

.btn-outline:hover {
  background: var(--chrome-blue-soft);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--chrome-blue-soft) 0%, var(--bg) 70%);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  margin-bottom: 0;
}

/* —— Cards / grids —— */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c6dafc;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--chrome-blue);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* —— Platform cards —— */
.platform-card {
  text-align: center;
}

.platform-card .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.platform-card .btn {
  margin-top: 1rem;
}

/* —— Stats —— */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--chrome-blue);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* —— Reviews —— */
.review-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #f9ab00;
}

.review-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.review-meta strong {
  color: var(--text);
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

td {
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

.check {
  color: #188038;
  font-weight: 600;
}

.partial {
  color: #e37400;
}

/* —— FAQ —— */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--chrome-blue);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  background: var(--bg-alt);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-body {
  padding: 1rem 1.25rem 1.25rem;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* —— Download page specific —— */
.download-primary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-primary .os-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--chrome-blue);
}

.download-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  color: var(--text-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--chrome-blue-soft);
  color: var(--chrome-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.changelog {
  border-left: 3px solid var(--chrome-blue);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.changelog time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--chrome-blue);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.safe-notice {
  background: var(--chrome-blue-soft);
  border: 1px solid #c6dafc;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.safe-notice h3 {
  color: var(--chrome-blue);
}

/* —— Guide —— */
.guide-block {
  margin-bottom: 2.5rem;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--chrome-blue-soft), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.tip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.tip-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.tip-list li:last-child {
  border-bottom: none;
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chrome-blue);
}

/* —— Footer —— */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.site-footer p {
  max-width: 640px;
  margin: 0 auto 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-security {
  color: var(--text) !important;
  font-weight: 500;
}

/* —— Utilities —— */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

.deep-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.deep-feature .card-icon {
  margin-bottom: 0;
}

.use-case {
  border-left: 3px solid var(--chrome-blue);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.use-case h3 {
  margin-bottom: 0.4rem;
}

/* —— Spin (required for download.js loading state) —— */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a.active {
    border-left-color: var(--chrome-blue);
    border-bottom-color: transparent;
    background: var(--chrome-blue-soft);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deep-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .download-primary {
    padding: 1.75rem 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
