/* creatyk.com · /descargar and /en/download. Follows the landing-page-design skill: text styles are
   the named classes in the markup (heading-*, title-*, body-*, caption-*), so this file sets no
   font size, line height or weight; spacing, radius and background tokens only; flat surfaces with
   no glows or gradients; motion on transform and opacity with the base curve.
   Owner: the descargar/legal agent. */

/* ── first screen: the button, the platform, the live version, the risk line ───────────────── */
.dl-actions__meta { display: grid; gap: var(--spacing-75); }
.dl-version { display: flex; gap: var(--spacing-75); align-items: center; color: var(--ink-3); }
.dl-version .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.dl-version[data-state="ok"] .icon { color: var(--accent-text); }
.dl-version__skel { width: 220px; }
.dl-risk { margin: var(--spacing-300) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--spacing-75) var(--spacing-300); }
.dl-risk__item { display: flex; gap: var(--spacing-75); align-items: center; color: var(--ink-2); }
.dl-risk__item .icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-text); }

/* ── the app on a flat panel ───────────────────────────────────────────────────────────────── */
.dl-stage__sky { padding: var(--spacing-700) var(--spacing-700) 0; border-radius: var(--radius-24); background: var(--bg-1); border: 1px solid var(--line); overflow: clip; }
.dl-stage__window { max-width: 1060px; margin-inline: auto; }
.dl-stage__lift { transform-origin: 50% 100%; }
.dl-stage .shot--window { border-radius: var(--radius-12) var(--radius-12) 0 0; box-shadow: none; }

/* ── what you need ─────────────────────────────────────────────────────────────────────────── */
ul.dl-needs__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300) var(--spacing-700); max-width: 960px; }
.dl-need { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--spacing-100); align-items: start; }
.dl-need > .icon { width: 20px; height: 20px; margin-top: var(--spacing-25); color: var(--accent-text); }
.dl-need__title { color: var(--ink); text-wrap: balance; }
.dl-need__text { margin-top: var(--spacing-50); color: var(--ink-2); text-wrap: pretty; }

/* ── how it installs: numbered steps and a rail that fills while you read ──────────────────── */
.dl-steps__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spacing-700); align-items: start; }
.dl-steps__side { position: sticky; top: calc(var(--nav-offset) + var(--spacing-400)); }
.dl-steps__side .section-head { margin-bottom: var(--spacing-300); }
.dl-steps__after { display: flex; gap: var(--spacing-100); align-items: flex-start; max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }
.dl-steps__after .icon { width: 16px; height: 16px; margin-top: var(--spacing-25); flex: 0 0 auto; color: var(--accent-text); }
.dl-steps .steps { position: relative; gap: var(--spacing-400); counter-reset: step; }
.dl-steps .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--spacing-300); align-items: start; color: var(--ink); }
.dl-steps .steps li p { padding-top: var(--spacing-75); text-wrap: pretty; }
.dl-steps .steps li::before { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--bg-3); color: var(--ink-2); transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
.dl-steps .steps li.is-in::before { background: var(--bg-4); color: var(--accent-text); }
.dl-step__jump { margin-left: var(--spacing-50); color: var(--accent-text); white-space: nowrap; border-radius: var(--radius-4); text-underline-offset: 3px; }
.dl-step__jump:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dl-step__jump:hover { text-decoration-thickness: 2px; } }
.dl-steps .steps::before, .dl-steps .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: var(--radius-2); }
.dl-steps .steps::before { background: var(--bg-3); }
.dl-steps .steps::after { background: var(--accent-text); transform-origin: 50% 0; transform: scaleY(1); }
@media (prefers-reduced-motion: no-preference) {
  .js .dl-steps .steps[data-scrub]::after { transform: scaleY(var(--p)); }
}

