/*
 * Agency Launchpad public site.
 *
 * Direction
 *   Product    A free community that teaches people to start social media marketing agencies and AI automation,
 *              with one-to-one guidance from experienced marketers.
 *   Character  plain-spoken, practical, honest about what is not guaranteed
 *   World      a first desk and a first client call, in daylight
 *   Moment     the launch path in the hero (it draws itself once); the join path that follows the reader
 *   Signature  a thin blue trail with checkpoints, the same line everywhere
 *
 * Built with the unslop, impeccable, taste-skill, GSAP and React Bits guidance.
 * Unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. https://github.com/heydamir/unslop
 */

:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --raised: #eef1f6;
  --text: #111827;
  --text-2: #4b5565;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.08);
  --line-2: rgba(17, 24, 39, 0.14);
  --blue: #1a64e8;
  --blue-dark: #1556c9;
  --blue-tint: #e9f0fe;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head: Outfit, 'Segoe UI', Arial, sans-serif;
  --body: Manrope, 'Segoe UI', Arial, sans-serif;
  --shadow-s: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-m: 0 8px 24px rgba(17, 24, 39, 0.07);
  --edge: max(32px, calc((100vw - 1120px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; interpolate-size: allow-keywords; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/28px var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.button:focus-visible, .nav-apply:focus-visible { outline-color: var(--text); outline-offset: 3px; border-radius: 10px; }
.closing a:focus-visible { outline-color: #fff; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; color: var(--text); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 40; background: var(--card); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* The parts the browser draws */
::selection { background: rgba(26, 100, 232, 0.22); color: var(--text); }
html { scrollbar-width: thin; scrollbar-color: rgba(17, 24, 39, 0.28) var(--bg); }
a:not(.button):not(.nav-apply):not(.nav-link):not(.brand):not(.text-link) { text-underline-offset: 0.2em; }

/* ── Header ─────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.navigation { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 36px; object-fit: contain; transition: transform 300ms var(--ease); }
.brand span { font: 400 24px/32px var(--head); letter-spacing: -0.03em; }
.brand b { font-weight: 600; }
.brand:hover img { transform: translateY(-2px); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--raised); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--blue); }
.nav-apply {
  height: 40px; margin-left: 8px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.nav-apply:hover { background: var(--blue-dark); }
.nav-apply:active { transform: scale(0.98); }

/* ── Buttons ────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  background: var(--blue); border: 1px solid var(--blue); color: #fff;
  font-size: 15px; line-height: 20px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button:active { transform: scale(0.98); }
.button .discord-logo { width: 20px; height: 20px; flex: none; margin: 0; }
.button-outline { background: var(--card); border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow-s); }
.button-outline:hover { background: var(--raised); }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; font-size: 15px; font-weight: 600; color: var(--text); }
.text-link::after { content: ''; position: absolute; left: 0; right: 24px; bottom: 11px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }

/* ── Entrance holding state: hidden only while the script is on its way ─ */
.will-fx [data-split] { visibility: hidden; }
.split-line { display: inline-block; padding-bottom: 8px; margin-bottom: -8px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { min-height: calc(100svh - 81px); display: flex; align-items: center; padding-block: 56px 72px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(48px, 7.2vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
.hero h1 .blue { color: var(--blue); }
.hero-description { margin: 28px 0 0; font-size: 20px; line-height: 32px; color: var(--text-2); max-width: 30rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }

.path { position: relative; margin: 0; }
.path-art { display: block; width: 100%; height: auto; overflow: visible; }
#path-line { stroke: var(--line-2); }
#path-draw { stroke: var(--blue); }
#path-dot { fill: var(--blue); stroke: var(--bg); stroke-width: 4; }
.node-ring { fill: var(--card); stroke: var(--line-2); stroke-width: 2; transition: fill 300ms var(--ease), stroke 300ms var(--ease); }
.node-check { fill: none; stroke: #fff; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 300ms var(--ease); }
.node-tag { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 20px/24px var(--head); letter-spacing: -0.01em; color: var(--text); pointer-events: none; }
.node.done .node-ring { fill: var(--blue); stroke: var(--blue); }
.node.done .node-check { opacity: 1; }
.no-js .node .node-ring { fill: var(--blue); stroke: var(--blue); }
.no-js .node .node-check { opacity: 1; }
.no-js #path-draw { stroke-dasharray: none; }
.no-js #path-dot { display: none; }

/* ── Sections ───────────────────────────────────────────────────── */
section.wrap { padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 80px; }
.free, .inside, .join, .faq-section { min-height: calc(100svh - 81px); align-content: center; }
.hero.wrap { padding-top: 56px; padding-bottom: 72px; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }

/* Free VIP: one statement, three points */
.free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; border-top: 1px solid var(--line); }
.free h2 span { display: block; color: var(--blue); }
.free-side { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.free-side > p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 30px; max-width: 28rem; }
.trail { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 20px; }
.trail::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.trail li { position: relative; display: flex; align-items: center; gap: 16px; font: 500 20px/28px var(--head); letter-spacing: -0.01em; }
.trail li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5 10 16.5 18 8'/></svg>") center / 14px no-repeat;
}

/* What you learn: a ruled list, not a grid of cards */
.inside { display: grid; border-top: 1px solid var(--line); }
.inside-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-bottom: 32px; }
.inside-head p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 30px; max-width: 30rem; }
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.row h3 { position: relative; display: inline-block; justify-self: start; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -0.02em; transition: color 200ms var(--ease), transform 300ms var(--ease); }
.row h3::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease); }
.row:hover h3 { color: var(--blue); }
.row:hover h3::after { transform: scaleX(1); }
.row p { margin: 0; color: var(--text-2); font-size: 17px; line-height: 28px; max-width: 34rem; }

/* How to join: the line follows the reader */
.join { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; border-top: 1px solid var(--line); }
.join-head { position: sticky; top: 128px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.join-head p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 30px; max-width: 26rem; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 56px; display: flex; flex-direction: column; gap: 64px; }
.steps-track { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); border-radius: 1px; }
.steps-line { position: absolute; inset: 0; background: var(--blue); border-radius: 1px; transform: scaleY(0); transform-origin: 50% 0; }
.step { position: relative; }
.step-dot { position: absolute; left: -56px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.step.on .step-dot { background: var(--blue); border-color: var(--blue); }
.step h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--text-2); transition: color 300ms var(--ease); }
.step.on h3 { color: var(--text); }
.step p { margin: 0; max-width: 28rem; font-size: 17px; line-height: 28px; color: var(--text-2); }
.no-js .steps-line { transform: scaleY(1); }
.no-js .step-dot { background: var(--blue); border-color: var(--blue); }
.no-js .step h3 { color: var(--text); }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; border-top: 1px solid var(--line); }
.faq-heading { position: sticky; top: 128px; }
.faq-heading p { margin: 12px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; transition: border-color 160ms var(--ease); }
.faq-item:hover { border-color: var(--line-2); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 20px 24px; cursor: pointer; user-select: none;
  font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 16px; height: 16px; background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
  transition: transform 260ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-answer { padding: 0 24px 24px; }
.faq-item .faq-answer p { max-width: 52rem; margin: 0; font-size: 15px; line-height: 26px; color: var(--text-2); }

/* Closing */
.closing { display: grid; align-items: center; background: var(--text); }
.closing-in { padding-block: 96px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.closing h2 { color: #fff; max-width: 28rem; }
.closing p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 24px; }

/* Software page */
.software-page { flex: 1; padding: 96px 0 128px; }
.software-page h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
.software-page .lead { margin: 16px 0 48px; color: var(--text-2); font-size: 18px; line-height: 28px; max-width: 34rem; }
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.software-card { display: flex; flex-direction: column; gap: 8px; min-height: 192px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-s); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 220ms var(--ease); }
.software-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.software-card h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.software-card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--text-2); }
.software-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.software-card .go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.software-card:hover .go svg { transform: translate(2px, -2px); }

