:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --text: #172033;
  --muted: #61708a;
  --panel: #ffffff;
  --panel-soft: #eef4f8;
  --line: #dfe5ee;
  --accent: #0f7bbf;
  --accent-strong: #075d99;
  --green: #26815f;
  --yellow: #c58a13;
  --shadow: 0 22px 70px rgba(25, 35, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  display: grid;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  grid-template-rows: auto minmax(0, 1fr) auto;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 68px;
  padding: 12px 5vw;
  z-index: 10;
}

.brand,
.tab-nav,
.hero-actions,
.site-footer {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand,
.tab-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.brand {
  font-weight: 760;
  padding: 0;
}

.brand img {
  height: 34px;
  width: 34px;
}

.tab-nav {
  background: color-mix(in srgb, var(--panel) 78%, var(--bg));
  border: 1px solid var(--line);
  justify-self: end;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
  white-space: nowrap;
}

.tab-nav .tab-link {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
  min-height: 36px;
  padding: 7px 12px;
}

.tab-nav .tab-link:hover,
.tab-nav .tab-link:focus-visible {
  color: var(--text);
}

.tab-nav .tab-link.active {
  background: var(--accent);
  color: #fff;
}

.page-frame {
  min-height: 0;
  overflow: hidden;
}

.tab-panel {
  align-items: center;
  display: none;
  gap: min(7vw, 72px);
  height: 100%;
  overflow-y: auto;
  padding: clamp(28px, 6vh, 72px) 5vw;
}

.tab-panel.active {
  display: grid;
}

#panel-home {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.tab-panel:not(#panel-home) {
  align-content: center;
}

.panel-heading,
.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.96;
  margin-bottom: 26px;
  max-width: 920px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  max-width: 680px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 720;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.product-shot {
  min-width: 0;
}

.tray-card {
  background: color-mix(in srgb, var(--panel) 92%, var(--accent) 8%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 520px;
  padding: 14px;
}

.window-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 5px 4px 13px;
}

.window-bar span:first-child,
.pin {
  color: var(--accent);
  width: 24px;
}

.remote-row,
.file-row {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.remote-row {
  background: var(--panel);
  grid-template-columns: minmax(0, 1fr) 110px auto;
  margin-top: 12px;
  padding: 12px;
}

.remote-row.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.remote-row small,
.file-row em,
.note,
.price-card p,
.download-card p,
.platform-grid p,
.info-grid p,
.faq p:not(.eyebrow),
.feature-panel p:not(.eyebrow) {
  color: var(--muted);
}

.usage {
  background: #dfe7ea;
  display: block;
  height: 8px;
  overflow: hidden;
}

.usage i {
  background: var(--green);
  display: block;
  height: 100%;
}

.state {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 720;
}

.state.quiet {
  color: var(--muted);
}

.file-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-top: 12px;
  padding: 12px;
}

.path {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.file-row {
  border-width: 0 0 1px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 38px;
}

.file-row span {
  display: block;
  height: 16px;
  width: 16px;
}

.doc {
  background: var(--accent);
}

.sheet {
  background: var(--green);
}

.folder {
  background: var(--yellow);
}

.download-grid,
.pricing-grid,
.platform-grid,
.info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  width: 100%;
}

.platform-picker {
  background: color-mix(in srgb, var(--panel) 80%, var(--bg));
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
}

.platform-choice {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  min-height: 38px;
  padding: 8px 14px;
}

.platform-choice.active {
  background: var(--accent);
  color: #fff;
}

.download-panels {
  margin-top: 22px;
  max-width: 680px;
  width: 100%;
}

.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

.download-card details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.download-card summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 720;
}

.download-card,
.price-card,
.platform-grid article,
.info-grid article,
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.download-card.emphasized,
.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 16px 46px rgba(15, 123, 191, 0.14);
}

.price {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 780;
  margin-bottom: 8px;
}

.note {
  font-size: 0.94rem;
  margin-top: 18px;
}

.feature-panel {
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.feature-list details {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
}

.feature-list summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 760;
}

.feature-list p {
  margin: 10px 0 0;
}

.faq {
  align-content: center;
}

.faq details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 720;
}

.site-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  padding: 18px 5vw;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .site-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .tab-nav {
    justify-self: stretch;
  }

  .page-frame {
    overflow: visible;
  }

  .tab-panel {
    height: auto;
    min-height: calc(100vh - 160px);
    overflow: visible;
  }

  #panel-home,
  .feature-panel,
  .download-grid,
  .pricing-grid,
  .info-grid,
  .download-panels,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .remote-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-picker {
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    gap: 8px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --text: #ecf2f8;
    --muted: #9cadc1;
    --panel: #18202a;
    --panel-soft: #202b38;
    --line: #2c3948;
    --accent: #48a8e6;
    --accent-strong: #7fc5f2;
    --green: #4fc18f;
    --yellow: #e0ad48;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  }

  .site-header {
    background: rgba(17, 22, 29, 0.9);
  }

  .button.primary,
  .tab-nav .tab-link.active,
  .platform-choice.active {
    color: #06111a;
  }
}
