/* gospel.to web apps page (/web): Web Apps Spec 1c, "Spotlight + index".
   A title row, a spotlight card that turns through four apps, then the
   filters in a sidebar beside the list of every web app. Loads on top of
   app.css, home1a.css and browse-dark.css (tokens, header, footer). */

.wa{width:min(var(--max),100% - 128px);margin:0 auto;padding:48px 0 120px}
.wa p{margin:0}

/* ---------- title row: the breadcrumb, and the title 14px under it ---------- */
.wa-bc{font-size:14px;line-height:1.4;color:rgba(244,243,239,.6);text-transform:lowercase}
.wa-bc a{color:inherit;transition:color .2s}
.wa-bc a:hover{color:var(--ink)}
.wa-bc span{margin:0 8px}
.wa-h1{margin:14px 0 0;font-family:var(--serif);font-weight:300;font-size:72px;line-height:.95;letter-spacing:-.04em;color:var(--ink)}

/* ---------- on load: the breadcrumb, the title and the spotlight rise into
   place, each after its --rd delay (RISE_JS adds .in). The first page of a
   visit only: later pages open at once (app.css). 1%, not 0: see home1a.css.
   On a touch screen, without the blur and with a shorter rise. ---------- */
.wa .anim-rise{opacity:.01;translate:0 40px;filter:blur(12px);
  transition:opacity 1.4s var(--ease) var(--rd,0ms),translate 1.8s var(--ease) var(--rd,0ms),filter 1.4s var(--ease) var(--rd,0ms)}
.wa .anim-rise.in{opacity:1;translate:0 0;filter:none}
@media (hover:none) and (pointer:coarse){
  .wa .anim-rise{translate:0 24px;filter:none;transition:opacity .9s var(--ease) var(--rd,0ms),translate 1.1s var(--ease) var(--rd,0ms)}
}

/* ---------- the spotlight: 1152 x 560, one app at a time ---------- */
.wa-spot{position:relative;height:560px;margin-top:36px;border-radius:32px;background:#0f0f11;overflow:hidden;isolation:isolate}
.wa-spot::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:none}
/* the glow: the app's icon, 800px, blurred, 480px from the card's left and
   140px above its top (anchored at the right, so a narrower card keeps it there) */
.wa-glows{position:absolute;inset:0;z-index:0;pointer-events:none}
.wa-glow{position:absolute;right:-128px;top:-140px;width:800px;height:800px;object-fit:cover;filter:blur(100px) saturate(1.5);opacity:0;transition:opacity 1.2s ease}
.wa-glow.on{opacity:.92}
.wa-glow-tile.on{opacity:.35}
/* the scrim keeps the text side dark while the glow shows at the right, and
   a shade along the bottom keeps the segments readable over a bright glow */
.wa-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(0deg,rgba(15,15,17,.62),rgba(15,15,17,0) 170px),linear-gradient(90deg,#0f0f11 26%,rgba(15,15,17,.55) 56%,rgba(15,15,17,.08))}
.wa-slides{position:absolute;inset:0;z-index:2}
.wa-slide{position:absolute;inset:0;visibility:hidden}
.wa-slide.on{visibility:visible}
/* the text column: 56px from the top, 64px from the left, up to 540px */
.wa-text{position:absolute;left:64px;top:56px;width:540px;max-width:calc(100% - 128px)}
.wa-pill{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  font-size:12px;font-weight:600;line-height:1;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,243,239,.56);white-space:nowrap}
.wa-pill .wa-dot{margin:0 6px}
.wa-name{margin:22px 0 0;font-family:var(--serif);font-weight:300;font-size:56px;line-height:1.02;letter-spacing:-.035em;color:var(--ink);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:balance}
.wa .wa-desc{margin-top:16px;font-size:19px;line-height:1.5;color:rgba(244,243,239,.8);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-wrap:pretty}
.wa .wa-meta{margin-top:18px;font-size:15px;line-height:1.5;color:rgba(244,243,239,.64)}
.wa-dot{margin:0 7px;color:rgba(244,243,239,.3)}
.wa-mf{white-space:nowrap}   /* a line breaks between the meta row's parts, not inside one */
.wa-rate{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--ink);vertical-align:top}
.wa-rate svg,.wa-rt svg{flex:none;color:oklch(0.85 0.12 88)}
.wa-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.wa-open,.wa-more{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;
  font-family:var(--sans);font-size:15px;font-weight:600;line-height:1;white-space:nowrap;transition:background-color .2s,color .2s}
