/* FLIP 소개 페이지. 앱과 같은 무채색 톤. 장식 그라데이션·그림자 효과 없이 글과 실제 화면으로만 구성한다. */
:root {
  --bg: #0b0b0c; --band: #101012; --surface: #161618; --field: #0e0e10;
  --line: #232327; --line2: #33333a; --ink: #f4f4f3; --ink2: #c8c8cd; --mute: #8f8f98;
  --pos: #5fd39a; --neg: #f47c70; --wrap: 1180px; --nav: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* 버튼: 한 쌍만 쓴다(채운 것, 테두리만 있는 것) */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .12s, background-color .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); border-color: var(--mute); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn.disabled { color: var(--mute); cursor: default; pointer-events: none; border-style: dashed; }

/* 상단 */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav); background: rgba(11, 11, 12, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; }
.mark { width: 28px; height: 28px; color: var(--ink); }
.mark .cut { fill: var(--bg); stroke: var(--bg); }
.nav nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.nav nav a { position: relative; text-decoration: none; color: var(--ink2); font-size: .94rem; font-weight: 500; padding: 6px 0; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); }

/* 구역: 한 화면에 하나 */
section { min-height: 100svh; display: grid; align-items: center; padding: 88px 0; }
section[id] { scroll-margin-top: var(--nav); }
.band { background: var(--band); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.copy p, .sub { color: var(--ink2); margin-top: 18px; }

/* 첫 화면 */
.hero { min-height: max(640px, calc(100svh - var(--nav))); height: calc(100svh - var(--nav)); padding: 0; overflow: hidden; align-items: stretch; }
.hero .wrap { display: flex; flex-direction: column; }
.hero .copy { padding-top: clamp(40px, 7vh, 84px); }
.fact { color: var(--mute); font-size: .92rem; font-weight: 500; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; margin-top: 14px; }
.lead { font-size: 1.14rem; max-width: 37em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .frame { flex: 1; min-height: 220px; margin-top: clamp(32px, 6vh, 60px); border-bottom: 0; border-radius: 14px 14px 0 0; }

/* 실제 화면 */
.frame { display: block; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: #0d0d0f; }
.frame img { width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-origin: 60% 30%; }
.frame:hover img { transform: scale(1.02); }
/* 사이드바(264px)를 잘라 내고 본문만 보여 준다: 1040x720 캡처 기준 */
.frame.crop { aspect-ratio: 776 / 720; }
.frame.crop img { width: 134.1%; max-width: none; margin-left: -34.1%; }

/* 글 + 화면 */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split.rev .copy { order: 2; }
.facts { margin-top: 28px; border-bottom: 1px solid var(--line); }
.facts li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink2); font-size: .97rem; }

/* 계산기 */
.calc { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: clamp(18px, 2.4vw, 28px); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fields label { display: grid; gap: 6px; color: var(--mute); font-size: .84rem; font-weight: 500; }
.fields input { width: 100%; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1.08rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .12s; }
.fields input:focus { outline: 0; border-color: var(--ink); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; }
.r { text-align: right; }
.calc table { margin: 20px 0; }
.calc th { color: var(--mute); font-size: .8rem; font-weight: 500; padding: 0 0 8px; }
.calc td { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink2); font-variant-numeric: tabular-nums; }
.calc td.num { color: var(--ink); font-weight: 600; }
.calc td.neg { color: var(--neg); }
.calc tr.best td:first-child { color: var(--ink); font-weight: 700; }
.calc tr.best td.num:not(.neg) { color: var(--pos); font-weight: 700; }
.calc .btn { width: 100%; }

/* 제목은 왼쪽, 내용은 오른쪽 */
.narrow { display: grid; grid-template-columns: 4fr 8fr; column-gap: clamp(40px, 6vw, 88px); align-items: start; }
.narrow > h2 { grid-column: 1; grid-row: 1; }
.narrow > .sub { grid-column: 1; grid-row: 2; }
.narrow > .tablebox, .narrow > .plans, .narrow > .faq { grid-column: 2; grid-row: 1 / span 3; }
.narrow > .fine { grid-column: 2; grid-row: 4; }
.tablebox { border: 1px solid var(--line2); border-radius: 14px; overflow-x: auto; background: var(--surface); }
.fees th, .fees td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; white-space: nowrap; }
.fees thead th { color: var(--mute); font-size: .8rem; font-weight: 500; }
.fees tbody th { font-weight: 600; }
.fees td { color: var(--ink2); font-variant-numeric: tabular-nums; }
.fees td:last-child { white-space: normal; min-width: 12em; }
.fees tbody tr:last-child > * { border-bottom: 0; }
.fine { color: var(--mute); font-size: .86rem; margin-top: 14px; }

/* 요금 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 28px; }
.plan.muted { background: none; }
.plan h3 { font-size: 1rem; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.soon { font-size: .74rem; font-weight: 600; color: var(--mute); border: 1px solid var(--line2); border-radius: 99px; padding: 1px 9px; }
.amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; margin-top: 6px; }
.plan .facts { margin: 20px 0 26px; flex: 1; }

/* 질문 */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--ink2); padding: 0 40px 22px 0; max-width: 44em; }

/* 맺음 */
.close { text-align: center; }
.close h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 36px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--mute); font-size: .88rem; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
footer .brand { color: var(--ink); }

/* 첫 화면은 한 번 올라오며 나타난다 */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
[data-enter] { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; }
h1[data-enter] { animation-delay: .05s; } .lead[data-enter] { animation-delay: .1s; } .cta[data-enter] { animation-delay: .16s; } .frame[data-enter] { animation-delay: .26s; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .wrap { justify-content: space-between; }
  section { min-height: 0; padding: 72px 0; }
  .hero { height: auto; min-height: 0; padding: 0; }
  .hero .frame { flex: none; }
  .split, .narrow { grid-template-columns: 1fr; row-gap: 32px; }
  .split.rev .copy { order: 0; }
  .narrow > * { grid-column: 1 !important; grid-row: auto !important; }
  .plans { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; gap: 12px; }
  .close { padding: 96px 0; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:last-child { grid-column: 1 / -1; }
  .cta .btn { flex: 1; }
  .calc th, .calc td { white-space: nowrap; font-size: .86rem; }
  .calc td.num { font-size: .95rem; }
  .nav .btn { height: 40px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
