.app-hero {
  position: relative;
  min-height: 920px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* ASCII stream behind the hero copy, fading out toward the screenshots. */
.app-hero-stream { position: absolute; inset: 0; opacity: .55; }
.app-hero-stream video {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%), linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%), linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

.app-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 48px));
  padding: 150px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: 76px;
  align-items: center;
}

.app-hero-copy h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.035em;
}

.app-hero-copy > p:not(.kicker) {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.app-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-meta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: .72rem;
}

.app-meta .icon { width: 16px; height: 16px; color: var(--accent-2); }

.app-gallery {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.app-shot {
  position: absolute;
  width: 292px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #000;
  box-shadow: none;
}

.app-shot img {
  width: 100%;
  height: auto;
}

.app-shot-main { z-index: 3; transform: translateY(-4px); }
.app-shot-left { z-index: 1; transform: translate(-170px, 42px) rotate(-8deg) scale(.83); opacity: .76; }
.app-shot-right { z-index: 2; transform: translate(174px, 52px) rotate(8deg) scale(.83); opacity: .8; }

.app-features { background: var(--bg-soft); }

.app-download-section {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.app-download-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 88px;
  align-items: start;
}

.requirements {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.requirements li {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.requirements .icon {
  color: var(--accent-2);
  font-size: 1rem;
}

.requirements span {
  display: grid;
  color: var(--text-muted);
  font-size: .75rem;
}

.requirements strong {
  color: var(--white);
  font-size: .83rem;
}

.download-cards { display: grid; gap: 14px; }

.download-card {
  min-height: 238px;
  padding: 28px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-card-primary {
  border-color: rgba(var(--accent-2-rgb), .42);
  background: var(--surface-raised);
}

.download-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent-2);
  font-size: 1.25rem;
}

.download-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 600;
}

.download-card p:not(.download-label) {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: .8rem;
}

.download-label {
  margin: 0;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.download-card .button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
}

.app-cta-section { padding-top: 100px; }

@media (max-width: 1000px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .app-hero-copy > p:not(.kicker) { margin-left: auto; margin-right: auto; }
  .app-actions, .app-meta { justify-content: center; }
  .app-gallery { min-height: 620px; }
  .app-download-layout { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 640px) {
  .app-hero { min-height: 1040px; }
  .app-hero-inner {
    width: min(100% - 28px, var(--max-width));
    padding: 120px 0 70px;
  }
  .app-hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .app-hero-copy > p:not(.kicker) { font-size: .92rem; }
  .app-actions { display: grid; grid-template-columns: 1fr; }
  .app-actions .button { width: 100%; }
  .app-meta { gap: 10px 16px; }
  .app-gallery { min-height: 520px; }
  .app-shot { width: 230px; border-radius: 18px; }
  .app-shot-left { transform: translate(-84px, 44px) rotate(-7deg) scale(.72); }
  .app-shot-right { transform: translate(86px, 50px) rotate(7deg) scale(.72); }
  .download-card { grid-template-columns: 44px 1fr; padding: 22px; }
  .download-icon { width: 44px; height: 44px; border-radius: 12px; }
  .app-cta-section { padding-top: 76px; }
}

/* Octa refresh: sprite icons, lit surfaces and radii shared with octa-site.css. */
.app-hero { isolation: isolate; border-bottom: 0; }
.app-hero-copy .kicker .icon { width: 15px; height: 15px; }
.app-hero-copy h1 { letter-spacing: -.045em; }
.download-card { border-radius: var(--radius-lg); background: var(--sheen), var(--surface); box-shadow: var(--highlight), var(--shadow); }
.download-card-primary { background: var(--surface-raised); box-shadow: inset 0 2px 0 var(--accent); }
.download-icon .icon { width: 22px; height: 22px; }
.download-icon { color: var(--accent-3); border-color: rgba(var(--accent-2-rgb), .24); }
.requirements .icon { width: 18px; height: 18px; color: var(--accent-2); }
.app-shot img { border-radius: inherit; }

/* Platform pages (/app/windows/, /app/android/) and the /app/ picker. */
[hidden] { display: none !important; }

.platform-switch { margin-top: 26px; display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .8rem; font-weight: 500; transition: color .25s var(--ease); }
.platform-switch .icon { width: 15px; height: 15px; }
.platform-switch .icon:last-child { transition: transform .25s var(--ease); }
.platform-switch:hover { color: var(--text); }
.platform-switch:hover .icon:last-child { transform: translate(2px, -2px); }

.beta-badge { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid rgba(var(--accent-2-rgb), .4); border-radius: 999px; background: rgba(var(--accent-rgb), .16); color: var(--accent-3); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.release-date { color: var(--text-muted); }

.button-meta { margin-left: 2px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .28); font-weight: 500; opacity: .82; }
.button-secondary .button-meta { border-left-color: var(--line-strong); }

/* Phone screenshots: 951×2000 captures without the status bar; taller ones are cropped from the bottom. */
.app-gallery-phone .app-shot { width: 252px; padding: 7px; aspect-ratio: 951 / 2000; border-radius: 40px; background: #05070d; }
.app-gallery-phone .app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }

.download-cards-compact .download-card { min-height: 0; }
.download-hash { margin: 12px 0 0; color: var(--text-muted); font-size: .68rem; line-height: 1.5; }
.download-hash code { font-family: var(--font-mono); color: var(--text-soft); word-break: break-all; }

.release-notes { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sheen), var(--surface); box-shadow: var(--highlight); }
.release-notes h3 { margin: 0; font-family: var(--font-display); color: var(--white); font-size: 1rem; font-weight: 600; }
.release-notes p { margin: 10px 0 0; color: var(--text-soft); font-size: .86rem; line-height: 1.7; white-space: pre-line; }
.download-note { margin: 22px 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.65; }
.download-note a { color: var(--accent-2); }
.download-note a:hover { color: var(--accent-3); }

.platform-picker { min-height: 100vh; min-height: 100svh; padding: 48px 16px; display: grid; place-content: center; justify-items: center; gap: 28px; text-align: center; }
.platform-picker .brand-mark { width: 56px; height: 56px; color: var(--accent-2); }
.platform-picker h1 { margin: 0; font-family: var(--font-display); color: var(--white); font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; }
.platform-picker-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 640px) {
  .app-gallery-phone .app-shot { width: 200px; padding: 6px; border-radius: 32px; }
  .app-gallery-phone .app-shot img { border-radius: 26px; }
  .app-gallery-phone .app-shot-left { transform: translate(-96px, 40px) rotate(-7deg) scale(.74); }
  .app-gallery-phone .app-shot-right { transform: translate(98px, 46px) rotate(7deg) scale(.74); }
  .platform-picker-actions { width: 100%; display: grid; }
}

