/* To.table — 흰 바탕 · 검정 글씨 · 주황 점 하나. 큰 글자와 여백으로 보여주는 미니멀 스타일 (한 가지 테마) */
:root {
  --paper: #ffffff;      /* 바탕 */
  --ink: #0a0a0a;        /* 글씨 */
  --grey: #6b6b6b;       /* 흐린 글씨 (흰 바탕 대비 5.3:1) */
  --faint: #b5b5b5;      /* 아주 흐린 글씨: 크게 쓸 때만 */
  --line: #e6e6e6;       /* 선 */
  --tile: #efefef;       /* 사진 칸 바탕 */
  --dot: #E8795B;        /* To. 의 주황 점 */
  --ok: #15803d; --warn: #a16207; --bad: #b91c1c;
  --display: "Schibsted Grotesk", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans KR", "Schibsted Grotesk", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  /* 레이아웃: 12칸 격자, 왼쪽 위 작은 정보 + 오른쪽 아래 아주 큰 글자 */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1360px, 100% - 48px); margin: 0 auto; }
.dot { color: var(--dot); }

/* 머리: 왼쪽 로고, 오른쪽 작은 대문자 메뉴 + 별 버튼 */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.logo sup { font-size: 9px; font-weight: 700; letter-spacing: 0; vertical-align: top; margin-left: 2px; }
.right { display: flex; gap: 56px; align-items: flex-start; }
.menu { display: flex; flex-direction: column; gap: 0; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.55; }
.menu a { text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.star { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; height: 30px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.star:hover { background: var(--ink); color: var(--paper); }
.star svg { width: 14px; height: 14px; }

/* 검색: ✱ 버튼을 누르면 옆으로 길어지며 검색창이 돼요 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { position: relative; display: flex; flex-direction: row; gap: 0; max-width: none; align-items: center; height: 30px; width: 64px; border: 1.5px solid var(--ink); border-radius: 999px; transition: width .35s ease; background: var(--paper); }
.search .star { border: 0; height: 26px; min-width: 60px; padding: 0 12px; background: transparent; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
.search .star:hover { background: transparent; color: var(--dot); }
.search input { flex: 1 1 auto; min-width: 0; width: 0; border: 0; padding: 0; background: transparent; font: 500 13px var(--body); color: var(--ink); opacity: 0; transition: opacity .2s ease; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search.open { width: min(320px, 70vw); }
.search.open .star { min-width: 40px; padding: 0 8px 0 12px; }
.search.open input { opacity: 1; padding-right: 14px; }
.results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1.5px solid var(--ink); z-index: 20; }
.results:empty { display: none; }
.results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.results li:last-child a { border-bottom: 0; }
.results a:hover, .results a[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.results b { font-size: 14px; }
.results span { font-size: 12px; opacity: .7; }
.results .none { padding: 10px 14px; font-size: 13px; color: var(--grey); }

/* 첫 화면: 위는 비우고, 아래쪽에 큰 글자 + 오른쪽 작은 소개 (메뉴와 같은 여백 선에 맞춤) */
.hero { min-height: calc(100svh - var(--head-h, 120px)); display: flex; }
.hero-in { width: min(1360px, 100% - 48px); margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(40px, 8vh, 96px) 0 clamp(28px, 5vh, 56px); }
.kicker { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 24px; align-items: end; border-top: 1px solid var(--ink); padding-top: clamp(18px, 3vh, 32px); }
.big { font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: .86; font-size: clamp(64px, 12.6vw, 196px); margin: 0 0 -0.04em -0.04em; white-space: nowrap; padding-bottom: .04em; }
.big .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: top; margin: .6em 0 0 14px; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 999px; line-height: 1; }
.aside { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; padding-bottom: 6px; }
.aside p:first-child { font-weight: 700; font-size: 17px; }
.aside .mute { color: var(--grey); }
.scroll { margin-top: 10px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; align-self: flex-start; }
.scroll span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
/* 처음 열릴 때 아래에서 부드럽게 올라와요 */
.rise { animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 섹션: 위에 얇은 선, 왼쪽 작은 제목, 오른쪽 내용 */
.sec { border-top: 1px solid var(--ink); padding: 26px 0 96px; }
.sec .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.label { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.statement { font-family: var(--body); font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; line-height: 1.45; letter-spacing: -0.02em; max-width: 26em; }
.statement .mute { color: var(--faint); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.cols h3 { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.cols p { font-size: 15px; color: var(--ink); max-width: 24em; }

/* 가격 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.plan { padding: 22px 24px 28px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan + .plan { padding-left: 24px; }
.plan:last-child { border-right: 0; }
.plan .name { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.amount { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--grey); margin-left: 6px; }
.krw { font-variant-numeric: tabular-nums; font-weight: 700; }
.plan ul { margin: 0; padding: 0; list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.plan li::before { content: "— "; color: var(--faint); }
.rows { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rows td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rows td.n { text-align: right; }
.note { margin-top: 20px; font-size: 13px; color: var(--grey); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 14px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #2a2a2a; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--ink); }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 13px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* 바닥 */
.foot { border-top: 1px solid var(--ink); padding: 26px 0 40px; font-size: 12px; color: var(--grey); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.foot .links a { text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot .links a.strong { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .biz { line-height: 1.9; margin-top: 10px; }

/* 회원 페이지 · 약관 페이지 */
.page { padding: 24px 0 96px; }
.page h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.sub { color: var(--grey); margin-top: 14px; max-width: 40em; }
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.card { padding: 24px 24px 32px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.auth .card + .card { padding-left: 24px; border-left: 1px solid var(--line); }
.card h2 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
label { font-size: 13px; color: var(--grey); display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=password], input[type=tel] { background: var(--paper); color: var(--ink); border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 10px 0; font: 17px var(--body); min-height: 44px; }
input:focus { outline: none; border-bottom-color: var(--dot); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.check a { text-underline-offset: 3px; }
.msg { min-height: 1.4em; font-size: 14px; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); }
.stat { padding: 20px 24px 24px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 12px; color: var(--grey); font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat .v { font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.05; }
.stat .k2 { font-size: 13px; color: var(--grey); margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.split > .card + .card { padding-left: 24px; border-left: 1px solid var(--line); }
.packs { display: flex; gap: 10px; flex-wrap: wrap; }
.packs .btn { flex-direction: column; gap: 0; min-width: 120px; border-radius: 14px; padding: 10px 18px; }
.packs .btn small { font-weight: 500; font-size: 12px; opacity: .7; }
.paybox { border: 1.5px solid var(--ink); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.paybox strong { font-size: 16px; }
.payrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; }
.payrow b { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.payrow span { color: var(--grey); font-size: 13px; }
.hist { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.hist .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.tabs a { text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.policy { margin-top: 32px; border-top: 1px solid var(--ink); padding-top: 24px; white-space: pre-wrap; font-size: 15px; line-height: 1.9; max-width: 760px; }

/* 휴대폰 인증 */
.phone { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline input { flex: 1 1 auto; min-width: 0; }
.inline .btn { flex: 0 0 auto; }
.timer { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--dot); font-weight: 700; }

/* 팝업 (회원가입 · 약관) */
.modal { border: 1.5px solid var(--ink); border-radius: 0; padding: 26px 28px 28px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--paper); color: var(--ink); }
.modal.wide { width: min(720px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 18px; }
.modal[open].wide { display: flex; }
.modal::backdrop { background: rgba(10, 10, 10, .5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal.wide .modal-head { margin-bottom: 0; }
.modal-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.x { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; }
.x:hover { color: var(--dot); }
.x:focus-visible { outline: 2px solid var(--ink); }
.modal form { max-width: none; }
.agree { border: 0; border-top: 1px solid var(--ink); margin: 6px 0 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.agree .all { font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.agree-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.view { all: unset; cursor: pointer; font-size: 13px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.view:hover { color: var(--ink); }
.view:focus-visible { outline: 2px solid var(--ink); }
.policy-body { white-space: pre-wrap; font-size: 14px; line-height: 1.85; max-height: 60vh; overflow: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 4px 16px 0; }
.modal.wide > .btn { align-self: flex-end; }

@media (max-width: 860px) {
  .wrap { width: min(1360px, 100% - 32px); }
  .right { gap: 20px; }
  .hero-in { width: min(1360px, 100% - 32px); }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .big { font-size: clamp(44px, 15.5vw, 140px); }
  .big .tag { font-size: 10px; margin-left: 8px; padding: 3px 8px; }
  .statement br.pc { display: none; }
  .sec .wrap, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .cols, .plans, .status, .split { grid-template-columns: minmax(0, 1fr); }
  .plan, .plan + .plan, .stat, .stat + .stat, .split > .card + .card, .auth .card + .card { padding-left: 0; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .payrow { grid-template-columns: minmax(0, 1fr) auto; }
  .payrow b { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
