/* Jond_ie front page only: the index under the island. Shared parts are in pwn.css. */
/* ───── the index ───── */
main { width: min(100% - 32px, 64rem); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; }
.cats section, .install { padding-top: clamp(2.2rem, 5vw, 3.4rem); scroll-margin-top: 5rem; }
.cats section[hidden] { display: none; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.cat-head h2 { margin: 0; font: 750 clamp(1.5rem, 3.6vw, 2rem)/1.1 var(--display); letter-spacing: -.03em; }
.cat-head p { margin: 0; color: var(--muted); font-size: .98rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .1rem 1.4rem; }

/* one entry: icon, name, one line. The whole row opens it. */
.card { position: relative; display: flex; gap: .95rem; align-items: flex-start; padding: .95rem .7rem; margin: 0 -.7rem; border-radius: 18px; transition: background .2s; }
.card[hidden] { display: none; }
.card:hover { background: var(--hover); }
.card:has(.links a:first-child:focus-visible) { outline: 2.5px solid var(--act); outline-offset: 0; }
.icon { width: 52px; height: 52px; border-radius: 13px; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 6px 14px -8px rgba(0,0,0,.45); }
.icon.letter { color: #fff; font: 800 1.4rem/1 var(--display); background-image: linear-gradient(170deg, rgba(255,255,255,.16), rgba(0,0,0,.22)); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.body { min-width: 0; }
.card h3 { margin: .15rem 0 .15rem; font-size: 1.06rem; font-weight: 650; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; text-wrap: pretty; }
.card .links { height: 0; margin: 0; overflow: hidden; }
.card .links a:first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .links a:first-child:focus-visible { outline: none; }
.card .links a:not(:first-child) { display: none; }
/* status words only; what it runs on is on its own page */
.badge { font: 700 .7rem/1 var(--text); letter-spacing: .04em; text-transform: uppercase; padding: .22rem .38rem; border-radius: 5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge.new { color: var(--leaf); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--leaf) 45%, transparent); }
.badge.ios, .badge.jb { display: none; }

.install ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.4rem 2rem; }
.install li { counter-increment: s; padding-top: .6rem; color: var(--muted); font-size: .98rem; }
.install li::before { content: counter(s); display: block; font: 800 2.6rem/1 var(--display); color: var(--ink); letter-spacing: -.04em; margin-bottom: .5rem; }
.install b { color: var(--ink); }

/* ───── the island as a carousel: the repo first, then each flagship ───── */
#top .isl-body { padding-left: 0; padding-right: 0; }
.isl-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.isl-slides::-webkit-scrollbar { display: none; }
.isl-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 clamp(1rem, 5vw, 3.2rem); }
.isl-slide.feat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feat-icon { display: block; width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.2rem; box-shadow: 0 0 0 .5px rgba(255,255,255,.18), 0 10px 24px -10px rgba(0,0,0,.7); }
.island .isl-slide h2 { margin: 0; font: 800 clamp(2.7rem, 10.5vw, 5.4rem)/.92 var(--display); letter-spacing: -.04em; }
/* page dots: a 24 px target around each 7 px dot; the current one stretches */
.isl-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.3rem; }
.isl-dots { display: flex; justify-content: center; gap: 2px; }
.isl-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.isl-arrow:hover { background: rgba(255,255,255,.18); }
.isl-arrow:active { transform: scale(.92); }
.isl-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.isl-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.isl-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .35s var(--ease); }
.isl-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.32); transition: width .35s var(--ease), background .35s; }
.isl-dots button[aria-current="true"] { width: 34px; }
.isl-dots button[aria-current="true"]::before { width: 22px; background: #fff; }
.isl-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 99px; }
/* on wide screens each flagship slide shows a real XR screenshot beside its text; on phones it's left out (and not loaded) */
.isl-slide .feat-shot { display: none; }
@media (min-width: 52rem) {
  /* the text sits as one block in the middle rows; the spare height goes to the rows above and below it */
  .isl-slide.feat { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 2.5rem; }
  .isl-slide.feat > :not(.feat-shot) { grid-column: 1; }
  .isl-slide.feat > .feat-icon { grid-row: 2; }
  .isl-slide.feat > h2 { grid-row: 3; }
  .isl-slide.feat > .isl-sub { grid-row: 4; }
  .isl-slide.feat > .isl-actions { grid-row: 5; }
  .isl-slide .feat-shot { display: block; grid-column: 2; grid-row: 1 / -1; align-self: center; width: 190px; margin-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .isl-slides { scroll-behavior: auto; } }
