/* PlotVibe's Download page, on top of site.css and features.css (the frames, floats, rising pictures, feature rows,
   ticks, links and the giant motto). TradingView's desktop page is the model: the download buttons first, then what
   the desktop app does that a browser can't (tabs, a window per screen, the app vs a browser full of tabs), then
   every device. The pictures are PlotVibe's own desktop window (its real tab row) on live prices. */

/* ---- 1 · hero ---- */
.dl-hero .fx-title { font-size: clamp(46px, 8.4vw, 118px); }
.dl-cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.dl-cta .btn-lg { height: 58px; padding: 0 26px; font-size: 16.5px; }
.dl-cta .btn svg { width: 20px; height: 20px; }
.dl-meta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; color: var(--dim); font-size: 14px; }
.dl-meta a { color: var(--muted); }
.dl-meta a:hover { color: var(--text); }
.dl-meta b { color: var(--muted); font-weight: 500; }

/* a desktop window around a real screenshot: PlotVibe's title bar and the window buttons */
.dl-window { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(196, 168, 255, .3); background: #0d0a17;
  box-shadow: 0 50px 120px rgba(75, 2, 198, .32), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.dl-titlebar { display: flex; align-items: center; height: 34px; padding: 0 0 0 14px; background: #120c22; border-bottom: 1px solid var(--line); font-size: 12.5px; color: #cfc6e6; }
.dl-titlebar img { width: 20px; margin-right: 9px; }
.dl-titlebar .ctl { margin-left: auto; display: flex; height: 100%; }
.dl-titlebar .ctl i { width: 46px; display: grid; place-items: center; color: #a79fc0; }
.dl-titlebar .ctl i:last-child { color: #fff; }
.dl-titlebar .ctl svg { width: 11px; height: 11px; }
.dl-window > img { display: block; width: 100%; height: auto; }
.dl-hero .fx-stage .f1 { width: 15%; left: auto; right: 2%; top: 14%; bottom: auto; }
.dl-hero .fx-stage .f2 { width: 46%; left: -1.5%; right: auto; top: auto; bottom: -5%; }

/* ---- 2 · the platforms ---- */
.dl-plats { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl-plat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 16, 48, .8), rgba(12, 8, 24, .8)); transition: border-color .3s, transform .3s, box-shadow .3s; }
.dl-plat:hover { border-color: rgba(185, 138, 255, .4); transform: translateY(-4px); }
.dl-plat.yours { border-color: rgba(185, 138, 255, .6); box-shadow: 0 30px 80px rgba(75, 2, 198, .35); }
.dl-plat.yours::before { content: "Your computer"; position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; color: #fff; background: var(--grad); }
.dl-os { width: 44px; height: 44px; color: #fff; }
.dl-plat h3 { font-size: 24px; margin-top: 4px; }
.dl-plat p { color: var(--muted); font-size: 14.5px; }
.dl-plat .btns { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
.dl-plat .btn { width: 100%; }
.dl-plat .btn small { font-weight: 500; opacity: .75; }
.dl-plat .state { align-self: flex-start; font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; color: #dccbff; background: rgba(138, 18, 253, .18); border: 1px solid rgba(185, 138, 255, .25); }

/* ---- 3 · tabs ---- */
.dl-strip { margin-top: 50px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #131722; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.dl-strip img { display: block; width: 100%; height: auto; }
.dl-strip + .fx-frame { margin-top: 18px; }

/* ---- 4 · a window per screen: two monitors ---- */
.dl-monitors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 30px); margin-top: 60px; perspective: 2400px; }
.dl-mon { position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dl-mon:first-child { transform: rotateY(var(--ry, 8deg)); transform-origin: 100% 50%; }
.dl-mon:last-child { transform: rotateY(calc(var(--ry, 8deg) * -1)); transform-origin: 0 50%; }
.dl-screen { border-radius: 12px; padding: 10px; background: #050409; border: 1px solid #2a2340; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(138, 18, 253, .12); }
.dl-screen img { display: block; width: 100%; height: auto; border-radius: 4px; }
.dl-stand { width: 22%; height: 34px; margin: 0 auto; background: linear-gradient(180deg, #1b1530, #0d0a17); clip-path: polygon(30% 0, 70% 0, 82% 100%, 18% 100%); }
.dl-base { width: 40%; height: 8px; margin: 0 auto; border-radius: 6px; background: #1b1530; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.dl-mon figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; }
.dl-mon figcaption b { color: var(--text); font-weight: 600; }

/* ---- 5 · the app, or a browser full of tabs ---- */
.dl-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 34px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.dl-switch button { height: 42px; padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: none; transition: color .2s, background .2s; }
.dl-switch button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(138, 18, 253, .35); }
.dl-vs { position: relative; margin-top: 30px; display: grid; }
.dl-vs > * { grid-area: 1 / 1; transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.dl-vs > [hidden] { display: block; opacity: 0; transform: scale(.97); pointer-events: none; }
.dl-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #202124; box-shadow: 0 50px 120px rgba(0, 0, 0, .5); }
.dl-btabs { display: flex; align-items: flex-end; gap: 2px; height: 38px; padding: 0 10px; background: #1a1b1e; overflow: hidden; }
.dl-btabs span { flex: 0 1 150px; min-width: 0; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px 8px 0 0; font-size: 12px; color: #9aa0a6; white-space: nowrap; overflow: hidden; }
.dl-btabs span i { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--c, #5f6368); }
.dl-btabs span.on { color: #e8eaed; background: #35363a; }
.dl-burl { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #35363a; }
.dl-burl span { flex: 1; max-width: 520px; height: 24px; border-radius: 12px; padding: 0 12px; line-height: 24px; font-size: 12px; color: #bdc1c6; background: #202124; }
.dl-burl i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #5f6368; }
.dl-browser > img { display: block; width: 100%; height: auto; }
.dl-vs-note { margin-top: 22px; color: var(--muted); font-size: 15.5px; min-height: 2.6em; }
.dl-vs-note b { color: var(--text); }

/* ---- 6 · built in: four strengths, one with keys ---- */
.dl-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.dl-perk { padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24, 16, 48, .8), rgba(12, 8, 24, .8)); }
.dl-perk svg.i { width: 34px; height: 34px; color: var(--violet-soft); margin-bottom: 16px; }
.dl-perk h3 { font-size: 20px; }
.dl-perk p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.dl-keys { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.dl-keys li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: #cfc6e6; }
.dl-keys kbd { display: inline-flex; gap: 4px; }
.dl-keys kbd span { min-width: 24px; padding: 3px 7px; border-radius: 7px; text-align: center; font-family: var(--mono); font-size: 11.5px; color: #fff;
  background: #241a3c; border: 1px solid #3a2c5c; border-bottom-width: 3px; }

/* ---- 7 · three steps, and the first screen after download ---- */
.dl-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.dl-steps li { position: relative; padding: 0 0 30px 64px; counter-increment: s; }
.dl-steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: #1b1236; border: 1px solid rgba(185, 138, 255, .4); transition: background .5s, box-shadow .5s; }
.dl-steps li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 2px; background: #2a2340; }
.dl-steps li:last-child::after { display: none; }
.dl-steps.seen li::before { background: var(--grad); box-shadow: 0 0 0 6px rgba(138, 18, 253, .15); }
.dl-steps.seen li:nth-child(2)::before { transition-delay: .35s; }
.dl-steps.seen li:nth-child(3)::before { transition-delay: .7s; }
.dl-steps b { display: block; font-family: var(--display); font-size: 21px; }
.dl-steps span { display: block; margin-top: 4px; color: var(--muted); }

/* ---- 8 · requirements and questions ---- */
.dl-info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.dl-req { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dl-req div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-req dt { color: var(--violet-soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-top: 2px; }
.dl-req dd { margin: 0; color: #d6cfe8; font-size: 15px; }
.dl-faq details { border-bottom: 1px solid var(--line); }
.dl-faq details:first-of-type { border-top: 1px solid var(--line); }
.dl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 4px; font-family: var(--display); font-size: 19px; font-weight: 700; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; color: var(--violet-soft); font-size: 24px; line-height: 1; transition: transform .2s; }
.dl-faq details[open] summary::after { transform: rotate(45deg); }
.dl-faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 66ch; }
.dl-faq details a { color: var(--violet-soft); }

@media (max-width: 900px) {
  .dl-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-info { grid-template-columns: minmax(0, 1fr); }
  .dl-monitors { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .dl-mon:first-child, .dl-mon:last-child { transform: none; }
  .dl-hero .fx-stage .f2 { display: none; }
  .dl-hero .fx-stage .f1 { display: block; width: 24%; top: auto; bottom: -12%; }
}
@media (max-width: 600px) {
  .dl-plats, .dl-perks { grid-template-columns: minmax(0, 1fr); }
  .dl-cta .btn-lg { width: 100%; }
  .dl-btabs span:nth-child(n+4) { display: none; }
  .dl-req div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-vs > * { transition: none; }
  .dl-mon { transition: none; }
}
.dl-info h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 800; }
.dl-faq .eyebrow { margin-bottom: 14px; }
