/* =================================================================
   KPOPSUL — Blue/Cream editorial design system
   레퍼런스에서 추출한 실측 색상: primary blue #0329d4, cream #eff1f3
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0329d4;
    --primary-dark: #021f9e;
    --cream: #eff1f3;
    --white: #ffffff;
    --ink: #14141a;
    --muted: #6b6b76;
    --line: rgba(20,20,26,.10);
    --line-on-blue: rgba(255,255,255,.22);
    --max-width: 1280px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
a { color: inherit; }

.eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}
.eyebrow.on-blue { color: rgba(255,255,255,.75); }

/* -----------------------------------------------------------------
   헤더
   ----------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--primary);
}
.header-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; gap: 24px;
}
.logo img { display: block; height: 20px; width: auto; filter: brightness(0) invert(1); }
.main-nav { display: flex; gap: 30px; flex: 1; justify-content: center; }
.main-nav a {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.8); text-decoration: none; transition: color .15s;
}
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions > a:not(.cta-button) { color: rgba(255,255,255,.8); text-decoration: none; font-size: 16px; }
.header-actions > a:not(.cta-button):hover { color: #fff; }
.cta-small {
    font-family: var(--font-body); font-weight: 600; font-size: 13px;
    padding: 9px 20px; border-radius: 999px;
    background: #fff !important; color: var(--primary) !important;
}
.cta-small:hover { transform: scale(1.04); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }

@media (max-width: 780px) {
    .main-nav, .header-actions .cta-button { display: none; }
    .nav-toggle { display: block; }
    .main-nav.is-open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--primary);
        padding: 8px 32px 20px;
    }
    .main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line-on-blue); color: #fff; }
    .header-actions.is-open .cta-button { display: inline-block; }
}

/* -----------------------------------------------------------------
   버튼 공통
   ----------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 30px; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    text-decoration: none; transition: transform .15s, background .15s;
    border: 1.5px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid-light { background: #fff; color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-solid-dark { background: var(--ink); color: #fff; }

/* -----------------------------------------------------------------
   히어로 — 프라이머리 블루 + 세리프 헤드라인 + 유튜브 배경 영상
   ----------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--primary);
    color: #fff;
    min-height: 88vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 60px 32px;
}

/* 배경 유튜브 영상: 커버 핏 + 상단 크롭으로 초반 제목 오버레이 은닉 */
.hero-video-wrap {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; background: var(--primary);
}
.hero-video-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,41,212,.55) 0%, rgba(3,41,212,.72) 55%, rgba(3,41,212,.88) 100%);
}
.hero-video-embed {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: calc(100% + 240px);
    min-height: calc(100% + 240px);
    /* 위로 넉넉히 밀어올려서 유튜브가 로딩 시 좌상단에 잠깐 띄우는
       제목/채널명 오버레이가 보이는 영역이 wrap의 overflow:hidden 밖으로 나가게 함 */
    transform: translate(-50%, calc(-50% - 90px));
    border: 0;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-inner { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.hero-inner .eyebrow { justify-content: center; margin-bottom: 20px; color: rgba(255,255,255,.75); }
.hero-inner h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5.6vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 22px;
    color: #fff;
}
.hero-inner .hero-sub {
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    color: rgba(255,255,255,.82);
    max-width: 560px;
    margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------------
   미션 섹션
   ----------------------------------------------------------------- */
.mission { background: var(--cream); padding: 90px 0 40px; text-align: center; }
.mission .eyebrow { justify-content: center; margin-bottom: 18px; }
.mission h2 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.25; letter-spacing: -.01em;
    max-width: 800px; margin: 0 auto; color: var(--ink);
}

/* -----------------------------------------------------------------
   오퍼링 카드 — 컬러 아이콘 타일 + 화이트 카드
   ----------------------------------------------------------------- */
.offerings { background: var(--cream); padding: 50px 0 100px; }
.offerings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.offering-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.offering-tile {
    aspect-ratio: 16/10; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.offering-tile svg { width: 56px; height: 56px; }
.offering-body { padding: 24px; }
.offering-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.offering-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.offering-body a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.offering-body a:hover { text-decoration: underline; }

/* -----------------------------------------------------------------
   비전 섹션 — 대형 블루 라운드 카드
   ----------------------------------------------------------------- */
.vision { background: var(--cream); padding: 40px 0 100px; }
.vision-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.vision-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 6px 0 0; max-width: 480px; color: var(--ink); }
.vision-card {
    position: relative; background: var(--primary); border-radius: 24px;
    overflow: hidden; min-height: 380px; display: flex; align-items: flex-end;
    padding: 36px;
}
.vision-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.vision-card-text { position: relative; z-index: 1; color: #fff; max-width: 420px; }
.vision-card-text p.eyebrow { color: rgba(255,255,255,.75); margin-bottom: 10px; }
.vision-card-text h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0; }

/* -----------------------------------------------------------------
   프로세스 스텝 (2x2 그리드)
   ----------------------------------------------------------------- */
.process { background: var(--cream); padding: 40px 0 100px; text-align: center; }
.process .eyebrow { justify-content: center; }
.process h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 14px auto 44px; max-width: 700px; color: var(--ink); }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
.process-card { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.process-step-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; }
.process-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin: 10px 0 8px; color: var(--ink); }
.process-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.process-tile { aspect-ratio: 16/8; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.process-tile svg { width: 44px; height: 44px; }

@media (max-width: 700px) { .process-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------
   FAQ 프리뷰 (홈) — 2단 레이아웃
   ----------------------------------------------------------------- */
.faq-preview { background: var(--cream); padding: 40px 0 110px; }
.faq-preview-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.faq-preview-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 20px; color: var(--ink); }
.faq-preview-head a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.faq-preview-head a:hover { text-decoration: underline; }

@media (max-width: 860px) { .faq-preview-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------
   CTA — 클로징 블루 배너
   ----------------------------------------------------------------- */
.home-cta {
    background: var(--primary); color: #fff;
    padding: 90px 32px; text-align: center;
    border-radius: 28px;
    max-width: var(--max-width); margin: 0 auto 100px;
}
.home-cta h2 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.8rem, 4.6vw, 2.8rem);
    line-height: 1.2; max-width: 700px; margin: 0 auto 30px;
    color: #fff;
}
.cta-button { display: inline-block; }

