/* The details bento: privacy, thumbnails (a working frame picker), replace-the-file, downloads and the API — tiles of
   different sizes, each with a small working picture. */
@layer sections {
    .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
    .tile { display: grid; align-content: space-between; gap: 26px; padding: 30px; min-width: 0; }
    .tile--privacy, .tile--thumbs { grid-column: span 3; }
    .tile--replace, .tile--files, .tile--api { grid-column: span 2; }
    .tile__text { display: grid; gap: 10px; justify-items: start; }
    .tile__text p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
    .tile__plan { padding: 4px 10px; border-radius: 999px; background: var(--cyan-a10); border: 1px solid var(--cyan-a25); color: var(--cyan-200); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }

    /* privacy: allowed domains */
    .domains { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-panel); background: var(--surface-ink); border: 1px solid var(--line); }
    .domains__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text-3); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .domains__head .i { width: 15px; height: 15px; color: var(--cyan-300); }
    .domains__row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--white-a4); color: var(--text); font-size: 14px; font-weight: 600; }
    .domains__row .i { width: 16px; height: 16px; color: var(--green-400); }
    .domains__row em { color: var(--green-400); font-size: 12px; font-style: normal; font-weight: 800; }
    .domains__row.is-blocked { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--rose-400); }
    .domains__row.is-blocked .i, .domains__row.is-blocked em { color: var(--rose-300); }
    .domains__row--pw .i { color: var(--amber-400); }
    .domains__row--pw em { color: var(--text-3); letter-spacing: .1em; }

    /* thumbnails: drag the range to pick the frame */
    .picker { display: grid; gap: 12px; container-type: inline-size; }
    .picker__preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-panel); box-shadow: 0 20px 40px -20px var(--black-a80); }
    .picker__frame { position: absolute !important; inset: 0; opacity: 0; transition: opacity .25s; }
    .picker__frame.is-on { opacity: 1; }
    .picker__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--cyan-400); color: var(--cyan-ink); font-size: 12px; font-weight: 800; }
    .picker__strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; height: 34px; overflow: hidden; border-radius: 8px; }
    .picker__strip > * { height: 100%; }
    .picker__range { display: block; margin-top: -40px; }
    .picker__range input { width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
    .picker__range input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
    .picker__range input::-moz-range-track { height: 40px; background: transparent; }
    .picker__range input::-webkit-slider-thumb { -webkit-appearance: none; width: 12.5cqi; height: 40px; border-radius: 8px; border: 3px solid var(--cyan-400); background: rgb(61 220 255 / .12); box-shadow: 0 0 0 9999px rgb(5 6 7 / .55), var(--glow-cyan); }
    .picker__range input::-moz-range-thumb { width: 12.5cqi; height: 34px; border-radius: 8px; border: 3px solid var(--cyan-400); background: rgb(61 220 255 / .12); }
    .picker__range input:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 8px; }
    .picker__strip { clip-path: inset(0 round 8px); }

    /* replace the file */
    .swap { display: grid; gap: 8px; }
    .swap__file, .swap__link { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--white-a4); color: var(--text-2); font-size: 13px; font-weight: 600; }
    .swap__file span, .swap__link code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .swap__file .i, .swap__link .i { width: 16px; height: 16px; }
    .swap__file--old { opacity: .45; text-decoration: line-through; }
    .swap__file--new { background: var(--cyan-a10); color: var(--text); }
    .swap__file--new .i { color: var(--cyan-300); }
    .swap__file em, .swap__link em { font-size: 11.5px; font-style: normal; font-weight: 800; color: var(--cyan-300); }
    .swap__link { background: var(--surface-ink); border: 1px dashed var(--line-3); }
    .swap__link code { color: var(--cyan-200); font-family: var(--font-mono); font-size: 12px; }
    .swap__link em { color: var(--green-400); }

    /* downloads */
    .dl { display: grid; gap: 8px; }
    .dl li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--white-a4); }
    .dl .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--cyan-a10); color: var(--cyan-300); }
    .dl b { display: block; color: var(--text); font-size: 13.5px; }
    .dl small { color: var(--text-3); font-size: 12px; }
    .dl em { color: var(--text-3); font-size: 11.5px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

    /* API */
    .code { margin: 0; padding: 16px; overflow-x: auto; border-radius: var(--r-panel); background: var(--surface-film); border: 1px solid var(--line); color: var(--text-2); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; white-space: pre; }
    .code__k { color: var(--cyan-300); font-weight: 700; }
    .code__s { color: var(--violet-300); }
    .code__c { color: var(--green-400); }

    .details .cta-row { justify-content: center; }

    @media (max-width: 1000px) {
        .bento { grid-template-columns: 1fr 1fr; }
        .tile--privacy, .tile--thumbs { grid-column: span 2; }
        .tile--replace, .tile--files { grid-column: span 1; }
        .tile--api { grid-column: span 2; }
    }
    @media (max-width: 640px) {
        .bento { grid-template-columns: 1fr; gap: 16px; }
        .tile, .tile--privacy, .tile--thumbs, .tile--replace, .tile--files, .tile--api { grid-column: auto; padding: 22px 18px; }
    }
}
