:root {
  color-scheme: dark;
  --page: #2a3441;
  --title-bar: #243039;
  --surface: #2f3d4a;
  --field: #2a3441;
  --field-border: #3a4d5e;
  --line: #2e3f4e;
  --brand: #69afc5;
  --brand-muted: #8ab4c4;
  --text: #c0c8d0;
  --text-strong: #ffffff;
  --text-soft: #a0b0bc;
  --button-primary-text: #14222c;
  --site-width: 1080px;
  --radius: 8px;
  --shadow: 0 22px 60px rgb(0 0 0 / 28%);
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(var(--site-width), calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(36 48 57 / 94%);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav,
.hero-actions,
.app-titlebar,
.group-row,
.donate-teaser-card,
.button-row,
.support-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--text-strong);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 800;
  line-height: 24px;
}

.brand-subtitle {
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
}

.top-nav {
  gap: 18px;
  color: var(--brand-muted);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--text-strong);
}

.slt-clock {
  color: var(--text-strong);
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero,
.download-section,
.feature-section,
.donation-section,
.donate-teaser-section,
.support-section {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 80px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(34px, 8vh, 84px) 0;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

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

h1 {
  color: var(--text-strong);
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.88;
}

.hero-subtitle {
  margin-top: 8px;
  color: var(--brand-muted);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero-text {
  max-width: 520px;
  margin-top: 22px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--brand-muted);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand-muted);
  background: var(--brand);
  color: var(--button-primary-text);
}

.button.secondary {
  background: var(--field);
}

.button:hover,
.download-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.app-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--page);
  box-shadow: var(--shadow);
}

.app-titlebar {
  min-height: 82px;
  gap: 12px;
  padding: 14px 16px;
  background: var(--title-bar);
  border-bottom: 1px solid var(--line);
}

.app-titlebar img {
  width: 40px;
  height: 40px;
}

.app-titlebar div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-titlebar strong {
  color: var(--text-strong);
  font-size: 20px;
  line-height: 22px;
}

.app-titlebar span {
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
}

.app-titlebar small {
  margin-left: auto;
  color: var(--text-strong);
  font-size: 12px;
  white-space: nowrap;
}

.app-titlebar button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field);
}

.app-titlebar button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-muted);
}

.notice-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
}

.notice-preview label {
  color: var(--brand-muted);
  font-size: 12px;
}

.field,
.attachment-row,
.group-row,
.send-state {
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field);
}

.field {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
}

.field.tall {
  min-height: 92px;
  align-items: flex-start;
  padding-top: 14px;
}

.attachment-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--brand-muted);
  font-size: 13px;
}

.pin {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 3px solid var(--brand-muted);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.group-row {
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
}

.group-row span {
  color: var(--text-soft);
}

.group-row strong {
  color: var(--brand-muted);
  font-size: 14px;
}

.send-state {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--brand-muted);
  font-weight: 700;
}

.download-section,
.feature-section,
.donation-section,
.donate-teaser-section,
.support-section,
.legal-section {
  padding: 64px 0;
}

.donation-section.standalone {
  min-height: calc(100vh - 80px - 122px);
  display: grid;
  align-items: center;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

.section-heading h2,
.donate-teaser-card h2,
.support-card h2,
.donation-card h1,
.donation-card h2,
.legal-card h1 {
  color: var(--text-strong);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.donate-teaser-card p:not(.eyebrow),
.support-card p:not(.eyebrow),
.donation-card p:not(.eyebrow),
.legal-card p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

.download-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.download-card,
.feature-grid article,
.donation-card,
.donate-teaser-card,
.support-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.platform-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.platform-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: currentColor;
}

.platform-icon-windows {
  color: #00a4ef;
}

.platform-icon-macos {
  color: #c9d1d9;
}

.platform-icon-linux {
  color: #f4c542;
}

.platform-icon-android {
  color: #3ddc84;
}

.download-card strong {
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.15;
}

.download-file {
  margin-top: auto;
  padding-top: 12px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.release-note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.release-note a {
  color: var(--brand-muted);
}

.feature-grid article {
  padding: 20px;
}

.feature-grid h3 {
  color: var(--text-strong);
  font-size: 21px;
}

.feature-grid p {
  margin-top: 10px;
  color: var(--text);
  line-height: 1.55;
}

.platform-run {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35em;
  row-gap: 0.2em;
}

.platform-name {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  white-space: nowrap;
}

.donation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.paypal-form {
  margin-top: 22px;
}

.paypal-form input {
  display: none;
}

.paypal-form .button {
  min-width: 190px;
  cursor: pointer;
}

.donation-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-muted);
  font-size: 14px;
}

.donation-link:hover {
  color: var(--text-strong);
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.qr-panel img {
  width: min(100%, 220px);
  height: auto;
  padding: 10px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--text-strong);
}

.qr-panel p {
  color: var(--brand-muted);
  font-size: 14px;
  font-weight: 700;
}

.donate-teaser-card {
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgb(105 175 197 / 18%), transparent 54%),
    var(--surface);
}

.donate-teaser-card .button {
  flex: 0 0 auto;
  min-width: 170px;
}

.support-card {
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.legal-section {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-card {
  padding: clamp(24px, 5vw, 42px);
}

.legal-card article {
  margin-top: 28px;
}

.legal-card h2 {
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.2;
}

.legal-card a,
.site-footer a {
  color: var(--brand-muted);
}

.legal-card a:hover,
.site-footer a:hover {
  color: var(--text-strong);
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 56px 16px 34px;
}

.thanks-card {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(34px, 7vw, 54px) clamp(28px, 7vw, 46px) clamp(28px, 7vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks-card h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.05;
}

.thanks-card p:not(.eyebrow) {
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.thanks-card p.thanks-copy {
  font-size: 16px;
  line-height: 1.5;
}

.signup-form {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  margin-top: 10px;
  text-align: center;
}

.signup-form label {
  color: var(--brand-muted);
  font-size: 16px;
  font-weight: 700;
}

.signup-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text-strong);
  font: inherit;
}

.signup-form input[type="text"]::placeholder {
  color: var(--text-soft);
}

.button-row {
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.button-row .button {
  min-width: 220px;
  font: inherit;
}

.button-row button {
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .app-panel {
    max-width: 430px;
  }

  .download-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 28px, 430px);
    min-height: 72px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .top-nav a {
    display: none;
  }

  .hero,
  .download-section,
  .feature-section,
  .donation-section,
  .donate-teaser-section,
  .support-section,
  .legal-section,
  .site-footer {
    width: min(100% - 28px, 430px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .donation-card,
  .donate-teaser-card,
  .button-row,
  .support-card {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .download-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    display: grid;
  }

  .donate-teaser-card {
    display: grid;
  }

  .button-row {
    display: grid;
  }
}
