/* Useful Kit hub — iOS-inspired: springboard grid, grouped lists, frosted bars. Light + dark, reduced motion respected. */
:root {
  --bg: #f2f2f7; --card: #fff; --card-2: #f2f2f7; --fill: rgba(118,118,128,.12); --fill-2: rgba(118,118,128,.2);
  --ink: #1c1c1e; --ink-2: #3a3a3c; --muted: #6e6e73; --line: rgba(60,60,67,.13);
  --brand: #4f46e5; --brand-2: #0a84ff; --brand-ink: #fff; --brand-soft: rgba(79,70,229,.1); --ok: #248a3d;
  --glass: rgba(249,249,251,.72); --hero-a: #e7e9ff; --hero-b: #e6f3ff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 26px 60px rgba(40,40,90,.16);
  --spring: cubic-bezier(.34,1.56,.64,1); --ease: cubic-bezier(.22,1,.36,1); --r: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #1c1c1e; --card-2: #2c2c2e; --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.36);
    --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #98989f; --line: rgba(84,84,88,.5);
    --brand: #8b85ff; --brand-2: #64d2ff; --brand-ink: #0b0930; --brand-soft: rgba(139,133,255,.16); --ok: #30d158;
    --glass: rgba(22,22,24,.7); --hero-a: #15123a; --hero-b: #000;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.5); --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; } .narrow { max-width: 760px; }
h1, h2, .lede, .tag { text-wrap: balance; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.scrolled::before { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { border-radius: 8px; box-shadow: 0 3px 10px rgba(79,70,229,.35); transition: transform .5s var(--spring); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.hdr-link { font-weight: 600; font-size: .92rem; text-decoration: none; background: var(--fill); color: var(--ink); padding: 7px 14px; border-radius: 99px; }

/* hero */
.hero { position: relative; padding: 54px 0 34px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--hero-a), var(--hero-b) 60%, var(--bg)); }
.hero::after { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: .8;
  background: radial-gradient(30% 26% at 18% 30%, rgba(255,255,255,.7), transparent 70%), radial-gradient(26% 22% at 80% 18%, rgba(255,255,255,.55), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { .hero::after { background: radial-gradient(30% 26% at 18% 30%, rgba(139,133,255,.14), transparent 70%), radial-gradient(26% 22% at 80% 18%, rgba(100,210,255,.1), transparent 70%); } }
@keyframes drift { to { transform: translate3d(3%, 3%, 0) rotate(5deg); } }
.kicker { display: inline-block; margin: 0 0 14px; font-size: .85rem; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.7rem); line-height: 1.03; letter-spacing: -.037em; margin: 0 0 14px; font-weight: 800; max-width: 15em; }
.hl { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); margin: 0 0 8px; max-width: 40em; }

/* springboard (iOS home screen) */
.springboard { display: grid; grid-template-columns: repeat(auto-fill, 92px); gap: 22px 18px; margin: 34px 0 6px; padding: 22px; border-radius: 30px;
  background: color-mix(in srgb, var(--card) 55%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.app { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.2;
  -webkit-tap-highlight-color: transparent; }
.app .app-ic { transition: transform .45s var(--spring), box-shadow .3s; }
a.app:hover .app-ic { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 30px color-mix(in srgb, var(--c2) 45%, transparent); }
a.app:active .app-ic { transform: scale(.9); transition-duration: .12s; }
.app[aria-disabled] { color: var(--muted); }
.app-ic { display: grid; place-items: center; flex: none; border-radius: 23%; background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c2) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35); position: relative; overflow: hidden; }
.app-ic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); }
.app-ic svg { width: 62%; height: 62%; position: relative; z-index: 1; }
.app-ic.soon { background: transparent; border: 2px dashed var(--fill-2); box-shadow: none; }
.app-ic.soon svg path { stroke: var(--muted); }
.app-ic.soon::after { display: none; }

/* grouped lists */
.sh { font-size: clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing: -.025em; margin: 48px 0 14px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list li + li .row::before { content: ""; position: absolute; top: 0; left: 82px; right: 0; height: 1px; background: var(--line); }
.list.compact li + li .row::before { left: 18px; }
.row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; transition: background .15s; }
a.row:hover { background: var(--card-2); } a.row:active { background: var(--fill); }
.row.dim { opacity: .7; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-size: 1.02rem; } .row-t small { color: var(--muted); font-size: .84rem; } .row-t em { font-style: normal; color: var(--ink-2); font-size: .93rem; margin-top: 2px; }
.chev { font-style: normal; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.pill.live { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .pill.soon { background: var(--fill); color: var(--muted); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 64px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how > div { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.how b { font-size: 1.02rem; } .how p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* kit page */
.kit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: minmax(0, 1fr); } }
.kit-id { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.kit-id .kicker { margin: 0 0 6px; } .kit-id h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.tag { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; margin: 10px 0 8px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0 8px; }
.price { color: var(--muted); font-size: .95rem; font-weight: 550; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 14px 24px; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: transform .35s var(--spring), box-shadow .2s; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(.96); }
.feat { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; } .feat li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900; background: var(--brand-soft); color: var(--brand); margin-top: 2px; }
.note { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.shot { margin: 0; justify-self: center; }
.shot img { display: block; max-width: 100%; height: auto; }
.shot.phone { width: min(340px, 100%); padding: 12px; border-radius: 52px; background: #111; box-shadow: var(--shadow-lg), inset 0 0 0 2px #333; transform: rotate(2deg); transition: transform .8s var(--spring); }
.shot.phone:hover { transform: rotate(0) translateY(-6px); }
.shot.phone img { border-radius: 40px; }
.shot.wide img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.more { margin-bottom: 64px; }
.prose { padding-bottom: 64px; font-size: 1.05rem; } .prose p { margin: 0 0 14px; }

/* footer */
.ft { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: .9rem; }
.ft a { color: var(--ink-2); }

/* reveal (fx.js) */
.reveal { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .7s var(--ease), transform .8s var(--spring); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.springboard .app { animation: pop .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .springboard { grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 18px 12px; width: 100%; }
  .app { width: auto; font-size: .72rem; } .app .app-ic { width: 62px !important; height: 62px !important; }
  .list li + li .row::before { left: 78px; }
}
@media (prefers-color-scheme: dark) { .kit-hero { --brand: var(--brand-2) !important; } }
