/* ============================================================
   Setapp satellite — pastel marketplace theme (v2)
   palette: setapp pink #ff1493 · sky blue #6cb4ff · sunshine #ffd45c
   layout: app-store browse style, alternating image/text sections
   ============================================================ */
:root {
  --pink: #ff1493;
  --pink-dark: #d4126e;
  --sky: #6cb4ff;
  --sky-dark: #4596f0;
  --sun: #ffd45c;
  --mint: #5eead4;
  --bg: #fff8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --tinted: #fff0f7;
  --tinted-blue: #eef6ff;
  --border: #f1e1ea;
  --border-strong: #ead0de;
  --ink: #1d1429;
  --ink-soft: #4b3c5a;
  --muted: #6b5d7a;
  --grad: linear-gradient(135deg, #ff1493 0%, #ff5fa8 50%, #6cb4ff 100%);
  --shadow-card: 0 14px 32px -16px rgba(255, 20, 147, 0.18);
  --shadow-hover: 0 26px 50px -20px rgba(255, 20, 147, 0.28);
  --rad: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id], h2[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px; line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 90% -10%, rgba(255, 20, 147, .08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(108, 180, 255, .08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-dark); text-decoration: none; transition: color .15s; }
a:hover, a:focus-visible { color: var(--pink-dark); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; color: var(--ink); font-family: var(--display); }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--tinted); padding: .15rem .4rem; border-radius: 4px; font-size: .9em; color: var(--pink-dark); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--pink); color: #fff; padding: .75rem 1rem; z-index: 1000; font-weight: 700; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 251, .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255, 248, 251, .94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-cta { background: var(--grad); color: #fff !important; padding: .7rem 1.3rem; border-radius: 999px; font-size: .95rem; font-weight: 700; box-shadow: 0 10px 22px -6px rgba(255, 20, 147, .45); transition: transform .15s, box-shadow .2s, filter .15s; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.nav-cta:hover, .nav-cta:focus-visible { color: #fff !important; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 28px -6px rgba(255, 20, 147, .55); }

/* HERO */
.hero { position: relative; padding: 5rem 0 6rem; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(450px 350px at 50% 20%, rgba(255, 20, 147, .18), transparent 60%), radial-gradient(380px 380px at 20% 70%, rgba(108, 180, 255, .14), transparent 65%), radial-gradient(380px 380px at 80% 70%, rgba(255, 212, 92, .14), transparent 65%); }
.hero .wrap { position: relative; }
.hero .pill { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--border-strong); padding: .55rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--pink-dark); margin-bottom: 1.5rem; box-shadow: 0 4px 12px rgba(255, 20, 147, .12); }
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 680px; margin: 0 auto 2rem; line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .2s, background .2s, filter .15s, color .2s; white-space: nowrap; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -8px rgba(255, 20, 147, .45); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 18px 36px -8px rgba(255, 20, 147, .6); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--pink); }

