/* ============================================================
   Use Cases — approved "learn by watching" tutorials design.
   Ported from the approved mockups (index.html, category.html,
   watch.html) in Sulla Files, Projects/sulladesktop-website/mockups/
   use-cases-tutorials/. Every rule is scoped under .uct so it can
   never leak onto any other page — the mockup's own sticky header
   and small search form are intentionally dropped here; the real
   site header (css/site.css) stays instead.

   Spacing rhythm (per Jonathon's review): container matches the
   header's .wrap exactly (1160px, same left edge); 40px/32px top
   space under the header; 64px/40px between major sections; 18px
   heading-to-content; 24px/32px card grid gaps; 12px below a card
   thumbnail and 4px between card text lines; boxes/banners padded
   at least 28px 32px (20px on phones); 72px before the footer.
   ============================================================ */

.uct, .uct * { box-sizing: border-box; }
.uct { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #0f1419; background: #fff; }
.uct a { color: inherit; text-decoration: none; }
.uct .wrap { max-width: 1160px; margin: 0 auto; padding: 40px 24px 72px; }

/* chips, headings, cards (shared by every tutorial page) */
.uct .chips { display: flex; flex-wrap: wrap; gap: 10px; overflow: auto; padding: 4px 0; margin: 0 0 64px; }
.uct .chip { white-space: nowrap; padding: 7px 14px; border-radius: 10px; background: #f1f3f5; font-weight: 500; font: inherit; border: 0; cursor: pointer; color: #0f1419; }
.uct .chip.on { background: #0f1419; color: #fff; }
.uct h2 { font-size: 20px; margin: 0 0 18px; }
.uct .shelfhead { display: flex; justify-content: space-between; align-items: baseline; margin: 64px 0 18px; }
.uct .shelfhead h2 { margin: 0; }
.uct .shelfhead a { color: #5096b3; font-weight: 600; }
.uct .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 24px; }
.uct .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 24px; overflow: auto; }
.uct .card { display: block; background: none; border: 0; box-shadow: none; border-radius: 0; }
.uct .th { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #e9edf1; }
.uct .th img, .uct .th video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.uct .card:hover .th img { transform: scale(1.03); }
.uct .th img.shot, .uct .player img.shot { object-fit: cover; object-position: top left; background: #e9edf1; }
.uct .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.uct .soon { position: absolute; left: 8px; bottom: 8px; background: #fff; color: #5096b3; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.uct .meta { display: flex; gap: 12px; padding: 12px 0 0; align-items: flex-start; }
.uct .av { width: 36px; height: 36px; flex: none; margin-top: 2px; border-radius: 50%; background: #e7f1f6; color: #3d7f9a; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.uct .info { flex: 1; min-width: 0; }
.uct h3 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uct .uc { margin: 0 0 4px; color: #4a5560; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uct .sub { margin: 0; color: #6e7681; font-size: 13px; line-height: 1.4; }
.uct .btn { display: inline-flex; align-items: center; gap: 8px; background: #5096b3; color: #fff; padding: 10px 18px; border-radius: 22px; font-weight: 600; border: 0; cursor: pointer; font: inherit; }
.uct .btn.big { font-size: 18px; padding: 16px 30px; }

/* watch page (player + chapters + up next rail) */
.uct .watch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; max-width: 1160px; margin: 0 auto; padding: 40px 24px 0; }
.uct .player { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.uct .player img, .uct .player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.uct .player img { opacity: .95; }
.uct .play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; border: 0; background: none; padding: 0; width: 100%; }
.uct .play span { width: 72px; height: 72px; border-radius: 50%; background: rgba(80,150,179,.95); display: grid; place-items: center; color: #fff; }
.uct .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.3); }
.uct .bar i { display: block; width: 32%; height: 100%; background: #5096b3; }
.uct .wt h1 { font-size: 22px; margin: 20px 0 4px; }
.uct .wt .uc { font-size: 15px; color: #4a5560; -webkit-line-clamp: 1; }
.uct .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.uct .ghost { border: 1px solid #d0d7de; padding: 9px 16px; border-radius: 20px; font-weight: 600; background: #fff; font: inherit; cursor: pointer; color: #0f1419; }
.uct .box { background: #f6f8fa; border-radius: 12px; padding: 28px 32px; margin-top: 20px; }
.uct .box .sub { margin-top: 8px; }
.uct .ch { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #e6e9ee; }
.uct .ch:first-child { border: 0; }
.uct .ch time { color: #5096b3; font-weight: 700; min-width: 44px; }
.uct .ch.on { background: #e7f1f6; margin: 0 -12px; padding: 10px 12px; border-radius: 8px; }
.uct .transcript { white-space: pre-line; color: #4a5560; }
.uct .upnext h2 { margin-bottom: 18px; }
.uct .upnext .card { display: grid; grid-template-columns: 168px 1fr; gap: 12px; margin-bottom: 16px; }
.uct .upnext .th { border-radius: 8px; }
.uct .upnext .meta { padding: 0; }
.uct .upnext .av { display: none; }
.uct .upnext h3 { font-size: 14px; }
.uct-below { margin-top: 64px; }
@media (max-width: 1000px) { .uct .watch { grid-template-columns: 1fr; } }

/* feature explainer + topic tiles + crumbs/banner (index + category) */
.uct .feature { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: center; }
.uct .feature .th { border-radius: 16px; box-shadow: 0 18px 50px rgba(15,20,25,.14); }
.uct .feature .play2 { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; border: 0; background: none; width: 100%; padding: 0; }
.uct .feature .play2 span { width: 84px; height: 84px; border-radius: 50%; background: rgba(80,150,179,.95); display: grid; place-items: center; color: #fff; }
.uct .feature.playing .play2, .uct .feature.playing .dur { display: none; }
.uct .kicker { color: #5096b3; font-weight: 700; letter-spacing: .08em; font-size: 12px; }
.uct .feature h1 { font-size: 42px; line-height: 1.1; margin: 8px 0 12px; }
.uct .feature p { color: #4a5560; font-size: 17px; }
.uct .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin: 20px 0 0; }
.uct .tile { position: relative; border-radius: 0; overflow: visible; background: none; color: #0f1419; display: block; }
.uct .tile img { display: block; aspect-ratio: 16/9; height: auto; width: 100%; opacity: 1; border-radius: 12px; background: #e9edf1; transition: box-shadow .2s; object-fit: cover; }
.uct .tile .front img { object-fit: cover; object-position: top left; }
.uct .tile.pl .l1, .uct .tile.pl .l2 { background-position: top left; }
.uct .tile:hover img { box-shadow: 0 8px 24px rgba(15,20,25,.14); }
.uct .tile div { position: static; background: none; padding: 12px 2px 0; }
.uct .tile h3 { color: #0f1419; font-size: 18px; margin: 0 0 4px; }
.uct .tile p { margin: 0; font-size: 14px; color: #4a5560; }
.uct .tile:hover h3 { color: #2f7a99; }
.uct .alltopics { display: block; text-align: center; margin: 16px 0 0; color: #5096b3; font-weight: 600; }
.uct .ask { text-align: center; margin-top: 64px; }
.uct .ask h2 { font-size: 30px; margin: 0; }
.uct .ask p { color: #6e7681; margin: 8px 0 0; }
.uct .starters { margin-top: 64px; }
.uct .starters .row { grid-auto-columns: 1fr; overflow: visible; }
.uct .shelf { margin-top: 64px; }
.uct .shelf .shelfhead { border-top: 1px solid #e6e9ee; padding-top: 20px; margin-top: 0; }
.uct .shelf .shelfhead p { margin: 4px 0 0; color: #6e7681; }
.uct .topiclist { display: flex; flex-wrap: wrap; gap: 10px; }
.uct .banner { display: flex; gap: 20px; align-items: center; padding: 28px 32px; border-radius: 16px; background: linear-gradient(120deg, #e7f1f6, #fff); border: 1px solid #dbe9f0; margin: 0 0 64px; }
.uct .banner .big { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; background: #e7f1f6; }
.uct .banner .big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uct .banner h1 { margin: 0; font-size: 28px; }
.uct .banner p { margin: 4px 0 0; color: #4a5560; }
.uct .crumbs { color: #6e7681; font-size: 14px; margin: 0 0 16px; }
.uct .crumbs a { color: #5096b3; }
.uct .wrap > h2 { margin-top: 64px; }
@media (max-width: 760px) {
  .uct .feature { grid-template-columns: 1fr; }
  .uct .feature h1 { font-size: 28px; }
  .uct .starters .row { grid-auto-columns: minmax(260px, 85%); overflow: auto; }
}
@media (max-width: 900px) { .uct .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uct .tiles { grid-template-columns: 1fr; } .uct .feature h1 { font-size: 30px; } }

/* big pill search + autosuggest + popular chips (home page only) */
.uct .find { max-width: 860px; margin: 64px auto 0; text-align: center; }
.uct .find h2 { font-size: 32px; margin: 0 0 18px; line-height: 1.25; }
.uct .find h2 span { display: block; color: #4a5560; font-weight: 500; font-size: 22px; margin-top: 6px; }
.uct .sbox { position: relative; display: flex; align-items: center; background: #fff; border: 2px solid #cfd8df; border-radius: 999px; padding: 0 32px; height: 68px; box-shadow: 0 10px 34px rgba(15,20,25,.10); transition: border-color .15s; }
.uct .sbox:focus-within { border-color: #5096b3; box-shadow: 0 0 0 5px rgba(80,150,179,.18), 0 10px 34px rgba(15,20,25,.10); }
.uct .sbox .mag { display: inline-flex; color: #5096b3; margin-right: 12px; flex: none; }
.uct .sbox input { flex: 1; background: none; border: 0; outline: 0; color: #0f1419; font-size: 20px; height: 100%; font-family: inherit; }
.uct .sbox kbd { font-size: 12px; color: #6e7681; border: 1px solid #cfd8df; border-radius: 6px; padding: 3px 8px; }
.uct #uct-sugg { position: absolute; left: 0; right: 0; top: 76px; z-index: 20; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid #dbe2e8; border-radius: 18px; text-align: left; box-shadow: 0 20px 50px rgba(15,20,25,.16); }
.uct #uct-sugg li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.uct #uct-sugg li.on, .uct #uct-sugg li[data-i]:hover { background: #eef5f9; }
.uct #uct-sugg .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(80,150,179,.16); color: #5096b3; display: grid; place-items: center; }
.uct #uct-sugg b { display: block; color: #0f1419; font-weight: 600; }
.uct #uct-sugg small { color: #6e7681; }
.uct #uct-sugg mark { background: none; color: #2f7a99; }
.uct #uct-sugg li.all { color: #5096b3; font-weight: 600; border-top: 1px solid #e6ebef; border-radius: 0 0 12px 12px; margin-top: 4px; }
.uct #uct-sugg li.none { color: #6e7681; cursor: default; }
.uct #uct-sugg li.none a { color: #5096b3; }
.uct .pop { margin-top: 16px; color: #6e7681; font-size: 14px; }
.uct .pop button { background: #fff; border: 1px solid #cfd8df; color: #0f1419; border-radius: 999px; padding: 6px 13px; margin: 4px; cursor: pointer; font: inherit; }
.uct .pop button:hover { border-color: #5096b3; color: #2f7a99; }
@media (max-width: 760px) { .uct .sbox { height: 58px; padding: 0 24px; } .uct .sbox input { font-size: 17px; } .uct .sbox kbd { display: none; } .uct .find h2 { font-size: 25px; } .uct .find h2 span { font-size: 18px; } }

/* install banner */
.uct .install { margin: 64px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 40px; border: 1px solid #dbe9f0; border-radius: 22px; background: linear-gradient(120deg, #e7f1f6, #fff); }
.uct .install h2 { margin: 0 0 6px; font-size: 28px; }
.uct .install p { margin: 0; color: #4a5560; max-width: 560px; }
.uct .install .dl { text-align: center; flex: none; }
.uct .install .alt { margin-top: 10px; font-size: 14px; color: #6e7681; }
.uct .install .alt a { color: #2f7a99; }
@media (max-width: 760px) { .uct .install { flex-direction: column; text-align: center; padding: 28px 24px; } }

/* search results (crawlable /use-cases?q=) */
.uct .results-head { margin: 64px 0 18px; }
.uct .results-head h2 { margin: 0; }
.uct .results-head p { color: #6e7681; margin: 4px 0 0; }
.uct .empty { padding: 30px 32px; text-align: center; color: #6e7681; border: 1px dashed #d0d7de; border-radius: 14px; }
.uct .empty a { color: #5096b3; }

@media (max-width: 760px) {
  .uct .wrap { padding: 32px 16px 72px; }
  .uct .watch { padding: 32px 16px 0; }
  .uct .starters, .uct .shelf, .uct .install, .uct .find, .uct .ask, .uct .results-head, .uct .wrap > h2 { margin-top: 40px; }
  .uct .chips, .uct .banner { margin-top: 0; margin-bottom: 40px; }
  .uct .shelfhead { margin-top: 40px; }
  .uct .shelf .shelfhead { margin-top: 0; }
  .uct .box { padding: 20px; }
  .uct .banner { flex-direction: column; text-align: center; padding: 20px; }
}

@media (max-width: 390px) {
  .uct .upnext .card { grid-template-columns: 120px 1fr; }
}

/* Topic tiles as YouTube-style playlists: stacked thumbnails. */
.uct .tile.pl .stack { position: relative; display: block; padding-top: 12px; }
.uct .tile.pl .l1, .uct .tile.pl .l2 { position: absolute; display: block; height: 30px; border-radius: 12px 12px 0 0; background: #cfdde6 center/cover no-repeat; }
.uct .tile.pl .l2 { top: 0; left: 8%; right: 8%; filter: saturate(.6) brightness(.82); opacity: .55; }
.uct .tile.pl .l1 { top: 6px; left: 4%; right: 4%; filter: saturate(.75) brightness(.9); opacity: .8; border-top: 1px solid #fff; }
.uct .tile.pl .front { position: relative; display: block; border-radius: 12px; overflow: hidden; border-top: 2px solid #fff; }
.uct .tile.pl .front img { border-radius: 0; }
.uct .tile.pl .plchip { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.uct .tile.pl .plhover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; opacity: 0; transition: opacity .15s; }
.uct .tile.pl:hover .plhover, .uct .tile.pl:focus-visible .plhover { opacity: 1; }
.uct .tile.pl:hover img { box-shadow: none; }
.uct .tile.pl .view { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #6e7681; }
.uct .tile.pl:hover .view { color: #2f7a99; }

/* No emoji on the use-case pages: hide the sales-copy icon glyphs. */
.uct-below .pkg-ic, .uct-below .v3-seal { display: none; }

/* Watch page, YouTube style: title, channel row, one description, FAQ. */
.uct .wt h1 { font-size: 22px; line-height: 1.3; margin: 20px 0 14px; }
.uct .chan { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uct .chan .av { width: 40px; height: 40px; border-radius: 50%; background: #5096b3; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.uct .chan .who { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.uct .chan .who span { font-size: 13px; color: #6e7681; }
.uct .chan .actions { margin: 0; }
.uct .chan .btn { margin: 0; padding: 9px 18px; border-radius: 20px; }
.uct .wline { margin: 16px 0 0; color: #4a5560; font-size: 15px; }
.uct .desc { background: #f2f4f6; border-radius: 12px; padding: 16px 20px; margin-top: 16px; }
.uct .desc-body { font-size: 15px; line-height: 1.6; color: #1f2933; }
.uct .desc-body > :first-child { margin-top: 0; }
.uct .desc-body p { margin: 0 0 12px; }
.uct .desc-body .lead { font-weight: 600; font-size: 16px; }
.uct .desc-body h3 { font-size: 15px; margin: 22px 0 6px; }
.uct .desc-body ul, .uct .desc-body ol { margin: 0 0 12px; padding-left: 20px; }
.uct .desc-body li { margin: 0 0 6px; }
.uct .desc-body .sig { font-weight: 600; }
.uct .desc-cta { margin: 20px 0 4px !important; }
.uct .desc.is-collapsed .desc-body { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.uct .desc-more { background: none; border: 0; padding: 8px 0 0; font: inherit; font-weight: 600; cursor: pointer; color: #0f1419; }
.uct .wfaq { margin: 36px 0 64px; }
.uct .wfaq h2 { font-size: 18px; margin: 0 0 8px; }
.uct .wfaq details { border-top: 1px solid #e6e9ee; padding: 14px 0; }
.uct .wfaq details:last-child { border-bottom: 1px solid #e6e9ee; }
.uct .wfaq summary { cursor: pointer; font-weight: 600; list-style: none; }
.uct .wfaq summary::-webkit-details-marker { display: none; }
.uct .wfaq summary::after { content: "+"; float: right; color: #6e7681; font-weight: 400; }
.uct .wfaq details[open] summary::after { content: "−"; }
.uct .wfaq details div { margin-top: 8px; color: #4a5560; line-height: 1.6; }
.uct .upnext h2 { font-size: 16px; margin: 0 0 14px; }
@media (max-width: 560px) { .uct .chan .actions { width: 100%; } .uct .chan .btn { flex: 1; text-align: center; } }

/* Watch page: three-step row between description and FAQ, then the big download CTA. */
.uct .wsteps { margin: 48px 0 0; }
.uct .wsteps h2, .uct .wfaq h2 { font-size: 20px; margin: 0 0 18px; }
.uct .wsteps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.uct .wsteps li { margin: 0; }
.uct .wsteps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e7f1f6; color: #2f7a99; font-weight: 700; margin-bottom: 12px; }
.uct .wsteps b { display: block; font-size: 16px; margin-bottom: 4px; }
.uct .wsteps p { margin: 0; color: #4a5560; line-height: 1.55; }
.uct .wfaq { margin: 56px 0 0; }
.uct .wcta { box-sizing: border-box; width: calc(100% - 48px); max-width: 1112px; margin: 72px auto 64px; padding: 64px 24px; text-align: center; background: linear-gradient(120deg, #e7f1f6, #f7fafc); border-radius: 24px; }
.uct .wcta h2 { font-size: 36px; line-height: 1.2; margin: 0 0 12px; }
.uct .wcta p { max-width: 560px; margin: 0 auto 28px; color: #4a5560; font-size: 17px; }
.uct .wcta .btn.big { font-size: 18px; padding: 16px 34px; }
.uct .wcta .alt { margin-top: 14px; font-size: 14px; color: #6e7681; }
.uct .wcta .alt a { color: #2f7a99; }
@media (max-width: 760px) { .uct .wcta { width: calc(100% - 32px); margin: 48px auto 40px; padding: 40px 20px; } .uct .wcta h2 { font-size: 26px; } }