/* -----------------------------------------------------------------
   범용 페이지 (Sobre, O que é, Contacts, Inscrição)
   ----------------------------------------------------------------- */
.page-content { background: var(--cream); color: var(--ink); padding: 80px 32px 100px; }
.page-content h1 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -.01em;
    max-width: 900px; margin: 0 0 32px; line-height: 1.15;
    color: var(--ink);
}
.prose { max-width: 720px; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; margin-top: 1.8em; color: var(--ink); }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { color: #45454e; }
.prose strong { color: var(--ink); }

.faq-list { margin-top: 12px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; list-style: none;
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    font-weight: 600; font-size: .98rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary .faq-index { display: none; }
.faq-item div { margin: 12px 0 0; color: #45454e; font-size: 14px; max-width: 620px; }

.lead-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; max-width: 520px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.lead-form input, .lead-form textarea {
    padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line);
    background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 15px;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #a6a6ad; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--primary); }
.lead-form button {
    align-self: flex-start; padding: 14px 32px; background: var(--primary); color: #fff;
    border: none; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 600;
    cursor: pointer;
}
.checkbox-field { flex-direction: row !important; align-items: flex-start; gap: 10px !important; text-transform: none; font-family: var(--font-body); font-size: 13px; font-weight: 400; }
.checkbox-field input { width: auto; margin-top: 3px; }
.inscricao-note { margin-top: 32px; color: var(--muted); font-size: 13px; max-width: 640px; }
.flash-success { background: #e4f5e8; border: 1px solid #1a7d3a; color: #1a5c2b; padding: 16px 20px; margin-top: 24px; font-size: 14px; border-radius: 10px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* -----------------------------------------------------------------
   에피소드 상세 & 그리드
   ----------------------------------------------------------------- */
.episode-detail { background: var(--cream); color: var(--ink); padding: 80px 32px 100px; }
.episode-detail h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4.6vw, 2.8rem); max-width: 900px; color: var(--ink); }
.video-embed { margin: 24px 0; border-radius: 16px; overflow: hidden; }
.video-embed video { width: 100%; display: block; }

.episodes { background: var(--cream); padding: 0 0 30px; }
.episodes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.episode-card { position: relative; display: block; text-decoration: none; color: #fff; aspect-ratio: 3/4; overflow: hidden; background: var(--primary); border-radius: 16px; }
.episode-card img { width: 100%; height: 100%; object-fit: cover; }
.episode-card .card-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: 12px; display: flex; justify-content: space-between; color: rgba(255,255,255,.85); }
.episode-card h3 { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 1; font-size: 15px; font-weight: 700; margin: 0; }
.episode-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }

@media (max-width: 900px) { .episodes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .episodes-grid { grid-template-columns: 1fr; } }

.not-found { padding: 130px 32px; text-align: center; background: var(--cream); color: var(--ink); }
.not-found h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--ink); }
.not-found a { color: var(--primary); }

/* -----------------------------------------------------------------
   푸터
   ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand-col img { height: 20px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand-col p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 220px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }

.footer-newsletter { margin-top: 6px; }
.footer-newsletter p { margin: 0 0 12px; color: rgba(255,255,255,.6); font-size: 13px; }
.newsletter-form { display: flex; gap: 8px; max-width: 320px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-body); font-size: 13px; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button { padding: 11px 20px; background: var(--primary); border: none; border-radius: 999px; color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.45); font-size: 12px; padding-top: 24px; }
.social-links a { color: rgba(255,255,255,.6); margin-left: 20px; text-decoration: none; }
.social-links a:hover { color: #fff; }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
