:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --panel: #ffffff;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --line: #e6e6ea;
  --line-strong: #d2d2d7;
  --brand: #2272d9;
  --brand-light: #18b0a8;
  --brand-ink: #1a5fbf;
  --brand-wash: #ecf5fd;
  --gradient: linear-gradient(135deg, var(--brand-light), var(--brand));
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.06), 0 12px 40px rgba(43, 46, 69, 0.08);
  --radius: 18px;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }

/* Header and footer */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-small { font-size: 15px; }
.header-nav { display: flex; align-items: center; gap: 28px; color: var(--text-dim); font-size: 14px; }
.header-nav > a:hover { color: var(--text); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
  align-items: center;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.site-footer > p:nth-of-type(2) { text-align: right; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 12px; }
.footer-legal a:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-size: 15px;
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--text-dim); }
.button-small { min-height: 38px; padding: 0 16px; gap: 10px; font-size: 14px; color: var(--text); }
.button-primary { border-color: transparent; background: var(--gradient); color: #fff; box-shadow: 0 10px 28px rgba(34, 114, 217, 0.28); }
.button-primary:hover { border-color: transparent; box-shadow: 0 14px 34px rgba(34, 114, 217, 0.34); }
.button.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; box-shadow: none; }

/* Shared type */
.kicker, .eyebrow { color: var(--brand-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--brand-wash); letter-spacing: 0.02em; text-transform: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(34, 114, 217, 0.16); }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .closing h2 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.section-heading p:not(.kicker) { margin: 18px auto 0; max-width: 560px; color: var(--text-dim); font-size: 18px; line-height: 1.6; }

