/* Home and privacy pages: blue identity, local fonts, no frontend build step. */
:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--page);
  --page: #fafbfe;
  --surface: #fff;
  --tint: #eef2fb;
  --ink: #182235;
  --muted: #566278;
  --accent: #315be8;
  --accent-hover: #2548c4;
  --line: #d6deed;
  --radius: 16px;
  --space-section: clamp(48px, 6vw, 88px);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--ink); background: #cddaff; }
html { scrollbar-color: #9caecc var(--page); }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: #cddaff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(20px, 3.3vw, 48px); }
.section { padding-block: var(--space-section); scroll-margin-top: 24px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(48px, 5vw, 68px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 24px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 28px; }
h3 { font-size: 21px; line-height: 1.45; margin: 0 0 12px; font-weight: 650; }
p { margin: 0 0 16px; max-width: 70ch; }
.quiet { font-size: 14px; color: var(--muted); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; min-height: 48px; }
.brand-mark { display: block; width: 44px; height: 44px; flex: none; }
.brand-send { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; }
nav a:hover, .text-link:hover, footer > a:hover { color: var(--accent-hover); text-decoration: underline; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 12px 20px; background: var(--surface); color: var(--ink); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(28px, 4vw, 56px); padding-top: 40px; padding-bottom: 56px; }
.hero > div { padding-block: 20px; }
.lead { font-size: 19px; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; font-size: 16px; line-height: 1.5; text-decoration: none; text-align: center; }
.button:hover { background: var(--accent-hover); }
.button:active { background: #203fae; }
.button:is([aria-disabled="true"], :disabled) { color: #536177; background: #e0e6f0; cursor: default; }
.product { margin: 0; overflow: hidden; background: var(--tint); border-radius: var(--radius); box-shadow: 0 18px 48px #00000014; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 13px; }
.product img { display: block; width: 100%; height: auto; }
.product .window-brand-icon { width: 22px; height: 22px; flex: none; }
.product figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); }
/* The ordered steps are actions, rather than a second set of benefit badges. */
#experience { padding-top: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: steps; }
.steps h3::before { content: counter(steps) ". "; color: var(--accent); }
.steps p { color: var(--muted); margin-bottom: 0; }
/* Each platform owns its loading, failure, retry, checksum and count states. */
.download-section { background: var(--tint); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 12px; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.download-panel { min-width: 0; display: grid; align-content: start; grid-template-rows: auto 1fr auto auto; gap: 18px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 24px; }
.download-panel > div:first-child { min-height: 140px; }
.download-panel--pending { min-height: 280px; grid-template-rows: 1fr auto; }
.download-panel h3 { font-size: 25px; margin-bottom: 10px; }
.download-panel > div:first-child p { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 10px; }
.download-action { min-width: 0; }
.download-action .button { width: 100%; }
.windows-download-actions { display: grid; align-content: start; gap: 12px; }
.windows-download-actions .download-action p { min-height: 0; }
.button--secondary { color: var(--accent); background: var(--surface); border: 1px solid var(--accent); }
.button--secondary:hover { background: var(--tint); }
.download-versions { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.download-versions h3 { margin-bottom: 16px; }
.download-version-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.download-version-copy h4 { margin: 0 0 8px; font-size: 16px; }
.download-version-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.download-action p { min-height: 44px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.download-panel details { padding: 0; }
.download-panel summary { font-size: 14px; font-weight: 600; padding-block: 12px; }
.download-panel details p { font-size: 14px; margin-bottom: 12px; }
.download-panel code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.download-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
.download-retry { min-width: 80px; min-height: 44px; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 8px; cursor: pointer; }
.download-retry:hover { background: var(--tint); }
.download-retry:disabled { color: var(--muted); border-color: var(--line); cursor: wait; }
.download-retry[hidden] { display: none; }
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); }
.privacy-grid h2 { font-size: clamp(26px, 2.7vw, 34px); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; }
.privacy-facts { display: grid; gap: 24px; }
.privacy-facts h3 { font-size: 19px; margin-bottom: 8px; }
.privacy-facts p { margin: 0; color: var(--muted); }
.speed { background: var(--tint); }
.estimate-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.estimate-layout h2 { margin-bottom: 12px; }
.estimate-layout > div > p { color: var(--muted); }
.estimate-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.estimate-inputs label { font-size: 14px; min-width: 0; }
.estimate-inputs input { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 10px 12px; font-size: 18px; color: var(--ink); caret-color: var(--accent); background: var(--surface); border: 1px solid #8c9dbb; border-radius: 8px; font-variant-numeric: tabular-nums; }
.estimate-result { margin: 20px 0 0; min-height: 40px; font-size: 24px; line-height: 1.5; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate-layout .speed-estimator .estimate-result { color: var(--accent); }
.web-launch { padding-block: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 28px; }
.hardware { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.hardware img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.hardware h2 { font-size: clamp(26px, 2.7vw, 34px); margin-bottom: 12px; }
.hardware p { color: var(--muted); margin-bottom: 0; }
.faq { max-width: 960px; padding-top: 20px; }
details { border-top: 1px solid var(--line); padding-block: 10px; }
summary { min-height: 48px; padding-block: 12px; font-size: 17px; line-height: 1.5; font-weight: 600; cursor: pointer; }
summary::marker { color: var(--accent); }
details p { margin: 12px 0 16px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.footer-legal { min-width: 0; }
.footer-legal p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .icp-record { overflow-wrap: anywhere; }
.document { max-width: 850px; padding-top: 40px; padding-bottom: 72px; }
.document h1 { font-size: 40px; }
.document h2 { font-size: 25px; margin-top: 40px; margin-bottom: 12px; }
.document p { color: var(--muted); }
@media (max-width: 1050px) {
  .hero { grid-template-columns: .85fr 1.15fr; gap: 28px; }
  .lead { font-size: 17px; }
  .download-panel { padding: 20px; }
  .download-grid { gap: 14px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 32px; }
  .hero > div { padding-block: 0; }
  h1 { font-size: 56px; }
  .hero .lead { font-size: 19px; }
  .product { width: min(100%, 640px); justify-self: center; }
  .steps { gap: 24px; }
  .download-grid { grid-template-columns: 1fr; gap: 16px; }
  .download-panel { grid-template-columns: 1fr 1fr; gap: 16px 28px; padding: 24px; }
  .download-panel { grid-template-rows: auto; }
  .download-panel > div:first-child { min-height: 0; }
  .download-panel--pending { min-height: 160px; grid-template-rows: auto; }
  .download-action { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .windows-download-actions { grid-column: 2; grid-row: 1 / 3; }
  .windows-download-actions .download-action { grid-column: auto; grid-row: auto; }
  .download-action p { min-height: 0; }
  .download-panel details { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav { min-height: 108px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; gap: 4px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav nav { width: 100%; justify-content: space-between; gap: 4px 16px; }
  .hero { padding-bottom: 40px; }
  h1 { font-size: clamp(44px, 12vw, 56px); }
  .hero .lead { font-size: 17px; }
  .steps, .privacy-grid, .estimate-layout, .hardware { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding-top: 16px; }
  .steps h3 { font-size: 20px; margin-bottom: 8px; }
  #experience { padding-top: 12px; }
  .download-panel { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .download-action { grid-column: auto; grid-row: auto; }
  .windows-download-actions { grid-column: auto; grid-row: auto; }
  .download-version-copy { grid-template-columns: 1fr; gap: 20px; }
  .download-panel details { grid-column: auto; }
  .estimate-inputs { gap: 14px; }
  .estimate-result { font-size: 22px; }
  .hardware img { max-width: 420px; }
  .document h1 { font-size: 32px; }
  summary { font-size: 16px; }
}
@media (max-width: 360px) {
  .estimate-inputs { grid-template-columns: 1fr; }
  .download-panel { padding: 18px; }
  .download-action .button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .download-retry { transition: background-color 140ms ease-out, color 140ms ease-out; }
}
