/*
 * /bio-link: paid-ad landing page in the v03 light language.
 * Colours, fonts, radii, easing and the K-line pattern come from /tokens.css,
 * which the page loads first. The page keeps its own campaign header, footer
 * and sticky mobile CTA; /bio-link.js toggles [hidden] on the CTA bar at the
 * same 820px breakpoint used below and drives the template carousel through
 * its data attributes and aria-current.
 */
.bio-page {
  margin: 0;
  background: var(--k-bg);
  color: var(--k-ink);
  font: 400 16px/1.6 var(--k-font-text);
  -webkit-font-smoothing: antialiased;
}
.bio-page *, .bio-page *::before, .bio-page *::after { box-sizing: border-box; }
.bio-page [hidden] { display: none !important; }
:where(.bio-page) img { display: block; max-width: 100%; height: auto; }
:where(.bio-page) a { color: inherit; text-decoration: none; }
:where(.bio-page) button { font: inherit; color: inherit; }
:where(.bio-page) :is(h1, h2, h3, p, figure) { margin: 0; }
:where(.bio-page) :is(h1, h2, h3, strong) { font-weight: 400; }
.bio-page ::selection { background: var(--k-accent); color: var(--k-on-accent); }
.bio-page :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--k-green); outline-offset: 3px; }
.bio-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bio-page [id] { scroll-margin-top: 30px; }
.bio-page em { color: var(--k-green-text); font-style: normal; }
.bio-wrap { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.bio-skip { position: fixed; z-index: 30; left: 16px; top: 12px; padding: 10px 18px; border-radius: 999px; background: var(--k-ink); color: var(--k-bg); transform: translateY(-160%); transition: transform .3s var(--k-ease); }
.bio-skip:focus { transform: none; }

/* campaign header: wordmark left, ink pill right */
.bio-header { min-height: 80px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--k-line); }
.bio-brand { position: relative; width: 138px; flex-shrink: 0; }
.bio-brand img { width: 100%; }
/* The wordmark file is lime for the old dark page; redraw it in ink from its own alpha. */
@supports (mask-image: none) or (-webkit-mask-image: none) {
  .bio-brand::before { content: ""; position: absolute; inset: 0; background: var(--k-ink); -webkit-mask: url("/assets/landing/wordmark.png") center / contain no-repeat; mask: url("/assets/landing/wordmark.png") center / contain no-repeat; pointer-events: none; }
  .bio-brand img { opacity: 0; }
}
.bio-header-cta { display: inline-flex; align-items: center; margin-left: auto; min-height: 40px; padding: 8px 18px; border: 1px solid var(--k-ink); border-radius: 999px; background: var(--k-ink); color: var(--k-bg); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: transform .3s var(--k-ease); }
.bio-header-cta:hover { transform: translateY(-2px); }

/* primary CTA: lime pill */
.bio-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--k-accent); border-radius: 999px; background: var(--k-accent); color: var(--k-on-accent); font-size: 15px; font-weight: 500; line-height: 1.3; text-align: center; transition: transform .3s var(--k-ease), box-shadow .3s var(--k-ease); }
.bio-button:hover { transform: translateY(-2px); box-shadow: var(--k-shadow-soft); }

