[hidden] { display: none !important; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/InstrumentSans-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/InstrumentSans-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/InterTight-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/InterTight-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/InterTight-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/InterTight-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/InterTight-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/InterTight-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/InterTight-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/InterTight-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* YourAISkill v3. Direction from Byron: Shopify-level polish. Near-black, huge light headlines, two-tone sentences,
   white pill buttons, big rounded panels with floating product screens. Brand: leaf Y mark, indigo #3a2ef0 to #7b6bff.
   Byron's rules: no hover lifts or scaling; hover changes colour, border or underline only. Spacing 4/8/12/16/24/32/48/64/96/128. */
:root {
  --bg: #07070c;
  --bg-2: #0c0c16;
  --panel: #111120;
  --panel-2: #161630;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f5fa;
  --text: #c9c9d9;
  --muted: #8e8ea8;
  --dim: #5d5d78;
  --accent: #8b7dff;
  --accent-2: #3a2ef0;
  --go: #3ddc84;
  --ok: #3ddc84;
  --ok-soft: rgba(61, 220, 132, 0.12);
  --warn: #f5b451;
  --warn-soft: rgba(245, 180, 81, 0.12);
  --bad: #ff7a7a;
  --bad-soft: rgba(255, 122, 122, 0.12);
  --glow: radial-gradient(60% 60% at 70% 30%, rgba(98, 80, 255, 0.35), rgba(7, 7, 12, 0) 70%);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Instrument Sans", "Inter Tight", system-ui, sans-serif;
  --r: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
/* Type scale: display sizes stay on the home hero, niche heads, /niches and the report; utility pages use a calmer h1. */
:root { --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-22: 1.375rem; --fs-28: 1.75rem; --fs-40: clamp(2rem, 3.2vw, 2.5rem); --fs-56: clamp(2.25rem, 4.6vw, 3.5rem); }
.page-head h1 { font-size: var(--fs-56); max-width: 22ch; }
.prose h2 { letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-2); color: #fff; }
.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.sel { user-select: all; }
.wrap { max-width: 80rem; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 50rem; }
.note { color: var(--muted); font-size: 0.875rem; }
.fine { color: var(--muted); font-size: 0.8125rem; }
.eyebrow { font-weight: 500; font-size: 0.875rem; color: var(--muted); }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text); max-width: 46ch; }
.sub { color: var(--muted); max-width: 56ch; font-size: 1.0625rem; }
.mt { margin-top: 48px; }
.two-tone { color: var(--dim); }
.two-tone b { color: var(--ink); font-weight: inherit; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 12, 0.72); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
body.home .top { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.3rem var(--logo); letter-spacing: -0.035em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo.small { font-size: 1.1rem; }
.logo.small svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.cr-in { display: none; }
.has-bal .cr-out { display: none; }
.has-bal .cr-in { display: inline; }
.has-bal .cr-in:empty::before { content: var(--bal-text, ""); }
.is-in .top-right .cta-free { display: none; }
.wallet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 4px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
@media (max-width: 860px) { .nav { display: none; } .top-right .btn { display: none; } }
/* ---------- Phone menu: below 860px the top links move into a full screen panel ---------- */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .top-right { gap: 8px; }
  .menu-btn { position: relative; display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-btn i { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
}
.m-menu { position: fixed; left: 0; right: 0; top: 72px; bottom: 0; z-index: 19; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(90% 60% at 100% 0%, rgba(91, 77, 255, 0.22), rgba(7, 7, 12, 0) 60%), var(--bg); border-top: 1px solid var(--line); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.m-menu[hidden] { display: none; }
.m-menu-in { display: grid; gap: 28px; padding-block: 20px 32px; }
.m-links { display: grid; }
.m-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 400 clamp(1.75rem, 7.5vw, 2.5rem)/1.1 var(--display); letter-spacing: -0.03em; }
.m-links a[aria-current="page"] span { color: var(--accent); }
.m-links svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.m-menu-foot { display: grid; gap: 10px; }
.is-in .m-menu-foot .cta-free { display: none; }
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .packbar { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .m-menu:not([hidden]) { animation: m-in 260ms var(--ease) both; }
  .m-menu:not([hidden]) .m-links a { animation: m-link 420ms var(--ease) both; }
  .m-links .mi1 { animation-delay: 30ms !important; } .m-links .mi2 { animation-delay: 60ms !important; } .m-links .mi3 { animation-delay: 90ms !important; }
  .m-links .mi4 { animation-delay: 120ms !important; } .m-links .mi5 { animation-delay: 150ms !important; } .m-links .mi6 { animation-delay: 180ms !important; }
  @keyframes m-in { from { opacity: 0; } }
  @keyframes m-link { from { opacity: 0; transform: translateY(10px); } }
}
@media (min-width: 861px) { .m-menu { display: none !important; } }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; font: 500 0.9375rem var(--body); text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); white-space: nowrap; }
.btn.primary, .btn.buy { background: #fff; color: #07070c; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 0.8125rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.add { background: transparent; color: var(--ink); border-color: var(--line-2); min-width: 92px; }
.btn.add.in { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 132, 0.35); }

/* Search */
.search { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 20px; max-width: 40rem; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.search:focus-within { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.09); }
.search > .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; width: 0; border: 0; background: transparent; font: 400 1rem var(--body); color: var(--ink); padding: 10px 4px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search .btn { min-height: 44px; }
.search.big { padding: 8px 8px 8px 24px; max-width: 36rem; }
.search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: min(60vh, 26rem); overflow-y: auto; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 14px; border-radius: 12px; cursor: pointer; color: var(--text); font-size: 0.9375rem; text-align: left; }
.suggest li[aria-selected="true"] { background: rgba(139, 125, 255, 0.16); color: var(--ink); }
.suggest .sg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest mark { background: none; color: var(--ink); font-weight: 600; }
.suggest .sg-meta { flex: none; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.suggest .sg-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.suggest .sg-all strong { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .suggest li:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .suggest:not([hidden]) { animation: sg-in 160ms var(--ease) both; } @keyframes sg-in { from { opacity: 0; transform: translateY(-4px); } } }
.search.big input { font-size: 1.125rem; padding: 12px 4px; }
.search.big .btn { min-height: 50px; padding: 0 26px; font-size: 1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); background: radial-gradient(55% 70% at 78% 35%, rgba(85, 66, 255, 0.42), rgba(7, 7, 12, 0) 70%), radial-gradient(40% 50% at 95% 90%, rgba(61, 220, 132, 0.10), rgba(7, 7, 12, 0) 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(128px, 14vw, 184px) clamp(80px, 9vw, 128px); }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.25rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 10ch; }
.hero .count { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9375rem; color: var(--muted); }
.hero .count strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero .count .lead { color: var(--ink); }
.hero .count .lead strong { color: #4ade80; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.875rem; }
.popular a { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; transition: border-color 160ms var(--ease), color 160ms var(--ease); }

/* Hero product screen: an AI chat using a skill, with packs floating around it */
.stage { position: relative; min-height: 520px; }
.chat { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: min(100%, 500px); background: rgba(18, 18, 34, 0.86); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a44; display: inline-block; }
.chat-bar span { margin-left: 8px; }
.chat-body { display: grid; gap: 14px; padding: 18px; }
.msg { max-width: 90%; padding: 14px 16px; border-radius: 16px; font-size: 1rem; line-height: 1.45; }
.msg.me { justify-self: end; background: #2b2b4a; color: var(--ink); border-bottom-right-radius: 6px; }
.msg.ai { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 6px; }
.using { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.msg ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink); }
.chip { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: rgba(20, 20, 38, 0.92); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.8125rem; color: var(--muted); }
.chip strong { color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.chip .seal { color: var(--ok); }
.chip.c1 { left: 0; top: 6%; }
.chip.c2 { left: 6%; bottom: 8%; }
.chip.c3 { right: 6%; top: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .chat { animation: rise-in 900ms var(--ease) 120ms both; }
  .chip { animation: fade-in 900ms var(--ease) both; }
  .chip.c1 { animation-delay: 500ms; } .chip.c2 { animation-delay: 650ms; } .chip.c3 { animation-delay: 800ms; }
  .msg.ai ol li { animation: fade-in 500ms var(--ease) both; }
  .msg.ai ol li:nth-child(1) { animation-delay: 900ms; } .msg.ai ol li:nth-child(2) { animation-delay: 1100ms; } .msg.ai ol li:nth-child(3) { animation-delay: 1300ms; } .msg.ai ol li:nth-child(4) { animation-delay: 1500ms; }
  @keyframes rise-in { from { opacity: 0; translate: 0 -46%; } }
  @keyframes fade-in { from { opacity: 0; } }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 112px; }
  .stage { min-height: 460px; }
  .chat { position: relative; translate: none; top: auto; right: auto; margin: 40px auto 0; }
  .chip.c1 { left: 8px; top: -10px; z-index: 2; } .chip.c3 { display: none; } .chip.c2 { left: auto; right: -4px; bottom: -8px; }
  @keyframes rise-in { from { opacity: 0; translate: 0 12px; } }
}

/* Sections */
.band { padding-block: clamp(64px, 7vw, 112px); position: relative; }
.band.alt { background: var(--bg-2); }
.band.tight { padding-block: 24px 96px; }
.band > .wrap { display: grid; gap: 32px; }
.sec-head { display: grid; gap: 16px; max-width: 54rem; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head { padding-block: clamp(56px, 7vw, 96px) 32px; }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.results-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }

/* Field header on niche pages */
.field-head { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.field-head::before { content: ""; position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); background: radial-gradient(50% 80% at 85% 20%, rgba(85, 66, 255, 0.35), rgba(7, 7, 12, 0) 70%); pointer-events: none; }
.field-head .wrap { position: relative; display: grid; gap: 24px; }
.field-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1; max-width: 16ch; }

