/* Bridgestudio — components */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-line { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-line:hover { border-color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 16px; font-weight: 800; }
.card.dark { background: var(--bg-dark-2); border-color: var(--border-dark); color: var(--text-on-dark); }
.card.dark p { color: var(--text-on-dark-muted); }

/* Product block */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 24px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft-2); color: var(--text-muted); border: 1px solid var(--border); }
.feature-list { list-style: none; padding: 0; display: grid; gap: 13px; margin-top: 22px; }
.feature-list li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: var(--text-muted); font-size: 15px; }
.feature-list .chk { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }

/* Phone mockup (CSS only) */
.phone-wrap { display: grid; place-items: center; }
.phone { width: 238px; border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #223058, #0B1128); box-shadow: var(--shadow-lg); position: relative; }
.phone-screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; }
.phone-screen { aspect-ratio: 360 / 780; }
.phone-screen img, .phone-screen video { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; }
/* 작은 프레임(앱 화면 그리드용) */
.phone.sm { width: 100%; max-width: 232px; padding: 8px; border-radius: 30px; }
.phone.sm .phone-screen { border-radius: 23px; }
/* ── 앱 화면 그리드 ── */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 22px; align-items: start; }
/* ★align-items: start 필수 — 기본값 stretch면 캡션이 짧은 카드에서 폰 프레임이 세로로 늘어나
   비율(aspect-ratio)을 잃고 컷마다 크기가 달라 보인다. */
.shot { margin: 0; display: grid; justify-items: center; align-items: start; align-content: start; gap: 16px; }
.shot figcaption { text-align: center; max-width: 260px; }
.shot figcaption b { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.shot figcaption span { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 720px) { .shots { gap: 34px 16px; } .shot figcaption { max-width: 100%; } }
.ph-bar { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #93A0C8; font-size: 10px; font-weight: 700; }
.ph-feed { flex: 1; padding: 8px 12px; display: grid; gap: 9px; align-content: start; }
.ph-post { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; padding: 9px 10px; display: grid; gap: 7px; }
.ph-row { display: flex; align-items: center; gap: 7px; }
.ph-av { width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg, #4B7BFF, #00D3B8); flex: 0 0 auto; }
.ph-av.b { background: linear-gradient(135deg, #FF7BAC, #FFC86B); }
.ph-av.c { background: linear-gradient(135deg, #8B7BFF, #4BD7FF); }
.ph-line { height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); }
.ph-line.s { width: 42%; } .ph-line.m { width: 68%; } .ph-line.l { width: 88%; }
.ph-img { height: 62px; border-radius: 9px; background: linear-gradient(135deg, rgba(75,123,255,.5), rgba(0,211,184,.35)); }
.ph-chip { font-size: 8.5px; color: #A9B6E0; }

/* Doc pages (privacy/terms/support) */
.doc { padding: 56px 0 96px; }
.doc-head { padding: 46px 0 34px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.doc-head h1 { font-size: var(--fs-h1); margin-bottom: 12px; }
.doc-body { max-width: 780px; }
.doc-body h2 { font-size: 20px; margin: 40px 0 12px; }
.doc-body h3 { font-size: 16px; margin: 24px 0 8px; }
.doc-body p, .doc-body li { color: #333B52; font-size: 15.5px; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul, .doc-body ol { margin: 10px 0; display: grid; gap: 7px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--bg-soft); font-weight: 700; }
.doc-toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.doc-toc ol { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.note { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; margin: 18px 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-muted); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; }

/* Contact */
.contact-card { background: var(--bg-dark); color: var(--text-on-dark); border-radius: var(--radius-xl); padding: 46px 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.contact-card h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.contact-card p { color: var(--text-on-dark-muted); }
.contact-actions { display: grid; gap: 10px; }
.mail { font-family: var(--font-mono); font-size: 15px; }

/* Language dropdown */
.lang { position: relative; }
.lang-trigger { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); background: transparent; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.lang-trigger:hover { color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; padding: 6px; margin: 0; display: none; min-width: 132px; z-index: 50; }
.lang[data-open="true"] .lang-menu { display: grid; gap: 2px; }
.lang-option { width: 100%; text-align: left; padding: 8px 12px; border: 0; background: transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text); }
.lang-option:hover { background: var(--bg-soft); }
.lang-option[aria-selected="true"] { color: var(--primary); }

@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 34px; } .contact-card { grid-template-columns: 1fr; padding: 34px 26px; } }

/* 로그인 실패 안내 — 소셜 로그인이 중단되면 Supabase가 이 사이트로 되돌려보낸다(?error=...).
   그냥 두면 방문자는 주소창의 영어 오류 문자열만 보게 되므로, 사람이 읽을 안내로 바꿔 보여준다. */
.authnote { display: none; margin: 0; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.authnote[data-show="true"] { display: block; }
.authnote-inner { max-width: 1080px; margin: 0 auto; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.authnote-text { flex: 1 1 320px; }
.authnote-text b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 3px; }
.authnote-text span { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.authnote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
