/* About, FAQ, Blog, Careers, legal, utility and confirmation pages.
   Builds on site-pages.css (.sp tokens and components). */
.cp-body { background: #f5f5f4; }
.cp-body .sp { padding-bottom: 40px; }
.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 20px; font-size: 13.5px; color: var(--faint); }
.cp-crumbs a { color: var(--muted); transition: color 0.2s; }
.cp-crumbs a:hover { color: var(--ink); }
.cp-crumbs [aria-current] { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44ch; }

/* About ------------------------------------------------------------ */
.ab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding: 32px 0 40px; }
.ab-hero .sp-title { font-size: clamp(42px, 6.2vw, 76px); }
.ab-hero .sp-lede { margin: 0; }
.ab-image { aspect-ratio: 21 / 9; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ab-stats .sp-stat { padding: 28px 28px 26px; }
.ab-stats .sp-stat + .sp-stat { box-shadow: -1px 0 0 var(--line); }
.ab-mission { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.ab-mission__text { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; letter-spacing: -0.01em; color: var(--ink-2); }
.ab-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 12px; }
.ab-gallery__item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: var(--canvas); cursor: zoom-in; }
.ab-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.ab-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.ab-gallery__item:hover img { transform: scale(1.04); }
.ab-gallery__item span { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, 0.9); }
.ab-gallery__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ab-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-member h3 { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.ab-member p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.ab-member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--canvas); }
.ab-member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.ab-member:hover .ab-member__photo img { transform: scale(1.03); }
.ab-member__social { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.ab-member__social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, 0.92); transition: background-color 0.2s, color 0.2s; }
.ab-member__social a:hover { color: #fff; background: var(--ink); }
.ab-member__social svg { width: 15px; height: 15px; }

/* Lightbox */
.cp-lightbox { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 64px 20px; background: rgba(10, 11, 13, 0.92); }
.cp-lightbox[hidden] { display: none; }
.cp-lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.cp-lightbox img { max-width: 100%; max-height: 78vh; border-radius: 16px; }
.cp-lightbox figcaption { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.cp-lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.12); cursor: pointer; }
.cp-lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* FAQ ------------------------------------------------------------- */
.faq-search { position: relative; display: block; max-width: 520px; margin: 28px auto 0; }
.faq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.faq-search input { width: 100%; height: 56px; margin: 0; padding: 0 20px 0 50px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px rgba(17, 19, 22, 0.1), 0 8px 24px -16px rgba(17, 19, 22, 0.25); outline: none; transition: box-shadow 0.2s; -webkit-appearance: none; }
.faq-search input:focus { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(17, 19, 22, 0.06); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.faq-list { padding: 4px 28px; }
.faq-list .sp-acc:last-of-type { border-bottom: 0; }
.faq-list .sp-acc__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq-empty { padding: 32px 4px; font-size: 15px; color: var(--muted); }
.faq-empty a { color: var(--ink); text-decoration: underline; }
.faq-aside { position: sticky; top: 104px; display: grid; gap: 12px; }
.faq-help { padding: 26px; }
.faq-help h2 { margin: 6px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq-help p { margin-bottom: 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.faq-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: var(--ink); transition: box-shadow 0.3s; }
.faq-guide:hover { color: var(--ink); box-shadow: var(--shadow-hover); }
.faq-guide strong { display: block; font-size: 15px; font-weight: 600; }
.faq-guide small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.faq-guide svg { color: var(--muted); }

/* Blog ------------------------------------------------------------ */
.bl-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; color: var(--ink); transition: box-shadow 0.5s var(--ease); }
.bl-lead:hover { color: var(--ink); box-shadow: var(--shadow-hover); }
.bl-lead__media { margin: 8px; border-radius: calc(var(--radius) - 6px); overflow: hidden; background: var(--canvas); min-height: 340px; }
.bl-lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.bl-lead:hover .bl-lead__media img { transform: scale(1.03); }
.bl-lead__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px 40px 36px 24px; }
.bl-lead__body h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.bl-lead__body p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.bl-lead__body .sp-link { margin-top: 8px; }
.bl-progress { position: fixed; z-index: 1001; top: 72px; left: 0; right: 0; height: 3px; pointer-events: none; }
.bl-progress span { display: block; height: 100%; background: var(--accent, #d31122); transform: scaleX(0); transform-origin: 0 50%; }
.bl-article { max-width: 780px; margin: 0 auto; }
.bl-article__head { padding: 12px 0 28px; }
.bl-article__head .sp-title { font-size: clamp(34px, 5vw, 56px); }
.bl-article__meta { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.bl-article__meta .sp-avatar { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.bl-article__meta .sp-avatar img { object-fit: contain; padding: 6px; }
.bl-article__meta strong { display: block; font-size: 14.5px; font-weight: 600; }
.bl-article__meta small { display: block; font-size: 13px; color: var(--muted); }
.bl-share { margin-left: auto; height: 40px; padding: 0 14px; font-size: 14px; }
.bl-article__image { aspect-ratio: 16 / 9; margin: 0 -48px 40px; }
.bl-article__body { padding-bottom: 8px; }
.bl-article__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding: 28px 32px; }
.bl-article__cta h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.bl-article__cta p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Careers ---------------------------------------------------------- */
.jb-perks { margin-bottom: 8px; }
.jb-list { display: grid; gap: 12px; }
.jb-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; color: var(--ink); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.jb-row:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.jb-row h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.jb-row p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.jb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jb-tags span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--canvas); }
.jb-tags svg { width: 14px; height: 14px; color: var(--muted); }
.jb-tags--lg { margin-top: 18px; }
.jb-tags--lg span { height: 34px; font-size: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.jb-row__go { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--canvas); transition: background-color 0.3s, color 0.3s; }
.jb-row__go svg { width: 16px; height: 16px; stroke-width: 2; }
.jb-row:hover .jb-row__go { color: #fff; background: var(--ink); }
.jb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.jb-head .sp-title { font-size: clamp(34px, 5vw, 54px); }
.jb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.jb-apply { position: sticky; top: 104px; }

/* Upload tile */
.cp-drop { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; border: 1.5px dashed #d6d8dc; border-radius: 14px; background: #fbfbfb; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.cp-drop:hover { border-color: var(--ink); background: var(--surface); }
.cp-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.cp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cp-drop__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.cp-drop strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cp-drop small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.cp-drop.has-file { border-style: solid; border-color: rgba(21, 128, 61, 0.35); background: var(--pos-soft); }
.cp-drop.has-file .cp-drop__icon { color: #fff; background: var(--pos); box-shadow: none; }
.has-error .cp-drop { border-color: var(--danger); background: var(--danger-soft); }

/* Confirmation (success) pages */
.cp-done { max-width: 620px; margin: 32px auto 0; padding: clamp(36px, 6vw, 56px); text-align: center; }
.cp-done__icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--pos); box-shadow: 0 0 0 10px var(--pos-soft); animation: cp-pop 0.6s var(--ease) both; }
.cp-done__icon svg { width: 34px; height: 34px; stroke-width: 2.4; }
.cp-done h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }
.cp-done p { margin: 14px auto 0; max-width: 480px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.cp-done p strong { color: var(--ink); font-weight: 600; }
.cp-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.cp-done__list { max-width: 440px; margin: 28px auto 0; padding: 18px 20px; border-radius: 16px; background: var(--canvas); text-align: left; }
.cp-done__list div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14.5px; color: var(--muted); }
.cp-done__list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
@keyframes cp-pop { from { transform: scale(0.6); opacity: 0; } }

/* Legal and guide pages -------------------------------------------- */
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1080px; margin: 0 auto; }
.lg-toc { position: sticky; top: 104px; }
.lg-toc p { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.lg-toc a { display: block; padding: 7px 12px; margin-left: -12px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.lg-toc a:hover { color: var(--ink); background: rgba(17, 19, 22, 0.04); }
.lg-toc a.is-active { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.lg-doc { padding: clamp(28px, 4vw, 52px); }
.lg-doc .sp-prose > h2 { scroll-margin-top: 100px; padding-top: 1.6em; margin-top: 1.6em; border-top: 1px solid var(--line); }
.lg-doc .sp-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-updated { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.lg-updated svg { width: 15px; height: 15px; }
.gd-steps { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.gd-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px; }
.gd-step__no { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #fff; background: var(--ink); }
.gd-step:first-child .gd-step__no { background: var(--accent); }
.gd-step h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.gd-step p { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.gd-step .sp-link { margin-top: 14px; }

/* Standalone utility pages (404, coming soon, link in bio) ------------ */
.ut-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: #f5f5f4; }
.ut-card { width: 100%; max-width: 520px; padding: clamp(32px, 6vw, 52px); text-align: center; }
.ut-logo { height: 46px; width: auto; margin: 0 auto 28px; display: block; }
.ut-code { font-size: clamp(88px, 18vw, 140px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; color: var(--ink); background: linear-gradient(180deg, #111316 30%, #9aa0a8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ut-card h1 { margin-top: 16px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.025em; font-weight: 600; color: var(--ink); }
.ut-card p { margin: 12px auto 0; max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ut-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ut-links { display: grid; gap: 10px; margin-top: 28px; text-align: left; }
.ut-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ut-link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 16px 32px -20px rgba(17, 19, 22, 0.35); }
.ut-link i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--canvas); color: var(--ink); }
.ut-link--primary { color: #fff; background: var(--accent); box-shadow: 0 12px 24px -14px rgba(211, 17, 34, 0.8); }
.ut-link--primary:hover { color: #fff; box-shadow: 0 16px 32px -14px rgba(211, 17, 34, 0.8); }
.ut-link--primary i { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ut-link strong { display: block; font-size: 15.5px; font-weight: 600; }
.ut-link small { display: block; margin-top: 1px; font-size: 13px; opacity: 0.72; }
.ut-link > svg { margin-left: auto; opacity: 0.5; }
.ut-social { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.ut-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: background-color 0.2s, color 0.2s; }
.ut-social a:hover { color: #fff; background: var(--ink); }

@media (max-width: 991px) {
    .ab-hero, .ab-mission { grid-template-columns: minmax(0, 1fr); }
    .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-stats .sp-stat:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
    .ab-stats .sp-stat:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
    .ab-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ab-gallery { grid-auto-rows: 180px; }
    .faq-layout, .jb-layout, .lg-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-aside, .jb-apply, .lg-toc { position: static; }
    .lg-toc { display: none; }
    .bl-lead { grid-template-columns: minmax(0, 1fr); }
    .bl-lead__media { min-height: 0; aspect-ratio: 16 / 9; }
    .bl-lead__body { padding: 20px 24px 28px; }
    .bl-article__image { margin: 0 0 32px; }
}
@media (max-width: 640px) {
    .ab-hero { padding: 16px 0 28px; }
    .ab-image { aspect-ratio: 4 / 3; }
    .ab-stats .sp-stat { padding: 20px; }
    .ab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ab-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
    .ab-gallery__item:first-child { grid-row: span 1; }
    .ab-gallery__item { border-radius: 14px; }
    .faq-list { padding: 0 18px; }
    .jb-row { flex-direction: column; align-items: flex-start; padding: 22px; }
    .jb-row__go { width: 100%; justify-content: center; }
    .jb-head { flex-direction: column-reverse; }
    .gd-step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
    .gd-step__no { width: 46px; height: 46px; font-size: 17px; }
    .bl-article__meta { flex-wrap: wrap; }
    .bl-article__cta { padding: 24px; }
    .bl-article__cta .sp-btn { width: 100%; }
    .cp-done { margin-top: 12px; }
    .cp-done__actions .sp-btn { flex: 1 1 100%; }
}
