:root {
  color-scheme: dark;
  --ink: #101211;
  --surface: #171a18;
  --line: #343a35;
  --paper: #f0f2ed;
  --soft: #b8c0b9;
  --muted: #929e96;
  --gold: #f4c342;
  --gold-light: #ffd363;
  --gold-ink: #574009;
  --mint: #91d8b6;
  --radius: 0.5rem;
  --gutter: clamp(1.375rem, 6.1%, 5.5rem);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[id] { scroll-margin-top: 0.75rem; }

.wrap {
  width: min(79rem, calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: absolute;
  z-index: 3;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-175%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-nav {
  min-height: 4.4375rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  font-size: 1.3125rem;
  font-weight: 750;
}
.brand img { border-radius: var(--radius); }
.main-links, .footer-links { display: flex; align-items: center; gap: 2rem; }
.main-links a, .footer-links a { color: var(--soft); font-weight: 550; }
.main-links a { font-size: 0.9375rem; }
.main-links a:hover, .footer-links a:hover { color: var(--gold); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button-primary { background: var(--gold); color: var(--ink); min-width: 10.6875rem; }
.button-primary:hover { background: var(--gold-light); }
.button-outline { background: var(--ink); border-color: var(--line); }
.button-outline:hover { border-color: var(--muted); background: var(--surface); }
.header-download { justify-self: end; min-width: 7.375rem; min-height: 2.625rem; font-size: 0.875rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 34.625rem;
  display: grid;
  align-items: center;
}
.hero-art {
  position: absolute;
  z-index: -1;
  width: min(70%, 62.8125rem);
  top: 1.3125rem;
  right: max(-1.9375rem, calc((100% - 90rem) / 2 - 1.9375rem));
  pointer-events: none;
}
.hero-art img { width: 100%; height: auto; }
.hero-content { padding-block: 3.5rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gold);
  font: 650 0.75rem/1.4 var(--mono);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; display: block; width: 1.4375rem; height: 1px; background: currentColor; }
.hero h1 {
  margin-top: 1rem;
  font-size: 7rem;
  line-height: 1.02;
  font-weight: 780;
}
.hero-lead {
  margin-top: 0.625rem;
  font-size: 2.0625rem;
  line-height: 1.15;
  font-weight: 675;
}
.hero-description { margin-top: 1.25rem; color: var(--soft); max-width: 27rem; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.125rem; }

.feature-band { background: var(--surface); border-block: 1px solid var(--line); }
.feature-list {
  display: grid;
  grid-template-columns: 32% 34% 34%;
  margin-block: 0;
  padding: 1.75rem 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.3125rem 1.625rem;
}
.feature-list li:first-child { padding-left: 0; }
.feature-list li + li { border-inline-start: 1px solid var(--line); }
.feature-list .icon { color: var(--gold); margin-top: 0.1875rem; }
.feature-list h2 { font-size: 1.125rem; font-weight: 680; line-height: 1.3; }
.feature-list p { margin-top: 0.125rem; color: var(--soft); font-size: 0.9375rem; }

.product-tour { padding-block: 2.6875rem 3.8125rem; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
  margin-bottom: 2.625rem;
}
.section-heading h2 { margin-top: 0.875rem; font-size: 3.0625rem; line-height: 1.1; font-weight: 760; }
.section-heading > p { max-width: 23.6rem; padding-bottom: 0.25rem; color: var(--soft); font-size: 1.0625rem; }

.preview {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.tab-list { display: grid; grid-template-columns: repeat(3, minmax(0, 9.375rem)); padding-inline: 0.5rem; }
.tab-list button {
  cursor: pointer;
  min-width: 0;
  min-height: 3rem;
  padding-inline: 0.5rem;
  border: 0;
  box-shadow: inset 0 -2px transparent;
  color: var(--soft);
  background: transparent;
  font-size: 0.9375rem;
  text-align: center;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease;
}
.tab-list button:hover { color: var(--paper); background: rgb(255 255 255 / 3%); }
.tab-list button[aria-selected="true"] { color: var(--gold); box-shadow: inset 0 -2px var(--gold); }
.tab-list button:focus-visible, .preview-pane:focus-visible { outline-offset: -4px; }
.preview-label { margin-inline: 1.5rem; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; }
.mobile-preview-label { display: none; }
.preview-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 17.25rem);
  min-height: 18.25rem;
  padding: 1.3125rem 1.5rem 1.5rem;
  gap: 1.5rem;
}
.preview-main h3 { font-size: 1.5625rem; line-height: 1.2; font-weight: 740; }
.pane-subtitle { margin-top: 0.3125rem; font-size: 0.875rem; color: var(--soft); }
.preview-table { width: 100%; margin-top: 0.5rem; border-collapse: collapse; table-layout: fixed; text-align: left; }
.preview-table :is(th, td) { padding: 0.75rem 0.375rem; overflow-wrap: anywhere; }
.preview-table thead { font: 500 0.6875rem/1.3 var(--mono); text-transform: uppercase; color: var(--muted); }
.preview-table thead th { font-weight: 500; }
.preview-table thead th:first-child { width: 40%; }
.preview-table thead th:last-child { width: 20%; }
.preview-table tbody { color: var(--soft); font-size: 0.9375rem; }
.preview-table tbody tr { border-top: 1px solid var(--line); }
.preview-table tbody th { color: var(--paper); font-weight: 675; }
.positive { color: var(--mint) !important; }
.preview-aside { min-width: 0; border-inline-start: 1px solid var(--line); padding: 0.5rem 0 0 1.5rem; }
.readout-title { color: var(--muted); font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; }
.readout { margin-top: 1.25rem; font-size: 0.875rem; }
.readout div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.6875rem;
  border-top: 1px solid var(--line);
}
.readout dt { color: var(--soft); }
.readout dd { font: 700 0.875rem/1.4 var(--mono); }
.sparkline { display: block; margin-top: 0.5rem; width: 100%; max-height: 3.4375rem; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.performance-figure { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; margin-top: 1.125rem; }
.chart-labels, .chart-days { display: flex; justify-content: space-between; color: var(--muted); font: 0.6875rem/1 var(--mono); }
.chart-labels { height: 8.75rem; flex-direction: column; }
.chart-plot svg { display: block; height: 8.75rem; width: 100%; }
.chart-days { margin-top: 0.625rem; }
.chart-series, .chart-grid { fill: none; vector-effect: non-scaling-stroke; }
.chart-grid { stroke: var(--line); }
.chart-series { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: var(--gold); opacity: 0.12; }

.download-band { background: var(--gold); color: var(--ink); }
.download-band :focus-visible { outline-color: var(--ink); }
.download-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  min-height: 13.25rem;
  padding-block: 2.25rem;
}
.download-band .eyebrow, .download-copy { color: var(--gold-ink); }
.download-band h2 { margin-top: 0.625rem; font-size: 2.375rem; line-height: 1.13; font-weight: 770; }
.download-copy { margin-top: 0.375rem; font-size: 1.0625rem; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 10.5625rem)); gap: 0.75rem; flex-shrink: 0; }
.platform {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 3.4375rem;
  gap: 0.5rem;
  padding: 0.375rem 0.6875rem;
  width: 10.5625rem;
  border: 1px solid #a17a20;
  border-radius: var(--radius);
  background: var(--gold-light);
  line-height: 1.2;
}
.platform[aria-disabled="true"] { cursor: default; }
.platform[href]:hover { background: #ffdc80; border-color: var(--ink); }
.platform .icon { color: var(--gold-ink); }
.platform strong { display: block; font-size: 0.9375rem; }
.platform small { display: block; margin-top: 0.1875rem; font-size: 0.75rem; font-weight: 550; color: var(--gold-ink); }
.footer-layout { min-height: 6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-layout p { color: var(--muted); font-size: 0.875rem; }
.footer-links { gap: 1.25rem; font-size: 0.875rem; }

@media (max-width: 68rem) {
  .hero h1 { font-size: 6rem; }
  .hero-art { width: 73%; top: 50%; transform: translateY(-50%); }
  .section-heading h2 { font-size: 2.625rem; }
  .download-band h2 { font-size: 2rem; }
}

@media (min-width: 68.0625rem) {
  .hero-content { padding-block-start: 4.125rem; }
  .download-layout { padding-inline-end: 1.0625rem; }
  .download-layout > :first-child { align-self: flex-start; }
  .platforms { margin-block-end: 0.5rem; }
}

@media (max-width: 54rem) {
  .hero h1 { font-size: 5rem; }
  .hero { min-height: 30rem; }
  .hero-art { opacity: 0.65; width: 65%; right: -1.25rem; }
  .feature-list li { padding-inline: 0.875rem; gap: 0.5rem; }
  .feature-list h2 { font-size: 1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
  .section-heading > p { max-width: 28rem; }
  .preview-pane { grid-template-columns: minmax(0, 1fr) 13.5rem; }
  .preview-table thead th:first-child { width: 33%; }
  .preview-table thead th:last-child { width: 26%; }
  .footer-layout p { display: none; }
}

@media (max-width: 43.75rem) {
  :root { --gutter: 1.375rem; }
  .top-nav { grid-template-columns: 1fr auto; min-height: 3.9375rem; gap: 0.5rem; }
  .main-links { display: none; }
  .header-download { min-width: 6.25rem; min-height: 2.75rem; }

  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-content { order: -1; padding-block: 2.125rem 0; }
  .hero h1 { margin-top: 0.625rem; font-size: 4.3125rem; line-height: 1.06; }
  .hero-lead { margin-top: 1rem; font-size: 1.6875rem; font-weight: 680; }
  .hero-description { max-width: 18.75rem; margin-top: 1rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.1875rem; gap: 0.625rem; }
  .hero-actions .button-primary { min-width: 10.0625rem; }
  .hero-art {
    position: relative;
    width: auto;
    height: 14.625rem;
    top: auto;
    right: auto;
    margin-top: 0.25rem;
    transform: none;
    opacity: 1;
  }
  .hero-art img { position: absolute; width: 29.375rem; max-width: none; right: 0.4375rem; top: -0.25rem; }

  .feature-list { grid-template-columns: 1fr; padding-block: 0.25rem; }
  .feature-list li { padding: 0.6875rem 0; gap: 0.875rem; }
  .feature-list li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .feature-list h2 { font-size: 1rem; }
  .feature-list p { font-size: 0.875rem; }

  .product-tour { padding-block: 2.125rem 2.8125rem; }
  .section-heading { gap: 0.625rem; margin-bottom: 1.5rem; }
  .section-heading h2 { margin-top: 0.625rem; max-width: 20rem; font-size: 2.125rem; }
  .section-heading h2 span { display: block; }
  .section-heading > p { padding-bottom: 0.125rem; font-size: 1rem; line-height: 1.375; }
  .preview-bar > .preview-label, .preview-aside { display: none; }
  .tab-list { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab-list button { font-size: 0.8125rem; padding-inline: 0.125rem; }
  .preview-pane { grid-template-columns: minmax(0, 1fr); min-height: 16.5rem; padding: 1.0625rem 1rem 0; }
  .preview-main h3 { font-size: 1.4375rem; }
  .preview-table { margin-top: 1rem; }
  .preview-table :is(th, td) { padding: 0.875rem 0.3125rem; }
  .preview-table thead { font-size: 0.625rem; }
  .preview-table thead th { padding-block: 0.5625rem; }
  .preview-table thead th:first-child { width: 35%; }
  .preview-table thead th:last-child { width: 24%; }
  .preview-table tbody { font-size: 0.8125rem; }
  #panel-history thead th:first-child { width: 24%; }
  #panel-history thead th:last-child { width: 31%; }
  .mobile-preview-label { display: block; font-size: 0.6875rem; padding: 0.75rem 0 0.9375rem; margin-inline: 1rem; }

  .download-layout { flex-direction: column; align-items: stretch; gap: 0.5rem; padding-block: 1.5rem 1rem; }
  .download-band h2 { margin-top: 0.5rem; max-width: 22rem; font-size: 1.75rem; }
  .download-copy { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.4; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .platform { width: auto; }
  .footer-layout { min-height: 5.125rem; }
  .footer-links { gap: 0.625rem; font-size: 0.8125rem; }
  .footer-overview { display: none; }
}

@media (max-width: 24rem) {
  :root { --gutter: 1rem; }
  .hero h1 { font-size: 3.875rem; }
  .hero-lead { font-size: 1.5rem; }
  .hero-actions .button { min-width: 0; padding-inline: 0.6875rem; }
  .hero-art img { right: -0.625rem; }
  .preview-pane { padding-inline: 0.6875rem; }
  .preview-table tbody { font-size: 0.75rem; }
}

@media (max-width: 43.75rem) and (max-height: 44rem) {
  .hero-content { padding-top: 1.375rem; }
  .hero-lead, .hero-description { margin-top: 0.75rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-art { height: 10.25rem; }
  .hero-art img { width: 21.875rem; top: -0.5rem; right: 0.125rem; }
}

@media (min-width: 43.8125rem) and (max-height: 45rem) {
  .hero { min-height: 0; }
  .hero-content { padding-block: 2rem; }
  .hero h1 { font-size: 5rem; }
  .hero-art { top: 50%; transform: translateY(-50%); }
}

@media (min-width: 43.8125rem) and (max-height: 34rem) {
  .hero-content { padding-block: 1.125rem; }
  .hero h1 { margin-top: 0.5rem; font-size: 3.875rem; }
  .hero-lead { margin-top: 0.375rem; font-size: 1.5rem; }
  .hero-description { margin-top: 0.625rem; font-size: 1rem; }
  .hero-actions { margin-top: 0.875rem; }
  .hero-art { width: min(65%, 46rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
