/* 새 디자인 공용 — 프로필 만들기·서비스 등록·결제·구독·도구 페이지와 같은 규칙을 나머지 고객용 페이지에 입힌다.
   무채색 + 포인트 초록, 흰 배경, 가운데 히어로(회색 알약 라벨 + 큰 제목 + 회색 설명),
   둥근 큰 카드(28px) + 회색 내부 블록(22px), 입력칸 10px, 버튼 12px.
   body.irm-page 안에서만 적용한다. 후기 작성·문의·도구 모음·준비 중·컨설턴트 없음·구독 결제·컨설팅 상품 목록·SEO 안내 페이지가 사용. */
html:has(body.irm-page) { background: #fff; }
body.irm-page {
  --irm-point: #1db954;
  --irm-point-d: #17a449;
  --irm-soft: #e8f8ee;
  --irm-ink: #111;
  --irm-muted: #777;
  --irm-faint: #8a8a86;
  --irm-line: #ececea;
  --irm-input: #deded9;
  --irm-block: #f9f9f9;
  --irm-pill: #f5f5f3;
  --irm-danger: #b4502e;
  --irm-danger-bg: #fff3f0;
  background: #fff;
  color: var(--irm-ink);
}

.irm-shell { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 96px; }
.irm-shell.is-wide { width: min(1000px, calc(100% - 48px)); }
.irm-shell.is-narrow { width: min(600px, calc(100% - 48px)); }

/* ───── 히어로 ───── */
.irm-hero { padding: 56px 0 0; text-align: center; }
.irm-badge { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-full); background: var(--irm-pill); color: #222; font-size: 13px; font-weight: 700; }
.irm-hero h1 { margin: 20px 0 0; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; text-wrap: balance; }
.irm-lead { max-width: 620px; margin: 16px auto 0; color: var(--irm-muted); line-height: 1.7; }
.irm-hand { padding-bottom: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 25 2, 55 8, 80 4 S 112 4, 118 3' fill='none' stroke='%231db954' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat; }

/* ───── 카드 + 회색 블록 ───── */
.irm-card { margin-top: 32px; padding: 40px; border: 1px solid var(--irm-line); border-radius: 28px; background: #fff; box-shadow: 0 0 30px -10px rgba(0, 0, 0, .1); }
.irm-block { padding: 24px; border-radius: 22px; background: var(--irm-block); }
.irm-block + .irm-block { margin-top: 16px; }
.irm-block-head { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.irm-block-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }

/* ───── 필드 ───── */
.irm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.irm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.irm-field.is-wide { grid-column: 1 / -1; }
.irm-label { font-size: 14px; font-weight: 700; }
.irm-req, .irm-opt { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.irm-req { background: var(--irm-soft); color: var(--irm-point-d); }
.irm-opt { background: #ebebe7; color: #6f6f6a; font-weight: 600; }
.irm-page .irm-input,
.irm-page .irm-select,
.irm-page .irm-textarea { width: 100%; border: 1px solid var(--irm-input); border-radius: 10px; padding: 0 16px; color: var(--irm-ink); font-size: 15px; font-weight: 500; line-height: 1.5; transition: border-color .16s ease, box-shadow .16s ease; }
.irm-page .irm-input, .irm-page .irm-select { height: 50px; }
.irm-page .irm-select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center / 12px 8px no-repeat; cursor: pointer; }
.irm-page .irm-textarea { min-height: 160px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.irm-page .irm-input::placeholder, .irm-page .irm-textarea::placeholder { color: #a8a8a3; }
.irm-page .irm-input:focus, .irm-page .irm-select:focus, .irm-page .irm-textarea:focus { border-color: var(--irm-ink); box-shadow: 0 0 0 4px rgba(29, 185, 84, .16); outline: 0; }
/* 오류 표시는 포커스 테두리(바로 위 :focus 규칙)보다 뒤·같은 우선순위로 둬서 포커스된 채로도 빨간 테두리가 남게 한다 */
.irm-page [aria-invalid="true"], .irm-page [aria-invalid="true"]:focus { border-color: var(--irm-danger); }
.irm-hint { margin: 0; color: var(--irm-faint); font-size: 12.5px; }
.irm-field-error { margin: 0; color: var(--irm-danger); font-size: 12.5px; font-weight: 600; line-height: 1.5; }

/* 체크박스 줄 */
.irm-check { display: flex; align-items: flex-start; gap: 10px; color: #333; font-size: 14px; cursor: pointer; }
.irm-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--irm-point); }
.irm-check small { display: block; margin-top: 2px; color: var(--irm-faint); font-size: 12.5px; line-height: 1.55; }
.irm-check + .irm-check { margin-top: 12px; }

/* ───── 버튼 ───── */
.irm-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.irm-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.irm-btn.is-primary { flex: 1 1 auto; background: var(--irm-point); color: #fff; }
.irm-btn.is-primary:hover { background: var(--irm-point-d); }
.irm-btn.is-ghost { flex: 0 0 auto; border-color: #d9d9d5; background: #fff; color: var(--irm-ink); }
.irm-btn.is-ghost:hover { border-color: var(--irm-ink); }
.irm-btn.is-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.irm-btn:disabled, .irm-btn.is-loading { opacity: .6; cursor: progress; }
.irm-btn:focus-visible, .irm-link:focus-visible { outline: 3px solid rgba(17, 17, 17, .3); outline-offset: 3px; }
.irm-link { color: var(--irm-faint); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.irm-link:hover { color: var(--irm-ink); }

/* ───── 안내 ───── */
.irm-notice { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: #f3fbf6; color: var(--irm-point-d); font-size: 14px; font-weight: 600; line-height: 1.6; }
.irm-notice.is-danger { background: var(--irm-danger-bg); color: var(--irm-danger); }
.irm-notice a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.irm-note { margin: 14px 0 0; color: var(--irm-faint); font-size: 13px; text-align: center; }
.irm-note a { color: var(--irm-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 정의 목록(요약) — 결제 페이지 요약과 같은 모양 */

/* ───── 빈 화면 / 준비 중 / 찾을 수 없음 ───── */
.irm-empty { padding: 72px 0 0; text-align: center; }
.irm-empty .irm-hero { padding-top: 0; }
.irm-empty-card { margin-top: 32px; padding: 40px; border-radius: 28px; background: var(--irm-block); }
.irm-empty-card p { margin: 0; color: #555; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.irm-empty .irm-actions { justify-content: center; margin-top: 24px; }
.irm-empty .irm-btn.is-primary { flex: 0 0 auto; }

/* ───── 링크 카드 그리드(도구 모음) ───── */
.irm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 40px; }
.irm-tile { display: flex; flex-direction: column; gap: 10px; min-height: 176px; padding: 28px; border: 1px solid var(--irm-line); border-radius: 22px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.irm-tile:hover { border-color: var(--irm-point); }
.irm-tile:focus-visible { outline: 3px solid rgba(29, 185, 84, .35); outline-offset: 3px; }
.irm-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #f9f9f9; }
.irm-tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--irm-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.irm-tile:hover .irm-tile-icon { background: var(--irm-soft); }
.irm-tile:hover .irm-tile-icon svg { stroke: var(--irm-point); }
.irm-tile h2 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.03em; line-height: 1.35; }
.irm-tile p { margin: 0; color: var(--irm-muted); font-size: 15px; }
.irm-tile-go { margin-top: auto; padding-top: 6px; color: var(--irm-point); font-size: 14px; font-weight: 700; }

/* ───── 후기 작성 ───── */
.irm-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.irm-stars input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.irm-stars label { color: #dcdcd7; font-size: 34px; line-height: 1; cursor: pointer; transition: color .1s ease; }
.irm-stars label:hover, .irm-stars label:hover ~ label, .irm-stars input:checked ~ label { color: var(--irm-point); }
.irm-stars input:focus-visible + label { outline: 3px solid rgba(29, 185, 84, .35); outline-offset: 2px; border-radius: 6px; }
.irm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.irm-section-title { margin: 56px 0 16px; color: var(--irm-ink); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.irm-reviews { display: grid; gap: 12px; }
.irm-review { padding: 20px 22px; border-radius: 18px; background: var(--irm-block); }
.irm-review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.irm-review-name { color: var(--irm-ink); font-size: 14.5px; font-weight: 700; }
.irm-review-stars { color: var(--irm-point); font-size: 14px; letter-spacing: 1px; }
.irm-review-tag { display: inline-flex; align-items: center; height: 24px; margin-top: 8px; padding: 0 10px; border-radius: var(--radius-full); background: #fff; color: #555; font-size: 12px; font-weight: 600; }
.irm-review p { margin: 10px 0 0; color: #444; font-size: 14.5px; line-height: 1.7; }

/* ───── 문의 ───── */
.irm-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.irm-steps li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: var(--radius-full); background: var(--irm-block); color: #444; font-size: 13.5px; font-weight: 600; }
.irm-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--irm-point); color: #fff; font-size: 12px; font-weight: 800; }
.irm-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 16px; }
.irm-channel { padding: 14px 16px; border-radius: 14px; background: #fff; }
.irm-channel span { display: block; color: var(--irm-faint); font-size: 12.5px; font-weight: 600; }
.irm-channel strong { display: block; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
/* !important — 숨김 유틸리티(의도적 유지): [hidden]·숨김 클래스가 공개 안내 화면의 display(.irm-badge, .irm-block-head 등)보다 앞서야 한다 */
.irm-page [hidden] { display: none !important; }
.irm-selected-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--irm-soft); color: var(--irm-point-d); font-size: 14px; font-weight: 700; }
.irm-page .form-status { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; text-align: center; }
.irm-page .form-status:empty { display: none; }
.irm-page .form-status.is-error { color: var(--irm-danger); }
.irm-page .form-status.is-pending { color: var(--irm-faint); }
.irm-page .form-status.is-success { color: var(--irm-point-d); }
.irm-success { padding: 40px 24px; text-align: center; }
.irm-success-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--irm-point); }
.irm-success-mark::after { content: ""; width: 10px; height: 18px; margin-top: -4px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.irm-success strong { display: block; margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.irm-success p { margin: 8px 0 0; color: var(--irm-muted); font-size: 15px; }
.irm-success .irm-actions { justify-content: center; margin-top: 24px; }
.irm-success .irm-btn.is-primary { flex: 0 0 auto; }

/* ───── 컨설팅 상품 목록(/consult/pricing) — 기존 cc-* 마크업에 새 규칙을 입힌다 ───── */
.irm-page .cc-shell { width: min(1000px, calc(100% - 48px)); padding: 0 0 96px; }
.irm-page .cc-page-head { display: flex; flex-direction: column; align-items: center; padding: 56px 0 0; text-align: center; }
.irm-page .cc-page-head > p { display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 14px; border-radius: var(--radius-full); background: var(--irm-pill); color: #222; font-size: 13px; font-weight: 700; }
.irm-page .cc-page-head h1 { margin: 20px 0 0; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.irm-page .cc-page-head > span { max-width: 620px; margin: 16px auto 0; color: var(--irm-muted); line-height: 1.7; }
.irm-page .cc-category-filter { justify-content: center; margin: 32px 0 28px; }
.irm-page .cc-category-filter label { font-size: 14px; font-weight: 700; }
.irm-page .cc-category-filter select { height: 44px; min-height: 0; border-color: var(--irm-input); border-radius: 10px; color: var(--irm-ink); }
.irm-page .cc-category-filter select:focus { border-color: var(--irm-ink); box-shadow: 0 0 0 4px rgba(29, 185, 84, .16); outline: 0; }
.irm-page .cc-button { min-height: 0; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; }
.irm-page .cc-button-primary { background: var(--irm-point); color: #fff; }
.irm-page .cc-button-primary:hover { background: var(--irm-point-d); }
.irm-page .cc-button-outline { border-color: #d9d9d5; background: #fff; color: var(--irm-ink); }
.irm-page .cc-button-outline:hover { border-color: var(--irm-ink); background: #fff; }
.irm-page .cc-button:focus-visible, .irm-page .cc-text-button:focus-visible { outline: 3px solid rgba(17, 17, 17, .3); outline-offset: 3px; }
.irm-page .cc-product-card,
.irm-page .cc-subscription-strip { border: 1px solid var(--irm-line); border-radius: 22px; }
.irm-page .cc-product-card { padding: 26px; transition: border-color .16s ease; }
.irm-page .cc-product-card:hover { border-color: #c9c9c4; }
.irm-page .cc-product-category { display: inline-flex; align-items: center; height: 24px; margin: 0 0 12px; padding: 0 10px; border-radius: var(--radius-full); background: var(--irm-pill); color: #444; font-size: 12px; font-weight: 700; }
.irm-page .cc-product-card h2 { font-size: 18px; }
.irm-page .cc-product-seller { color: var(--irm-faint); font-weight: 600; }
.irm-page .cc-product-seller:hover { color: var(--irm-ink); }
.irm-page .cc-product-card-top strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.irm-page .cc-meta-list { padding: 16px; border-radius: 14px; background: var(--irm-block); }
.irm-page .cc-meta-list dt { color: var(--irm-faint); font-weight: 600; }
.irm-page .cc-meta-list dd { color: #333; }
.irm-page .cc-deliverables li::before, .irm-page .cc-reference-grid li::before { color: var(--irm-point); }
.irm-page .cc-empty { border: 0; border-radius: 22px; background: var(--irm-block); color: var(--irm-muted); }
.irm-page .cc-empty h2 { color: var(--irm-ink); font-size: 18px; }
.irm-page .cc-package-reference { margin-top: 56px; padding: 32px; border: 0; border-radius: 28px; background: var(--irm-block); }
.irm-page .cc-package-reference > header p { display: inline-flex; align-items: center; height: 28px; margin: 0 0 12px; padding: 0 12px; border-radius: var(--radius-full); background: #fff; color: #222; font-size: 12px; font-weight: 700; }
.irm-page .cc-package-reference h2, .irm-page .cc-subscription-strip h2 { font-size: 22px; letter-spacing: -.03em; }
.irm-page .cc-package-reference > header span { color: var(--irm-muted); }
.irm-page .cc-reference-grid article { border: 0; border-radius: 18px; }
.irm-page .cc-reference-grid article > p { color: var(--irm-point-d); font-weight: 700; }
.irm-page .cc-reference-grid article > span, .irm-page .cc-reference-grid ul { color: #555; }
.irm-page .cc-subscription-strip { margin-top: 24px; padding: 28px 32px; }
.irm-page .cc-subscription-strip > div > p { display: inline-flex; align-items: center; height: 28px; margin: 0 0 10px; padding: 0 12px; border-radius: var(--radius-full); background: var(--irm-pill); color: #222; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.irm-page .cc-subscription-plans div { color: #333; }
.irm-page .cc-subscription-plans span { color: var(--irm-point-d); font-weight: 700; }

/* ───── SEO 안내 페이지: legal_modern.css(lg-*) 위에 관련 링크만 더한다 ───── */
.irm-related { margin-top: 56px; padding: 32px; border-radius: 28px; background: var(--irm-block); text-align: center; }
.irm-related h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.irm-related > p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; }
.irm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.irm-pills a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid #e4e4e0; border-radius: var(--radius-full); background: #fff; font-size: 14px; font-weight: 600; transition: border-color .16s ease; }
.irm-pills a:hover { border-color: var(--irm-ink); }
.irm-pills a:focus-visible { outline: 3px solid rgba(17, 17, 17, .3); outline-offset: 3px; }

@media (max-width: 760px) {
  .irm-shell, .irm-shell.is-wide, .irm-shell.is-narrow { width: calc(100% - 32px); padding-bottom: 64px; }
  .irm-hero { padding-top: 32px; }
  .irm-hero h1 { font-size: 28px; }
  .irm-lead { margin-top: 12px; font-size: 14.5px; }
  .irm-card { margin-top: 24px; padding: 20px; border-radius: 24px; }
  .irm-block { padding: 20px 16px; }
  .irm-grid { grid-template-columns: 1fr; gap: 16px; }
  .irm-page .irm-input, .irm-page .irm-select { height: 46px; font-size: 14px; }
  .irm-page .irm-textarea { font-size: 14px; }
  .irm-btn { height: 50px; padding: 0 18px; font-size: 15px; }
  .irm-empty { padding-top: 40px; }
  .irm-empty-card { padding: 28px 20px; border-radius: 24px; }
  .irm-tiles { margin-top: 28px; gap: 12px; }
  .irm-tile { min-height: 0; padding: 22px 20px; }
  .irm-page .cc-shell { width: calc(100% - 32px); padding-bottom: 64px; }
  .irm-page .cc-page-head { padding-top: 32px; }
  .irm-page .cc-page-head h1 { font-size: 28px; }
  .irm-page .cc-page-head > span { font-size: 14.5px; }
  .irm-page .cc-category-filter { align-items: stretch; }
  .irm-page .cc-package-reference, .irm-page .cc-subscription-strip { padding: 22px 20px; border-radius: 24px; }
  .irm-related { padding: 24px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .irm-btn, .irm-tile, .irm-stars label, .irm-pills a { transition: none; }
}