.wa-open{background:var(--ink);color:#0a0a0a}
.wa-open:hover{background:#fff}
.wa-open svg{flex:none}
.wa-more{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:var(--ink)}
.wa-more:hover{background:rgba(255,255,255,.1)}
/* the icon: a 220px tile, 150px from the right and 104px from the top; one
   saved smaller than 128px is drawn at 128px in the same space */
.wa-art{position:absolute;right:150px;top:104px;width:220px;height:220px;display:grid;place-items:center}
.wa-icon{display:block;width:220px;height:220px;border-radius:50px;object-fit:cover;box-shadow:0 60px 100px -36px rgba(0,0,0,.9)}
img.wa-icon.wa-small{width:128px;height:128px;border-radius:29px}
.wa-tile{display:grid;place-items:center;font-family:var(--serif);font-weight:300;line-height:1;user-select:none}
.wa-icon.wa-tile{display:grid;font-size:132px}
/* a slide's text rises 14px as it fades in, its icon 24px while it grows from 94% */
.wa-slide .wa-text{opacity:0;translate:0 14px}
.wa-slide.on .wa-text{opacity:1;translate:0 0;transition:opacity .7s ease,translate 1s var(--ease)}
.wa-slide .wa-art{opacity:0;translate:0 24px;scale:.94}
.wa-slide.on .wa-art{opacity:1;translate:0 0;scale:1;transition:opacity .8s ease,translate 1.2s var(--ease),scale 1.2s var(--ease)}

/* the segments: four equal columns, 64px in from each side and 32px up from
   the bottom; a 2px track that fills over the slide's 7 seconds */
.wa-bar{position:absolute;left:64px;right:64px;bottom:32px;z-index:3}
.wa-segs{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:24px}
.wa-seg{display:block;min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.wa-track{display:block;position:relative;height:2px;border-radius:1px;background:rgba(255,255,255,.16);overflow:hidden}
.wa-fill{position:absolute;inset:0;background:var(--ink);transform-origin:0 50%;transform:scaleX(0)}
.wa-seg.done .wa-fill{transform:scaleX(1)}
.wa-seg.run .wa-fill{animation:wa-fill 7s linear forwards}
.wa-spot.paused .wa-seg.run .wa-fill{animation-play-state:paused}
@keyframes wa-fill{to{transform:scaleX(1)}}
.wa-seg-in{display:flex;align-items:center;gap:12px;margin-top:14px;min-width:0}
.wa-mini{flex:none;display:block;width:30px;height:30px;border-radius:8px;object-fit:cover}
.wa-mini.wa-tile{display:grid;font-size:16px}
.wa-seg-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.wa-kind{font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,243,239,.56);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa-seg-n{font-size:14px;line-height:1.3;color:rgba(244,243,239,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.wa-seg:hover .wa-seg-n{color:rgba(244,243,239,.8)}
.wa-seg[aria-current="true"] .wa-seg-n{color:var(--ink)}
/* pause and play, beside the segments in the card's right margin */
.wa-pause{position:absolute;right:-48px;bottom:0;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:var(--ink);cursor:pointer;transition:background-color .2s}
.wa-pause:hover{background:rgba(255,255,255,.14)}
.wa-pause svg{display:block}
.wa-pause .wa-i-play,.wa-pause.held .wa-i-pause{display:none}
.wa-pause.held .wa-i-play{display:block}

/* ---------- browse: a 232px sidebar, 56px, then the list ---------- */
.wa-browse{display:grid;grid-template-columns:232px minmax(0,1fr);gap:56px;align-items:start;margin-top:88px}
/* the sidebar sticks 24px under the header while the list scrolls */
.wa-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:32px;
  /* taller than the window, it scrolls on its own, so every filter stays in reach (with room for the focus rings) */
  max-height:calc(100vh - 120px);overflow-y:auto;margin:-4px;padding:4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.wa-search{position:relative;margin:0}
.wa-search svg{position:absolute;left:14px;top:14px;color:rgba(244,243,239,.56);pointer-events:none}
.wa-search input{display:block;width:100%;height:44px;margin:0;padding:0 14px 0 40px;border:0;border-radius:12px;background:#111113;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
  font-family:var(--sans);font-size:15px;color:var(--ink);transition:box-shadow .2s}
@media (pointer:coarse){ .wa-search input{font-size:16px} }   /* 16px, so a phone does not zoom in on it */
.wa-search input::placeholder{color:rgba(244,243,239,.45)}
.wa-search input:focus{box-shadow:inset 0 0 0 1px rgba(255,255,255,.26)}
.wa .wa-gh{margin:0 0 10px;font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.16em;text-transform:uppercase;color:rgba(244,243,239,.56)}
.wa-opts{display:flex;flex-direction:column;gap:2px}
.wa-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;height:40px;margin:0;padding:0 12px;border:0;border-radius:10px;background:transparent;
  font-family:var(--sans);font-size:15px;font-weight:500;line-height:1;color:rgba(244,243,239,.72);text-align:left;cursor:pointer;transition:background-color .2s,color .2s}
.wa-opt:hover{background:rgba(255,255,255,.045);color:var(--ink)}
.wa-opt[aria-pressed="true"]{background:rgba(255,255,255,.09);color:var(--ink)}
.wa-c{flex:none;font-size:13px;font-weight:400;color:rgba(244,243,239,.56)}
/* Uses AI: a switch, 40 x 24 */
.wa-aiw{display:flex;align-items:center;justify-content:space-between;gap:12px;height:40px;padding:0 12px}
.wa-ai-l{font-size:15px;font-weight:500;color:rgba(244,243,239,.72);cursor:pointer;user-select:none}
.wa-sw{position:relative;flex:none;width:40px;height:24px;margin:0;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);cursor:pointer;transition:background-color .3s,box-shadow .3s}
.wa-sw i{position:absolute;left:4px;top:4px;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:translate .3s var(--ease),background-color .3s}
.wa-sw[aria-checked="true"]{background:var(--ink);box-shadow:none}
.wa-sw[aria-checked="true"] i{translate:16px 0;background:#0a0a0a}

/* ---------- the list ---------- */
.wa-lhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:20px}
.wa-lh{margin:0;font-family:var(--serif);font-weight:300;font-size:40px;line-height:1;letter-spacing:-.03em;color:var(--ink)}
.wa .wa-lcount{font-size:14px;line-height:1.4;color:rgba(244,243,239,.6)}
/* the rows reach 12px past the list on both sides, so the icons line up with
   the heading while the hover fill has room; the rules stay the list's width */
.wa-rows{list-style:none;margin:0 -12px;padding:0}
.wa-rows::after{content:"";display:block;height:1px;margin:0 12px;background:rgba(255,255,255,.08)}
.wa-li[hidden],.wa-rows[hidden]{display:none}
.wa-row{position:relative;display:grid;grid-template-columns:52px 220px minmax(0,1fr) 56px 100px;gap:24px;align-items:center;padding:16px 12px;border-radius:12px;transition:background-color .25s}
.wa-row::before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:rgba(255,255,255,.08)}
.wa-row:hover{background:rgba(255,255,255,.035)}
.wa-ic{display:block;width:52px;height:52px;border-radius:12px;object-fit:cover}
.wa-ic.wa-tile{display:grid;font-size:26px}
.wa-nm{display:flex;flex-direction:column;gap:3px;min-width:0}
.wa-nl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.wa-n{font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.005em;color:var(--ink)}
.wa-b{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;font-size:10.5px;font-weight:700;line-height:1}
.wa-b-new{background:var(--ink);color:#0a0a0a;text-transform:uppercase;letter-spacing:.08em}
.wa-b-ai{background:oklch(0.36 0.06 85);color:oklch(0.9 0.12 90);letter-spacing:.06em}
/* under the name: maker and category under All, "by" and the maker inside a category */
.wa-mk{font-size:14px;line-height:1.35;color:rgba(244,243,239,.58)}
.wa-mk-cat,.wa-in-cat .wa-mk-all{display:none}
.wa-in-cat .wa-mk-cat{display:inline}
.wa-ds{display:flex;flex-direction:column;gap:4px;min-width:0}
.wa-d{font-size:15px;line-height:1.45;color:rgba(244,243,239,.76)}
.wa-pl{font-size:13px;line-height:1.4;color:rgba(244,243,239,.56)}
.wa-rt{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.wa-rt-none{color:rgba(244,243,239,.4)}
.wa-pr{font-size:14px;font-weight:500;line-height:1.3;color:rgba(244,243,239,.88);text-align:right}
.wa-empty{padding:56px 12px 24px;text-align:center}
.wa-empty p{font-size:17px;line-height:1.5;color:rgba(244,243,239,.72)}
.wa-clear{height:44px;margin-top:18px;padding:0 20px;border:0;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  font-family:var(--sans);font-size:15px;font-weight:600;color:var(--ink);cursor:pointer;transition:background-color .2s}
.wa-clear:hover{background:rgba(255,255,255,.1)}

/* ---------- reduced motion: the spotlight does not turn (the active segment
   shows full, the segments still switch), and slides fade without moving ---------- */
@media (prefers-reduced-motion:reduce){
  .wa .anim-rise{opacity:1;translate:none;filter:none;transition:none}
  .wa-seg.run .wa-fill{animation:none;transform:scaleX(1)}
  .wa-slide .wa-text,.wa-slide .wa-art,.wa-slide.on .wa-text,.wa-slide.on .wa-art{translate:none;scale:none}
  .wa-pause{display:none}
}

/* ---------- narrower windows ---------- */
@media (max-width:1199px){
  .wa-art{right:64px}
  .wa-text{width:min(540px,calc(100% - 412px))}
  /* a row in two lines: the description under the name */
  .wa-row{grid-template-columns:52px minmax(0,1fr) 56px 96px;grid-template-areas:"ic nm rt pr" ". ds ds ds";row-gap:6px;align-items:start}
  .wa-ic{grid-area:ic}.wa-nm{grid-area:nm;align-self:center}.wa-ds{grid-area:ds}.wa-rt{grid-area:rt;align-self:center}.wa-pr{grid-area:pr;align-self:center}
}
/* small laptops and tablets: the card grows with its text, the icon in a
   column at the right; the segments name only their kind, pause beside them */
@media (max-width:1100px){
  .wa-spot{height:auto;padding:48px 48px 32px}
  .wa-slides{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr)}
  .wa-slide{position:relative;inset:auto;grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:40px;align-items:center}
  .wa-text{position:static;width:auto;max-width:540px}
  .wa-art{position:relative;right:auto;top:auto;width:200px;height:200px}
  .wa-icon{width:200px;height:200px;border-radius:46px}
  .wa-icon.wa-tile{font-size:120px}
  .wa-bar{position:relative;left:auto;right:auto;bottom:auto;display:flex;align-items:flex-end;gap:20px;margin-top:40px}
  .wa-segs{flex:1;min-width:0;gap:16px}
  .wa-seg-in{margin-top:12px}
  .wa-mini,.wa-seg-n{display:none}
  .wa-pause{position:relative;right:auto;bottom:auto;flex:none}
}
@media (max-width:1000px){
  .wa{width:calc(100% - 80px)}
  .wa-h1{font-size:60px}
  .wa-slide{grid-template-columns:minmax(0,1fr) 168px;gap:32px}
  .wa-art{width:168px;height:168px}
  .wa-icon{width:168px;height:168px;border-radius:38px}
  .wa-icon.wa-tile{font-size:100px}
  .wa-name{font-size:46px}
  .wa .wa-desc{font-size:17px}
  .wa-browse{grid-template-columns:200px minmax(0,1fr);gap:40px;margin-top:72px}
}
/* tablets and phones: the filters sit above the list, each group a row that scrolls sideways */
@media (max-width:820px){
  .wa-browse{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:56px}
  .wa-side{position:static;gap:18px;max-height:none;overflow:visible}
  .wa-opts{flex-direction:row;gap:8px;margin:0 -40px;padding:0 40px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .wa-opts::-webkit-scrollbar{display:none}
  .wa-opt{flex:none;gap:10px;padding:0 14px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
  .wa-opt[aria-pressed="true"]{box-shadow:none}
  .wa-aiw{justify-content:flex-start;gap:14px;padding:0}
}
@media (max-width:720px){
  .wa{width:calc(100% - 40px);padding:32px 0 88px}
  .wa-h1{font-size:48px}
  /* the spotlight stacks: icon, text, then the segments and pause */
  .wa-spot{height:auto;margin-top:28px;padding:24px 20px 20px;border-radius:24px}
  .wa-slides{position:relative;inset:auto;display:grid}
  .wa-slide{position:relative;inset:auto;grid-area:1/1;display:flex;flex-direction:column;align-items:stretch;gap:0}
  .wa-art{position:relative;right:auto;top:auto;order:-1;align-self:flex-start;width:88px;height:88px;margin-bottom:20px;place-items:start}
  .wa-icon,img.wa-icon.wa-small{width:88px;height:88px;border-radius:20px;box-shadow:0 30px 60px -24px rgba(0,0,0,.9)}
  .wa-icon.wa-tile{font-size:52px}
  .wa-text{position:static;width:auto;max-width:none}
  .wa-pill{height:28px;font-size:11px}
  .wa-name{margin-top:16px;font-size:38px}
  .wa .wa-desc{margin-top:12px;font-size:16px;-webkit-line-clamp:5}
  .wa .wa-meta{margin-top:14px;font-size:14px}
  .wa-btns{margin-top:22px;gap:10px}
  .wa-open,.wa-more{flex:1 1 auto;height:46px;padding:0 18px}
  .wa-glow{right:auto;left:-200px;top:-260px;width:560px;height:560px;filter:blur(80px) saturate(1.5)}
  .wa-scrim{background:linear-gradient(180deg,rgba(15,15,17,.25) 0,rgba(15,15,17,.8) 150px,#0f0f11 260px)}
  .wa-bar{position:relative;left:auto;right:auto;bottom:auto;display:flex;align-items:flex-end;gap:14px;margin-top:26px}
  .wa-segs{flex:1;min-width:0;gap:10px}
  .wa-seg-t{display:none}
  .wa-seg-in{margin-top:12px}
  .wa-mini{display:block}
  .wa-mini.wa-tile{display:grid}
  .wa-pause{position:relative;right:auto;bottom:auto;flex:none}
  .wa-opts{margin:0 -20px;padding:0 20px}
  .wa-lh{font-size:34px}
  /* a row: the price and rating at the right of the name, the description under it */
  .wa-rows{margin:0 -8px}
  .wa-rows::after{margin:0 8px}
  .wa-row{grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"ic nm pr" "ic nm rt" ". ds ds";gap:4px 14px;padding:14px 8px}
  .wa-row::before{left:8px;right:8px}
  .wa-nm{align-self:start}
  .wa-rt,.wa-pr{justify-self:end;align-self:start}
  .wa-ds{margin-top:6px}
}