/* ── the SmartScreen warning ───────────────────────────────────────────────────────────────── */
.dl-warn__panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--spacing-600); align-items: center; padding: var(--spacing-700); border-radius: var(--radius-24); background: var(--bg-1); border: 1px solid var(--line); }
.dl-warn__sentence { margin-top: var(--spacing-300); color: var(--ink); text-wrap: balance; }
.dl-warn__why { margin-top: var(--spacing-300); max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
.dl-warn__link { margin-top: var(--spacing-300); }

/* the practice copy: a simplified picture of the real Windows dialog (its own blue, so people
   recognise it when it appears); the buttons work (descargar.js) */
.dl-ss { display: grid; gap: var(--spacing-100); }
.dl-ss__try { color: var(--ink); }
.dl-ss__stage { display: grid; }
.dl-ss__stage > * { grid-area: 1 / 1; }
[data-ui].dl-ss__dialog {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
  border-radius: var(--radius-8); background: #1a5aa8; color: #fff; text-align: left;
  transition: opacity var(--dur-move) var(--ease), transform var(--dur-move) var(--ease);
}
[data-ui] .dl-ss__body { padding: var(--spacing-400) var(--spacing-400) var(--spacing-75); }
[data-ui] .dl-ss__p { margin-top: var(--spacing-200); max-width: 46ch; }
[data-ui] .dl-ss__more { margin-top: var(--spacing-75); padding: var(--spacing-50) 0; border: 0; border-radius: var(--radius-2); background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[data-ui] .dl-ss__more[aria-expanded="true"] { display: none; }
[data-ui] .dl-ss__details { margin: var(--spacing-200) 0 0; display: grid; gap: var(--spacing-50); }
[data-ui] .dl-ss__details div { display: flex; gap: var(--spacing-75); }
[data-ui] .dl-ss__details dd { margin: 0; }
[data-ui] .dl-ss__bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--spacing-75); padding: var(--spacing-300); }
[data-ui] .dl-ss__btn {
  min-width: 116px; padding: var(--spacing-75) var(--spacing-100); border: 1px solid #fff; border-radius: var(--radius-4);
  background: transparent; color: #fff; cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), transform var(--dur-press) var(--ease);
}
[data-ui] .dl-ss__btn:active { transform: scale(0.98); }
[data-ui] .dl-ss__btn--run { background: rgba(255, 255, 255, 0.14); }
[data-ui] .dl-ss__btn:focus-visible, [data-ui] .dl-ss__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .dl-ss__btn:hover { background: rgba(255, 255, 255, 0.24); }
  [data-ui] .dl-ss__more:hover { text-decoration-thickness: 2px; }
}
.dl-ss__done { display: grid; place-items: center; align-content: center; gap: var(--spacing-300); border-radius: var(--radius-8); background: var(--bg-2); border: 1px solid var(--line); transition: opacity var(--dur-move) var(--ease), transform var(--dur-move) var(--ease); }
.dl-ss__done-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--bg-3); color: var(--accent-text); }
.dl-ss__done-icon .icon { width: 32px; height: 32px; }
.dl-ss[data-step="done"] .dl-ss__dialog { opacity: 0; transform: scale(0.96); pointer-events: none; }
.dl-ss__status { min-height: var(--spacing-500); color: var(--ink-2); }
.dl-ss[data-step="done"] .dl-ss__status { color: var(--ink); }
.dl-ss__caption { color: var(--ink-3); text-wrap: pretty; }
html:not(.js) .dl-ss__try, html:not(.js) .dl-ss__status { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dl-ss__done:not([hidden]) { animation: dl-rise-in var(--dur-move) var(--ease) both; }
}
@keyframes dl-rise-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* ── after installing: a board of real crops (outer 16, gap 12, so the picture gets 4) ─────── */
.dl-board { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spacing-200); }
.dl-tile { display: flex; flex-direction: column; min-width: 0; overflow: clip; border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line); }
.dl-tile--a { grid-column: span 7; }
.dl-tile--b { grid-column: span 5; }
.dl-tile--c, .dl-tile--d { grid-column: span 6; }
.dl-tile__media { position: relative; height: 272px; margin: var(--spacing-100) var(--spacing-100) 0; overflow: clip; border-radius: var(--radius-4); background: var(--bg-2); }
.dl-tile__drift { position: absolute; inset: -12px 0; }
.dl-tile__drift img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.dl-tile__text { padding: var(--spacing-300) var(--spacing-300) var(--spacing-400); }
.dl-tile__title { color: var(--ink); text-wrap: balance; }
.dl-tile__p { margin-top: var(--spacing-75); max-width: 52ch; color: var(--ink-2); text-wrap: pretty; }

