:root {
  --page: #f4f7f6;
  --surface: #ffffff;
  --surface-muted: #e9f0ee;
  --ink: #14201f;
  --muted: #526461;
  --line: #cbd7d4;
  --line-dark: #9aaca8;
  --primary: #0f766e;
  --primary-dark: #0b514c;
  --primary-soft: #d9f2ed;
  --blue: #295ea8;
  --blue-soft: #e6eef9;
  --amber: #a45c09;
  --amber-soft: #fff3d6;
  --danger: #a83a32;
  --danger-soft: #fde9e7;
  --charcoal: #102523;
  --shadow: 0 12px 30px rgba(20, 32, 31, 0.08);
  --radius: 8px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.65; }
body, button, input, select { letter-spacing: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
button, select { font: inherit; }
button, a, select, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #1d70b8; outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 54px; margin-bottom: 22px; }
h2 { font-size: 34px; margin-bottom: 16px; }
h3 { font-size: 19px; margin-bottom: 10px; }
p { margin: 0 0 16px; }
.site-container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 78px 0; }
.section-compact { padding: 46px 0; }
.section-white { background: var(--surface); }
.section-dark { background: var(--charcoal); color: #f4fbf9; }
.section-dark .section-intro, .section-dark p { color: #b8cbc7; }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading-spaced { margin-top: 52px; }
.section-intro { color: var(--muted); font-size: 17px; }
.eyebrow { margin-bottom: 12px; color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.section-dark .eyebrow { color: #6ee7d4; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.site-brand img { flex: 0 0 auto; border-radius: 7px; }
.site-brand span { display: flex; flex-direction: column; min-width: 0; }
.site-brand strong { font-size: 15px; line-height: 1.2; }
.site-brand small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.primary-navigation { display: flex; align-items: center; gap: 24px; }
.primary-navigation > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-navigation > a:not(.button):hover { color: var(--primary); }
.language-select { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); }
.language-select select { max-width: 108px; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.language-select select:focus { outline: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); color: #fff; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-dark); }
.button-secondary:hover { border-color: var(--primary); }
.button-dark { background: var(--charcoal); color: #fff; }
.button-small { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.button-wide { width: 100%; }

.hero { padding: 74px 0 58px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: block; }
.hero-copy { max-width: 920px; }
.hero-copy > p { color: var(--muted); font-size: 18px; max-width: 760px; }
.hero-intro-short { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 13px; }
.hero-note i { color: var(--primary); margin-top: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-fact { min-width: 120px; }
.hero-fact strong { display: block; font-size: 14px; }
.hero-fact span { color: var(--muted); font-size: 12px; }

.quick-panel { max-width: 920px; margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); box-shadow: var(--shadow); }
.quick-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.quick-panel-header h2 { margin: 0; font-size: 20px; }
.quick-panel-layout { display: grid; grid-template: "choice action" auto "description action" 1fr / minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px 24px; align-items: start; }
.quick-panel-choice, .quick-panel-action { min-width: 0; }
.quick-panel-choice { grid-area: choice; }
.quick-panel-action { grid-area: action; display: flex; flex-direction: column; }
.source-chip { padding: 5px 9px; border-radius: 5px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 800; white-space: nowrap; }
.field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; min-height: 50px; appearance: none; padding: 0 46px 0 14px; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 700; }
.select-wrap i { position: absolute; right: 16px; top: 17px; color: var(--muted); pointer-events: none; }
.quick-description { grid-area: description; min-height: 54px; margin: 0; color: var(--muted); font-size: 13px; }
.quick-meta { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.quick-meta div { padding: 11px 12px; }
.quick-meta div + div { border-left: 1px solid var(--line); }
.quick-meta span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 800; }
.quick-meta strong { font-size: 12px; }

.trust-band { background: var(--charcoal); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 13px; padding: 24px 28px; border-right: 1px solid #31514d; }
.trust-item:last-child { border-right: 0; }
.trust-item i { color: #6ee7d4; font-size: 18px; margin-top: 4px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { color: #b8cbc7; font-size: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card, .resource-card, .business-card, .legacy-card, .related-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-card { padding: 24px; }
.product-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.product-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); }
.product-card:nth-child(2) .product-icon { background: var(--blue-soft); color: var(--blue); }
.product-card:nth-child(3) .product-icon { background: var(--amber-soft); color: var(--amber); }
.card-badge { padding: 4px 8px; border-radius: 5px; background: var(--surface-muted); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product-card h3 { font-size: 23px; }
.product-card p { color: var(--muted); font-size: 14px; }
.feature-list { margin: 4px 0 22px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 9px; margin: 9px 0; color: var(--ink); font-size: 13px; }
.feature-list i { color: var(--primary); margin-top: 5px; }
.product-card .button { margin-top: auto; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comparison-table, .facts-table, .troubleshooting-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td, .facts-table th, .facts-table td, .troubleshooting-table th, .troubleshooting-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table tr:last-child td, .facts-table tr:last-child th, .facts-table tr:last-child td, .troubleshooting-table tr:last-child td { border-bottom: 0; }
.comparison-table th { background: var(--charcoal); color: #fff; font-size: 13px; }
.comparison-table td { font-size: 14px; }
.comparison-table i { color: var(--primary); }
.table-note { margin-top: 14px; color: var(--muted); font-size: 12px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legacy-card, .business-card, .resource-card { padding: 22px; }
.legacy-card { border-left: 4px solid var(--amber); }
.legacy-card .status, .page-status { display: inline-flex; width: fit-content; margin-bottom: 12px; padding: 4px 8px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.legacy-card p, .business-card p, .resource-card p { color: var(--muted); font-size: 14px; }
.text-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.text-link i { margin-left: 5px; font-size: 11px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.resource-card .product-icon { margin-bottom: 16px; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: steps; }
.step { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: steps; content: counter(steps); width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; background: var(--charcoal); color: #fff; font-size: 12px; font-weight: 800; }
.step p { color: var(--muted); font-size: 13px; }
.safety-callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border: 1px solid #e7c07b; border-radius: var(--radius); background: var(--amber-soft); }
.safety-callout > i { color: var(--amber); font-size: 24px; margin-top: 3px; }
.safety-callout h2 { font-size: 21px; margin-bottom: 8px; }
.safety-callout p { color: #6b4a1f; margin: 0; }
.callout-spaced { margin-top: 30px; }

.faq-list { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq-list summary { position: relative; padding: 20px 52px 20px 18px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 20px; top: 15px; color: var(--primary); font-size: 25px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 18px 20px; color: var(--muted); }

.download-hero { padding: 58px 0 44px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.download-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 64px; align-items: start; }
.download-hero h1 { font-size: 48px; }
.download-summary { color: var(--muted); font-size: 18px; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.platform-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--page); color: var(--muted); font-size: 12px; font-weight: 700; }
.download-source-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); box-shadow: var(--shadow); }
.source-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.source-brand i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); }
.source-brand strong, .source-brand span { display: block; }
.source-brand span { color: var(--muted); font-size: 11px; }
.source-details { margin: 18px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.source-details li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.source-details span { color: var(--muted); }
.source-details strong { text-align: right; }
.source-footnote { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.article-copy { min-width: 0; }
.article-copy h2 { margin-top: 42px; font-size: 30px; }
.article-copy h3 { margin-top: 26px; }
.article-copy p, .article-copy li { color: #354744; }
.article-copy > p, .article-copy > ul { max-width: 760px; }
.article-copy ul { padding-left: 20px; }
.article-copy li { margin-bottom: 9px; }
.facts-table th { width: 34%; color: var(--muted); font-size: 12px; }
.facts-table td { font-size: 13px; font-weight: 700; }
.sidebar { position: sticky; top: 100px; }
.sidebar-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sidebar-box + .sidebar-box { margin-top: 16px; }
.sidebar-box h2 { font-size: 16px; }
.sidebar-links { margin: 0; padding: 0; list-style: none; }
.sidebar-links li + li { margin-top: 10px; }
.sidebar-links a { font-size: 13px; font-weight: 700; text-decoration: none; }
.migration-callout { margin: 28px 0; padding: 22px; border-left: 4px solid var(--amber); background: var(--amber-soft); }
.migration-callout h2 { margin: 0 0 8px; font-size: 21px; }
.migration-callout p { margin: 0; color: #6b4a1f; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { padding: 18px; color: inherit; text-decoration: none; }
.related-card:hover { border-color: var(--primary); }
.related-card span { color: var(--muted); font-size: 12px; }

.legal-page { padding: 58px 0 78px; }
.legal-header { max-width: 760px; margin-bottom: 36px; }
.legal-content { max-width: 820px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-content h2 { margin-top: 34px; font-size: 24px; }
.legal-content p, .legal-content li { color: var(--muted); }

.site-footer { padding: 54px 0 20px; background: #0d1f1d; color: #eaf4f2; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 44px; }
.site-footer .site-brand { color: #fff; }
.site-footer .site-brand small { color: #9fb5b1; }
.footer-brand p { max-width: 430px; margin-top: 18px; color: #b8cbc7; font-size: 13px; }
.footer-brand .footer-disclaimer { color: #8fa6a2; font-size: 11px; }
.site-footer h2 { margin-bottom: 16px; color: #fff; font-size: 13px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 9px; }
.site-footer li a { color: #b8cbc7; font-size: 12px; text-decoration: none; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 18px; border-top: 1px solid #28413d; color: #8fa6a2; font-size: 11px; }

.download-dialog { width: min(440px, calc(100% - 28px)); padding: 32px; border: 0; border-radius: var(--radius); color: var(--ink); text-align: center; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.download-dialog::backdrop { background: rgba(7, 20, 18, .72); }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--page); color: var(--muted); cursor: pointer; }
.countdown-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); font-size: 21px; }
.download-dialog h2 { font-size: 25px; }
.download-dialog p { color: var(--muted); }
.countdown-ring { width: 108px; height: 108px; display: grid; place-content: center; margin: 22px auto; border: 6px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; }
.countdown-ring strong, .countdown-ring span { display: block; }
.countdown-ring strong { font-size: 31px; line-height: 1; }
.countdown-ring strong { font-variant-numeric: tabular-nums; }
.countdown-ring span { margin-top: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.dialog-status { min-height: 42px; font-size: 13px; }

@media (max-width: 960px) {
  h1 { font-size: 46px; }
  .hero-grid, .download-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .quick-panel, .download-source-card { max-width: 620px; }
  .quick-panel-layout { grid-template: "choice" auto "action" auto "description" auto / minmax(0, 1fr); }
  .card-grid, .business-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sidebar-box + .sidebar-box { margin-top: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .site-container { width: min(100% - 28px, var(--container)); }
  .section { padding: 58px 0; }
  h1, .download-hero h1 { font-size: 38px; }
  h2 { font-size: 29px; }
  .nav-toggle { display: grid; place-items: center; }
  .primary-navigation { position: absolute; display: none; left: 14px; right: 14px; top: 68px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: grid; }
  .primary-navigation a { padding: 8px; }
  .language-select { width: 100%; justify-content: flex-start; padding: 8px; }
  .language-select select { width: 100%; max-width: none; }
  .primary-navigation .button { width: 100%; }
  .hero { padding-top: 52px; }
  .hero-copy > p, .download-summary { font-size: 16px; }
  .hero-intro-long { display: none; }
  .hero-intro-short { display: block; }
  .home-page .hero-note, .home-page .hero-facts { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid #31514d; }
  .trust-item:last-child { border-bottom: 0; }
  .card-grid, .split-grid, .business-grid, .resource-grid, .steps, .related-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .quick-meta { grid-template-columns: 1fr; }
  .quick-meta div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .comparison-table th, .comparison-table td, .facts-table th, .facts-table td, .troubleshooting-table th, .troubleshooting-table td { padding: 12px; }
}

@media (max-width: 430px) {
  .site-brand small { display: none; }
  .site-brand strong { max-width: 205px; font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .quick-panel, .download-source-card { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
}

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