/* Legal pages */
.legal-page { max-width: 760px; padding-block: 80px 96px; }
.legal-kicker { margin: 0 0 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--blue); }
.legal-page h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.legal-date { margin: 16px 0 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.legal-intro { font-size: 18px; line-height: 30px; color: var(--text-2); padding-bottom: 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.legal-page h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal-page article p { margin: 0 0 16px; font-size: 16px; line-height: 28px; color: var(--text-2); max-width: 70ch; }
.legal-page article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-page article a:hover { color: var(--blue-dark); }

/* Footer */
.site-footer { margin-top: 0; padding-block: 40px 32px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); transition: color 160ms var(--ease); }
.site-footer a:hover { color: var(--blue); }
.site-footer p { margin: 24px 0 0; max-width: 40rem; line-height: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; }
  .path { max-width: 520px; }
  .free, .join, .faq-section, .inside-head { grid-template-columns: 1fr; gap: 32px; }
  .free, .inside, .join, .faq-section { min-height: 0; }
  .join-head, .faq-heading { position: static; }
  .row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .software-grid { grid-template-columns: 1fr; }
  .software-card { min-height: 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .navigation { height: auto; padding-block: 16px; flex-wrap: wrap; gap: 12px; }
  .brand span { font-size: 22px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 4px; }
  .nav-apply { margin-left: auto; }
  .hero.wrap { padding-top: 40px; padding-bottom: 56px; }
  .hero-description { font-size: 18px; line-height: 28px; margin-top: 20px; }
  .hero-actions { gap: 8px; margin-top: 28px; }
  section.wrap { padding-top: 80px; padding-bottom: 0; }
  .steps { padding-left: 48px; gap: 48px; }
  .step-dot { left: -48px; }
  .steps-track { left: 11px; }
  .faq-item summary { padding: 16px 20px; min-height: 56px; }
  .faq-answer { padding: 0 20px 20px; }
  .closing-in { padding-block: 72px; }
  .button { width: 100%; }
  .brand { min-height: 44px; }
  .nav-link { height: 44px; }
  .nav-apply { height: 44px; }
  .footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .node-tag { font-size: 16px; line-height: 20px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .legal-page { padding-block: 48px 64px; }
  .software-page { padding: 56px 0 80px; }
}
