/* ==========================================================================
   Wholesale Launchpad members area
   Type: Inter + Inter Display (self hosted, same cut ghost.org uses)
   Tokens ported verbatim from the funnel (access.html)
   ========================================================================== */

@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://storage.ghost.io/c/e3/75/e37559dc-0240-40a5-8448-c32b57870efe/content/files/2026/07/InterVariable-1.woff2') format('woff2');
}
@font-face {
  font-family: 'InterVariable';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://storage.ghost.io/c/e3/75/e37559dc-0240-40a5-8448-c32b57870efe/content/files/2026/07/InterVariable-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://storage.ghost.io/c/e3/75/e37559dc-0240-40a5-8448-c32b57870efe/content/files/2026/07/InterDisplay-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://storage.ghost.io/c/e3/75/e37559dc-0240-40a5-8448-c32b57870efe/content/files/2026/07/InterDisplay-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'InterDisplay';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://storage.ghost.io/c/e3/75/e37559dc-0240-40a5-8448-c32b57870efe/content/files/2026/07/InterDisplay-Bold.woff2') format('woff2');
}

:root {
  --ink: #0D0F12;
  --ink-2: #1B1D22;
  --amz: #FE7901;
  --amz-deep: #B85701;
  --amz-wash: #FFF1E4;
  --paper: #FFFFFF;
  --paper-2: #F7F8FA;
  --muted: #5C6470;
  --hair: rgba(13, 15, 18, .10);
  --hair-soft: rgba(13, 15, 18, .06);
  --maxw: 680px;
  --r-card: 16px;
  --r-btn: 12px;
  --sans: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'InterDisplay', 'InterVariable', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* ---------- shell ---------- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}

.masthead__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.02em;
}
.brand svg { width: 20px; height: 20px; display: block; }

.masthead__spacer { flex: 1; }

.masthead__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.masthead__link:hover { color: var(--ink); }

.progressbar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--amz);
  z-index: 60;
  width: 0;
  transition: width .1s linear;
}

/* ---------- home ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--hair-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amz-deep);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 56px);
  max-width: 15ch;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__stat span { font-size: 13px; color: var(--muted); }

/* ---------- groups ---------- */

.group { padding: 56px 0 8px; }

.group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.group__head h2 { font-size: 27px; }
.group__count {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--paper);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
  min-height: 132px;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card__top { display: flex; align-items: center; gap: 10px; }

.card__num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  color: var(--amz-deep);
  background: var(--amz-wash);
  border-radius: 999px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.card__icon { font-size: 15px; line-height: 1; }

.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__go {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card__go { color: var(--amz-deep); }
.card__go svg { transition: transform .16s ease; }
.card:hover .card__go svg { transform: translateX(3px); }

/* ---------- lesson layout ---------- */

.lesson {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 0;
  align-items: start;
}

.rail {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-bottom: 40px;
  scrollbar-width: thin;
}
.rail__group + .rail__group { margin-top: 26px; }
.rail__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.rail a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
  transition: background .14s ease, color .14s ease;
}
.rail a:hover { color: var(--ink); background: var(--paper-2); }
.rail a.is-current {
  color: var(--ink);
  font-weight: 600;
  background: var(--amz-wash);
}
.rail a i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--muted);
  min-width: 15px;
}
.rail a.is-current i { color: var(--amz-deep); }

.article { max-width: var(--maxw); padding-bottom: 40px; }

.article__head { margin-bottom: 40px; }
.article__crumb {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.article__crumb:hover { color: var(--ink); }

.article h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  margin-bottom: 0;
}

/* ---------- prose ---------- */

.prose { font-size: 18px; line-height: 1.72; }

.prose > * + * { margin-top: 1.35em; }

.prose h1 {
  font-size: 30px;
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--hair-soft);
}
.prose h2 { font-size: 25px; margin-top: 1.9em; letter-spacing: -0.021em; }
.prose h3 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 2em;
  letter-spacing: -0.018em;
  line-height: 1.3;
}
.prose h1 + *, .prose h2 + *, .prose h3 + * { margin-top: .75em; }

/* Notion used a hard break per line, so most paragraphs are one line.
   Keep them as a tight stack rather than full paragraph spacing. */
.prose p + p { margin-top: .55em; }

/* the hr already separates the parts, so the first h1 after one does not need a rule */
.prose hr + h1 { border-top: 0; padding-top: 0; margin-top: 0; }

.prose > *:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amz);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .14s ease;
}
.prose a:hover { color: var(--amz-deep); }

.prose strong { font-weight: 650; }

