/* ==========================================================================
   Doneload theme, loaded after the shared style.css.
   State is color: grey is waiting, green is done. Slate-navy ink on cool
   white, deep teal for links. One family, Geologica: sharp and heavy for
   headings, soft and regular for text. Mono only for filenames and sizes.
   ========================================================================== */

@font-face {
  font-family: 'Geologica';
  font-style: oblique 0deg 12deg;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/brands/doneload/fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f5f7;
  --sheet: #ffffff;
  --sheet-2: #f7f9fb;
  --ink: #13233a;
  --ink-2: #45556b;
  --ink-3: #5d6c80;
  --rule: #dce2e8;
  --rule-strong: #c4cdd6;

  --marigold: #10b45c;        /* done green: fills only, ink text on top */
  --marigold-soft: #dcf5e7;
  --marigold-ink: #0a7a3e;    /* green text on paper, AA */
  --cobalt: #0d6e8c;          /* links and focus */
  --cobalt-soft: #e0f1f6;
  --leaf: #0a7a3e;
  --leaf-soft: #dcf5e7;
  --brick: #c42b1c;
  --brick-soft: #fde8e5;
  --on-marigold: #0c1a2c;
  --on-cobalt: #ffffff;

  --done: #10b45c;
  --pending: #d3dae2;

  --font-display: 'Geologica', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-tray: 14px;
  --r-panel: 10px;
  --r-ctl: 8px;
  --r-chip: 6px;

  --lift: 0 1px 0 rgba(19, 35, 58, .05), 0 6px 18px -10px rgba(19, 35, 58, .24);
  --lift-strong: 0 1px 0 rgba(19, 35, 58, .06), 0 18px 40px -20px rgba(19, 35, 58, .42);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1826;
    --sheet: #152235;
    --sheet-2: #111d2e;
    --ink: #e8eef5;
    --ink-2: #b3c0cf;
    --ink-3: #93a1b3;
    --rule: #243349;
    --rule-strong: #33455e;

    --marigold: #34d17c;
    --marigold-soft: #0f3324;
    --marigold-ink: #5fe29a;
    --cobalt: #6cc4e6;
    --cobalt-soft: #0f2e3b;
    --leaf: #5fe29a;
    --leaf-soft: #0f3324;
    --brick: #ff8a7e;
    --brick-soft: #3b1a17;
    --on-marigold: #0c1a2c;
    --on-cobalt: #0e1826;

    --done: #34d17c;
    --pending: #2b3b52;

    --lift: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7);
    --lift-strong: 0 2px 0 rgba(0, 0, 0, .35), 0 22px 48px -22px rgba(0, 0, 0, .85);
  }
}

/* ---------- Type ---------- */
body { font-variation-settings: "SHRP" 0; font-weight: 400; }
h1, h2, h3, h4, .display, .h1, .h2, .h3, .brand__word, .tray__title, .matches__head strong, .group__head h3,
.plan__name, .plan__price, .preset h3, .consent__title, .chain__n {
  font-variation-settings: "SHRP" 100;
}
.h1 { font-weight: 800; letter-spacing: -.025em; }
.h2 { font-weight: 750; letter-spacing: -.015em; }