/* hero: username form and the Instagram-to-Knockin flow */
.bio-hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 52px; padding-block: 64px 88px; }
.bio-hero h1 { margin: 0 0 28px; font: 300 clamp(82px, 8.8vw, 124px)/.9 var(--k-font-display); letter-spacing: -.005em; }
.bio-lead { max-width: 42ch; color: var(--k-ink-2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; }
.bio-slug-form { width: min(510px, 100%); min-height: 60px; display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; margin-top: 34px; padding: 5px; border: 1px solid var(--k-ink); border-radius: 999px; background: var(--k-surface); box-shadow: var(--k-shadow-soft); }
.bio-slug-prefix { display: flex; align-items: center; padding-left: 18px; font-size: 17px; color: var(--k-ink-2); white-space: nowrap; }
.bio-slug-form input { min-width: 0; width: 100%; height: 48px; border: 0; outline: 0; padding: 0 6px 0 1px; background: transparent; color: var(--k-ink); font: inherit; font-size: 17px; }
.bio-slug-form input::placeholder { color: var(--k-ink-3); opacity: 1; }
.bio-slug-form input:focus-visible { outline: 2px solid var(--k-green); outline-offset: 2px; }
@supports selector(:has(*)) {
  .bio-slug-form input:focus-visible { outline: 0; }
  .bio-slug-form:has(input:focus-visible) { outline: 2px solid var(--k-green); outline-offset: 3px; }
}
.bio-slug-form .bio-button { min-height: 48px; cursor: pointer; white-space: nowrap; }
.bio-hero-art { width: 100%; max-width: 620px; justify-self: end; }
.bio-link-flow { position: relative; width: 100%; min-height: 540px; isolation: isolate; }
.bio-link-flow::before { content: ""; position: absolute; z-index: 0; inset: 28px 0 20px 11%; border-radius: var(--k-radius); background: var(--k-bg-2) var(--k-kline); background-size: var(--k-kline-size); }
.bio-flow-instagram { position: absolute; z-index: 1; top: 18px; left: 0; width: 47%; border-radius: var(--k-radius-sm); box-shadow: var(--k-shadow-lift); }
.bio-flow-product { position: absolute; z-index: 2; top: 66px; right: 3%; width: 37%; border-radius: var(--k-radius); box-shadow: var(--k-shadow-lift); }
.bio-flow-line { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bio-flow-line path { fill: none; stroke: var(--k-green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bio-flow-line marker path { fill: var(--k-green); stroke: none; }
.bio-value-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.bio-value-strip>div { min-height: 132px; display: grid; align-content: center; padding: 28px 32px; border-right: 1px solid var(--k-line); }
.bio-value-strip>div:last-child { border-right: 0; }
.bio-value-strip strong { font: 400 clamp(30px, 2.6vw, 38px)/1 var(--k-font-display); }
.bio-value-strip small { margin-top: 8px; color: var(--k-ink-2); font-size: 14px; line-height: 1.5; }

/* sections */
.bio-page h2 { font: 300 clamp(54px, 5.6vw, 84px)/.92 var(--k-font-display); letter-spacing: -.005em; }
.bio-split { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.bio-feature-copy h2 { margin-bottom: 24px; }
.bio-feature-copy>p { max-width: 42ch; color: var(--k-ink-2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; }
.bio-feature-copy>p+p { margin-top: 18px; }
.bio-text-link { display: inline-flex; align-items: center; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--k-ink); font-size: 15px; font-weight: 500; transition: color .3s var(--k-ease); }
.bio-feature-copy .bio-text-link { margin-top: 32px; }
.bio-text-link:hover { color: var(--k-green-deep); }
.bio-conversation { padding-block: clamp(72px, 8vw, 112px); }
.bio-conversation .bio-feature-copy .bio-button { margin-top: 32px; }
.bio-product-conversation { width: 100%; max-width: 470px; justify-self: center; }
.bio-product-stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-radius: var(--k-radius); background: var(--k-bg-2) var(--k-kline); background-size: var(--k-kline-size); }
.bio-product-stage::before { content: ""; position: absolute; width: 270px; height: 270px; left: -100px; bottom: -100px; border: 1px solid color-mix(in srgb, var(--k-green) 45%, transparent); border-radius: 50%; }
.bio-product-phone { position: relative; width: 390px; max-width: calc(100% - 44px); overflow: hidden; border: 8px solid var(--k-ink); border-radius: calc(var(--k-radius) + 8px); background: var(--k-ink); box-shadow: var(--k-shadow-lift); }
.bio-product-phone img { width: 100%; }

/* templates carousel (state from /bio-link.js) */
.bio-templates { padding-block: clamp(72px, 8vw, 112px); background: var(--k-bg-2); }
.bio-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.bio-section-heading>p { max-width: 30ch; color: var(--k-ink-2); line-height: 1.6; }
.bio-template-carousel { margin-top: 48px; }
.bio-template-viewport { overflow: hidden; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-surface); box-shadow: var(--k-shadow-soft); }
.bio-template-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; border-radius: calc(var(--k-radius) - 1px); }
.bio-template-track::-webkit-scrollbar { display: none; }
/* The viewport clips overflow, so draw the track's focus ring inside its edge. */
.bio-page .bio-template-track:focus-visible { outline-offset: -4px; }
.bio-template-slide { --bio-template-preview-height: clamp(324.6px, 38.95vw, 484.8px); display: grid; grid-template-columns: clamp(150px, 18vw, 224px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); min-width: 100%; padding: clamp(24px, 4vw, 56px); scroll-snap-align: start; }
.bio-template-slide figure { margin: 0; }
.bio-template-desktop { min-width: 0; }
.bio-template-desktop img { width: 100%; height: var(--bio-template-preview-height); aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border-radius: var(--k-radius-sm); background: var(--k-bg-2); box-shadow: 0 0 0 1px var(--k-line), var(--k-shadow-soft); }
.bio-template-mobile { width: clamp(150px, 18vw, 224px); justify-self: center; }
.bio-template-mobile img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: var(--k-radius-sm); box-shadow: 0 0 0 1px var(--k-line), var(--k-shadow-soft); }
.bio-template-slide figcaption { margin-top: 12px; color: var(--k-ink-2); font: 500 11px/1 var(--k-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.bio-template-mobile figcaption { text-align: center; }
.bio-template-carousel-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 20px; }
.bio-template-status { color: var(--k-ink-2); font: 500 12px/1 var(--k-font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bio-template-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bio-template-dot, .bio-template-control { display: grid; place-items: center; border: 1px solid var(--k-line); background: transparent; color: var(--k-ink-2); cursor: pointer; transition: border-color .3s var(--k-ease), color .3s var(--k-ease), background-color .3s var(--k-ease); }
.bio-template-dot { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--k-font-mono); letter-spacing: .04em; }
.bio-template-dot[aria-current="true"] { border-color: var(--k-ink); background: var(--k-ink); color: var(--k-bg); }
.bio-template-control { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; line-height: 1; }
.bio-template-control:disabled { cursor: default; opacity: .35; }
.bio-template-dot:not(:disabled):hover, .bio-template-control:not(:disabled):hover { border-color: var(--k-ink); color: var(--k-ink); }
.bio-template-control:not(:disabled):hover { background: var(--k-ink); color: var(--k-bg); }
.bio-template-nav { display: flex; gap: 8px; }
.bio-template-footer { display: flex; justify-content: center; padding-top: 32px; }

/* steps */
.bio-build { padding-block: clamp(32px, 4vw, 56px) clamp(72px, 8vw, 112px); }
.bio-build .bio-button { flex-shrink: 0; }
.bio-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 44px 0 0; border-top: 1px solid var(--k-line); }
.bio-steps li { padding: 28px 28px 0 0; }
.bio-steps li+li { padding-left: 28px; border-left: 1px solid var(--k-line); }
.bio-step-number { color: var(--k-green-text); }
.bio-steps h3 { margin-bottom: 12px; font: 400 clamp(30px, 2.6vw, 38px)/1 var(--k-font-display); }
.bio-steps p { max-width: 34ch; color: var(--k-ink-2); line-height: 1.6; }

/* FAQ: hairline accordion */
.bio-faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; padding-block: clamp(32px, 4vw, 56px) clamp(72px, 8vw, 112px); }
.bio-faq-heading .bio-button { margin-top: 34px; }
.bio-faq-list { border-top: 1px solid var(--k-line); }
.bio-faq details { border-bottom: 1px solid var(--k-line); }
.bio-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding-block: 22px; cursor: pointer; font-size: 17px; font-weight: 500; line-height: 1.4; }
.bio-faq summary::-webkit-details-marker { display: none; }
.bio-faq summary>span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--k-line); border-radius: 50%; color: var(--k-ink); font-size: 20px; font-weight: 300; line-height: 1; transition: transform .35s var(--k-ease), background-color .3s var(--k-ease), border-color .3s var(--k-ease), color .3s var(--k-ease); }
.bio-faq summary:hover>span { border-color: var(--k-ink); background: var(--k-ink); color: var(--k-bg); }
.bio-faq details[open] summary>span { transform: rotate(45deg); }
.bio-faq details>p { max-width: 62ch; padding: 0 25px 24px 0; color: var(--k-ink-2); line-height: 1.7; }
.bio-faq details a { color: var(--k-ink); text-decoration: underline; text-underline-offset: 3px; }

