:root {
  color-scheme: light;
  --canvas: #f3f8f7;
  --paper: #ffffff;
  --ink: #07191c;
  --muted: #617275;
  --line: #d7e2e0;
  --jade: #087a55;
  --jade-soft: #e1f5ed;
  --blue: #174c70;
  --blue-soft: #e8f2f8;
  --danger: #a63838;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
.topbar { min-height: 68px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 800; }
.wordmark .eye { position: relative; margin: 0 1px; font-size: 19px; }
.wordmark .eye::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 2px; background: var(--jade); }
.channel { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.channel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px var(--jade-soft); }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 42px; }
.intro { max-width: 720px; margin-bottom: 34px; }
.eyebrow, .product-label { margin: 0 0 8px; color: var(--jade); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: 0; }
.intro > p:last-child { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.release-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 34px rgba(7, 25, 28, .06); }
.release-heading { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; }
.release-heading h2 { margin: 0; font-size: 23px; line-height: 1.1; }
.product-label { margin-bottom: 3px; }
.app-mark { position: relative; width: 56px; height: 56px; border-radius: 8px; background: #0a302d; overflow: hidden; }
.app-mark.messenger::before { content: ""; position: absolute; inset: 12px; border: 6px solid #fff; border-radius: 50%; }
.app-mark.messenger::after { content: ""; position: absolute; width: 14px; height: 6px; right: 7px; bottom: 8px; background: #fff; transform: rotate(35deg); }
.app-mark.messenger span { position: absolute; width: 17px; height: 9px; left: 20px; top: 25px; border-radius: 50%; background: #8fe3c1; z-index: 1; }
.app-mark.mail { background: var(--blue); }
.app-mark.mail::before { content: ""; position: absolute; inset: 14px 9px 13px; border: 4px solid #fff; border-radius: 4px; }
.app-mark.mail::after { content: ""; position: absolute; left: 12px; right: 12px; top: 18px; height: 19px; border-bottom: 4px solid #8fe3c1; transform: rotate(0deg) skewY(-33deg); }
.app-mark.mail span { display: none; }
.verified-badge { align-self: start; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--canvas); font-size: 11px; font-weight: 750; white-space: nowrap; }
.verified-badge.valid { color: var(--jade); border-color: #a7dac7; background: var(--jade-soft); }
.verified-badge.invalid { color: var(--danger); border-color: #e7b7b7; background: #fff1f1; }
.release-summary { min-height: 76px; margin: 22px 0 18px; color: var(--muted); line-height: 1.55; }
dl { margin: 0 0 20px; border-top: 1px solid var(--line); }
dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; font-weight: 700; }
dd { min-width: 0; margin: 0; font-size: 13px; font-weight: 650; }
.hash-row dd { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 500; }
.download-button { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; }
.download-button.mail-button { background: var(--blue); }
.download-button[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.verify-control { min-height: 44px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 700; }
.verify-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.release-proof { min-height: 38px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.release-proof.verified { color: var(--jade); }
.release-proof.error { color: var(--danger); }
.install-band { margin-top: 20px; padding: 30px; border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 42px; align-items: center; }
.install-band h2 { margin: 0; font-size: 26px; }
.install-band p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.install-band ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.install-band li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.install-band li strong { color: var(--jade); }
.install-band li span { color: var(--muted); }
.trust-line { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--line); background: var(--blue-soft); }
.trust-line span { padding: 14px; text-align: center; color: var(--blue); font-size: 12px; font-weight: 750; }
.trust-line span + span { border-left: 1px solid #cbdfe9; }
footer { min-height: 60px; padding: 0 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  .channel { font-size: 0; }
  main { width: min(100% - 24px, 580px); padding-top: 36px; }
  .release-grid { grid-template-columns: 1fr; }
  .release-heading { grid-template-columns: 52px 1fr; }
  .app-mark { width: 52px; height: 52px; }
  .verified-badge { grid-column: 1 / -1; justify-self: start; }
  .release-summary { min-height: 0; }
  .install-band { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .trust-line { grid-template-columns: 1fr 1fr; }
  .trust-line span:nth-child(3) { border-left: 0; border-top: 1px solid #cbdfe9; }
  .trust-line span:nth-child(4) { border-top: 1px solid #cbdfe9; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 16px 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .download-button, .verify-control { transition: transform 140ms ease, box-shadow 140ms ease; }
  .download-button:hover, .verify-control:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(7, 25, 28, .10); }
}