/* Niche strip: big rounded media cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (max-width: 1099px) { .rail { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.media { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 340px; border-radius: var(--r); overflow: hidden; background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 200ms var(--ease); }
.media .art { position: relative; display: grid; place-items: center; padding: 28px; }
.media .cap { padding: 20px 22px 22px; display: grid; gap: 4px; }
.media .cap strong { color: var(--ink); font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; }
.media .cap span { color: var(--muted); font-size: 0.875rem; }
.mini { width: 100%; max-width: 250px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: grid; gap: 8px; font-size: 0.8125rem; color: var(--text); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.mini .row { display: flex; align-items: center; gap: 8px; }
.mini .row .i { color: var(--ok); }
.mini .bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.mini .bar.s { width: 60%; } .mini .bar.m { width: 80%; }
.mini .ttl { color: var(--ink); font-weight: 500; }

/* Niche grid */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 12px; }
.tile a { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; height: 100%; padding: 22px; border-radius: 20px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tile-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.tile-go svg { width: 16px; height: 16px; transition: transform 320ms var(--ease); }
.tile strong { font: 500 1.25rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.tile-blurb { font-size: 0.9375rem; color: var(--muted); }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tile em { font-style: normal; font-weight: 500; font-size: 0.8125rem; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tile em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 12px var(--go); }
.tile em.soon::before { background: var(--dim); box-shadow: none; }
.tile em.soon { color: var(--muted); }
.tile small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter { flex: 1; min-width: 24px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent) 55%, var(--go)); transform-origin: left center; }
.meter .w5 { width: 5%; } .meter .w10 { width: 10%; } .meter .w15 { width: 15%; } .meter .w20 { width: 20%; } .meter .w25 { width: 25%; }
.meter .w30 { width: 30%; } .meter .w35 { width: 35%; } .meter .w40 { width: 40%; } .meter .w45 { width: 45%; } .meter .w50 { width: 50%; }
.meter .w55 { width: 55%; } .meter .w60 { width: 60%; } .meter .w65 { width: 65%; } .meter .w70 { width: 70%; } .meter .w75 { width: 75%; }
.meter .w80 { width: 80%; } .meter .w85 { width: 85%; } .meter .w90 { width: 90%; } .meter .w95 { width: 95%; } .meter .w100 { width: 100%; }

/* Feature panel with rings */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 480px; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: radial-gradient(70% 90% at 80% 50%, rgba(85, 66, 255, 0.28), rgba(17, 17, 32, 0) 70%), linear-gradient(160deg, #13132a, #0b0b16); border: 1px solid var(--line); overflow: hidden; }
.feature .copy { display: grid; gap: 20px; align-content: end; min-width: 0; }
.feature h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.rings { position: relative; display: grid; place-items: center; min-height: 380px; }
.rings::before, .rings::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(139, 125, 255, 0.22); }
.rings::before { width: 380px; height: 380px; }
.rings::after { width: 250px; height: 250px; border-color: rgba(139, 125, 255, 0.32); }
.scan { position: relative; z-index: 1; width: min(100%, 340px); background: rgba(18, 18, 34, 0.92); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.scan .ttl { font-size: 0.8125rem; color: var(--muted); display: flex; justify-content: space-between; }
.scan .r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 0.875rem; color: var(--ink); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .rings { min-height: 300px; } .rings::before { width: 300px; height: 300px; } }

