/* Download page — landing-aligned hero + Meta breakout modal */

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

.dl-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(66px + clamp(40px, 6vw, 72px)) var(--pad) clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(18, 60, 138, 0.28), transparent 55%),
    radial-gradient(55% 50% at 50% 42%, rgba(243, 243, 244, 0.06), transparent 70%);
  pointer-events: none;
}

.dl-hero-in {
  position: relative;
  z-index: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dl-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.dl-hero h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.dl-sub {
  margin: 1rem 0 0;
  max-width: 28ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}

.dl-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 2rem;
  width: 100%;
}

.dl-ctas .btn {
  width: min(100%, 22rem);
  justify-content: center;
}

.dl-hint {
  margin: 1rem 0 0;
  max-width: 26rem;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

.dl-hint[hidden] {
  display: none;
}

.dl-fallback {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.dl-fallback a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 3px;
}

.dl-fallback a:hover {
  color: var(--ink);
}

.dl-legal {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dl-legal a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dl-legal a:hover {
  color: var(--ink);
}

/* Breakout modal */
.breakout {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.breakout[hidden] {
  display: none;
}

.breakout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.breakout__sheet {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  text-align: left;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
}

.breakout__sheet h2 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.breakout__sheet p {
  margin: 0.55rem 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.breakout__steps {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.breakout__steps li {
  margin-bottom: 0.35rem;
}

.breakout__steps strong {
  color: var(--ink);
}

.breakout__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}

.breakout__actions .btn {
  width: 100%;
  justify-content: center;
}

.breakout__status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

.breakout__url {
  display: block;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  word-break: break-all;
  text-decoration: none;
}