/* Hero */
.hero { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 40px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -80px -10vw auto;
  z-index: -1;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 20%, rgba(24, 176, 168, 0.16), transparent 70%);
}
.hero h1, .download-intro h1 { margin: 22px 0 0; font-size: clamp(46px, 8vw, 92px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.98; }
.hero h1 span, .download-intro h1 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 640px; margin: 26px auto 0; color: var(--text-dim); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.hero-actions { display: flex; margin-top: 34px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; }
.release-note { color: var(--text-dim); font-size: 14px; }

/* App preview: GridSwap's window drawn in HTML, with made-up files */
.app-preview { margin: 64px auto 0; max-width: 1040px; }
.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 2px 4px rgba(29, 29, 31, 0.04), 0 40px 90px rgba(43, 46, 69, 0.16);
  text-align: left;
}
.window-bar { display: flex; height: 50px; padding: 0 18px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.window-bar strong { font-size: 15px; letter-spacing: -0.01em; }
.convert-to { margin-left: auto; color: var(--text-dim); font-size: 13px; }
.convert-to b { display: inline-block; margin-left: 8px; padding: 5px 30px 5px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--brand-ink); position: relative; }
.convert-to b::after { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -2px; border: 5px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.window-body { display: grid; grid-template-columns: 1fr 230px; }
.files { min-width: 0; }
.frow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px 170px; padding: 10px 16px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.frow:last-child { border-bottom: 0; }
.frow-head { padding: 8px 16px; background: #fbfbfd; color: var(--text-dim); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.fthumb { display: grid; height: 32px; place-items: center; border-radius: 6px; background: var(--brand-wash); color: var(--brand-ink); font-size: 10px; font-weight: 700; }
.frow-head .fthumb { background: none; }
.fname, .fstatus { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fname small, .fstatus small { display: block; overflow: hidden; color: var(--text-dim); font-size: 11.5px; text-overflow: ellipsis; }
.fsize { color: var(--text-dim); }
.fstatus.is-done { color: #1f7a36; font-weight: 600; }
.fstatus.is-busy { color: var(--brand-ink); font-weight: 600; }
.fstatus.is-wait { color: var(--text-dim); }
.window-side { padding: 18px 16px; border-left: 1px solid var(--line); background: #f3f3f6; font-size: 13px; }
.window-side h4 { margin: 0 0 8px; color: var(--text-dim); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.window-side h4:not(:first-child) { margin-top: 20px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opt.check span::before { content: "✓"; display: inline-grid; width: 16px; height: 16px; margin-right: 8px; place-items: center; border-radius: 4px; background: var(--brand); color: #fff; font-size: 11px; vertical-align: -3px; }
.slider { height: 4px; margin-top: 10px; border-radius: 2px; background: #dcdce2; }
.slider i { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
.app-preview figcaption { margin-top: 16px; color: var(--text-dim); font-size: 13px; text-align: center; }
.c-heic { --c: #ff9500; }
.c-anim { --c: #18b0a8; }
.c-still { --c: #2272d9; }

/* Providers */
.providers { display: flex; width: min(1180px, calc(100% - 40px)); margin: 56px auto 0; flex-wrap: wrap; justify-content: center; gap: 12px; }
.provider { display: inline-flex; padding: 10px 18px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 15px; font-weight: 600; }
.provider::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Features */
.features { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.feature-wide { grid-column: span 2; }
.feature h3 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); color: var(--brand); font-size: 20px; font-weight: 700; }
.chips { display: flex; margin-top: 20px; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 600; }

/* Pricing */
.pricing { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 40px; }
.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.pricing-purchase { padding: 40px; background: var(--brand-wash); }
.pricing-product { display: flex; align-items: center; gap: 14px; }
.pricing-product h3 { margin: 0; font-size: 20px; }
.pricing-product p { margin: 2px 0 0; color: var(--text-dim); font-size: 14px; }
.pricing-amount { margin: 34px 0 6px; font-size: 76px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.pricing-currency { margin-right: 4px; font-size: 32px; vertical-align: 32px; }
.pricing-cents { font-size: 36px; }
.pricing-currency-code { margin-left: 8px; color: var(--text-dim); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.pricing-payment { margin: 14px 0 26px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.pricing-purchase .button { width: 100%; }
.pricing-trial { margin: 14px 0 0; color: var(--text-dim); font-size: 13px; text-align: center; }
.pricing-trial a { color: var(--brand-ink); font-weight: 600; }
.pricing-license { padding: 40px; }
.license-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 18px 0; gap: 14px; border-bottom: 1px solid var(--line); }
.license-row:first-child { padding-top: 0; }
.license-row:last-child { border-bottom: 0; padding-bottom: 0; }
.license-row > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--brand-wash); color: var(--brand-ink); font-size: 14px; font-weight: 700; }
.license-row h3 { margin: 4px 0; font-size: 17px; }
.license-row p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.pricing-help { margin: 28px 0 0; color: var(--text-dim); font-size: 14px; text-align: center; }
.pricing-help a, .download-pricing a { color: var(--brand-ink); font-weight: 600; }

/* Closing */
.closing { width: min(1180px, calc(100% - 40px)); margin: 60px auto 0; padding: 80px 20px 100px; text-align: center; }
.closing img { margin: 0 auto 18px; }
.closing h2 { margin-bottom: 30px; }

/* Download page */
.download-main { position: relative; width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.download-intro { text-align: center; }
.download-intro > p { max-width: 560px; margin: 22px auto 0; color: var(--text-dim); font-size: 18px; line-height: 1.6; }
.download-intro > .download-pricing { font-size: 14px; }
.version-chip { display: inline-flex; margin-top: 24px; padding: 8px 16px; gap: 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.version-chip span { color: var(--text-dim); }
.download-card { max-width: 560px; margin: 48px auto 0; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.windows-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 18px; grid-template-columns: 1fr 1fr; gap: 4px; }
.windows-mark i { border-radius: 3px; background: var(--gradient); }
.download-card h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.platform-detail { margin: 8px 0 26px; color: var(--text-dim); font-size: 14px; }
.asset-meta { margin: 14px 0 0; color: var(--text-dim); font-size: 13px; overflow-wrap: anywhere; }
.install-note { display: flex; max-width: 760px; margin: 40px auto 0; padding: 22px 24px; align-items: center; justify-content: space-between; gap: 20px; border-radius: 16px; background: var(--bg-soft); }
.install-note > div { display: flex; gap: 14px; }
.install-note h2 { margin: 0 0 4px; font-size: 16px; }
.install-note p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.install-note > a { flex: none; color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.note-mark { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--panel); color: var(--brand-ink); font-weight: 700; }

/* Legal pages */
.legal-main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.legal-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 10px 0 14px; font-size: clamp(38px, 6vw, 58px); letter-spacing: -0.045em; line-height: 1.02; }
.legal-summary { margin: 0; color: var(--text-dim); font-size: 18px; line-height: 1.6; }
.legal-date { margin: 14px 0 0; color: var(--text-dim); font-size: 13px; }
.legal-content section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.015em; }
.legal-content p, .legal-content li { color: #3a3a3f; font-size: 15px; line-height: 1.75; }
.legal-content p { margin: 0 0 12px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 0 0 12px; padding-left: 22px; }
.legal-content a, .legal-back { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-block; margin-top: 30px; font-size: 14px; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-wide { grid-column: auto; }
  .pricing-card { grid-template-columns: minmax(0, 1fr); }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .window-side { display: none; }
}

@media (max-width: 560px) {
  .site-header, .site-footer, .hero, .features, .pricing, .providers, .download-main, .legal-main, .closing { width: calc(100% - 32px); }
  .header-nav { gap: 14px; }
  .header-nav > a:not(.button):not([href="/account"]) { display: none; }
  .site-footer { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .site-footer .brand { justify-content: center; }
  .site-footer > p:nth-of-type(2) { text-align: center; }
  .frow { grid-template-columns: 40px minmax(0, 1fr) 96px; }
  .fsize { display: none; }
  .fstatus small { display: none; }
  .pricing-purchase, .pricing-license, .download-card { padding: 28px 22px; }
  .pricing-amount { font-size: 64px; }
  .install-note { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