/* Hero icon grid */
.hero-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; max-width: 720px; margin: 0 auto; }
.hero-icons.hero-icons--5 { grid-template-columns: repeat(5, 1fr); max-width: 460px; }
@media (max-width: 720px) { .hero-icons { grid-template-columns: repeat(4, 1fr); gap: .85rem; max-width: 360px; } .hero-icons.hero-icons--5 { grid-template-columns: repeat(5, 1fr); max-width: 380px; } }
@media (max-width: 440px) { .hero-icons.hero-icons--5 { grid-template-columns: repeat(3, 1fr); max-width: 260px; } .hero-icons.hero-icons--5 .icon:nth-child(n+4) { display: none; } .hero-icons.hero-icons--5 .icon.more { display: grid !important; } }
.hero-icons .icon { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 22%; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(255, 20, 147, .08); overflow: hidden; animation: bob 6s ease-in-out 3 both; transition: transform .3s; }
.hero-icons .icon:hover { transform: translateY(-4px); }
.hero-icons .icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-icons .icon:nth-child(2n) { animation-delay: -2s; }
.hero-icons .icon:nth-child(3n) { animation-delay: -4s; }
.hero-icons .icon.more { font-size: 1.15rem; font-weight: 800; color: var(--pink-dark); background: var(--tinted); animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* BAND */
.band { padding: 5rem 0; }
.band.tinted { background: var(--tinted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band.tinted-blue { background: var(--tinted-blue); border-top: 1px solid #d5e6fb; border-bottom: 1px solid #d5e6fb; }
@media (max-width: 700px) { .band { padding: 3.5rem 0; } }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head .eyebrow { display: inline-block; background: #fff; border: 1px solid var(--border-strong); color: var(--pink-dark); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: .65rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.55; max-width: 580px; margin: 0 auto; }
.section-head.left { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.section-head.left p { margin-left: 0; }

/* CATEGORY PILLS */
.cat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 3rem; }
.cat-pill { background: #fff; border: 1.5px solid var(--border-strong); color: var(--ink); padding: .65rem 1.1rem; border-radius: 999px; font-size: .92rem; font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.cat-pill .count { font-size: .76rem; color: var(--muted); font-weight: 500; }
.cat-pill:hover { border-color: var(--pink); color: var(--pink-dark); transform: translateY(-1px); }
.cat-pill[aria-pressed=true] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -4px rgba(255, 20, 147, .4); }
.cat-pill[aria-pressed=true] .count { color: rgba(255, 255, 255, .85); }

/* APP TILES */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .apps-grid { grid-template-columns: 1fr; } }
.app-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); padding: 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.app-tile:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow-hover); }
.app-tile.hidden { display: none; }
.app-tile .ico { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #fff, var(--tinted)); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); margin-bottom: .5rem; }
.app-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
.app-tile .ico.gen { background: var(--grad); color: #fff; font-weight: 800; font-size: 1.5rem; }
.app-tile .ico.gen.sky { background: linear-gradient(135deg, var(--sky), var(--sky-dark)); }
.app-tile .ico.gen.sun { background: linear-gradient(135deg, var(--sun), #ff9933); color: var(--ink); }
.app-tile .ico.gen.mint { background: linear-gradient(135deg, var(--mint), #34d399); color: var(--ink); }
.app-tile h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.app-tile .tag { font-size: .78rem; color: var(--muted); }
.app-tile .desc { font-size: .85rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* STRIPES (alternating image/text) */
.stripe { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.stripe + .stripe { border-top: 1px dashed var(--border); }
.stripe.reverse .stripe-text { order: 2; }
.stripe.reverse .stripe-img  { order: 1; }
@media (max-width: 820px) { .stripe, .stripe.reverse { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 0; } .stripe.reverse .stripe-text, .stripe.reverse .stripe-img { order: unset; } }
.stripe-text h3 { font-size: 1.7rem; line-height: 1.18; margin-bottom: 1rem; letter-spacing: -.02em; }
.stripe-text .marker { display: inline-block; background: var(--tinted); color: var(--pink-dark); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 6px; margin-bottom: .85rem; }
.stripe-text p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.stripe-img { border-radius: var(--rad); overflow: hidden; background: linear-gradient(135deg, var(--tinted), var(--tinted-blue)); padding: 1.25rem; box-shadow: var(--shadow-card); }
.stripe-img img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* HOW-TO */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how-step { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 1.5rem 1.5rem 1.75rem; position: relative; box-shadow: var(--shadow-card); }
.how-step .num { position: absolute; top: -16px; left: 1.5rem; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; box-shadow: 0 8px 16px -4px rgba(255, 20, 147, .45); }
.how-step h4 { margin: .5rem 0 .35rem; font-size: 1.05rem; }
.how-step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ARTICLE */
.article { background: #fff; }
.article-lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); border-left: 4px solid var(--pink); padding: 1rem 0 1rem 1.5rem; margin: 0 0 3rem; max-width: 720px; }
.article-section { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.article-section:last-of-type { border-bottom: 0; }
.article-section h2 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; font-size: 1.55rem; letter-spacing: -.02em; }
.article-section h2 .nm { font-family: ui-monospace, "SF Mono", monospace; font-size: .9rem; font-weight: 700; color: var(--pink-dark); letter-spacing: .04em; }
.article-section p { font-size: 1.05rem; color: var(--ink); line-height: 1.7; }
.article-section h3 { font-size: 1.1rem; color: var(--ink-soft); margin: 1.5rem 0 .75rem; font-weight: 700; }
.article-section ul { padding-left: 0; list-style: none; margin: 1rem 0; }
.article-section ul li { position: relative; padding: .4rem 0; color: var(--ink); border-left: 2px solid var(--border); padding-left: 1rem; margin-left: .25rem; }
.article-section ul li::before { content: "✦"; color: var(--pink); position: absolute; left: -8px; top: .4rem; background: #fff; padding: 0 4px; font-size: .82rem; }
.article-section strong { color: var(--pink-dark); }

/* Inline pull quote */
.pq-inline { margin: 2.5rem 0; padding: 1.75rem 1.75rem 1.5rem 4.25rem; background: linear-gradient(135deg, var(--tinted), var(--tinted-blue)); border-left: 5px solid var(--pink); border-radius: 0 var(--rad) var(--rad) 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink); position: relative; }
.pq-inline::before { content: "\201C"; position: absolute; left: 1.5rem; top: .35rem; font-size: 4.5rem; line-height: 1; color: var(--pink); font-family: Georgia, serif; }
.pq-inline cite { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-style: normal; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.pq-inline cite img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(255, 20, 147, .2); }
.pq-inline cite b { color: var(--ink); font-weight: 700; }

/* Sidebar fact panel in article */
.article-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 1.5rem; margin: 2rem 0; box-shadow: var(--shadow-card); }
.article-aside .aside-title { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pink-dark); margin: 0 0 1rem; }
.article-aside .row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.article-aside .row:last-child { border-bottom: 0; }
.article-aside .row span:first-child { color: var(--ink-soft); }
.article-aside .row span:last-child { color: var(--ink); font-weight: 600; }

/* AUTHOR CARD */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); padding: 2rem; margin: 3rem 0; box-shadow: var(--shadow-card); align-items: center; }
@media (max-width: 600px) { .author-card { grid-template-columns: 1fr; text-align: center; } }
.author-card img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--tinted); box-shadow: 0 8px 18px rgba(255, 20, 147, .2); justify-self: center; }
.author-card .role { display: inline-block; background: var(--tinted); color: var(--pink-dark); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .5rem; }
.author-card h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.author-card p { color: var(--ink-soft); margin: 0 0 .65rem; font-size: .95rem; }
.author-card a { font-weight: 700; }
.author-card a::after { content: " →"; transition: margin .2s; display: inline-block; }
.author-card a:hover::after { margin-left: 3px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--rad); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .2s; }
.faq-item:hover { transform: translateY(-1px); border-color: var(--pink); box-shadow: var(--shadow-card); }
.faq-item[open] { border-color: var(--pink); box-shadow: var(--shadow-card); }
.faq-item summary { padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; color: var(--ink); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: ui-monospace, monospace; font-size: 1.6rem; color: var(--pink); transition: transform .3s; line-height: 1; font-weight: 400; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

/* BIG CTA */
.cta-band { position: relative; background: var(--grad); color: #fff; text-align: center; padding: 5rem 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 255, 255, .3), transparent 70%); pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: .85rem; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.cta-band .btn-primary { background: #fff; color: var(--pink-dark); box-shadow: 0 18px 36px -6px rgba(0, 0, 0, .3); }
.cta-band .btn-primary:hover { color: var(--pink-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }

/* FOOTER */
footer { background: #fff; border-top: 1px solid var(--border); padding: 2.5rem 0; }
.foot { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.foot .brand { color: var(--ink); }
.foot .tagline { font-size: .92rem; color: var(--muted); max-width: 520px; margin: 0; }
.foot .copy { font-size: .82rem; color: var(--muted); margin: .65rem 0 0; }
.foot .link-btn { color: var(--muted); font: inherit; padding: .1rem .25rem; text-align: left; }
.foot .link-btn:hover { color: var(--pink-dark); text-decoration: underline; }

/* COOKIE */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--rad); padding: 1.1rem 1.25rem; box-shadow: 0 20px 40px -10px rgba(255, 20, 147, .25); z-index: 100; display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: var(--ink); animation: slideup .35s ease-out; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie button { background: var(--grad); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.cookie button:hover { filter: brightness(1.06); }
@media (max-width: 460px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } .cookie button { width: 100%; padding: .7rem 1rem; } }
.hidden { display: none !important; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* TRUST LINE */
.trust-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--border-strong); }
.trust-line .stat { text-align: center; }
.trust-line .stat .num { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--display); line-height: 1; }
.trust-line .stat .lbl { font-size: .8rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }
