/* Download page only. Shared navigation and footer retain the Home design. */
.download-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 285px;
  background: #070d24
}

.download-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 30%;
  background: url('assets/download-hero.webp') right center/cover no-repeat
}

.download-hero:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #060d21 0%, #080b25e8 27%, #090b2444 55%, transparent 75%)
}

.download-hero-copy {
  padding: 22px 30px 34px;
  max-width: 570px
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 14px;
  color: #dee2f1
}

.download-hero h1 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  line-height: .96;
  text-transform: none;
  letter-spacing: -1px;
  margin: 0 0 15px
}

.download-hero h1 span {
  line-height: 1.03;
  background: linear-gradient(#fff, #f5a0ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent
}

.download-hero p {
  max-width: 390px;
  font-size: 14px;
  text-shadow: 0 1px 7px #000
}

.download-content {
  padding: 0 18px 0;
  max-width: 1600px;
  margin: auto
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  margin: -8px 0 16px
}

.platform-card {
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 220px;
  border: 1px solid #7a63c8;
  border-radius: 11px;
  padding: 18px 16px;
  gap: 12px;
  background: radial-gradient(at 100% 100%, #10cf9570, transparent 65%), linear-gradient(120deg, #35224d, #063735)
}

.ios-card {
  background: radial-gradient(at 100% 100%, #156effa0, transparent 70%), linear-gradient(120deg, #101740, #052a58);
  border-color: #388ee0
}

.platform-mark {
  width: 58px;
  height: 70px;
  flex: 0 0 58px;
  color: #49edb9;
  filter: drop-shadow(0 0 8px #2ee9b355);
  padding-top: 4px
}

.apple-mark {
  color: #f2f3ff
}

.platform-mark svg {
  width: 100%;
  height: 100%
}

.platform-copy {
  position: relative;
  z-index: 1;
  max-width: 78%;
  min-width: 0
}

.platform-copy h2 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 4px
}

.platform-copy h3 {
  font-size: 14px;
  margin-bottom: 7px;
  line-height: 1.5
}

.platform-copy p {
  font-size: 12px;
  color: #e0e4ee;
  line-height: 1.6;
  max-width: 290px
}

.platform-copy .platform-download {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 12px;
  margin-top: 12px;
  gap: 8px;
  max-width: 100%;
  line-height: 1.4
}

.ios-card .platform-download {
  background: linear-gradient(110deg, #008fdf, #031b48)
}

.guide-link {
  display: block;
  width: fit-content;
  font-size: 12px;
  margin-top: 7px;
  color: #f3bcff;
  text-decoration: underline;
  text-underline-offset: 3px
}

.platform-phone {
  position: absolute;
  z-index: -1;
  right: -17px;
  bottom: -33px;
  width: 142px;
  height: 190px;
  border: 3px solid #9c84c5;
  border-radius: 25px;
  transform: rotate(12deg);
  background: url('../home/assets/apk-latest-v5-2-smooth.webp') center/cover;
  opacity: .8;
  box-shadow: 0 0 26px #53e9e840
}

.ios-card .platform-phone {
  transform: rotate(-8deg);
  border-color: #afb4ff
}

.download-content>.panel,
.information-grid {
  margin-bottom: 14px
}

.download-content .panel {
  background: linear-gradient(120deg, #191630, #08192f 65%, #0c122b);
  border: 1px solid #263b61;
  padding: 16px;
  border-radius: 11px
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px
}

.section-heading>.ui-icon {
  width: 32px;
  height: 36px;
  flex-basis: 32px
}

.section-heading h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.4px
}

.section-heading p {
  font-size: 12px;
  color: #d5dced;
  margin-top: 4px;
  line-height: 1.6
}

.section-heading p:empty {
  display: none
}

.guide-panel {
  position: relative
}

.device-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid #4b426d;
  border-radius: 9px;
  margin-bottom: 14px;
  background: #071128;
  max-width: 440px;
  margin-left: auto
}

.device-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  min-height: 42px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px
}

.device-tabs button[aria-selected=true] {
  background: linear-gradient(110deg, #ae2aff, #e655f5);
  border-color: #ee87ff;
  color: #11051e;
  box-shadow: 0 0 15px #c536ff35
}

[hidden] {
  display: none !important
}

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

.step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #33335c;
  border-radius: 10px;
  padding: 12px 10px 0;
  background: linear-gradient(135deg, #272044, #0b1830)
}

.step-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 70px
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: linear-gradient(135deg, #a532ff, #ee81ff);
  border: 1px solid #ed98ff;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 0 12px #bc4afa40
}

.step h3 {
  font-size: 13px;
  line-height: 1.5
}

.step>p {
  font-size: 12px;
  line-height: 1.65;
  color: #d9dfef;
  margin: 0 0 12px
}

.step-phone {
  width: 94%;
  max-width: 170px;
  min-height: 170px;
  position: relative;
  margin: 14px auto -6px;
  border: 3px solid #aa84ca;
  border-bottom: 0;
  border-radius: 25px 25px 0 0;
  padding: 17px 8px 10px;
  background: linear-gradient(155deg, #182c55, #020718);
  box-shadow: 0 0 0 2px #020916;
  margin-top: auto
}

.phone-notch {
  position: absolute;
  width: 46%;
  height: 9px;
  border-radius: 0 0 9px 9px;
  background: #020515;
  top: 0;
  left: 27%
}

.phone-screen {
  display: grid;
  place-items: center;
  min-height: 150px
}

.phone-screen>div {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  gap: 10px;
  font-size: 11px;
  line-height: 1.5
}

.phone-screen .ui-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  filter: drop-shadow(0 0 10px #c940ff60)
}

.phone-screen strong {
  font-size: 12px
}

.phone-screen span {
  font-size: 10px;
  color: #c1cfeb
}

.mock-file {
  padding: 12px 4px;
  background: #eef0ff;
  border-radius: 10px;
  color: #18133c
}

.mock-file span {
  color: #56428c
}

.progress-bar {
  width: 85%;
  height: 7px;
  border-radius: 10px;
  background: linear-gradient(90deg, #cc5bff 70%, #394670 70%)
}

.next-panel>p {
  font-size: 13px;
  color: #d6deee;
  margin: 9px 0
}

.next-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 14px
}

.next-actions>a {
  min-width: 125px;
  min-height: 42px;
  margin: 0;
  padding: 9px 16px;
  font-size: 13px;
  gap: 10px
}

.information-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #2b3a5e;
  border-radius: 9px
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  table-layout: fixed
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #26324c;
  line-height: 1.6;
  vertical-align: top;
  overflow-wrap: anywhere
}

th {
  width: 42%;
  font-weight: 500;
  color: #e4dff2;
  background: #181b3c50
}

td {
  color: #e0e7f6
}

tr:last-child>* {
  border: 0
}

.specs-panel tr:last-child td {
  font: 11px/1.65 monospace;
  word-break: break-all
}

.compat-heading {
  font-size: 15px;
  margin: 17px 0 10px;
  padding: 10px 12px;
  border: 1px solid #1c9a96;
  border-radius: 8px;
  background: linear-gradient(120deg, #075056, #08363f);
  color: #d5fff4
}

.ios-label {
  background: linear-gradient(120deg, #104b94, #11264e);
  border-color: #287dd2;
  color: #e7f2ff
}

.compatibility-panel>p {
  font-size: 12px;
  line-height: 1.65;
  color: #bfcbe2;
  margin-top: 10px
}

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

.check-card {
  border: 1px solid #33365d;
  border-radius: 9px;
  padding: 13px 12px;
  background: linear-gradient(135deg, #28203f, #09182d)
}

.check-card .ui-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 10px;
  background: #7d25a530
}

.check-card h3,
.text-item h3 {
  font-size: 13px;
  line-height: 1.5
}

.check-card p,
.text-item p {
  font-size: 12px;
  line-height: 1.7;
  color: #d0d9ed;
  margin-top: 7px
}

.text-item {
  padding: 12px 0;
  border-top: 1px solid #2a304c
}

.text-item h3:before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: #6de5cf;
  color: #042d36;
  border-radius: 50%;
  font-size: 11px;
  margin-right: 7px
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px
}

.download-faq details {
  border: 1px solid #323357;
  background: linear-gradient(110deg, #26213f, #101c33);
  border-radius: 8px;
  align-self: start
}

.download-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5
}

.download-faq summary::-webkit-details-marker {
  display: none
}

.download-faq summary>span {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  height: 19px;
  border-radius: 50%;
  background: #713299;
  font-size: 18px
}

.download-faq details[open] summary>span {
  transform: rotate(45deg)
}

.download-faq details p {
  padding: 0 12px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #cdd8ee
}

.troubleshooting {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center
}

.troubleshooting h2 {
  font-size: 20px
}

.troubleshooting p {
  font-size: 13px;
  margin-top: 6px;
  color: #cdd8ee
}

.troubleshooting a {
  flex-shrink: 0;
  gap: 10px;
  font-size: 13px
}

.download-content .site-footer {
  margin-top: 16px
}

.download-content .button-arrow {
  width: 18px;
  height: 18px
}

.download-content .outline:hover .button-arrow {
  transform: translateX(3px)
}

@media(min-width:1600px) {
  .download-hero {
    min-height: 330px
  }

  .download-hero-copy {
    padding-top: 32px
  }

  .download-hero h1 {}

  .download-hero h1 span {}

  .platform-card {
    min-height: 210px
  }

  .step-top {
    min-height: 55px
  }
}

@media(min-width:681px) and (max-width:1250px) {
  .platform-card {
    padding: 15px 12px;
    gap: 8px
  }

  .platform-mark {
    width: 38px;
    flex-basis: 38px;
    height: 50px
  }

  .platform-copy {
    max-width: 100%
  }

  .platform-copy h2 {
    font-size: 22px
  }

  .platform-copy p {
    font-size: 12px
  }

  .platform-phone {
    opacity: .28
  }

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

  .step-top {
    min-height: 0;
    margin-bottom: 10px
  }

  .information-grid {
    grid-template-columns: 1fr
  }

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

  .download-hero-copy {
    padding-left: 22px
  }

  .download-hero h1 {}

  .download-hero h1 span {}

  .download-hero p {
    max-width: 340px
  }

  .faq-grid {
    grid-template-columns: 1fr
  }

  .troubleshooting {
    align-items: flex-start;
    flex-direction: column
  }
}

@media(max-width:680px) {
  .download-hero {
    min-height: 280px
  }

  .download-hero-art {
    inset: 0;
    opacity: .6;
    background-position: 65% center
  }

  .download-hero:after {
    background: linear-gradient(90deg, #060c24ee, #090b2490)
  }

  .download-hero-copy {
    padding: 20px 16px 30px;
    max-width: 100%
  }

  .download-hero h1 {}

  .download-hero h1 span {}

  .download-hero p {
    max-width: 100%;
    font-size: 14px
  }

  .download-content {
    padding: 0 12px
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0
  }

  .platform-card {
    min-height: 220px;
    padding: 18px 14px;
    gap: 12px
  }

  .platform-mark {
    width: 46px;
    flex-basis: 46px;
    height: 58px
  }

  .platform-copy {
    max-width: 100%
  }

  .platform-copy h2 {
    font-size: 24px
  }

  .platform-copy p {
    font-size: 13px
  }

  .platform-copy .platform-download {
    font-size: 13px;
    min-height: 44px
  }

  .platform-phone {
    opacity: .3
  }

  .guide-link {
    min-height: 32px;
    display: flex;
    align-items: center;
    font-size: 13px
  }

  .download-content .panel {
    padding: 14px
  }

  .section-heading {
    gap: 10px
  }

  .section-heading h2 {
    font-size: 22px
  }

  .section-heading p {
    font-size: 13px
  }

  .device-tabs {
    max-width: none;
    width: 100%;
    margin-top: 16px
  }

  .device-tabs button {
    min-height: 46px;
    font-size: 14px
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .step {
    padding: 16px 14px 0
  }

  .step-top {
    min-height: 0;
    align-items: center;
    margin-bottom: 10px
  }

  .step h3 {
    font-size: 14px
  }

  .step>p {
    font-size: 14px
  }

  .step-phone {
    max-width: 190px;
    min-height: 150px;
    margin-top: 8px
  }

  .information-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .check-grid {
    grid-template-columns: 1fr 1fr
  }

  .check-card {
    padding: 12px
  }

  .check-card h3,
  .text-item h3 {
    font-size: 14px
  }

  .check-card p,
  .text-item p {
    font-size: 13px
  }

  .table-wrap table {
    font-size: 13px
  }

  th,
  td {
    padding: 9px 8px
  }

  .faq-grid {
    grid-template-columns: 1fr
  }

  .download-faq summary {
    font-size: 14px;
    min-height: 48px
  }

  .download-faq details p {
    font-size: 14px
  }

  .next-panel>p {
    font-size: 14px
  }

  .next-actions {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .next-actions>a {
    min-width: 0;
    min-height: 46px;
    font-size: 14px
  }

  .next-actions>.outline {
    grid-column: 1/-1
  }

  .troubleshooting {
    flex-direction: column;
    align-items: stretch
  }

  .troubleshooting p {
    font-size: 14px
  }

  .troubleshooting a {
    min-height: 46px
  }

  .download-content .site-footer {
    padding-left: 0;
    padding-right: 0
  }
}

@media(max-width:360px) {
  .check-grid {
    grid-template-columns: 1fr
  }

  .platform-mark {
    width: 36px;
    flex-basis: 36px
  }

  .platform-card {
    gap: 10px
  }

  .platform-copy h2 {
    font-size: 22px
  }

  .platform-copy .platform-download {
    padding: 9px 8px;
    font-size: 12px
  }

  .section-heading h2 {
    font-size: 21px
  }
}

/* Balanced platform actions and quieter artwork on narrow screens. */
.platform-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.platform-copy .platform-download {
  margin-top: auto;
  min-height: 44px
}

.platform-copy>p {
  margin-bottom: 12px
}

.platform-copy .guide-link {
  margin-top: 6px
}

.platform-copy .button-arrow {
  flex-shrink: 0
}

@media(min-width:1251px) {
  .platform-card {
    min-height: 230px
  }

  .platform-copy .platform-download {
    width: 275px;
    max-width: 100%
  }
}

@media(max-width:680px) {
  .platform-copy .platform-download {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    justify-content: center
  }

  .platform-card {
    min-height: 250px
  }

  .platform-copy p {
    margin-bottom: 14px
  }
}

@media(max-width:360px) {
  .top-nav a {
    font-size: 11px;
    padding-left: 3px;
    padding-right: 3px
  }

  .footer-links {
    overflow: visible;
    gap: 6px
  }

  .footer-links a {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    font-size: 10px;
    text-align: center;
    line-height: 1.5
  }
}

/* Shared H1 sizing is inherited from Home at every breakpoint. */
.information-grid {
  align-items: stretch
}

.information-grid>.panel {
  height: 100%;
  margin: 0
}

.compatibility-panel .device-tabs {
  max-width: none;
  margin: 0 0 12px
}

.compatibility-panel .compat-heading {
  margin: 0 0 10px
}

.compatibility-panel [role="tabpanel"]>p {
  font-size: 12px;
  line-height: 1.65;
  color: #bfcbe2;
  margin-top: 10px
}

@media(max-width:680px) {
  .information-grid>.panel {
    height: auto
  }

  .compatibility-panel [role="tabpanel"]>p {
    font-size: 13px
  }
}

/* Keep the accordion control independent of text baselines and wrapping. */
.download-faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700
}

.download-faq summary>.faq-question {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: inherit;
  line-height: 1.5;
  transform: none !important
}

.download-faq summary>.faq-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: #713299;
  line-height: 1;
  align-self: center
}

.faq-toggle svg {
  display: block;
  width: 12px;
  height: 12px;
  max-width: none
}

.download-faq details[open] summary>.faq-toggle {
  transform: rotate(45deg)
}

strong {
  font-weight: 700
}

/* Use the same typography scale as Home for content of the same role. */
.download-content .platform-copy p,
.download-content .section-heading p,
.download-content .step>p,
.download-content .next-panel>p,
.download-content .table-wrap table,
.download-content .compatibility-panel>p,
.download-content .compatibility-panel [role="tabpanel"]>p,
.download-content .check-card p,
.download-content .text-item p,
.download-content .download-faq summary,
.download-content .download-faq details p,
.download-content .troubleshooting p {
  font-size: var(--text-size);
  line-height: 1.65
}

.download-content .platform-copy .platform-download,
.download-content .device-tabs button,
.download-content .next-actions>a,
.download-content .troubleshooting a,
.download-content .step h3,
.download-content .check-card h3,
.download-content .text-item h3,
.download-content .platform-copy h3,
.download-content .compat-heading {
  font-size: var(--text-size);
  line-height: 1.5
}

.download-content .section-heading h2,
.download-content .platform-copy h2,
.download-content .troubleshooting h2 {
  font-size: var(--heading-size);
  line-height: 1.25;
  letter-spacing: -.5px
}

.download-content .specs-panel tr:last-child td {
  font-size: var(--text-size);
  line-height: 1.65
}

.download-content .faq-question {
  font-size: inherit
}

/* Preserve the document's inline anchor text without changing paragraph sizing. */
.inline-link {
  font: inherit;
  color: #f2a2ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px
}

.inline-link:hover {
  color: #ffd9ff;
  text-decoration-thickness: 2px
}

/* Match the Login & Register FAQ sizing while preserving question order. */
#download .download-faq .faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start
}

#download .download-faq .faq-grid>details {
  width: 100%;
  min-width: 0
}

#download .download-faq .faq-grid>details>summary {
  box-sizing: border-box;
  min-height: 76px;
  padding: 12px;
  align-items: center
}

@media(max-width:680px) {
  #download .download-faq .faq-grid {
    grid-template-columns: 1fr
  }

  #download .download-faq .faq-grid>details>summary {
    min-height: 88px
  }
}

/* Fill the hero's open left area with a wider, two-line heading and intro. */
.download-hero-copy {
  width: 72%;
  max-width: 820px
}

.download-hero p {
  max-width: 600px
}

.download-hero h1>.download-title-first {
  display: block;
  font-size: inherit;
  background: none;
  color: #fff;
  -webkit-text-fill-color: currentColor
}

.download-hero h1 {
  line-height: 1.12
}

.download-hero h1>span {
  line-height: 1.18;
  padding-bottom: .1em;
  margin-bottom: -.1em
}

@media(max-width:680px) {
  .download-hero-copy {
    width: 100%;
    max-width: none
  }

  .download-hero p {
    max-width: none
  }
}

/* Keep the longer iOS final step brief without removing its guidance. */
.step-more {
  font-size: var(--text-size);
  margin: 0 0 12px
}

.step-more>summary,
.step-hide {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #f2a2ff;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none
}

.step-more>summary::-webkit-details-marker {
  display: none
}

.step-more[open]>summary {
  display: none
}

.step-more>p {
  font-size: var(--text-size);
  line-height: 1.65;
  color: #d9dfef;
  margin: 0 0 8px
}

@media(max-width:680px) {

  .step-more>summary,
  .step-hide {
    min-height: 44px
  }
}