/* ---------- Brand mark and header ---------- */
.dl-mark-bg { fill: var(--marigold); }
.dl-mark-glyph { fill: none; stroke: var(--on-marigold); stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { font-weight: 800; font-size: 1.28rem; letter-spacing: -.035em; }

/* ---------- Controls ---------- */
.btn--primary:hover { --btn-bg: #0ea653; --btn-bd: #0ea653; }
@media (prefers-color-scheme: dark) { .btn--primary:hover { --btn-bg: #4cdb8c; --btn-bd: #4cdb8c; } }
.sheets { display: none; }
.tray__zone { background-image: none; }
.code { background: #13233a; }
@media (prefers-color-scheme: dark) { .code { background: #0a1320; } }

@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }

/* ---------- Home: hero ---------- */
.dl-hero { padding: clamp(28px, 5vw, 72px) 0 clamp(44px, 6vw, 96px); }
.dl-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 980px) {
  .dl-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
}
.dl-hero__title {
  margin: 0 0 28px;
  font-weight: 850;
  font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.042em;
}
.dl-hero__sub { margin: 0 0 26px; max-width: 44ch; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; text-wrap: pretty; }
.dl-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; color: var(--ink-2); font-size: var(--t-sm); }
.dl-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.dl-hero__facts .i { color: var(--marigold-ink); }

/* ---------- Home: the done shelf ---------- */
.dl-shelf {
  container-type: inline-size;
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-tray);
  box-shadow: var(--lift-strong);
  overflow: hidden;
}
@media (min-width: 980px) { .dl-shelf { margin-top: 4px; } }
.dl-shelf__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.dl-shelf__title { font-weight: 700; }
.dl-shelf__count { color: var(--marigold-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-shelf__rows { list-style: none; margin: 0; padding: 0; }

.dl-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  grid-template-areas: "ext main tick" "ext bar bar" "ext out out";
  gap: 6px 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}
@container (min-width: 500px) {
  .dl-row { grid-template-columns: 40px minmax(0, 1fr) 76px 112px 24px; grid-template-areas: "ext main bar out tick"; gap: 12px; }
}
.dl-ext {
  grid-area: ext; align-self: start;
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  font: 600 11px/1 var(--font-mono); color: #0d6e8c; background: #e0f1f6;
}
.dl-ext--pdf { color: #b3261e; background: #fde8e5; }
.dl-ext--xlsx { color: #0a7a3e; background: #dcf5e7; }
.dl-ext--mp4 { color: #5b3fc4; background: #ece8fb; }
@media (prefers-color-scheme: dark) {
  .dl-ext { color: #7fd0ee; background: #12384a; }
  .dl-ext--pdf { color: #ff9b91; background: #43201c; }
  .dl-ext--xlsx { color: #6fe2a4; background: #103a27; }
  .dl-ext--mp4 { color: #b9a8ff; background: #2a2152; }
}
.dl-row__main { grid-area: main; min-width: 0; }
.dl-row__name { display: block; font: 500 14px/1.3 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row__tool { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.dl-bar {
  grid-area: bar; position: relative; height: 8px;
  background: repeating-linear-gradient(90deg, var(--pending) 0 6px, transparent 6px 8px);
}
.dl-bar i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--done) 0 6px, transparent 6px 8px); }
.dl-row__out { grid-area: out; min-width: 0; font: 500 13px/1.3 var(--font-mono); }
@container (min-width: 500px) { .dl-row__out { text-align: right; } }
.dl-row__sizes s { color: var(--ink-3); text-decoration-thickness: 1px; }
.dl-row__sizes b { color: var(--marigold-ink); font-weight: 700; }
.dl-row__to { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-tick { grid-area: tick; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--marigold); color: var(--on-marigold); }
.dl-tick .i { width: 14px; height: 14px; }
.dl-shelf__zip { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--marigold-soft); font-size: var(--t-sm); }
.dl-shelf__zip .i { color: var(--marigold-ink); }
.dl-shelf__zip b { font-family: var(--font-mono); font-weight: 600; margin-right: 4px; }

/* One orchestrated moment: the batch completes row by row. */
@media (prefers-reduced-motion: no-preference) {
  .dl-bar i { clip-path: inset(0 100% 0 0); animation: dl-fill .9s steps(9, end) forwards; animation-delay: calc(.35s + var(--i) * .42s); }
  .dl-tick { opacity: 0; transform: scale(.4); animation: dl-pop .35s cubic-bezier(.2, .9, .3, 1.4) forwards; animation-delay: calc(1.2s + var(--i) * .42s); }
}
@keyframes dl-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes dl-pop { to { opacity: 1; transform: scale(1); } }

/* ---------- Home: sections ---------- */
.dl-section { padding: clamp(52px, 7vw, 104px) 0; }
.dl-section--band { background: var(--sheet); border-block: 1px solid var(--rule); }
.dl-head { max-width: 64ch; margin-bottom: 34px; }
.dl-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.dl-h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.65rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "SHRP" 100; }
.dl-h3 { font-weight: 750; font-size: var(--t-lg); letter-spacing: -.01em; }
.dl-lede { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; text-wrap: pretty; }
.dl-note { color: var(--ink-3); font-size: var(--t-sm); margin: 14px 0 0; }

/* tool directory, grouped by hub */
.dl-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 40px; }
.dl-dir__title { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-weight: 750; font-size: var(--t-lg); letter-spacing: -.01em; }
.dl-dir__title a { color: var(--ink); text-decoration: none; }
.dl-dir__title a:hover { color: var(--cobalt); }
.dl-dir__list { list-style: none; margin: 0; padding: 0; }
.dl-dir__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.dl-dir__list a:hover span:first-child { color: var(--cobalt); text-decoration: underline; }
.dl-dir .tl__where { color: var(--ink-3); flex: none; }
.dl-dir .tl__where.is-local { color: var(--marigold-ink); }

/* pipeline example */
.dl-split { display: grid; gap: 40px; }
@media (min-width: 900px) { .dl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; } }
.dl-chain { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-chain li {
  counter-increment: step;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel);
}
.dl-chain li::before {
  content: counter(step); grid-row: span 2;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-weight: 800; font-variation-settings: "SHRP" 100;
}
.dl-chain b { font-weight: 700; }
.dl-chain span { color: var(--ink-3); font-size: var(--t-sm); }
.dl-chain li:last-child { border-color: var(--marigold); box-shadow: inset 4px 0 0 var(--marigold); }
.dl-presets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dl-presets a { display: block; height: 100%; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); color: var(--ink); text-decoration: none; }
.dl-presets a:hover { border-color: var(--ink); }
.dl-presets b { display: block; margin-bottom: 4px; }
.dl-presets span { color: var(--ink-2); font-size: var(--t-sm); }

/* where files go */
.dl-where { display: grid; gap: 28px; }
@media (min-width: 860px) { .dl-where { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.dl-where__col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 750; font-size: var(--t-lg); }
.dl-where__col h3 .i { color: var(--marigold-ink); }
.dl-where__col p { margin: 0; color: var(--ink-2); }

/* plans */
.dl-plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .dl-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl-plan { padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.dl-plan--pro { background: var(--sheet); border: 2px solid var(--ink); }
.dl-plan h3 { margin: 0 0 6px; font-weight: 800; font-size: var(--t-lg); }
.dl-plan__price { margin: 0; font-weight: 850; font-size: var(--t-2xl); letter-spacing: -.025em; font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100; }
.dl-plan__price small { font-weight: 500; font-size: var(--t-sm); color: var(--ink-2); letter-spacing: 0; }
.dl-plan__note { margin: 4px 0 0; color: var(--ink-3); font-size: var(--t-sm); }
.dl-plan ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-plan li { position: relative; padding-left: 22px; }
.dl-plan li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--marigold-ink); border-bottom: 2px solid var(--marigold-ink); transform: rotate(-45deg); }

/* ---------- Category hubs ---------- */
.dl-hubhead { max-width: 66ch; margin: 18px 0 30px; }
.dl-hubhead__title { margin: 0 0 14px; font-weight: 850; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.dl-hubhead__count { margin: 12px 0 0; color: var(--ink-3); font-size: var(--t-sm); }
.dl-hublist { list-style: none; margin: 0 0 40px; padding: 0; border-top: 2px solid var(--ink); }
.dl-hublist a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
@media (min-width: 760px) { .dl-hublist a { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) 150px; align-items: baseline; gap: 24px; } }
.dl-hublist__name { font-weight: 700; }
.dl-hublist a:hover .dl-hublist__name { color: var(--cobalt); text-decoration: underline; }
.dl-hublist__desc { color: var(--ink-2); font-size: var(--t-sm); }
.dl-hublist__where { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.dl-hublist__where .tl__where.is-local { color: var(--marigold-ink); }
.dl-hubnotes { max-width: 68ch; margin: 0 0 72px; color: var(--ink-2); }