.prose ul, .prose ol { margin: 1.35em 0; padding-left: 22px; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--amz); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--amz);
  color: var(--ink-2);
}
.prose blockquote p + p { margin-top: .8em; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--hair-soft);
  margin: 2.6em 0;
}

.prose img {
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  margin: 1.8em 0;
}

.prose figure { margin: 1.8em 0; }
.prose figcaption {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.prose code {
  font-size: .88em;
  background: var(--paper-2);
  border: 1px solid var(--hair-soft);
  border-radius: 5px;
  padding: 1px 5px;
}

/* embedded boards. Ghost rewrites a bare iframe into figure.kg-embed-card,
   so target that rather than our own wrapper, which gets stripped on import. */
.prose .kg-embed-card,
.prose .embed {
  position: relative;
  margin: 1.8em 0;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.prose .kg-embed-card iframe,
.prose .embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 620px) {
  .prose .kg-embed-card,
  .prose .embed { aspect-ratio: 4 / 5; }
}

/* attachment / nested placeholders */
.slab {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-btn);
  background: var(--paper-2);
  font-size: 15px;
  margin: 1.6em 0;
}
.slab svg { flex: none; color: var(--amz-deep); }
.slab b { font-weight: 600; }
.slab span { color: var(--muted); font-size: 13.5px; display: block; margin-top: 1px; }

/* ---------- prev / next ---------- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--hair-soft);
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  text-decoration: none;
  transition: border-color .16s ease;
}
.pager a:hover { border-color: var(--ink); }
.pager small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.pager b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.017em;
  line-height: 1.3;
}
.pager .is-next { text-align: right; }
.pager .is-empty { border-color: transparent; }

/* ---------- footer ---------- */

.foot {
  margin-top: auto;
  border-top: 1px solid var(--hair-soft);
  padding: 30px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.foot__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: baseline;
}
.foot__link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
}
.foot__link:hover { color: var(--ink); text-decoration-color: var(--amz); }
.foot__quiet { margin-left: auto; }
@media (max-width: 620px) { .foot__quiet { margin-left: 0; } }

/* ---------- front door ---------- */

.door {
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(64px, 13vh, 140px) 28px 90px;
  text-align: center;
}
.door__mark { width: 52px; margin: 0 auto 30px; }
.door__mark svg { width: 100%; height: auto; display: block; }

.door .eyebrow { margin-bottom: 14px; }

.door h1 {
  font-size: clamp(32px, 5vw, 42px);
  margin-bottom: 16px;
}
.door p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 40ch;
}

.door__form { display: flex; flex-direction: column; gap: 10px; }
.door__form input {
  font: inherit;
  font-size: 16px;
  text-align: center;
  padding: 15px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-btn);
  outline: none;
  transition: border-color .14s ease;
}
.door__form input:focus { border-color: var(--ink); }
.door__form input::placeholder { color: #9AA1AC; }

.btn--lg { padding: 15px 22px; font-size: 16px; width: 100%; }
.btn__busy { display: none; }
.door__form.loading .btn__idle { display: none; }
.door__form.loading .btn__busy { display: inline; }

/* Ghost puts .success / .error on the form after submit */
.door__sent, .door__err { display: none; margin: 18px auto 0; font-size: 15px; }
.door__sent { color: var(--amz-deep); font-weight: 500; }
.door__err { color: #B4232A; }
.door__form.success ~ .door__sent { display: block; }
.door__form.success { display: none; }
.door__form.error ~ .door__err { display: block; }

.door__note {
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--muted);
  opacity: .8;
}

/* the door has no nav, the mark is the whole header */
body.is-door .masthead { display: none; }

/* ---------- gate ---------- */

.gate {
  max-width: 420px;
  margin: 0 auto;
  padding: 110px 28px 80px;
  text-align: center;
}
.gate h1 { font-size: 34px; margin-bottom: 14px; }
.gate p { color: var(--muted); margin: 0 0 28px; }
.gate form { display: flex; flex-direction: column; gap: 10px; }
.gate input {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-btn);
  outline: none;
}
.gate input:focus { border-color: var(--ink); }
.btn {
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: #F5F5F5;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .lesson { grid-template-columns: 1fr; gap: 0; padding-top: 34px; }
  .rail { display: none; }
  .article { max-width: none; }
}

@media (max-width: 620px) {
  .wrap, .masthead__in, .foot__in, .lesson { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 56px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .is-next { text-align: left; }
  .prose { font-size: 17px; }
}

/* Ghost editor card widths */
.prose .kg-width-wide  { max-width: 900px; margin-left: 50%; transform: translateX(-50%); }
.prose .kg-width-full  { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.prose .kg-image       { border-radius: var(--r-card); }
