/* App-style download page redesign. */
:root {
  color-scheme: light;
  --c-bg-main: #fff8ea;
  --c-bg-alt: #ffe5c2;
  --c-surface: #fffdf7;
  --c-surface-inner: #ffffff;
  --c-ink: #2a2018;
  --c-muted: #7f6b57;
  --c-border: #000000;
  --c-profit: #1ca8a2;
  --c-bounty: #ffb648;
  --c-loss: #ff5e5b;
  --shadow-soft: 6px 6px 0 rgba(0, 0, 0, 0.14);
  --shadow-strong: 7px 7px 0 #000000;
  --width-border: 2px;
  --radius-card: 18px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-mono: "DM Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg-main);
  color: var(--c-ink);
  font-family: var(--font-body);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 8px;
  background: var(--c-profit);
  border-bottom: var(--width-border) solid var(--c-border);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
p,
dl,
figure {
  margin-top: 0;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 10px;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-card);
  background: rgba(255, 248, 234, 0.96);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-control);
  background: var(--c-profit);
  color: #081615;
  box-shadow: 3px 3px 0 var(--c-border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 1.1rem;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-control);
  background: var(--c-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1;
  text-transform: uppercase;
  transition: background 120ms ease, box-shadow 120ms ease, transform 100ms ease;
}

.site-header nav a:first-child {
  background: var(--c-ink);
  color: var(--c-bg-main);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: var(--c-bg-alt);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.site-header nav a:first-child:hover,
.site-header nav a:first-child:focus-visible {
  background: var(--c-profit);
  color: #081615;
}

.page-shell {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell::before {
  display: none;
  content: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 650px) 380px;
  justify-content: space-between;
  gap: 56px;
  align-items: start;
  padding: 56px 0 54px;
}

.intro-copy {
  max-width: 650px;
}

.release-line {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 0.18rem 0.62rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-bounty);
  color: #211508;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 5.45rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.lede {
  max-width: 650px;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 8px solid var(--c-profit);
  color: var(--c-ink);
  font-size: 1.23rem;
  font-weight: 780;
  line-height: 1.45;
}

.note {
  max-width: 650px;
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 1rem;
  font-weight: 650;
}

.install-note {
  max-width: 610px;
  margin: 0;
  padding: 0.8rem 0;
  border-top: 1px dashed var(--c-border);
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
}

.download-panel {
  position: relative;
  align-self: start;
  overflow: hidden;
  padding: 0 20px 20px;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-strong);
}

.download-panel::before {
  content: "";
  display: block;
  height: 40px;
  margin: 0 -20px 18px;
  border-bottom: var(--width-border) solid var(--c-border);
  background: var(--c-bg-alt);
}

.download-panel::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-loss);
  box-shadow: 17px 0 0 var(--c-bounty), 34px 0 0 var(--c-profit);
}

.release-details {
  margin: 0 0 18px;
}

.release-details div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-border);
}

.release-details div:first-child {
  padding-top: 0;
}

dt {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--c-ink);
  font-size: 0.94rem;
  font-weight: 760;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1rem;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
  transition: background 120ms ease, box-shadow 120ms ease, transform 100ms ease;
}

.button.primary {
  background: var(--c-profit);
  color: #061514;
  box-shadow: 4px 4px 0 var(--c-border);
}

.button.full {
  width: 100%;
}

.button:hover,
.button:focus-visible {
  background: #28c5be;
  box-shadow: 6px 6px 0 var(--c-border);
  outline: none;
  transform: translate(-2px, -2px);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.62;
  pointer-events: none;
}

.release-warning {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 12px;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-control);
  font-size: 0.86rem;
  line-height: 1.4;
}

.release-warning.unsigned {
  background: #fff0c7;
  box-shadow: 3px 3px 0 var(--c-bounty);
}

.release-warning.signed {
  background: #dff7f4;
  box-shadow: 3px 3px 0 var(--c-profit);
}

.release-warning strong {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: var(--c-bg-alt);
  outline: none;
}

.product-shot {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0 auto 78px;
  padding: 52px 12px 12px;
  border: var(--width-border) solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-soft);
}

.product-shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  border-bottom: var(--width-border) solid var(--c-border);
  background: var(--c-bg-alt);
}

.product-shot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-loss);
  box-shadow: 17px 0 0 var(--c-bounty), 34px 0 0 var(--c-profit);
}

.product-shot img {
  width: 100%;
  border: var(--width-border) solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface-inner);
}

/* Minimal download page: centered download card. */
.download-hero {
  max-width: 460px;
  margin: 0 auto;
  padding: 78px 0 64px;
  text-align: center;
}

.download-hero .release-line {
  margin-bottom: 16px;
}

.download-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 9vw, 4.8rem);
}

.download-hero .lede {
  max-width: none;
  margin: 0 auto 26px;
  padding-left: 0;
  border-left: 0;
  color: var(--c-muted);
  font-size: 1.12rem;
  font-weight: 700;
}

.download-hero .download-panel {
  width: 100%;
  text-align: left;
}

.download-hero .install-note {
  max-width: none;
  margin: 22px auto 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 34px;
  border-top: var(--width-border) solid var(--c-border);
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--c-border);
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 62px 0 48px;
  }

  h1 {
    font-size: 4.4rem;
  }

  .download-panel {
    width: min(430px, 100%);
    align-self: start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 620px) {
  body::before {
    height: 6px;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 28px);
    margin-top: 20px;
    padding: 9px;
  }

  .brand {
    font-size: 1.45rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-header nav a {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .page-shell,
  .site-footer {
    width: calc(100% - 28px);
  }

  .intro {
    padding-top: 44px;
  }

  .release-line {
    font-size: 0.66rem;
  }

  h1 {
    font-size: 3.1rem;
    line-height: 0.92;
  }

  .lede {
    padding-left: 14px;
    border-left-width: 6px;
    font-size: 1.05rem;
  }

  .download-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .download-panel::before {
    margin-right: -16px;
    margin-left: -16px;
  }

  .release-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .product-shot {
    margin-bottom: 0;
    padding: 46px 8px 8px;
    border-radius: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 1.9rem;
  }

  .cta {
    margin: 36px 0 48px;
    padding: 22px 20px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