/* ── the promise: large type, each word lights up as it crosses the line (descargar.js) ─────── */
.dl-promise__title { max-width: var(--measure); color: var(--ink); text-wrap: balance; }
.dl-promise__line { display: block; }
.js .dl-promise__title[data-words] .tw { opacity: 0.3; transition: opacity var(--dur-reveal) var(--ease); }
.js .dl-promise__title[data-words] .tw.is-on { opacity: 1; }
.dl-promise__facts { margin: var(--spacing-700) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-200); }
.dl-fact { padding: var(--spacing-300); border-radius: var(--radius-16); background: var(--bg-1); border: 1px solid var(--line); }
.dl-fact__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--bg-3); color: var(--accent-text); }
.dl-fact__icon .icon { width: 20px; height: 20px; }
.dl-fact__title { margin-top: var(--spacing-200); color: var(--ink); }
.dl-fact__text { margin-top: var(--spacing-50); color: var(--ink-2); text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  .js .dl-promise__title[data-words] .tw { opacity: 1; transition: none; }
}

/* ── what's new in the latest version ──────────────────────────────────────────────────────── */
.dl-news__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spacing-700); padding: var(--spacing-700); border-radius: var(--radius-24); background: var(--bg-1); border: 1px solid var(--line); }
.dl-news__num { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.dl-news__title { margin-top: var(--spacing-300); color: var(--ink); text-wrap: balance; }
.dl-news__name { margin-top: var(--spacing-75); color: var(--ink-2); }
.dl-news__meta { margin-top: var(--spacing-200); color: var(--ink-3); }
.dl-news__size:empty { display: none; }
.dl-news__size .skeleton { display: inline-block; width: 120px; vertical-align: middle; margin-left: var(--spacing-50); }
.dl-news__state { margin-top: var(--spacing-200); display: flex; gap: var(--spacing-75); align-items: center; max-width: 44ch; color: var(--ink-2); }
.dl-news__state .icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-text); }
.dl-news__state .skeleton { width: 260px; max-width: 100%; }
.dl-news__error { margin-top: var(--spacing-300); background: var(--bg-2); } /* outer 24 panel, 64 gap: no nesting rule */
.dl-news__notes { color: var(--ink); text-wrap: pretty; }
.dl-news__list { color: var(--ink-2); }
.dl-news__all { margin-top: var(--spacing-400); }

/* ── questions about installing ────────────────────────────────────────────────────────────── */
.dl-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--spacing-700); align-items: start; }
.dl-faq__side { position: sticky; top: calc(var(--nav-offset) + var(--spacing-400)); }
.dl-faq__more { display: flex; gap: var(--spacing-100); align-items: flex-start; }
.dl-faq__more .icon { width: 16px; height: 16px; margin-top: var(--spacing-50); flex: 0 0 auto; color: var(--accent-text); }
.dl-faq__more a, .dl-faq__list .qa__a a { color: var(--accent-text); }

/* ── motion that only exists with full motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .dl-stage__lift[data-scrub] { transform: translateY(calc((1 - var(--p)) * 32px)); }
}

/* ── tablet and phone ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .dl-warn__panel { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-500); }
  .dl-ss { max-width: 560px; }
}
@media (max-width: 899px) {
  .dl-steps__grid, .dl-faq__grid, .dl-news__panel { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-400); }
  .dl-steps__side, .dl-faq__side { position: static; }
  .dl-tile--a, .dl-tile--b, .dl-tile--c, .dl-tile--d { grid-column: span 12; }
  .dl-promise__facts { grid-template-columns: minmax(0, 1fr); }
  .dl-stage__sky { padding: var(--spacing-300) var(--spacing-300) 0; }
}
/* on a phone the full window would be a thumbnail too small to read: the crops below carry it */
@media (max-width: 599px) { .dl-stage { display: none; } }
@media (max-width: 680px) {
  .dl-actions { flex-direction: column; align-items: stretch; }
  .dl-cta { width: 100%; justify-content: center; }
  ul.dl-needs__list { grid-template-columns: minmax(0, 1fr); }
  .dl-warn__panel, .dl-news__panel { padding: var(--spacing-300); }
  .dl-steps .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: var(--spacing-200); }
  .dl-steps .steps li::before { width: 32px; height: 32px; }
  .dl-steps .steps li p { padding-top: var(--spacing-50); }
  .dl-steps .steps::before, .dl-steps .steps::after { left: 15px; top: 16px; bottom: 16px; }
  .dl-tile__media { height: 208px; }
  [data-ui].dl-ss__dialog { min-height: 300px; }
  [data-ui] .dl-ss__body { padding: var(--spacing-300) var(--spacing-300) var(--spacing-75); }
  [data-ui] .dl-ss__bar { padding: var(--spacing-200) var(--spacing-200) var(--spacing-300); }
  [data-ui] .dl-ss__btn { flex: 1 1 auto; }
}