/* closing band */
.bio-final { padding-block: clamp(72px, 8vw, 112px); text-align: center; background: var(--k-bg-2) var(--k-kline); background-size: var(--k-kline-size); }
.bio-final h2 { font-size: clamp(72px, 7.8vw, 112px); line-height: .9; }
.bio-final-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 38px; }
.bio-footer { min-height: 100px; display: flex; align-items: center; gap: 30px; padding-block: 26px; color: var(--k-ink-2); font-size: 12.5px; }
.bio-footer .bio-brand { width: 105px; }
.bio-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; }
.bio-footer nav a:hover { color: var(--k-ink); text-decoration: underline; text-underline-offset: 3px; }
.bio-mobile-cta { display: none; }

@media (max-width: 1100px) {
  .bio-wrap { width: calc(100% - 64px); }
  .bio-hero { gap: 36px; }
  .bio-hero h1 { font-size: clamp(80px, 9vw, 108px); }
  .bio-link-flow { min-height: 500px; }
  .bio-value-strip>div { padding-inline: 22px; }
  .bio-split { gap: 48px; }
  .bio-template-slide { gap: 28px; }
  .bio-steps li { padding-right: 20px; }
  .bio-steps li+li { padding-left: 20px; }
  .bio-faq { gap: 42px; }
}
@media (max-width: 820px) {
  .bio-wrap { width: calc(100% - 48px); }
  .bio-header { min-height: 72px; gap: 20px; }
  .bio-brand { width: 119px; }
  .bio-header-cta { font-size: 13px; padding-inline: 16px; }
  .bio-hero { grid-template-columns: 1fr; gap: 44px; padding-block: 36px 56px; }
  .bio-hero h1 { font-size: clamp(80px, 12vw, 108px); }
  .bio-hero-copy { max-width: 570px; }
  .bio-lead { font-size: 17px; }
  .bio-hero-art { max-width: 590px; justify-self: center; }
  .bio-link-flow { min-height: 540px; }
  .bio-value-strip { grid-template-columns: 1fr; }
  .bio-value-strip>div { min-height: 96px; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--k-line); }
  .bio-value-strip>div:last-child { border-bottom: 0; }
  .bio-page h2 { font-size: 62px; }
  .bio-split { grid-template-columns: 1fr; gap: 40px; }
  .bio-conversation { padding-block: 64px; }
  .bio-product-conversation { max-width: 440px; }
  .bio-section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .bio-section-heading>p { max-width: 430px; }
  .bio-templates { padding-block: 64px; }
  .bio-build, .bio-faq { padding-block: 24px 64px; }
  .bio-template-carousel { margin-top: 36px; }
  .bio-template-slide { --bio-template-preview-height: 389.5px; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 24px; }
  .bio-template-mobile { width: 180px; }
  .bio-template-carousel-controls { gap: 14px; }
  .bio-steps { grid-template-columns: 1fr; margin-top: 32px; }
  .bio-steps li, .bio-steps li+li { padding: 22px 0; border-left: 0; }
  .bio-steps li+li { border-top: 1px solid var(--k-line); }
  .bio-steps p { max-width: 430px; }
  .bio-faq { grid-template-columns: 1fr; gap: 30px; }
  .bio-faq-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .bio-faq-heading .bio-button { margin-top: 0; flex-shrink: 0; }
  .bio-final h2 { font-size: 86px; }
  .bio-footer { align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-bottom: 115px; }
  .bio-footer p { margin-left: auto; }
  .bio-footer nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 14px; font-size: 11.5px; }
  .bio-mobile-cta { display: block; position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--k-line); background: color-mix(in srgb, var(--k-bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
  .bio-mobile-cta .bio-button { display: flex; max-width: 500px; margin: auto; }
  .bio-mobile-cta .bio-button:hover { transform: none; box-shadow: none; }
}
@media (max-width: 540px) {
  .bio-wrap { width: calc(100% - 40px); }
  .bio-header { min-height: 64px; }
  .bio-header .bio-brand { width: 108px; }
  .bio-hero { padding-block: 40px 56px; }
  .bio-hero h1 { font-size: clamp(64px, 19.2vw, 92px); }
  .bio-slug-form { grid-template-columns: auto minmax(60px, 1fr); margin-top: 28px; border-radius: var(--k-radius); }
  .bio-slug-prefix { padding-left: 13px; font-size: 16px; }
  .bio-slug-form input { font-size: 16px; }
  .bio-slug-form .bio-button { grid-column: 1 / -1; }
  .bio-link-flow { min-height: 440px; }
  .bio-link-flow::before { inset: 22px 0 18px 8%; border-radius: var(--k-radius-sm); }
  .bio-flow-instagram { top: 10px; width: 56%; }
  .bio-flow-product { top: 70px; right: 1%; width: 46%; border-radius: var(--k-radius-sm); }
  .bio-page h2 { font-size: 54px; }
  .bio-product-stage { min-height: 470px; border-radius: var(--k-radius-sm); }
  .bio-product-phone { width: 300px; max-width: calc(100% - 32px); border-radius: var(--k-radius); }
  .bio-templates, .bio-conversation { padding-block: 56px; }
  .bio-build, .bio-faq { padding-block: 16px 56px; }
  .bio-template-carousel { margin-top: 30px; }
  .bio-template-slide { --bio-template-preview-height: clamp(242.4px, 73.58vw, 303px); grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .bio-template-mobile { width: clamp(112px, 34vw, 140px); }
  .bio-template-desktop { display: block; }
  .bio-template-desktop img { height: auto; }
  .bio-template-carousel-controls { grid-template-columns: 1fr auto; gap: 14px; }
  .bio-template-dots { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; }
  .bio-template-status { grid-column: 1; grid-row: 2; }
  .bio-template-nav { grid-column: 2; grid-row: 2; }
  .bio-steps h3 { font-size: 30px; }
  .bio-faq summary { font-size: 16px; gap: 16px; padding-block: 20px; }
  .bio-faq details>p { padding-right: 0; font-size: 15px; }
  .bio-faq-heading { align-items: flex-start; flex-direction: column; }
  .bio-faq-heading .bio-button { margin-top: 4px; }
  .bio-final { padding-block: 64px; }
  .bio-final h2 { font-size: clamp(56px, 13vw, 72px); }
  .bio-final-actions { flex-direction: column; gap: 18px; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .bio-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