/* Steps as media cards */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio .media { min-height: 360px; }
.trio .cap a { font-size: 0.875rem; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* Skill list */
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.skill { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); min-width: 0; }
.skill:focus-within { border-color: var(--line-2); }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; font-weight: 600; font-size: 1.0625rem; color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.skill-mark.h0 { color: hsl(248 90% 82%); background: hsl(248 55% 22% / 0.6); border-color: hsl(248 60% 60% / 0.3); }
.skill-mark.h1 { color: hsl(265 90% 82%); background: hsl(265 55% 22% / 0.6); border-color: hsl(265 60% 60% / 0.3); }
.skill-mark.h2 { color: hsl(205 90% 82%); background: hsl(205 55% 22% / 0.6); border-color: hsl(205 60% 60% / 0.3); }
.skill-mark.h3 { color: hsl(190 90% 82%); background: hsl(190 55% 22% / 0.6); border-color: hsl(190 60% 60% / 0.3); }
.skill-mark.h4 { color: hsl(160 90% 82%); background: hsl(160 55% 22% / 0.6); border-color: hsl(160 60% 60% / 0.3); }
.skill-mark.h5 { color: hsl(140 90% 82%); background: hsl(140 55% 22% / 0.6); border-color: hsl(140 60% 60% / 0.3); }
.skill-mark.h6 { color: hsl(40 90% 82%); background: hsl(40 55% 22% / 0.6); border-color: hsl(40 60% 60% / 0.3); }
.skill-mark.h7 { color: hsl(330 90% 82%); background: hsl(330 55% 22% / 0.6); border-color: hsl(330 60% 60% / 0.3); }
.skill-mark.h8 { color: hsl(285 90% 82%); background: hsl(285 55% 22% / 0.6); border-color: hsl(285 60% 60% / 0.3); }
.skill-mark.h9 { color: hsl(15 90% 82%); background: hsl(15 55% 22% / 0.6); border-color: hsl(15 60% 60% / 0.3); }
.skill-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.skill h3 { font-size: 1.0625rem; line-height: 1.3; margin-top: 2px; }
.skill-link { color: var(--ink); text-decoration: none; }
.skill-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.skill-link:focus-visible { outline: none; }
.skill:has(.skill-link:focus-visible) { outline: 2px solid var(--accent, #8b7dff); outline-offset: 2px; }
.skill p { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.skill-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.skill-tags .tag, .skill .btn { position: relative; z-index: 1; }
.skill-tags .tag { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.skill-act { display: flex; align-items: center; gap: 10px; flex: none; }
.skill .btn.add { min-width: 0; padding: 8px 14px; }
.cost { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.meta.big { font-size: 0.875rem; margin-top: 10px; }
.stars { display: inline-flex; align-items: center; gap: 4px; }
.by { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by .stars { color: var(--text); }
.by .stars .i { width: 13px; height: 13px; }
.skill-act .score { margin-right: 2px; }
.tag { color: var(--muted); text-decoration: none; }
/* Small links keep their look but get a thumb sized touch area on touch screens. Rows of tags sit close
   together, so theirs is a little shorter, and footer links get real padding so neighbours never overlap. */
@media (pointer: coarse) {
  .tag, .popular a, .nav a, .crumbs a { position: relative; }
  .nav a::before, .crumbs a::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
  .tag::before, .popular a::before { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 36px; transform: translateY(-50%); }
  .foot nav { gap: 2px; }
  .foot nav a { padding-block: 9px; }
  input[type="radio"], input[type="checkbox"] { width: 22px; height: 22px; }
}
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-weight: 500; font-size: 0.75rem; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.plain { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.badge.ours { background: rgba(91, 77, 255, 0.18); color: #c9c3ff; border: 1px solid rgba(139, 125, 255, 0.35); }
.badge.free { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); }
.score { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 0.8125rem; font-weight: 500; }
.score small { color: var(--muted); font-weight: 400; }
.best { display: flex; flex-wrap: wrap; gap: 10px; }
.best .btn span { opacity: 0.7; font-size: 0.8125rem; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: 18px; display: grid; gap: 12px; background: var(--panel); color: var(--text); }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 12px; }
.level { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.level .badge { justify-self: start; font-size: 0.8125rem; padding: 5px 12px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.price { position: relative; display: grid; gap: 6px; align-content: start; padding: 32px 26px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.price.pick { background: linear-gradient(165deg, #1c1a44, var(--panel) 70%); border-color: rgba(139, 125, 255, 0.45); }
.price h3 { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.price .flag { position: absolute; top: 16px; right: 18px; color: var(--accent); font-weight: 500; font-size: 0.8125rem; }
.price .amount { font: 400 3.5rem/1 var(--display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 6px; }
.price .each { color: var(--muted); font-size: 0.875rem; margin-bottom: 20px; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 400 1.25rem var(--display); letter-spacing: -0.02em; color: var(--ink); padding: 24px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.5rem; line-height: 1; transition: color 160ms var(--ease); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 24px; max-width: 64ch; color: var(--muted); }
.links { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Signup */
.signup { padding-block: clamp(80px, 10vw, 128px); }
.signup .panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: radial-gradient(60% 120% at 100% 0%, rgba(85, 66, 255, 0.45), rgba(17, 17, 32, 0) 70%), linear-gradient(160deg, #15153a, #0b0b16); border: 1px solid var(--line); }
.signup h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.signup p { color: var(--text); margin-top: 16px; max-width: 44ch; }
.signup-form { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-form input[type=email] { flex: 1 1 14rem; min-height: 52px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 20px; font: 400 1rem var(--body); color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.signup-form input[type=email]:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); }
.signup-form .btn { min-height: 52px; padding: 0 26px; }
.form-note { flex-basis: 100%; font-size: 0.9375rem; min-height: 1.5em; color: var(--text); }
.form-note code { background: rgba(255, 255, 255, 0.1); padding: 2px 8px; border-radius: 6px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
@media (max-width: 860px) { .signup .panel { grid-template-columns: 1fr; } }

/* Skill page */
/* ---------- Skill page: product layout with a sticky buy box ---------- */
.skill-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; grid-template-areas: "head side" "main side"; gap: 28px 56px; margin-top: 18px; }
.skill-intro { grid-area: head; display: grid; gap: 16px; align-content: start; }
.skill-intro h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.04; }
.skill-intro .lede { max-width: 40rem; }
.skill-side { grid-area: side; display: grid; gap: 16px; align-self: start; position: sticky; top: 96px; }
.skill-main { grid-area: main; padding-top: 8px; }
.skill-main > h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin-top: 36px; }
.skill-main > h2:first-child, .skill-main > .proof + h2 { margin-top: 0; }
.skill-main > .proof { margin-bottom: 36px; }
@media (max-width: 880px) { .skill-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "main"; } .skill-side { position: static; } }
.bb-price { margin: 0; }
.bb-price strong { display: block; font: 400 2.5rem/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.bb-price span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.bb-proof { list-style: none; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.875rem; color: var(--text); }
.bb-proof li { display: flex; align-items: center; gap: 10px; }
.bb-proof svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.bb-fine { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.proof li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.proof strong { font: 400 2.25rem/1 var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 600px) { .proof { grid-template-columns: minmax(0, 1fr); } }
.chat--inline { position: static; translate: none; width: 100%; margin-top: 14px; box-shadow: none; animation: none !important; }
.chat--inline .msg { max-width: 100%; }
.chat--inline .msg.me { max-width: 92%; }
.using svg { width: 12px; height: 12px; flex: none; }
.chat--inline .using { margin-bottom: 10px; }
.ai-text { display: grid; gap: 8px; font-size: 0.9375rem; }
.ai-text p { margin: 0; }
.ai-text strong { color: var(--ink); }
.ex-table { overflow-x: auto; }
.ex-table table { border-collapse: collapse; width: 100%; font-size: 0.8125rem; }
.ex-table th, .ex-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ex-table th { color: var(--muted); font-weight: 500; }
/* ---------- Niche pages: sold cards, then a compact list of free links ---------- */
.more-head { margin-top: 24px; }
.nav-search { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 400 0.875rem var(--body); cursor: pointer; transition: border-color 160ms var(--ease), color 160ms var(--ease); }
.nav-search .i { width: 16px; height: 16px; }
.nav-search kbd { font: 500 0.75rem var(--body); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nav-search:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--ink); } }
@media (max-width: 1100px) { .nav-search span, .nav-search kbd { display: none; } .nav-search { width: 40px; height: 40px; padding: 0; justify-content: center; } }
.search-sheet { width: min(640px, calc(100vw - 32px)); margin-top: 12vh; overflow: visible; }
.search-sheet .sheet-in { padding-bottom: 22px; }
.search-sheet .search { max-width: none; }
.search-sheet .note { margin: 0; color: var(--muted); font-size: var(--fs-14); }
.funnel { list-style: none; margin: 0 auto 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.funnel li { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.funnel li:last-child { border-color: rgba(61, 220, 132, 0.4); background: linear-gradient(165deg, rgba(61, 220, 132, 0.08), var(--panel) 60%); }
.funnel strong { font: 400 var(--fs-40)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel span { color: var(--muted); font-size: var(--fs-14); }
@media (max-width: 800px) { .funnel { grid-template-columns: 1fr 1fr; } }
.byline { color: var(--muted); }
.pay-trust { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: var(--fs-14); }
.pay-trust li { display: flex; align-items: center; gap: 8px; }
.pay-trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.more-list li > div { min-width: 0; }
.more-list a { color: var(--ink); font-weight: 500; text-decoration: none; transition: color 160ms var(--ease); }
.more-list p { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .more-list a:hover { color: var(--accent); } }
@media (max-width: 600px) { .more-list li { grid-template-columns: minmax(0, 1fr); } .more-list p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.more-all summary { cursor: pointer; padding: 14px 0; color: var(--text); font-weight: 500; list-style: none; }
.more-all summary::-webkit-details-marker { display: none; }
.more-all summary::after { content: " +"; color: var(--muted); }
.more-all[open] summary::after { content: " -"; }
.review-line { display: flex; align-items: baseline; gap: 14px; }
.score { white-space: nowrap; flex: none; }
.score.big { font: 400 2rem/1 var(--display); letter-spacing: -0.03em; }
.skill-hero { display: grid; grid-template-columns: 1fr minmax(16rem, 22rem); gap: 32px 56px; align-items: start; }
.buybox { display: grid; gap: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: 1fr minmax(15rem, 22rem); gap: 40px 56px; align-items: start; }
.facts { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; }
.facts h2 { font-size: 1.25rem; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.files { margin: 8px 0 0; padding-left: 18px; font-size: 0.8125rem; overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 880px) { .skill-hero, .two { grid-template-columns: 1fr; } }

/* Prose */
.prose { display: grid; gap: 18px; min-width: 0; font-size: 1.0625rem; color: var(--text); }
.prose h2 { margin-top: 36px; font-size: var(--fs-28); }
.prose h3 { margin-top: 8px; font-size: 1.25rem; }
.prose p, .prose li { max-width: 68ch; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose code { background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; color: var(--ink); }
.prose pre { background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); color: var(--ink); font-weight: 500; }
.prose blockquote { margin: 0; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--panel); border-radius: 0 14px 14px 0; }
.article > .wrap { padding-bottom: 96px; }
.sources { font-size: 0.9375rem; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 12px; }
.guide-list a { display: grid; gap: 10px; height: 100%; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--muted); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.guide-list h2 { font-size: 1.5rem; }

/* Pack + wallet */
.pack { display: grid; gap: 24px; }
@media (min-width: 900px) { .pack { grid-template-columns: minmax(0, 1fr) 22rem; grid-template-areas: "main sum" "top top"; gap: 24px 40px; align-items: start; } .pack-main { grid-area: main; } .pack-sum { grid-area: sum; position: sticky; top: 96px; } .topup { grid-area: top; } }
.pack-main { display: grid; gap: 20px; min-width: 0; }
.pack-sum { display: grid; gap: 14px; padding: 24px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; }
.pack-sum h2 { font-size: var(--fs-22); }
.sum-rows { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pk-title { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; transition: color 160ms var(--ease); }
.pk-cost { color: var(--muted); font-size: var(--fs-14); white-space: nowrap; }
.pk-x { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.pk-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .pk-x:hover { color: var(--ink); border-color: var(--line-2); } .pk-title:hover { color: var(--accent); } }
.pack-list li.empty { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 22px; }
.pack-list li.empty strong { display: block; color: var(--ink); font-weight: 500; }
.pack-empty-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(139, 125, 255, 0.12); color: var(--accent); grid-row: span 2; }
.pack-starts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pack-on [data-pack-list] li.empty { visibility: hidden; }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.pack-list li.empty { justify-content: flex-start; color: var(--muted); }
.pack-list li span, .pack-list li a { min-width: 0; overflow-wrap: anywhere; }
.mode { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; background: none; }
.mode legend { padding: 0; margin-bottom: 10px; font-size: var(--fs-14); color: var(--muted); }
.mode label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--text); padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.mode label:has(input:checked) { border-color: rgba(139, 125, 255, 0.6); background: rgba(139, 125, 255, 0.08); }
@media (max-width: 520px) { .mode { grid-template-columns: 1fr; } }
.mode label strong { color: var(--ink); font-weight: 500; }
.mode label span { display: grid; }
.mode input { margin-top: 5px; accent-color: var(--accent); }
.pack-sum { display: grid; gap: 12px; }
.pack-sum strong { color: var(--ink); font-weight: 500; }
.topup { display: grid; gap: 16px; }
.walletbox { display: grid; gap: 14px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 24px; }
.big-num { font: 400 3.5rem/1 var(--display); letter-spacing: -0.05em; color: var(--ink); }
.walletbox code { background: rgba(255, 255, 255, 0.07); padding: 3px 8px; border-radius: 6px; font-weight: 500; letter-spacing: 0.03em; overflow-wrap: anywhere; color: var(--ink); }
.keyform { display: grid; gap: 8px; max-width: 32rem; margin-bottom: 24px; }
.keyform input, .keyform textarea { min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); padding: 10px 16px; font: 400 1rem var(--body); background: rgba(255, 255, 255, 0.05); color: var(--ink); transition: border-color 160ms var(--ease); }
.keyform input:focus, .keyform textarea:focus { border-color: rgba(255, 255, 255, 0.5); outline: none; }
.keyform label { font-weight: 500; color: var(--ink); font-size: 0.9375rem; }
.keyform .btn { justify-self: start; margin-top: 8px; }

/* Pack bar */
.packbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(12, 12, 22, 0.86); color: var(--ink); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45); }
html:has(dialog[open]) .packbar { display: none !important; }
.pb-label { display: inline-flex; align-items: center; gap: 10px; }
.packbar [data-pack-count] { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #5b4dff; color: #fff; font-size: 0.8125rem; }
.packbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.packbar-in > span { display: inline-flex; align-items: center; gap: 8px; }
.packbar strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.packbar .btn.buy { background: #fff; color: #07070c; }
/* Painted from the first frame when the pack already has skills (boot.js), and only slides in when the first skill is added. */
.pack-on .packbar[hidden] { display: block !important; }
.pack-on body { padding-bottom: 76px; }
.pack-on body.is-pack { padding-bottom: 0; }
.pack-on body.is-pack .packbar[hidden] { display: none !important; }
.pack-on [data-pack-count]:empty::before { content: var(--pack-n, ""); }
[data-pack-word]:empty::before { content: "skills"; }
.pack-one [data-pack-word]:empty::before { content: "skill"; }
@media (prefers-reduced-motion: no-preference) { .packbar.arrive { animation: bar-in 320ms var(--ease) both; } @keyframes bar-in { from { transform: translateY(100%); } } }
body.has-pack { padding-bottom: 76px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding-block: 64px 72px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-h { font: 500 0.8125rem var(--body); color: var(--muted); margin: 0 0 4px; letter-spacing: 0.02em; }
.foot-mail { color: var(--ink); font-size: 0.875rem; text-decoration: none; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .foot-in > div:first-child { grid-column: 1 / -1; } }
.foot-in > div { display: grid; gap: 14px; align-content: start; max-width: 34rem; }
.foot-in > div p { color: var(--muted); }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.credit a { color: rgba(255, 255, 255, 0.5); font-size: 0.8125rem; letter-spacing: 0.02em; text-decoration: none; transition: color 200ms var(--ease); }
.credit a span { font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .credit a:hover { color: #fff; } }
.foot nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Niche intro and top picks */
.niche-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.picks { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.picks h2 { font-size: 1.375rem; }
.picks ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.picks li { display: grid; gap: 2px; }
.picks li a { color: var(--ink); font-weight: 500; text-decoration: none; }
.picks li span { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 880px) { .niche-intro { grid-template-columns: 1fr; } }
.price .amount .cur { font: 500 0.875rem var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }

/* Hover only where a real pointer can hover, so phones never get a stuck hover state. */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: currentColor; }
  .nav a:hover, .nav a[aria-current] { color: var(--ink); }
  .wallet-link:hover { color: var(--ink); }
  .btn.primary:hover, .btn.buy:hover { background: #dcdcf0; }
  .btn.ghost:hover { border-color: #fff; }
  .btn.add:hover { border-color: #fff; }
  .popular a:hover { border-color: var(--line-2); color: var(--ink); }
  .crumbs a:hover { color: var(--ink); }
  .media:hover { border-color: var(--line-2); }
  .tile a:hover { border-color: var(--line-2); background: var(--panel-2); }
  .skill:hover { border-color: var(--line-2); background-color: rgba(255, 255, 255, 0.025); }
  .skill:hover .skill-link { text-decoration: underline; text-underline-offset: 3px; }
  .tag:hover { color: var(--ink); }
  .faq summary:hover::after { color: var(--ink); }
  .guide-list a:hover { border-color: var(--line-2); background: var(--panel-2); }
  .packbar .btn.buy:hover { background: var(--accent-2); }
  .foot nav a:hover { color: var(--ink); }
  .picks li a:hover { text-decoration: underline; }
}

/* Soft cross fade between pages, CSS only. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; } }

/* SKILL.md preview */
.upd-pill { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; color: #4ade80; background: rgba(22, 163, 74, 0.14); border: 1px solid rgba(74, 222, 128, 0.4); white-space: nowrap; }
.prose .own-files, .own-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.own-files li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.own-files code { font-size: 0.8125rem; color: var(--ink); overflow-wrap: anywhere; }
.own-files span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) { .own-files li { grid-template-columns: minmax(0, 1fr); } }
.preview { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.preview summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.preview pre { margin: 14px 0 8px; max-height: 420px; overflow: auto; font-size: 0.8125rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag.pill { font-size: 0.8125rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); text-decoration: none; }
.steps-mini { margin: 0 0 8px; padding-left: 1.25rem; display: grid; gap: 8px; color: var(--text); }
.steps-mini li { padding-left: 4px; }
.note.callout:empty { display: none; }
.note.callout { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(139, 125, 255, 0.1); border: 1px solid rgba(139, 125, 255, 0.35); color: var(--ink); font-size: 0.9375rem; text-align: center; }
.auth-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.auth { display: grid; gap: 14px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.auth h2 { font-size: 1.25rem; }
.auth label { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.auth input { font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
.auth input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.account-in { display: grid; gap: 14px; }
.account-credits { font-size: 1.125rem; color: var(--muted); }
.account-credits strong { font-size: 2.5rem; color: var(--ink); font-weight: 600; margin-right: 6px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-mark svg { width: 22px; height: 22px; }

/* ---------- Account: glowing split card (pattern from the YFS client portal) ---------- */

.auth-stage { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.auth-stage::before { content: ''; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(600px 360px at 50% 38%, rgba(91, 77, 255, 0.22), transparent 70%); z-index: -1; }
.auth-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.auth-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.al-base path { stroke: rgba(139, 125, 255, 0.14); stroke-width: 1.2; }
.al-glow path { stroke: rgba(157, 143, 255, 0.85); stroke-width: 1.6; stroke-dasharray: 60 900; stroke-dashoffset: 960; filter: drop-shadow(0 0 4px rgba(139, 125, 255, 0.8)); animation: al-run 6s linear 1; animation-fill-mode: forwards; }
.al-glow path:nth-child(2) { animation-delay: -1.5s; }
.al-glow path:nth-child(3) { animation-delay: -3s; }
.al-glow path:nth-child(4) { animation-delay: -4.5s; }
.al-dots circle { fill: rgba(157, 143, 255, 0.55); }
@keyframes al-run { to { stroke-dashoffset: 0; } }
.auth-card { display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 920px; margin: 0 auto; background: linear-gradient(180deg, rgba(23, 22, 44, 0.92), rgba(14, 13, 28, 0.94)); border: 1px solid rgba(139, 125, 255, 0.28); border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -10px rgba(91, 77, 255, 0.35); overflow: hidden; }
.auth-side { display: grid; align-content: start; gap: 22px; padding: 36px; border-right: 1px solid var(--line); background: radial-gradient(400px 260px at 0% 0%, rgba(91, 77, 255, 0.16), transparent 70%); }
.auth-logo { display: none; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.auth-logo svg { width: 30px; height: 30px; }
.auth-hello { display: grid; min-height: 120px; }
.auth-hello > div { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); pointer-events: none; }
.auth-hello > div.on { opacity: 1; transform: none; pointer-events: auto; }
.auth-title { font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.auth-hello p:not(.auth-title) { color: var(--muted); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text); font-size: 0.9375rem; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points svg { width: 18px; height: 18px; color: #b3a8ff; flex: none; }
.auth-main { padding: 36px; }
.auth-pane { display: grid; gap: 14px; animation: pane-in 360ms var(--ease) both; }
.auth-pane h2 { font-size: 1.375rem; margin-bottom: 4px; }
@keyframes pane-in { from { opacity: 0; transform: translateX(12px); } }
.af-input { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease); }
.af-input:focus-within { border-color: rgba(157, 143, 255, 0.9); box-shadow: 0 0 0 4px rgba(91, 77, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.af-input > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.af-input input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; outline: none; padding: 12px 0; }
.af-input input::placeholder { color: rgba(255, 255, 255, 0.4); }
.af-eye { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.af-eye svg { width: 18px; height: 18px; }
.af-eye[aria-pressed="true"] { color: var(--ink); }
.af-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: -4px; }
.af-strength span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background-color 260ms var(--ease); }
.af-strength[data-strength="1"] span:nth-child(-n+1) { background: #f0b450; }
.af-strength[data-strength="2"] span:nth-child(-n+2) { background: #b3d45c; }
.af-strength[data-strength="3"] span:nth-child(-n+3) { background: #3ddc84; }
.af-strength[data-strength="4"] span { background: #3ddc84; }
.af-hint, .af-alt { font-size: 0.875rem; color: var(--muted); }
.af-quiet { font-size: 0.8125rem; }
.af-note:empty { display: none; }
.af-note { font-size: 0.9rem; color: #ffb4b4; background: rgba(255, 90, 90, 0.08); border: 1px solid rgba(255, 90, 90, 0.25); border-radius: 12px; padding: 10px 14px; }
.af-submit { position: relative; display: grid; place-items: center; min-height: 52px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; color: #07070c; background: #fff; cursor: pointer; overflow: hidden; transition: background-color 260ms var(--ease), color 260ms var(--ease), transform 120ms var(--ease); }
.af-submit:active { transform: scale(0.985); }
.af-submit > * { grid-area: 1 / 1; transition: opacity 200ms var(--ease), transform 260ms var(--ease); }
.af-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(7, 7, 12, 0.2); border-top-color: #07070c; opacity: 0; animation: af-spin 700ms linear infinite; }
.af-done { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(8px); color: #fff; }
.af-done svg { width: 20px; height: 20px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; }
.af-submit[data-state="busy"] .af-l { opacity: 0; transform: translateY(-8px); }
.af-submit[data-state="busy"] .af-spin { opacity: 1; }
.af-submit[data-state="done"] { background: #16a34a; color: #fff; }
.af-submit[data-state="done"] .af-l { opacity: 0; }
.af-submit[data-state="done"] .af-done { opacity: 1; transform: none; }
.af-submit[data-state="done"] .af-done svg { animation: af-draw 420ms var(--ease) 80ms forwards; }
.af-submit[data-state="error"] { background: #fff; box-shadow: 0 0 0 2px rgba(255, 90, 90, 0.6); }
@keyframes af-spin { to { transform: rotate(360deg); } }
@keyframes af-draw { to { stroke-dashoffset: 0; } }
.shake { animation: af-shake 380ms var(--ease); }
@keyframes af-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.af-eyebrow { color: var(--muted); }
.af-sub { font-size: 1.0625rem; margin-top: 10px; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; position: relative; z-index: 2; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.auth-foot svg { width: 16px; height: 16px; color: #3ddc84; flex: none; }
@media (max-width: 760px) {
  .auth-stage { padding: 28px 0 48px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; gap: 16px; }
  .auth-hello { min-height: 96px; }
  .auth-points { display: none; }
  .auth-main { padding: 24px; }
}

/* ---------- Secure checkout sheet ---------- */
.sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid rgba(139, 125, 255, 0.3); border-radius: 24px; background: linear-gradient(180deg, #17162c, #0e0d1c); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 70px -10px rgba(91, 77, 255, 0.4); }
.sheet::backdrop { background: rgba(4, 4, 10, 0.7); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 380ms var(--ease) both; }
.sheet[open]::backdrop { animation: fade-in 300ms var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-in { display: grid; gap: 16px; padding: 26px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.co-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: #3ddc84; letter-spacing: 0.02em; }
.co-eyebrow svg { width: 16px; height: 16px; }
.sheet-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.sheet-x svg { width: 18px; height: 18px; }
.sheet h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.co-price { color: var(--muted); }
.co-price strong { font-size: 2.25rem; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.co-each { margin-left: 6px; }
.co-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.co-steps li { display: grid; justify-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); text-align: center; position: relative; }
.co-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 0.75rem; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.co-steps li.on { color: var(--ink); }
.co-steps li.on span { background: #5b4dff; border-color: #5b4dff; color: #fff; }
.co-steps li span { position: relative; }
.co-steps li + li::before, .co-steps li + li::after { content: ""; position: absolute; top: 13px; right: calc(50% + 17px); width: calc(100% - 26px); height: 1px; background: var(--line-2); }
.co-steps li + li::after { background: #8b7dff; transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease); }
.co-steps li.on + li.on::after, .co-steps li + li.on::after { transform: scaleX(1); }
.co-steps li.done span { color: transparent; }
.co-steps li.done span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translate(-50%, -70%) rotate(-45deg); animation: st-tick 360ms var(--ease) both; }
.co-steps li.done { color: var(--ink); }
.co-steps li.done span { background: #5b4dff; border-color: #5b4dff; }
.co-steps li.now span { animation: st-pulse 1.4s var(--ease) infinite; }
.co-steps li.warn span { background: rgba(240, 180, 80, 0.16); border-color: #f0b450; color: #f0b450; }
@keyframes st-tick { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 125, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(139, 125, 255, 0); } }

/* ---------- Going to payment: the sheet hands off to Square ---------- */
.sheet.is-leaving .co-who, .sheet.is-leaving [data-co-signin-link] { display: none; }
.co-handoff { display: grid; justify-items: center; gap: 6px; padding: 8px 0 2px; text-align: center; }
.co-handoff[hidden] { display: none; }
.ho-track { display: flex; align-items: center; width: min(100%, 280px); margin-bottom: 8px; }
.ho-node { position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--ink); transition: background-color 320ms var(--ease) 260ms, border-color 320ms var(--ease) 260ms, color 320ms var(--ease) 260ms; }
.ho-us svg { width: 30px; height: 30px; }
.ho-sq > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 240ms var(--ease) 280ms; }
.ho-sq svg { width: 22px; height: 22px; }
.ho-ok { opacity: 0; color: #4ade80; }
.ho-ok svg { width: 26px; height: 26px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ho-line { position: relative; flex: 1; height: 12px; margin: 0 10px; overflow: hidden; }
.ho-line::before, .ho-line::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 2px; }
.ho-line::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 4px, transparent 4px 9px); }
.ho-line::after { background: linear-gradient(90deg, #8b7dff, #16a34a); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.ho-run { position: absolute; inset: 0; transform: translateX(-100%); animation: ho-run 1100ms cubic-bezier(0.55, 0, 0.35, 1) infinite; transition: opacity 160ms var(--ease); }
.ho-run::before { content: ""; position: absolute; right: 5px; top: 5px; width: 46%; height: 2px; background: linear-gradient(90deg, transparent, rgba(139, 125, 255, 0.9)); }
.ho-run::after { content: ""; position: absolute; right: 0; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #b3a8ff; box-shadow: 0 0 12px 2px rgba(139, 125, 255, 0.6); }
@keyframes ho-run { to { transform: translateX(0); } }
.ho-title { margin: 0; font: 500 1.0625rem var(--display); color: var(--ink); }
.ho-sub { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.is-ready .ho-run { opacity: 0; animation-play-state: paused; }
.is-ready .ho-line::after { transform: scaleX(1); }
.is-ready .ho-sq { background: rgba(22, 163, 74, 0.14); border-color: rgba(74, 222, 128, 0.55); }
.is-ready .ho-lock { opacity: 0; }
.is-ready .ho-ok { opacity: 1; }
.is-ready .ho-ok svg { animation: af-draw 420ms var(--ease) 320ms forwards; }
.is-ready .ho-sq::after { content: ""; position: absolute; inset: -1px; border-radius: 16px; animation: ho-glow 1.6s var(--ease) 600ms infinite; }
@keyframes ho-glow { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: no-preference) { .co-handoff:not([hidden]) { animation: ho-in 320ms var(--ease) both; } @keyframes ho-in { from { opacity: 0; transform: translateY(6px); } } }
.co-who { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(61, 220, 132, 0.07); border: 1px solid rgba(61, 220, 132, 0.22); font-size: 0.9rem; }
.co-who svg { width: 18px; height: 18px; color: #3ddc84; flex: none; margin-top: 2px; }
.co-who.co-need { background: rgba(139, 125, 255, 0.08); border-color: rgba(139, 125, 255, 0.3); }
.co-who.co-need svg { color: #b3a8ff; }
.co-who.co-soon { background: rgba(255, 196, 92, 0.07); border-color: rgba(255, 196, 92, 0.28); }
.co-who.co-soon svg { color: #ffc45c; }
.co-who.co-soon strong { color: var(--text); }
.co-trust { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.co-trust li { display: flex; align-items: center; gap: 8px; }
.co-trust svg { width: 15px; height: 15px; flex: none; color: #b3a8ff; }
.btn.wide { width: 100%; justify-content: center; }
.pack-fine { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.pack-fine a { color: var(--text); }

/* ---------- Thanks: confirming ring ---------- */
.thx { display: grid; justify-items: center; text-align: center; gap: 12px; max-width: 36rem; margin-inline: auto; padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 44px); border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, rgba(91, 77, 255, 0.16), rgba(7, 7, 12, 0) 60%), var(--panel); border: 1px solid var(--line); }
.thx h1 { font-size: clamp(2rem, 6vw, 3rem); }
.thx .lede { margin: 0; }
.thx-steps { width: min(100%, 360px); margin: 10px 0 4px; }
.thx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 0; }
.thx-actions[hidden] { display: none; }
.thx-plus { font: 500 1.75rem var(--display); color: #4ade80; margin-right: 2px; }
.fly-chip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; padding: 6px 12px; border-radius: 999px; background: #16a34a; color: #fff; font: 600 0.9375rem var(--display); box-shadow: 0 8px 24px -6px rgba(22, 163, 74, 0.7); will-change: transform, opacity; }
.wallet-link.bump { animation: bal-bump 1.1s var(--ease); border-radius: 999px; }
@keyframes bal-bump { 0% { color: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 60% { color: #4ade80; box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.thx-ring { position: relative; width: 84px; height: 84px; margin-bottom: 6px; }
.thx-ring svg { width: 100%; height: 100%; }
.thx-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 3; }
.thx-arc { fill: none; stroke: #8b7dff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 92; transform-origin: 24px 24px; animation: af-spin 900ms linear infinite; transition: stroke 300ms var(--ease), stroke-dashoffset 500ms var(--ease); }
.thx-tick { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: #fff; }
.thx-tick svg { width: 36px; height: 36px; stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 24; }
.thx-fill { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 126; transform: rotate(-90deg); transform-origin: 24px 24px; }
.thx-ring[data-thx-state="done"] .thx-arc { opacity: 0; transition: opacity 200ms var(--ease); }
.thx-ring[data-thx-state="done"] .thx-fill { animation: thx-sweep 620ms var(--ease) forwards; }
@keyframes thx-sweep { to { stroke-dashoffset: 0; } }
.thx-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #4ade80; opacity: 0; pointer-events: none; }
.thx-ring[data-thx-state="done"]::after { animation: thx-halo 1s var(--ease) 520ms both; }
@keyframes thx-halo { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.thx-burst { position: absolute; inset: 0; pointer-events: none; }
.thx-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #4ade80; opacity: 0; }
.thx-burst i:nth-child(even) { background: #b3a8ff; width: 5px; height: 5px; }
.thx-burst i:nth-child(1) { --a: 0deg; } .thx-burst i:nth-child(2) { --a: 36deg; } .thx-burst i:nth-child(3) { --a: 72deg; } .thx-burst i:nth-child(4) { --a: 108deg; } .thx-burst i:nth-child(5) { --a: 144deg; }
.thx-burst i:nth-child(6) { --a: 180deg; } .thx-burst i:nth-child(7) { --a: 216deg; } .thx-burst i:nth-child(8) { --a: 252deg; } .thx-burst i:nth-child(9) { --a: 288deg; } .thx-burst i:nth-child(10) { --a: 324deg; }
.thx-ring[data-thx-state="done"] .thx-burst i { animation: thx-burst 760ms cubic-bezier(0.2, 0.7, 0.3, 1) 560ms both; }
@keyframes thx-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-34px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-64px) scale(0.3); } }
@media (prefers-reduced-motion: no-preference) {
  .thx-credits:not([hidden]) { animation: ho-in 420ms var(--ease) both; }
  .thx-actions:not([hidden]) { animation: ho-in 420ms var(--ease) both; }
}
.thx-ring[data-thx-state="done"] { background: radial-gradient(circle, rgba(22, 163, 74, 0.25), transparent 70%); border-radius: 50%; }
.thx-ring[data-thx-state="done"] .thx-tick { opacity: 1; }
.thx-ring[data-thx-state="done"] .thx-tick svg { animation: af-draw 480ms var(--ease) 200ms forwards; }
.thx-ring[data-thx-state="fail"] .thx-arc, .thx-ring[data-thx-state="wait"] .thx-arc { animation-duration: 2.4s; stroke: #f0b450; }
.thx-credits { font-size: 1.125rem; color: var(--muted); }
.thx-credits strong { font-size: 2.5rem; color: var(--ink); font-weight: 600; margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  .al-glow path, .thx-arc, .af-spin, .ho-run, .co-steps li.now span, .is-ready .ho-sq::after, .thx-ring::after, .thx-burst i { animation: none !important; }
  .ho-run { opacity: 0; }
  .thx-ring[data-thx-state="done"] .thx-fill { animation: none; stroke-dashoffset: 0; }
  .is-ready .ho-ok svg { animation: none; stroke-dashoffset: 0; }
  .auth-pane, .sheet[open], .sheet[open]::backdrop, .shake { animation: none !important; }
  .auth-hello > div { transition: none; transform: none; }
}
.auth-pane .owned { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auth-pane .owned li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.auth-pane .owned li.empty { display: block; color: var(--muted); border-style: dashed; }

/* ---------- Membership ---------- */
.member-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.member-eyebrow svg { width: 16px; height: 16px; }
.member-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.member-hero h1 { max-width: 18ch; }
.packs-h { font: 500 1.375rem var(--display); letter-spacing: -0.015em; color: var(--ink); margin: 24px 0 0; }

.member-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding: 32px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(91, 77, 255, 0.28), rgba(17, 17, 32, 0) 60%), var(--panel); border: 1px solid rgba(139, 125, 255, 0.45); overflow: hidden; }
.member-card h3, .member-card .member-title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--ink); max-width: 24ch; margin: 10px 0 18px; letter-spacing: -0.02em; }
.member-perks-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member-perks-mini li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.member-perks-mini svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--go); }
.member-card-buy { display: grid; align-content: center; gap: 6px; padding: 24px; border-radius: 18px; background: rgba(7, 7, 12, 0.45); border: 1px solid var(--line); }
.member-card-buy .amount { font: 400 3.5rem/1 var(--display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.member-card-buy .amount .cur { font: 500 0.875rem var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.member-card-buy .each { color: var(--go); font-size: 0.875rem; margin-bottom: 14px; }
.member-more { justify-self: center; margin-top: 6px; font-size: 0.875rem; color: var(--muted); text-underline-offset: 3px; }
@media (max-width: 760px) { .member-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 12px; }
.perks li { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.perks svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.perks h3 { font-size: 1.125rem; color: var(--ink); }
.perks p { color: var(--muted); }

.sec-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.mpicks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mpicks > .pick { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.mpicks .pick-n { font: 500 0.875rem var(--display); color: var(--dim); font-variant-numeric: tabular-nums; width: 2ch; }
.mpicks .pick-body { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.mpicks .pick h3 { font-size: 1.0625rem; color: var(--ink); }
.mpicks .pick h3 a { color: inherit; text-decoration: none; }
.mpicks .pick-why { color: var(--text); font-size: 0.9375rem; }
.mpicks .pick .tag.pill, .mpicks .pick .btn { position: relative; z-index: 1; }
.mpicks .pick .btn.add { min-width: 0; padding: 8px 14px; }
@media (hover: hover) and (pointer: fine) { .mpicks > .pick:not(.locked):hover { border-color: rgba(139, 125, 255, 0.45); background: var(--panel-2); } }
@media (max-width: 600px) {
  .mpicks > .pick { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px; }
  .mpicks .pick-n { display: none; }
  .mpicks .pick .btn.add { grid-column: 2; justify-self: start; }
}
.mpicks > .pick.locked { filter: blur(3px); opacity: 0.55; pointer-events: none; user-select: none; }
.mpicks > .pick.locked .bar { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.mpicks > .pick.locked .bar.w60 { width: 60%; height: 14px; }
.mpicks > .pick.locked .bar.w90 { width: 90%; }
.mpicks > .pick.locked .bar.w30 { width: 30%; }
.picks-lock { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; margin: -150px auto 0; max-width: 30rem; padding: 28px 24px; border-radius: 22px; background: rgba(12, 12, 22, 0.88); border: 1px solid rgba(139, 125, 255, 0.45); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.picks-lock-n { display: inline-flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.picks-lock-n svg { width: 18px; height: 18px; color: var(--accent); }

.acct-member { display: grid; gap: 14px; margin-top: 6px; padding: 18px; border-radius: 18px; background: rgba(139, 125, 255, 0.08); border: 1px solid rgba(139, 125, 255, 0.3); }
.acct-member.on { background: radial-gradient(120% 140% at 0% 0%, rgba(91, 77, 255, 0.25), rgba(17, 17, 32, 0) 65%), rgba(139, 125, 255, 0.06); border-color: rgba(139, 125, 255, 0.5); }
.acct-member-head { display: flex; gap: 12px; align-items: flex-start; }
.acct-member-head > svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.acct-member-title { font-weight: 600; color: var(--ink); }
.acct-member-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-member-confirm { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.btn.danger { color: var(--bad); border-color: rgba(255, 122, 122, 0.4); }
@media (hover: hover) and (pointer: fine) { .btn.danger:hover { border-color: var(--bad); } }


/* ---------- Motion: reveals and the spotlight (Byron's rules: nothing lifts or scales on hover, reveals fire once) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.perks > li, .price-grid > .price, .member-card, .nx-cta-card):not(.in) { opacity: 0; transform: translateY(22px); }
  /* If the script never starts, show everything after 4 seconds anyway. */
  .js:not(.rv-on) :is(.perks > li, .price-grid > .price, .member-card, .nx-cta-card):not(.in) { animation: rv-safe 1ms linear 4s forwards; }
  .js :is(.perks > li, .price-grid > .price, .member-card, .nx-cta-card).in { transition: opacity 700ms var(--ease) var(--rv-d, 0ms), transform 700ms var(--ease) var(--rv-d, 0ms), border-color 200ms var(--ease), background-color 200ms var(--ease); }
  @keyframes rv-safe { to { opacity: 1; transform: none; } }
}

/* A soft light that follows the pointer inside cards, plus a lit edge. Colour only: nothing moves. */
.skill { isolation: isolate; }
.tile a::before, .skill::before, .nx-cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 125, 255, 0.14), transparent 45%); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.tile a::after, .skill::after, .nx-cta-card::after { content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 188, 255, 0.75), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .tile a:hover::before, .tile a:hover::after, .skill:hover::before, .skill:hover::after, .nx-cta-card:hover::before, .nx-cta-card:hover::after { opacity: 1; }
  .tile a:hover { border-color: rgba(139, 125, 255, 0.3); background-color: var(--panel-2); }
  .tile a:hover .tile-go { background: #fff; border-color: #fff; color: #07070c; }
}

/* ---------- Niches page ---------- */
.nx-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 136px) 56px; }
.nx-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask: radial-gradient(70% 80% at 70% 20%, #000, transparent 75%); mask: radial-gradient(70% 80% at 70% 20%, #000, transparent 75%); }
.nx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.nx-bg i { position: absolute; border-radius: 50%; }
.nx-bg .a1 { width: 62vw; height: 62vw; right: -14vw; top: -30vw; background: radial-gradient(circle, rgba(91, 77, 255, 0.55), rgba(91, 77, 255, 0) 62%); }
.nx-bg .a2 { width: 38vw; height: 38vw; right: 18vw; top: 4vw; background: radial-gradient(circle, rgba(61, 220, 132, 0.16), rgba(61, 220, 132, 0) 62%); }
.nx-bg .a3 { width: 44vw; height: 44vw; left: -16vw; bottom: -24vw; background: radial-gradient(circle, rgba(179, 168, 255, 0.22), rgba(179, 168, 255, 0) 62%); }
.nx-hero-in { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.nx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--muted); }
.nx-kicker strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.nx-kicker .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--go); opacity: 0; }
.nx-title { font-size: clamp(3.75rem, 12.5vw, 11rem); line-height: 0.9; letter-spacing: -0.055em; margin: 4px 0 0 -0.04em; }
.nx-title .ln { display: inline-block; overflow: hidden; padding: 0.04em 0.06em 0.14em 0; margin-bottom: -0.1em; vertical-align: top; }
.nx-title .ln > span { display: inline-block; }
.nx-title .grad { background: linear-gradient(100deg, #ffffff 0%, #d8d2ff 30%, #8b7dff 62%, #3ddc84 100%); background-size: 220% 100%; background-position: 0% 50%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-hero .lede { max-width: 40ch; }
.nx-hero .search { width: min(100%, 40rem); }
.nx-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 500 0.9375rem var(--body); cursor: pointer; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.nx-chip span { color: var(--dim); font-size: 0.8125rem; font-variant-numeric: tabular-nums; transition: color 200ms var(--ease); }
.nx-chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #07070c; }
.nx-chip[aria-pressed="true"] span { color: #5d5d78; }
@media (hover: hover) and (pointer: fine) { .nx-chip:not([aria-pressed="true"]):hover { border-color: rgba(255, 255, 255, 0.45); color: var(--ink); } }

.nx-marquee { position: relative; display: grid; gap: 6px; padding-block: 26px; border-block: 1px solid var(--line); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq { overflow: hidden; }
.mq-track { display: flex; align-items: center; width: max-content; }
.mq-track > * { margin-right: 28px; }
.mq-item { font: 400 clamp(2rem, 4.6vw, 4rem)/1.12 var(--display); letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; }
.mq-item.out { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32); }
.mq-sep { display: grid; place-items: center; color: var(--accent); }
.mq-sep svg { width: 22px; height: 22px; }

.nx-list > .wrap { gap: 72px; }
.nx-group[hidden] { display: none; }
.nx-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nx-num { font: 400 clamp(2.75rem, 6vw, 5rem)/0.85 var(--display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
.nx-group-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.nx-group-head p { color: var(--muted); margin-top: 6px; }
.nx-gcount { font-size: 0.875rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 640px) { .nx-group-head { grid-template-columns: auto minmax(0, 1fr); } .nx-gcount { display: none; } }

.nx-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 12px; }
.nx-cta-card { position: relative; isolation: isolate; display: grid; gap: 14px; align-content: start; padding: clamp(28px, 4vw, 44px); border-radius: 26px; background: var(--panel); border: 1px solid var(--line); }
.nx-cta-card.is-member { background: radial-gradient(120% 140% at 0% 0%, rgba(91, 77, 255, 0.32), rgba(17, 17, 32, 0) 60%), var(--panel); border-color: rgba(139, 125, 255, 0.45); }
.nx-cta-card h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.nx-cta-card > p:not(.member-eyebrow) { color: var(--text); max-width: 42ch; }
.nx-cta-card .member-eyebrow svg { width: 16px; height: 16px; }
.nx-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 6px; }
.nx-ask input { grid-column: 1 / -1; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 400 1rem var(--body); }
.nx-ask input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); }
.nx-ask .btn { grid-column: 1 / -1; justify-self: start; }
.nx-ask .note:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes nx-drift-a { to { transform: translate3d(-6vw, 4vw, 0); } }
  @keyframes nx-drift-b { to { transform: translate3d(8vw, -3vw, 0); } }
  .nx-title .ln > span { animation: nx-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .nx-title .ln + .ln > span, .nx-title .ln:nth-of-type(2) > span { animation-delay: 110ms; }
  .nx-title .grad { animation: nx-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) 110ms both; }
  @keyframes nx-rise { from { transform: translateY(108%); } }
  @keyframes nx-shine { to { background-position: 100% 50%; } }
  .nx-hero-in > :not(.nx-title) { animation: nx-fade 900ms var(--ease) both; }
  .nx-hero-in > .lede { animation-delay: 240ms; }
  .nx-hero-in > .search { animation-delay: 320ms; }
  .nx-hero-in > .nx-filter { animation-delay: 400ms; }
  @keyframes nx-fade { from { opacity: 0; transform: translateY(14px); } }
  .live-dot::after { animation: nx-ping 2.4s var(--ease) infinite; }
  @keyframes nx-ping { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
  .mq-track { animation: nx-marquee 80s linear infinite; }
  .mq.rev .mq-track { animation-duration: 95s; animation-direction: reverse; }
  @keyframes nx-marquee { to { transform: translate3d(-50%, 0, 0); } }
  .nx-marquee:hover .mq-track { animation-play-state: paused; }
}

/* ---------- Data report ---------- */
.rp-title { font-size: clamp(2.75rem, 7vw, 6rem); max-width: 16ch; line-height: 0.95; letter-spacing: -0.05em; }
.rp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; }
.rp-stats li { display: grid; gap: 6px; align-content: start; padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.rp-stats strong { font: 400 clamp(2.5rem, 4.5vw, 3.75rem)/1 var(--display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-stats span { color: var(--text); }
.rp-stats small { color: var(--muted); font-size: 0.8125rem; }
.rp-prose h2 { margin-top: 48px; }
.rp-findings li { margin-bottom: 10px; }
.rp-findings strong { color: var(--ink); }
.rp-bars { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.rp-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.rp-bars .meter { height: 8px; }
.rp-bars strong { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
.rp-bar-label { color: var(--text); font-size: 0.9375rem; }
.rp-cite { padding: 14px 18px; border-radius: 14px; background: rgba(139, 125, 255, 0.08); border: 1px solid rgba(139, 125, 255, 0.3); color: var(--text); font-size: 0.9375rem; }
@media (max-width: 600px) { .rp-bars li { grid-template-columns: 1fr auto; } .rp-bars .meter { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- /niches on phones: compact two column tiles and a single scrolling filter row ---------- */
@media (max-width: 600px) {
  .nx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; scroll-snap-type: x proximity; }
  .nx-filter::-webkit-scrollbar { display: none; }
  .nx-filter > * { flex: none; scroll-snap-align: start; }
  .nx-list .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nx-list .tile a { padding: 14px; gap: 6px; border-radius: 16px; }
  .nx-list .tile-blurb, .nx-list .tile-go { display: none; }
  .nx-list .tile strong { font-size: 1rem; }
  .nx-list .tile-foot small { display: none; }
}

.step-n { display: block; font: 400 0.875rem var(--display); color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .trio .media { min-height: 0; } .trio .art { padding: 20px 20px 0; } }

/* ---------- Guides index: editorial ---------- */
.g-h { font-size: var(--fs-22); letter-spacing: -0.015em; margin: 0 0 16px; }
.g-start { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-start a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 26px; border-radius: 20px; background: linear-gradient(165deg, var(--panel-2, #17162c), var(--panel) 60%); border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: border-color 160ms var(--ease); }
.g-start h3 { font-size: var(--fs-22); line-height: 1.15; }
.g-start p { margin: 0; font-size: var(--fs-14); }
@media (hover: hover) and (pointer: fine) { .g-start a:hover { border-color: var(--line-2); } .g-list a:hover strong { color: var(--accent); } }
.g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.g-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.g-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.g-list a { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.g-list strong { color: var(--ink); font-weight: 500; transition: color 160ms var(--ease); }
.g-list span { color: var(--muted); font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-meta { color: var(--muted); font-size: var(--fs-13); white-space: nowrap; }
@media (max-width: 900px) { .g-start { grid-template-columns: 1fr; } .g-cols { grid-template-columns: 1fr; } .g-list span { white-space: normal; } }

/* ---------- Niche heads: the picks and the bundle button sit in the hero ---------- */
@media (min-width: 900px) {
  .field-head .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 26rem); column-gap: 56px; align-items: start; }
  .field-head .wrap > :not(.picks) { grid-column: 1; }
  .field-head .picks { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
}
.field-head .picks { margin-top: 24px; position: relative; z-index: 1; }
.field-head .picks .best { margin-top: 16px; }
.field-head .picks ol { max-height: 22rem; overflow: auto; }

/* ---------- Guide articles: contents in a sticky side column ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 44rem); justify-content: center; gap: 72px; }
.toc { display: none; }
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, 44rem) 14rem; }
  .toc { display: grid; gap: 10px; position: sticky; top: 104px; align-self: start; font-size: var(--fs-14); }
  .toc a { color: var(--muted); text-decoration: none; line-height: 1.35; transition: color 160ms var(--ease); }
  .toc a[aria-current="true"] { color: var(--ink); }
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.toc-h { margin: 0 0 4px; font-size: var(--fs-13); color: var(--muted); letter-spacing: 0.02em; }
.prose h2[id] { scroll-margin-top: 96px; }

/* ---------- With and without the skill ---------- */
.vs { display: grid; gap: 14px; margin-top: 14px; padding: 20px; border-radius: 22px; background: rgba(18, 18, 34, 0.86); border: 1px solid var(--line-2); }
.vs-req { margin: 0; padding: 14px 16px; border-radius: 16px; background: #2b2b4a; color: var(--ink); font-size: 0.9375rem; line-height: 1.45; white-space: pre-line; }
.vs-req span { display: block; margin-bottom: 6px; font-size: var(--fs-13); color: var(--muted); }
.vs-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.vs-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 0.875rem var(--body); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.vs-tabs button span { font-variant-numeric: tabular-nums; color: inherit; opacity: 0.8; }
.vs-tabs button[aria-selected="true"] { background: #fff; color: #07070c; }
.vs-panel { max-height: 30rem; overflow: auto; padding: 4px 4px 4px 0; }
.rt-h { margin-top: 6px !important; }
@media (max-width: 520px) { .vs { padding: 14px; } .vs-tabs { width: 100%; } .vs-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 0.8125rem; white-space: nowrap; gap: 6px; } .vs-req { max-height: 13rem; overflow: auto; } }

/* ---------- Home: the products we make ---------- */
.own-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.own-card { display: grid; gap: 12px; align-content: start; height: 100%; padding: 26px; border-radius: 22px; text-decoration: none; color: var(--muted); background: radial-gradient(120% 90% at 0% 0%, rgba(91, 77, 255, 0.22), rgba(7, 7, 12, 0) 60%), var(--panel); border: 1px solid rgba(139, 125, 255, 0.28); transition: border-color 200ms var(--ease); }
.own-card .badge { justify-self: start; }
.own-card h3 { font-size: var(--fs-22); }
.own-card p { margin: 0; font-size: var(--fs-14); }
.own-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-13); }
.own-stats strong { display: block; font: 400 1.75rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .own-card:hover { border-color: rgba(139, 125, 255, 0.6); } }
@media (max-width: 900px) { .own-grid { grid-template-columns: 1fr; } }
