:root {
  color-scheme: light;
  --ink: #18201c;
  --muted: #5d6a62;
  --line: #d8ded8;
  --surface: #f7f8f5;
  --panel: #ffffff;
  --green: #16623d;
  --green-dark: #0d4329;
  --red: #9f3030;
  --gold: #a26813;
  --blue: #254f84;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  height: 100vh;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.navlinks {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navlinks a {
  text-decoration: none;
}

.hero-grid {
  width: min(1120px, calc(100% - 32px));
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-copy {
  max-width: 760px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 6rem;
  line-height: 0.95;
}

h2 {
  margin: 0 0 8px;
  font-size: 2.8rem;
  line-height: 1.08;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.lead {
  max-width: 680px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  max-height: 80px;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.4s ease 0.4s, padding 0.4s ease 0.4s;
}

.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}

.compare-row--left {
  justify-content: flex-start;
}

.compare-row.merged {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.compare-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--line);
  color: var(--muted);
  margin-right: 12px;
}


.compare-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.compare-counter {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #b14d1e;
  border-radius: 5px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
  margin-left: 12px;
}


.compare-text.typing {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.platform-tabs {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.platform-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.platform-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.tabs-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease-out;
}

.tab:hover {
  border-color: var(--ink);
  background: #fff;
}

.tab-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #b14d1e;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  color: var(--muted);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@keyframes bounce {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--green);
}

.version,
.note {
  color: var(--muted);
  font-size: 0.92rem;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.platform-section,
.support-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.platform-section:last-child,
.online-section:last-child,
.support-section:last-child {
  border-bottom: 0;
}

.online-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}


.online-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.online-card h3,
.online-card p {
  margin: 0;
}

.online-card p {
  margin-top: 6px;
  color: var(--muted);
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.support-copy {
  max-width: 660px;
}

.support-copy h2,
.support-copy p,
.aba-qr {
  margin: 0;
}

.support-copy p {
  margin-top: 10px;
}

.aba-qr {
  text-align: center;
}

.aba-qr img {
  display: block;
  width: 180px;
  max-width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.aba-qr figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  overflow-wrap: anywhere;
}

li + li {
  margin-top: 8px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

code {
  color: var(--blue);
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 18px;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f4ee;
  color: var(--ink);
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  color: inherit;
  white-space: inherit;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 36px;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .platform-tabs {
    margin-top: 36px;
    gap: 28px;
  }

  .tab {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .tab-icon {
    width: 36px;
    height: 36px;
  }

  main {
    width: min(100% - 24px, 760px);
    padding: 34px 0;
  }

  .platform-section,
  .support-section {
    padding: 30px 0;
  }

  .online-section {
    padding: 30px 0;
  }

  .online-card {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .support-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .steps-card {
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .support-card,
  .online-card,
  .steps-card {
    padding: 16px;
  }

  pre {
    padding: 12px;
  }

  .aba-qr img {
    width: 160px;
  }
}
