@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* 노타핏 공용 스타일.
 *
 * **모든 페이지가 이 한 장을 읽는다.** 페이지마다 복사해 두면 한쪽만 고쳐져
 * 메뉴를 눌러 넘어갈 때 색이 바뀌고, 그러면 다른 사이트로 읽힌다.
 * 생성 페이지(약관·처리방침·환불)도 scripts/sync-legal.mjs 가 이 파일을
 * 링크한다.
 */
/* ── 토큰 ─────────────────────────────────────────────────────────
     참고한 레이아웃은 흑백이지만, 우리는 쓰던 teal 을 **하나뿐인 강조색**으로
     남긴다. 브랜드를 지우면서까지 남의 톤을 따라갈 이유가 없다. 검정은
     강조 카드에만 쓴다. */
  :root {
    --teal: #00A48E;
    --teal-dark: #00806F;
    --ink: #111315;
    --ink-soft: #3f4448;
    --muted: #8a9096;
    --line: #e8eaec;
    --wash: #f4f5f6;      /* 카드 바탕 — 흰 배경 위에서 블록이 서는 톤 */
    --bg: #ffffff;
    /* 되돌릴 수 없는 일(환불·해지)에만 쓴다. teal 과 나란히 놓여도 비명을
       지르지 않게 채도를 낮춰 잡았다.
       **전에는 이 줄이 없었다** — `.msg.err`(아래)와 결제 결과 화면,
       `pay/index.html` 의 `.ghost.danger` 가 이미 `var(--danger)` 를 쓰고
       있었으므로, 정의가 없는 동안 그 글자들은 색 없이 나왔다. */
    --danger: #c2403a;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    /* Inter 를 먼저 — 숫자·영문이 이 서체로 나온다. Inter 에는 한글이 없어
       같은 뼈대로 그려진 Pretendard 가 받는다. 섞어도 줄이 흔들리지 않는다. */
    font-family: 'Inter', 'Pretendard Variable', 'Pretendard',
                 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    /* 한글은 기본값이 **글자 단위**로 끊긴다 — '따/라갑니다' 처럼 낱말이
       쪼개진다. 낱말 경계에서만 줄을 바꾼다. */
    word-break: keep-all;
    overflow-wrap: break-word;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
  }
  .wrap { width: 90%; max-width: 1120px; margin: 0 auto; }

  /* ── 헤더 ─────────────────────────────────────────────────────────
     로고 왼쪽 · 메뉴 가운데 알약 · CTA 오른쪽. 가운데 알약은 폭이 넓어도
     메뉴가 흩어지지 않게 묶어 준다. */
  nav.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(10px);
  }
  nav.top .row {
    width: 90%; max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0;
  }
  nav.top img { height: 22px; width: auto; display: block; }
  nav.top .links {
    display: flex; gap: 6px; align-items: center;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 7px;
  }
  nav.top .links a {
    font-size: 13.5px; color: var(--muted); text-decoration: none;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  }
  nav.top .links a:hover { color: var(--ink); background: var(--wash); }
  nav.top a.cta {
    color: #fff; background: var(--ink); font-weight: 600;
    font-size: 13.5px; text-decoration: none;
    padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  }
  nav.top a.cta:hover { background: #000; }

  /* ── 계정 영역 ────────────────────────────────────────────────────
     CTA 자리를 대신한다. 로그아웃 상태는 `a.cta` 그대로('로그인') 이고,
     로그인하면 `nav-account.js` 가 센터명 알약 + 드롭다운으로 바꿔 끼운다.
     마크업 기본값이 곧 로그아웃 상태라, 스크립트가 안 돌아도 길은 열려 있다. */
  nav.top .acct { position: relative; }
  nav.top .acct .who {
    /* a.cta 와 같은 알약 — 로그인 전후로 버튼이 튀지 않아야 한다. */
    color: #fff; background: var(--ink); font-weight: 600;
    font-size: 13.5px; font-family: inherit;
    border: 0; cursor: pointer;
    padding: 10px 18px; border-radius: 999px; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    /* 센터 이름이 길어도 메뉴를 밀어내지 않게. */
    max-width: 220px;
  }
  nav.top .acct .who span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  nav.top .acct .who:hover { background: #000; }
  nav.top .acct .caret { font-size: 10px; opacity: .8; flex: none; }
  nav.top .acct .menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 160px; padding: 6px;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
    display: none; z-index: 30;
  }
  /* hover 와 클릭을 **둘 다** 연다. 터치 기기에는 hover 가 없어서, hover 만
     두면 폰에서는 영영 안 열린다. */
  nav.top .acct:hover .menu,
  nav.top .acct.open .menu { display: block; }
  nav.top .acct .menu a,
  nav.top .acct .menu button {
    display: block; width: 100%; text-align: left;
    font-size: 13.5px; font-family: inherit; color: var(--ink-soft);
    background: none; border: 0; cursor: pointer; text-decoration: none;
    padding: 9px 12px; border-radius: 9px; white-space: nowrap;
  }
  nav.top .acct .menu a:hover,
  nav.top .acct .menu button:hover { background: var(--wash); color: var(--ink); }
  /* 좁은 화면에서는 알약을 풀고 줄바꿈을 허용한다 — 네 개를 한 줄에
     욱여넣으면 글자가 8px 가 된다. */
  @media (max-width: 860px) {
    nav.top .row { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
    nav.top .links {
      order: 3; width: 100%; margin: 0; justify-content: space-between;
      padding: 4px 6px;
    }
    nav.top .links a { padding: 7px 8px; font-size: 12.5px; }
    nav.top a.cta { margin-left: auto; padding: 8px 14px; font-size: 12.5px; }
    /* `.acct` 가 CTA 자리를 물려받았으므로 오른쪽으로 붙는 것도 물려받는다. */
    nav.top .acct { margin-left: auto; }
    nav.top .acct a.cta { margin-left: 0; }
    nav.top .acct .who {
      padding: 8px 14px; font-size: 12.5px; max-width: 150px;
    }
  }

  /* ── 공통 ─────────────────────────────────────────────────────── */
  .eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
  }
  section { padding: 76px 0; }
  h2.big {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.12; letter-spacing: -0.035em;
    font-weight: 800; margin: 0 0 14px;
    text-wrap: balance;
  }
  .lede { font-size: 16px; color: var(--muted); margin: 0; }

  /* ── 히어로 ──────────────────────────────────────────────────── */
  .hero { text-align: center; padding: 84px 0 56px; }
  /* line-height 는 두 줄 사이 간격이다. 1.06 은 큰 글자에서 두 줄이
     붙어 한 덩어리로 읽힌다 — '트레이너를 위한 / 올인원 운영 플랫폼' 은
     두 호흡이라 벌려 둔다. */
  .hero h1 {
    font-size: clamp(36px, 6.4vw, 76px);
    line-height: 1.22; letter-spacing: -0.04em;
    font-weight: 800; margin: 0 0 20px;
    text-wrap: balance;
  }
  .hero .lede { margin: 0 auto; font-size: 17px; color: var(--ink-soft); }
  .hero .ctas {
    display: flex; gap: 10px; justify-content: center;
    margin-top: 32px; flex-wrap: wrap;
  }
  .btn {
    display: inline-block; text-decoration: none; font-weight: 600;
    font-size: 15px; padding: 14px 26px; border-radius: 999px;
  }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: #000; }
  .btn-soft { background: var(--wash); color: var(--ink); }
  .btn-soft:hover { background: #ebedee; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* `.hero h1` 과 특정도가 같고 뒤에 있어 **이쪽이 이긴다** — 여기서 0 을
     두면 설명 문장이 제목에 붙는다. 아래 간격은 이 줄이 정한다. */
  h1.brand { margin: 0 0 34px; }

  /* ── 기능 카드 ──────────────────────────────────────────────── */
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card {
    background: var(--wash); border-radius: 26px; padding: 26px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .card .tagline {
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
    color: var(--teal); text-transform: uppercase;
  }
  .card h3 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
  .card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
  /* 화면은 카드 안에서 아래쪽에 걸친다 — 위가 잘리면 제목 줄이 사라진다. */
  .shot {
    margin-top: auto; border-radius: 14px; overflow: hidden;
    border: 1px solid #e3e5e7; background: #fff;
    aspect-ratio: 1668 / 2420; max-height: 300px;
  }
  .shot img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    display: block;
  }
  .cards.two-up { grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 860px) {
    .cards, .cards.two-up { grid-template-columns: 1fr; }
    .shot { max-height: 420px; }
  }

  /* ── 흐름 ────────────────────────────────────────────────────────
     네 단계 + 그 결과 화면. 순서가 뜻을 가지므로 번호를 붙인다 — 번호가
     장식이면 안 되고, 여기서는 실제로 1→4 로 흐른다. */
  .flow {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px; align-items: start;
  }
  .steps { list-style: none; margin: 0; padding: 0; }
  .steps li {
    display: grid; grid-template-columns: 44px 1fr; gap: 16px;
    padding: 0 0 26px; position: relative;
  }
  /* 번호를 잇는 선 — 네 칸이 한 줄기라는 것이 보여야 한다. */
  .steps li::before {
    content: ''; position: absolute; left: 21px; top: 36px; bottom: 6px;
    width: 1px; background: var(--line);
  }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .steps .no {
    width: 44px; height: 44px; border-radius: 22px;
    background: var(--wash); color: var(--ink);
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; letter-spacing: 0;
    position: relative; z-index: 1;
  }
  .steps h3 {
    font-size: 17px; font-weight: 800; margin: 9px 0 4px;
    letter-spacing: -0.02em;
  }
  .steps p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
  .flow-shot { margin-top: 0; max-height: none; }
  @media (max-width: 860px) {
    .flow { grid-template-columns: 1fr; gap: 28px; }
    .flow-shot { max-width: 300px; }
  }

  /* ── 요금 ──────────────────────────────────────────────────────────
     **공개 홈(`/#price`)과 결제 페이지(`/pay`)가 같은 카드를 쓴다.**

     로그인 전에 네 장을 보고 들어온 사람이 로그인하면 다른 모양을 만나면
     플랜이 바뀐 줄 안다. 그래서 두 페이지가 함께 읽는 이 파일에 둔다 —
     한쪽에 베껴 두면 반드시 어긋나고, 어긋나는 쪽이 금액이면 분쟁이 된다.

     페이지마다 다른 것만 각자 `<style>` 에 남긴다. `/pay` 는 '이용 중' 배지와
     인원 초과 표시·선택 상태가, 홈은 대상 설명과 기능 목록이 더 붙는다. */
  .plans {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; align-items: stretch;
  }
  .plan {
    position: relative;               /* '이용 중' 배지의 기준점(/pay) */
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 18px;
    padding: 22px 20px 20px; background: #fff;
    text-align: left; width: 100%; font-family: inherit; color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    /* **button 과 div·a 를 같은 값으로 못 박는다.** /pay 는 카드 전체가
       `<button>` 이고 홈은 `<div>`, Enterprise 칸은 `<a>` 다. 브라우저 기본
       `line-height`·`vertical-align` 이 요소마다 달라, 상속에 맡기면 이름과
       구분선이 칸마다 몇 px 어긋난다. */
    line-height: 1.6; vertical-align: baseline;
    font-size: 15px; margin: 0; box-sizing: border-box;
  }
  /* 마우스를 올린 칸만 떠오른다 — 네 장이 같은 무게라 색과 그림자로 '어느
     걸 보고 있는지' 를 짚어 준다. 테두리만 반 톤 바꾸면 네 장 사이에서
     거의 보이지 않는다.

     **hover 를 쓸 수 있는 기기에만 건다.** 터치 기기에서는 한 번 누른 카드에
     hover 가 눌어붙어, 손을 뗀 뒤에도 계속 강조된 채로 남는다. */
  @media (hover: hover) {
    .plan:hover:not(:disabled):not(.is-current) {
      border-color: var(--teal);
      box-shadow: 0 10px 28px rgba(0, 164, 142, .18);
      transform: translateY(-3px);
    }
    /* 버튼까지 채운다 — 카드가 떠오르는 것만으로는 '누르는 곳' 이 어디인지
       말하지 않는다. --teal 이 아니라 --teal-dark 인 이유는 대비다(밝은
       teal 에 흰 글자는 3.1:1 로 기준 4.5 에 못 미친다). */
    .plan:hover:not(:disabled):not(.is-current) .plan-cta span,
    .plan:hover:not(:disabled):not(.is-current) .plan-cta a {
      background: var(--teal-dark); border-color: var(--teal-dark); color: #fff;
    }
  }
  /* 움직임을 줄여 달라고 한 사용자에게는 **색만** 바꾼다. */
  @media (prefers-reduced-motion: reduce) {
    .plan { transition: border-color .18s ease, box-shadow .18s ease; }
    .plan:hover { transform: none; }
  }

  .plan-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
  .plan-seats {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--muted); margin-top: 6px;
  }
  .plan-seats svg { flex: none; opacity: .55; }
  /* 이름·인원과 금액 사이의 선. 위는 '무엇인가', 아래는 '얼마인가'.
     **이 선이 네 칸에서 같은 높이에 와야** 격자가 한 장의 표로 읽힌다 —
     그래서 위쪽 블록에는 길이가 변하는 글을 넣지 않는다(홈의 대상 설명이
     금액 아래로 간 이유다). */
  .plan-rule { border: 0; border-top: 1px solid var(--line); margin: 16px 0 18px; }

  /* 금액 줄 — 숫자는 크게, 단위는 작게 같은 바닥선에. */
  .plan-price-row { display: flex; align-items: baseline; gap: 3px; }
  .plan-price { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
  .plan-per-mo { font-size: 13px; color: var(--muted); font-weight: 500; }
  /* 정상가와 할인율 — 취소선으로 '이게 아니다' 를 먼저 읽힌다. */
  .plan-was-row {
    display: flex; align-items: center; gap: 8px; margin-top: 7px;
    /* 할인 없는 칸과 높이를 맞춘다. **22px 인 이유**는 할인 배지(`.plan-off`)의
       실제 높이가 그만큼이기 때문이다 — 20px 로 두면 배지가 있는 칸만 1.6px
       높아져, 할인이 없는 Enterprise 칸의 회색 박스와 버튼이 다른 셋보다
       2px 위에 선다. */
    min-height: 22px;
  }
  .plan-was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
  .plan-off {
    font-size: 11px; font-weight: 700; color: #C0392B;
    background: #fdecea; border-radius: 6px; padding: 2px 7px;
  }
  /* 할인이 없을 때 — 줄은 남기고(위 `min-height`) **안은 비운다.**
     `/pay` 는 칸을 스크립트로 만들어 할인이 없으면 두 요소를 아예 안 그리는데,
     홈은 마크업에 미리 있어서 빈 배지의 분홍 바탕만 남았다. 빈 요소를 숨긴다 —
     줄 자체를 `hidden` 으로 접으면 Enterprise 칸(할인이 없어 늘 비어 있다)만
     20px 높이를 유지해 네 칸의 아래쪽이 어긋난다. */
  .plan-was:empty, .plan-off:empty { display: none; }
  /* 1인당 금액 — 플랜마다 좌석 수가 달라 총액만으로는 비교가 안 된다. */
  .plan-unit {
    margin-top: 14px; padding: 9px 12px;
    background: var(--wash); border-radius: 10px;
    font-size: 12.5px; color: var(--muted);
  }
  .plan-unit b { color: var(--ink-soft); font-weight: 700; }

  /* 홈에만 붙는 것 — 이 플랜이 누구 것인지, 무엇이 들어 있는지.
     금액 블록 **아래**다. 위에 두면 글 길이가 칸마다 달라 구분선이 어긋난다. */
  .plan .who {
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
    margin: 16px 0 0; line-height: 1.55;
  }
  .plan ul { list-style: none; padding: 0; margin: 12px 0 0; }
  .plan li {
    font-size: 13px; padding: 4px 0 4px 13px; position: relative;
    color: var(--muted);
  }
  .plan li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 4px; height: 4px; border-radius: 2px; background: #c6cacd;
  }

  /* 칸 아래 버튼. `/pay` 는 **진짜 button 이 아니다** — 카드 전체가 버튼이라
     안에 button 을 또 두면 중첩이 되고 누르는 자리가 둘로 갈린다. 그래서
     span 에 모양만 준다. 홈은 진짜 링크다. 둘이 같아 보여야 하므로 모양을
     한 곳에 적는다. */
  .plan-cta { margin-top: auto; padding-top: 18px; }
  .plan-cta span,
  .plan-cta a {
    display: block; text-align: center; text-decoration: none;
    height: 44px; line-height: 42px; box-sizing: border-box;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 13.5px; font-weight: 700; color: var(--ink);
    background: #fff;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }

  /* Enterprise — 고르는 것이 아니라 **문의로 가는 칸.** 금액을 협의로 정하므로
     결제창에 넘길 숫자가 없고, 그래서 서버의 플랜 목록에도 없다
     (`backend/app/core/plans.py`). */
  .plan.ask { text-decoration: none; }
  .plan-ask-price { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
  .plan-ask-desc {
    font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6;
  }

  /* 출시 할인 — 격자 **위에 하나만.** 남은 자리는 플랜별이 아니라 전체
     합계라서, 카드마다 적으면 플랜마다 그만큼 남은 것처럼 읽힌다(실제로
     그렇게 보였다). */
  .promo { display: block; margin: 0 0 22px; }
  /* **`display` 를 적는 순간 `hidden` 속성이 duds 가 된다.** 브라우저 기본
     스타일시트의 `[hidden]{display:none}` 보다 이 규칙이 세서, 할인이 끝났을
     때 '선착순 — — 센터' 가 그대로 보였다(홈의 옛 CSS 에도 있던 구멍이다). */
  .promo[hidden] { display: none; }
  .promo-label {
    font-size: 12px; font-weight: 700; color: var(--teal);
    display: block; margin-bottom: 2px;
  }
  .promo-text {
    font-size: 17px; font-weight: 800; color: var(--teal-dark);
    letter-spacing: -0.02em;
  }
  /* 원래 자리 수 — 지나간 값이라 흐리게, 취소선으로. 남은 수만 적으면 그게
     원래 숫자인 줄 알아 **줄고 있다는 사실**이 전달되지 않는다. */
  .promo-was { font-weight: 600; color: var(--muted); text-decoration: line-through; }
  /* 남은 수 — 이 문장이 하는 말의 전부다. 하나만 키운다. */
  .promo-left { font-size: 21px; font-variant-numeric: tabular-nums; }

  .vat { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
  @media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

  /* ── 센터 전용 ───────────────────────────────────────────────── */
  .center { background: var(--wash); border-radius: 30px; padding: 44px; }
  .center-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px;
    margin-top: 26px;
  }
  .center-grid dt { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
  .center-grid dd { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
  @media (max-width: 760px) {
    .center { padding: 28px 22px; border-radius: 22px; }
    .center-grid { grid-template-columns: 1fr; gap: 16px; }
  }

  /* ── 푸터 ────────────────────────────────────────────────────── */
  .biz {
    width: 90%; max-width: 1120px; margin: 40px auto 0;
    padding: 26px 0 44px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 12px; line-height: 1.8;
  }
  .biz p { margin: 0 0 3px; }
  .biz a { color: inherit; text-decoration: underline; }

  @media (max-width: 860px) {
    section { padding: 52px 0; }
    .hero { padding: 48px 0 36px; }
  }

/* ══ 폼 (문의하기) ══════════════════════════════════════════════════ */
.msg { border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 18px; }
.msg.err { background: #fdeeee; color: var(--danger); }
.msg.ok { background: #eaf6f3; color: var(--teal-dark); }
.hidden { display: none !important; }

/* 문의 폼은 흰 바탕에 테두리로 — 입력칸이 흰색이라 회색 카드 위에 두면
   칸만 둥둥 떠 보인다. */
form.card {
  padding: 28px; gap: 0; background: #fff; border: 1px solid var(--line);
}
.field { margin-bottom: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.hint { font-size: 12px; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: #fff;
}
textarea { min-height: 190px; resize: vertical; line-height: 1.7; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
/* 드롭다운 — 입력칸과 같은 테두리를 쓰되 높이는 한 줄로 맞춘다. */
select { height: 46px; cursor: pointer; }

.pick {
  display: block; text-align: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.pick:hover { background: #fafbfb; }
.filerow {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px; background: #fff;
}
.filerow span { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow button { border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--muted); line-height: 1; }

/* 사람에게는 보이지 않는 칸. 채워져 오면 기계가 채운 것이다. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send { width: 100%; margin-top: 6px; }
.hours { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
@media (max-width: 620px) {
  .two { grid-template-columns: 1fr; gap: 0; }
  form.card { padding: 20px; }
}

/* ══ FAQ ═══════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid #e0e2e4; }
.faq:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  padding: 20px 28px 20px 0; position: relative; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%); color: var(--muted); font-weight: 400;
  font-size: 20px; line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.faq a { color: var(--teal); }
.more { font-size: 14px; color: var(--muted); text-align: center; margin: 36px 0 0; }
.more a { color: var(--teal); text-decoration: none; font-weight: 600; }
.more a:hover { text-decoration: underline; }

/* ══ 속지 공통 (문의·FAQ·약관) ═══════════════════════════════════ */
.page { padding: 64px 0 24px; }
h1.big {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 14px; text-wrap: balance;
}
.lede a { color: var(--teal); }
@media (max-width: 860px) { .page { padding: 40px 0 16px; } }

/* ══ 법률 문서 (약관·처리방침·환불) ═════════════════════════════
   본문이 길어 한 줄이 1120px 를 넘으면 눈이 다음 줄을 못 찾는다. 읽는
   폭만 따로 좁힌다 — 머리와 꼬리는 다른 페이지와 같은 폭을 쓴다. */
/* 약관 본문도 칸을 다 쓴다. 줄이 길어지는 만큼 줄 간격을 넉넉히 뒀다. */
.doc { max-width: none; }
.doc h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.025em;
  margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 15.5px; font-weight: 700; margin: 26px 0 6px; }
/* 약관·처리방침 본문은 **한 색으로** 둔다. 조문은 --ink-soft, 부칙 같은 note 는
   --muted 로 두 단계 연했는데, 같은 문서의 같은 효력을 가진 글이 농도만 다르면
   연한 쪽이 덜 중요한 안내처럼 읽힌다. 법적 효력은 같다. */
.doc p { margin: 0 0 11px; font-size: 14.5px; line-height: 1.85; color: var(--ink); }
.doc .note { color: var(--ink); font-size: 13.5px; }
.doc .tw { overflow-x: auto; margin: 14px 0 22px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { background: var(--wash); font-weight: 700; }
.doc mark.tbd {
  background: #fff7e6; color: #b45309; font-weight: 700;
  padding: 1px 5px; border-radius: 5px;
}
.doc .meta { color: var(--muted); font-size: 13px; margin: 0 0 30px; }
