/* Chrome Safe Download Hub — Set 1 Root */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --blue-light: #e8f0fe;
  --text: #202124;
  --text-muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e0e0e0;
  --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);
  --radius: 8px;
  --nav-h: 64px;
  --max: 1080px;
  --font: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Spinner for download.js loading state */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--blue);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* 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.15s, box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1.2;
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg);
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--blue-light);
  text-decoration: none;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-meta {
  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: 720px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  margin-bottom: 0;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--blue);
}

.card-icon svg {
  width: 40px;
  height: 40px;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card p + p {
  margin-top: 0.6rem;
}

/* Platform entries */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.platform-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
}

.platform-card .card-icon {
  margin: 0 auto 0.75rem;
}

.platform-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.platform-card .btn {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

.platform-card ol {
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.platform-card ol li {
  margin-bottom: 0.35rem;
}

/* Deep features */
.deep-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.deep-feature:last-child {
  margin-bottom: 0;
}

.deep-feature.reverse {
  direction: rtl;
}

.deep-feature.reverse > * {
  direction: ltr;
}

.deep-visual {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  box-shadow: var(--shadow);
}

.deep-visual svg {
  width: 96px;
  height: 96px;
  color: var(--blue);
}

/* Stats */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #f9ab00;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-style: normal;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.review-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg);
}

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(--blue-light);
  color: var(--text);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--text-muted);
}

td.yes {
  color: #188038;
  font-weight: 600;
}

td.partial {
  color: #e37400;
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.usecase-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.usecase-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.usecase-card .card-icon {
  width: 28px;
  height: 28px;
  margin: 0;
}

.usecase-card .card-icon svg {
  width: 28px;
  height: 28px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Accordion (CSS-only) */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accordion-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
}

.accordion-item label:hover {
  background: var(--bg-alt);
}

.accordion-item label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-top: -4px;
}

.accordion-item input:checked + label::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item input:checked ~ .accordion-body {
  max-height: 320px;
}

.accordion-body-inner {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-body-inner p {
  margin-bottom: 0;
}

/* Download page — primary zone */
.download-primary {
  background: var(--bg);
  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 2.5rem;
}

.download-primary .version-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.download-primary h2 {
  margin-bottom: 0.5rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.download-meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--bg);
  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.15rem;
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.steps li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* Changelog */
.changelog {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}

.changelog-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.changelog-item .ver {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.changelog-item .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.changelog-item ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Safe notice */
.safe-notice {
  background: var(--blue-light);
  border: 1px solid #c2d7f5;
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.safe-notice h2 {
  font-size: 1.25rem;
}

.safe-notice p {
  margin-bottom: 0.5rem;
}

.safe-notice p:last-child {
  margin-bottom: 0;
}

/* Guide page */
.guide-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

.guide-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.guide-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.guide-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.guide-content h3 {
  margin-top: 1.5rem;
}

.guide-cta {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}

.guide-cta p {
  margin-bottom: 1.25rem;
}

.guide-content ul,
.guide-content ol {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  font-family: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--blue);
}

.footer-security {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Notes block */
.notes-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.notes-block h3 {
  margin-bottom: 0.75rem;
}

.notes-block p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-feature,
  .deep-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 640px) {
  .nav-links a {
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
  }

  .logo span {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .card-grid,
  .platform-grid,
  .reviews-grid,
  .usecase-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .download-primary {
    padding: 1.75rem 1.25rem;
  }

  .download-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  th,
  td {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
  }
}