/* Download section with notes: heading and notes stack in column 1, cards span column 2.
   In the DOM the notes come after the cards, so on phones the buttons come first. */
.app-download-layout-split { row-gap: 0; }
.app-download-layout-split .download-cards { grid-column: 2; grid-row: 1 / span 2; }
.app-download-layout-split .download-extras { grid-column: 1; grid-row: 2; }
.download-extras > :first-child { margin-top: 30px; }

@media (max-width: 1000px) {
  .app-download-layout-split { row-gap: 44px; }
  .app-download-layout-split .download-cards,
  .app-download-layout-split .download-extras { grid-column: auto; grid-row: auto; }
  .download-extras > :first-child { margin-top: 0; }
}

.footer-attribution { margin-top: 4px; display: block; font-size: .65rem; opacity: .6; }

/* QR handoff: only for a mouse-and-keyboard visitor; phones download directly. */
.qr-handoff { display: none; }
@media (hover: hover) and (pointer: fine) {
  .qr-handoff { margin-top: 30px; max-width: 420px; display: flex; align-items: center; gap: 16px; text-align: left; }
}
.qr-handoff img { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 12px; }
.qr-handoff p { margin: 0; display: grid; gap: 4px; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.qr-handoff strong { color: var(--text); font-size: .86rem; font-weight: 600; }
.text-link-inline { color: var(--accent-2); }
.text-link-inline:hover { color: var(--accent-3); }

@media (max-width: 1000px) {
  .qr-handoff { margin-left: auto; margin-right: auto; }
}

.download-started { margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(var(--accent-2-rgb), .3); border-radius: var(--radius); background: rgba(var(--accent-rgb), .1); color: var(--text-soft); font-size: .82rem; line-height: 1.55; text-align: left; }
.download-started a { color: var(--accent-2); }
.download-cards .download-started { margin-top: 0; }

details.download-hash summary { width: fit-content; cursor: pointer; list-style: none; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
details.download-hash summary::-webkit-details-marker { display: none; }
details.download-hash summary::after { content: " ▾"; }
details.download-hash[open] summary::after { content: " ▴"; }
details.download-hash summary:hover { color: var(--text-soft); }
details.download-hash code { margin-top: 6px; display: block; }

@media (max-width: 900px) {
  .app-hero-stream { opacity: .35; }
}

/* Flat pass: no tinted icon tiles or pill badges. */
.download-icon { border: 0; border-radius: 0; background: none; color: var(--text-soft); }
.beta-badge { border-radius: var(--radius); background: none; border-color: var(--line-strong); color: var(--text-soft); }
.app-meta .icon, .requirements .icon { color: var(--text-muted); }
