/* =========================================================
   HIGENG 디자인 시스템 (2SHIN 기반) — "명료(Clarity)"  2026-08-06 개편
   흰 바탕 · 코발트 단일 강조색 · 그림자 대신 얇은 선 · 넉넉한 여백.
   전부 self-host (외부 CDN 없음).

   개편 원칙 3가지:
   1) 강조색은 하나만. 이전엔 노랑·보라·초록·파랑·빨강·주황 6색이 서로 경쟁해
      화면마다 시선이 흩어졌다. 강조는 코발트 하나로 모으고, 나머지 색은
      "의미색"(성공/경고/위험)으로 역할을 고정해 장식용으로 쓰지 않는다.
   2) 깊이는 그림자가 아니라 선으로. 큰 그림자는 지금 웹에서 가장 낡아 보이는 요소다.
   3) 변수 이름은 그대로 둔다 — 값만 바꿔 기존 400여 규칙이 자동으로 새 시스템을 따르게 한다.
      (--y-brand 등은 이제 "보라"가 아니라 "강조색"이라는 뜻으로 읽을 것)
   ========================================================= */
:root {
  --y-yellow: #FEE500;      /* 카카오 브랜드 고정값 — 카카오 로그인 버튼 전용, 장식에 쓰지 말 것 */
  --y-yellow-deep: #F5D800;
  --y-ink: #0B0E14;         /* 본문 최진 — 순검정 대신 아주 살짝 푸른 잉크 */
  --y-brand: #2563FF;       /* 단일 강조색(코발트). 링크·버튼·활성상태 전부 이 색 */
  --y-brand-soft: #4B7BFF;
  --y-accent: #00A868;      /* 의미색: 성공/적중 */
  --y-danger: #D93A2B;      /* 의미색: 위험/마감임박 */
  --y-warn: #F0A020;        /* 의미색: 경고 */
  --y-blue: #2563FF;        /* 강조색과 동일 — 링크가 별도 색을 갖지 않게 통일 */

  --y-bg: #F5F7FA;
  --y-card: #FFFFFF;
  --y-line: #E7EAEF;        /* 헤어라인 — 이 선이 그림자를 대신한다 */
  --y-line-strong: #D8DDE5;
  --y-muted: #5D6675;       /* 보조 텍스트 — 이전 #8B95A1은 흰 배경에서 대비 3.0:1로 미달이었다 */
  --y-muted2: #949DAB;

  /* 강조색 계열 틴트 — 곳곳에 하드코딩돼 있던 보라 틴트들을 대체 */
  --y-brand-tint: #EEF3FF;
  --y-brand-tint2: #DCE7FF;

  --y-radius: 16px;
  --y-radius-sm: 12px;
  --y-radius-lg: 22px;
  /* 그림자는 "떠 있음"을 표현할 때만 아주 옅게. 기본 카드는 선으로 구분한다. */
  --y-shadow: 0 1px 2px rgba(11,14,20,.04);
  --y-shadow-hover: 0 2px 6px rgba(11,14,20,.06), 0 10px 24px rgba(11,14,20,.07);
  --y-shadow-sm: 0 1px 2px rgba(11,14,20,.04);
  /* 'Pretendard Variable'이 자체 호스팅되는 실제 이름이다(fonts/pretendard/pretendard.css).
     뒤의 시스템 폰트들은 폰트가 아직 안 받아졌을 때의 대체 순서일 뿐이다. */
  --y-font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
            "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;

  /* 반투명 표면 — 상단바/하단탭바는 뒤가 비쳐야 해서 단색이 아니라 알파값을 쓴다 */
  --y-nav-bg: rgba(255,255,255,.72);
  --y-nav-bg-scrolled: rgba(255,255,255,.88);
  --y-nav-bg-solid: rgba(255,255,255,.94);

  /* 의미색 틴트 — 배경/전경 쌍. 다크에서 통째로 재정의된다 */
  --y-tint-ok: #E4F9F0;      --y-on-ok: #05935A;
  --y-tint-danger: #FFECEC;  --y-on-danger: #C62F26;
  --y-tint-warn: #FFF4E0;    --y-on-warn: #92590A;
  --y-on-info: #1B51E0;

  --y-shadow-strength: 1;
  color-scheme: light;
}

/* =========================================================
   다크 테마 (2026-08-06)
   해석 순서: 사용자가 고른 값(html[data-theme]) > OS 설정(prefers-color-scheme) > 라이트
   토큰만 재정의하고 컴포넌트 규칙은 건드리지 않는다 — 그래야 두 테마가 갈라지지 않는다.
   ⚠ data-theme 선택자가 미디어쿼리를 **양방향으로** 이겨야 한다:
     OS가 다크인데 사용자가 라이트를 고른 경우도 반드시 라이트로 나와야 하므로
     [data-theme="light"]도 명시적으로 라이트 값을 다시 쓴다.
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --y-ink: #E8ECF3;
    --y-bg: #0D1117;          /* 페이지 바닥 */
    --y-card: #161B22;        /* 카드/패널 — 바닥보다 한 단계 밝게 해서 층을 만든다 */
    --y-line: #262D38;
    --y-line-strong: #333C49;
    --y-muted: #9AA5B4;       /* 어두운 배경에선 회색을 밝혀야 대비가 산다 */
    --y-muted2: #6E7986;

    /* 코발트 원색은 어두운 바탕에서 탁하게 가라앉아 한 톤 밝힌다 */
    --y-brand: #5B8CFF;
    --y-brand-soft: #7FA6FF;
    --y-blue: #5B8CFF;
    --y-brand-tint: #17233D;
    --y-brand-tint2: #1E2E4F;

    --y-accent: #2ECC8F;
    --y-danger: #FF6B5A;
    --y-warn: #FFB020;

    --y-nav-bg: rgba(13,17,23,.72);
    --y-nav-bg-scrolled: rgba(13,17,23,.90);
    --y-nav-bg-solid: rgba(13,17,23,.94);

    --y-tint-ok: #10291F;      --y-on-ok: #4ADE9B;
    --y-tint-danger: #2E1714;  --y-on-danger: #FF8A7A;
    --y-tint-warn: #2C2110;    --y-on-warn: #FFC65C;
    --y-on-info: #8FB2FF;

    /* 어두운 바탕에선 그림자가 안 보인다 — 대신 선 대비로 층을 표현 */
    --y-shadow: none;
    --y-shadow-sm: none;
    --y-shadow-hover: 0 10px 30px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --y-ink: #E8ECF3;
  --y-bg: #0D1117;
  --y-card: #161B22;
  --y-line: #262D38;
  --y-line-strong: #333C49;
  --y-muted: #9AA5B4;
  --y-muted2: #6E7986;

  --y-brand: #5B8CFF;
  --y-brand-soft: #7FA6FF;
  --y-blue: #5B8CFF;
  --y-brand-tint: #17233D;
  --y-brand-tint2: #1E2E4F;

  --y-accent: #2ECC8F;
  --y-danger: #FF6B5A;
  --y-warn: #FFB020;

  --y-nav-bg: rgba(13,17,23,.72);
  --y-nav-bg-scrolled: rgba(13,17,23,.90);
  --y-nav-bg-solid: rgba(13,17,23,.94);

  --y-tint-ok: #10291F;      --y-on-ok: #4ADE9B;
  --y-tint-danger: #2E1714;  --y-on-danger: #FF8A7A;
  --y-tint-warn: #2C2110;    --y-on-warn: #FFC65C;
  --y-on-info: #8FB2FF;

  --y-shadow: none;
  --y-shadow-sm: none;
  --y-shadow-hover: 0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--y-font);
  color: var(--y-ink);
  background: var(--y-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
a { color: var(--y-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 .5em; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 480px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--y-nav-bg); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled {
  background: var(--y-nav-bg-scrolled); border-bottom-color: var(--y-line);
  box-shadow: 0 1px 0 rgba(17,24,39,.02), 0 12px 28px rgba(17,24,39,.05);
}
.nav-inner { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--y-ink);
  min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .logo { flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--y-brand);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px;
  letter-spacing: -.02em;
}
.brand small { color: var(--y-muted); font-weight: 600; font-size: 13px; margin-left: 2px; }
.nav-links { display: flex; gap: 0; margin-left: 12px; align-items: center; }
.nav-links a {
  position: relative; color: var(--y-muted); font-weight: 600; font-size: 13.5px;
  padding: 8px 9px; border-radius: 8px; transition: background .15s ease, color .15s ease;
  white-space: nowrap; letter-spacing: -.015em;
}
.nav-links a:hover { color: var(--y-ink); background: var(--y-bg); text-decoration: none; }
.nav-links a.active { color: var(--y-brand); background: var(--y-brand-tint); }
.nav-right { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.nav-toggle { display: none; }

/* ---------- Nav dropdown (mega-menu-lite) ---------- */
.nav-drop { position: relative; }
.nav-drop > a::after { content: "▾"; font-size: 9px; margin-left: 4px; opacity: .5; position: static; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 190px;
  background: var(--y-card); border: 1px solid var(--y-line); border-radius: 14px;
  box-shadow: var(--y-shadow-hover); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .14s ease, transform .14s ease, visibility .14s;
  z-index: 60;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-panel a { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--y-ink); }
.nav-drop-panel a:hover { background: var(--y-bg); color: var(--y-brand); text-decoration: none; }
.nav-drop-panel a::after { display: none; }

/* ---------- Nav account area (bell / user menu) ---------- */
.nav-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; font-size: 17px; background: transparent;
  transition: background .15s ease;
}
.nav-icon-btn:hover { background: var(--y-bg); text-decoration: none; }
.nav-icon-badge {
  position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 800; line-height: 1;
  background: var(--y-danger); color: #fff; border-radius: 999px; padding: 2.5px 5px;
  box-shadow: 0 0 0 2px var(--y-card);
}
.nav-user-btn {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: var(--y-bg); color: var(--y-ink); font-weight: 700; font-size: 14px;
  transition: background .15s ease; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.nav-user-btn:hover { background: var(--y-brand-tint); text-decoration: none; }
.nav-user-btn::after { content: "▾"; font-size: 9px; opacity: .5; margin-left: 5px; }

/* ---------- Mobile nav (햄버거 메뉴) — 데스크톱 기본, 900px 이하에서 전환 ----------
   나중에 하이브리드 앱(아이폰15프로 기준 ~393px 뷰포트)으로 감싸질 예정이라 이 폭대에서
   특히 잘 맞아야 한다. 데스크톱 .nav-links는 그냥 숨기고, 세로 목록형 별도 패널을 새로 보여준다
   (드롭다운은 hover 기반이라 터치에는 안 맞음 — 모바일 패널은 처음부터 펼쳐진 세로 목록). */
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--y-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--y-card); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 20px 40px; z-index: 55;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 4px; font-weight: 700; font-size: 15.5px;
  color: var(--y-ink); border-bottom: 1px solid var(--y-line);
}
.mobile-nav a:hover, .mobile-nav a:active { color: var(--y-brand); text-decoration: none; }
.mobile-nav a.active { color: var(--y-brand); }
.mobile-nav-title { font-size: 12px; font-weight: 800; color: var(--y-muted); text-transform: uppercase; letter-spacing: .04em; padding: 14px 4px 2px; }
.mobile-nav-group a { padding: 10px 4px 10px 14px; font-weight: 600; font-size: 14.5px; border-bottom: none; color: var(--y-muted); }
.mobile-nav-divider { border-top: 1px solid var(--y-line); margin: 10px 0; }

/* ---------- Promo banner strip (홈 하단 광고성 게시물) ---------- */
.promo-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.promo-card {
  flex: 0 0 260px; background: linear-gradient(160deg,#FFFCE8,#FFF7C2); border: 1px solid #F0E6A0;
  border-radius: var(--y-radius); padding: 18px; display: block; color: inherit;
}
.promo-card:hover { text-decoration: none; box-shadow: var(--y-shadow-hover); }
.promo-card .kicker { font-size: 11.5px; font-weight: 800; color: #8a7500; text-transform: uppercase; letter-spacing: .04em; }
.promo-card .ttl { font-weight: 800; font-size: 15px; margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .1s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
/* 그라디언트+큰 그림자는 지금 웹에서 가장 낡아 보이는 조합이라 단색+호버 시 명도변화로 대체 */
.btn-primary { background: var(--y-brand); color: #fff; }
.btn-primary:hover { background: #1B51E0; }
/* 카카오는 브랜드 가이드상 지정 색을 그대로 써야 해서 단색으로만 정리한다(그라디언트/그림자 제거). */
.btn-kakao { background: var(--y-yellow); color: #191600; }
.btn-kakao:hover { background: var(--y-yellow-deep); }
.btn-ghost { background: var(--y-card); color: var(--y-ink); border-color: var(--y-line); box-shadow: var(--y-shadow-sm); }
.btn-ghost:hover { background: var(--y-bg); border-color: var(--y-line-strong); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--y-danger); color: #fff; }
.btn-line { background: var(--y-card); color: var(--y-brand); border-color: var(--y-brand); }

/* ---------- Cards ---------- */
.card {
  background: var(--y-card); border: 1px solid var(--y-line);
  border-radius: var(--y-radius); box-shadow: var(--y-shadow); padding: 26px;
}
.card-hover { transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--y-shadow-hover); border-color: var(--y-brand-tint2); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Icon badge (for feature/step icons) ---------- */
.icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--y-brand-tint) 0%, var(--y-brand-tint2) 100%); flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 14px rgba(59,46,126,.08);
}
.icon-badge svg { width: 24px; height: 24px; stroke: var(--y-brand); }
.icon-badge.on-dark { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.icon-badge.on-dark svg { stroke: #fff; }
.icon { display: inline-block; vertical-align: -3px; }
.icon svg { display: block; }

/* ---------- Badges / pills / chat bubble ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; background: var(--y-brand-tint); color: var(--y-brand); }
.badge-green { background: var(--y-tint-ok); color: var(--y-on-ok); }
.badge-yellow { background: #FFF7C2; color: #8a7500; }
.badge-red { background: var(--y-tint-danger); color: var(--y-on-danger); }
.badge-gray { background: var(--y-bg); color: var(--y-muted); }
.bubble {
  position: relative; background: var(--y-yellow); color: #191600; font-weight: 600;
  padding: 12px 16px; border-radius: 14px; display: inline-block; font-size: 14.5px;
  box-shadow: 0 3px 10px rgba(245,216,0,.3);
}
.bubble::after { content: ""; position: absolute; left: -7px; top: 16px;
  border: 7px solid transparent; border-right-color: var(--y-yellow); border-left: 0; }

/* ---------- Hero ---------- */
/* 히어로 — 보라/노랑 블롭 그라디언트와 도트 패턴을 걷어냈다. 두 겹의 장식 레이어가
   실제로는 "2000년대 후반 웹" 인상을 만드는 주범이었고, 흰 여백만으로도 충분하다. */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 60px); position: relative; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.042em;
  text-wrap: balance;
}
/* 그라디언트 텍스트는 안티에일리어싱이 뭉개져 한글에서 특히 지저분하다 — 단색 강조로 대체 */
.hero .tag { color: var(--y-brand); }
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--y-muted);
  max-width: 52ch; margin: 18px 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: grid; place-items: center; }

/* ---------- Trust row (checkmark line under hero CTA) ---------- */
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-row > div { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--y-muted); font-weight: 600; }
.trust-row .ck { width: 17px; height: 17px; border-radius: 999px; background: var(--y-accent);
  display: grid; place-items: center; flex-shrink: 0; }
.trust-row .ck svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; }

/* ---------- Device mockup (hero preview) ---------- */
.mockup {
  width: 100%; max-width: 400px; background: var(--y-card); border-radius: 20px;
  box-shadow: 0 2px 4px rgba(17,24,39,.05), 0 30px 60px -12px rgba(30,20,70,.28);
  border: 1px solid rgba(255,255,255,.6);
  overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; row-gap: 4px; flex-wrap: wrap; padding: 12px 14px; background: var(--y-bg); border-bottom: 1px solid var(--y-line); }
.mockup-bar span { width: 9px; height: 9px; border-radius: 999px; background: #E3E5EA; flex-shrink: 0; }
.mockup-bar span:nth-child(1) { background: #FF9C93; }
.mockup-bar span:nth-child(2) { background: #FFCD6B; }
.mockup-bar span:nth-child(3) { background: #91DDA9; }
.mockup-bar .lbl { margin-left: 8px; font-size: 11.5px; color: var(--y-muted); font-weight: 700; white-space: nowrap; }
.mockup-bar .badge { flex-shrink: 0; white-space: nowrap; margin-left: auto; }
.mockup-body { padding: 18px; }
.mockup-result { background: var(--y-brand-tint); border: 1px solid var(--y-brand-tint2); border-radius: 14px; padding: 16px; margin-top: 14px; }
.mockup-result .kicker { font-size: 12px; color: var(--y-brand-soft); font-weight: 800; letter-spacing: .02em; }
.mockup-result .figure { font-size: 27px; font-weight: 900; color: var(--y-brand); letter-spacing: -.03em; margin: 4px 0; }
.mockup-result .sub { font-size: 12.5px; color: var(--y-muted); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--y-ink); }
.form-control {
  width: 100%; font-family: inherit; font-size: 15.5px; padding: 13px 15px;
  border: 1.5px solid var(--y-line); border-radius: var(--y-radius-sm); background: var(--y-card);
  transition: border-color .12s ease, box-shadow .12s ease; color: var(--y-ink);
}
.form-control:focus { outline: none; border-color: var(--y-brand-soft); box-shadow: 0 0 0 4px rgba(108,92,231,.12); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235D6675' stroke-width='2'><path d='M5 8l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-hint { font-size: 12.5px; color: var(--y-muted); margin-top: 6px; }
.field-validation-error, .validation-summary-errors { color: var(--y-danger); font-size: 13px; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--y-radius-sm); font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.alert-info { background: var(--y-brand-tint); color: var(--y-on-info); }
.alert-warn { background: var(--y-tint-warn); color: var(--y-on-warn); }
.alert-error { background: var(--y-tint-danger); color: var(--y-on-danger); }
.alert-success { background: var(--y-tint-ok); color: var(--y-on-ok); }

/* ---------- Disclaimer (표시광고법 면책 고정 배너) ---------- */
.disclaimer {
  background: #FFF9DB; border: 1px dashed #E5D06B; color: #7a6410;
  font-size: 13px; padding: 10px 14px; border-radius: 10px; display: flex; gap: 8px; align-items: flex-start;
}

/* ---------- Stats ---------- */
.stat { text-align: center; position: relative; padding: 4px 0; }
.stat:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 34px; background: var(--y-line);
}
.stat .num { font-size: 36px; font-weight: 900; color: var(--y-brand); letter-spacing: -.04em; }
.stat .lbl { color: var(--y-muted); font-size: 13.5px; font-weight: 600; margin-top: 2px; }

.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--y-line); border-bottom: 1px solid var(--y-line);
  padding: 40px 0;
}

/* ---------- Feature split (텍스트 + 목업 좌우배치) ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-split-visual { display: flex; justify-content: center; }
.feature-split.reverse .feature-split-visual { order: -1; }
.feature-split-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--y-brand-soft); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.feature-split h2 { font-size: 28px; }
.feature-split p.desc { color: var(--y-muted); font-size: 16px; max-width: 460px; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--y-ink); font-weight: 600; }
.feature-list .ck { width: 20px; height: 20px; border-radius: 999px; background: var(--y-brand-tint); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.feature-list .ck svg { width: 11px; height: 11px; stroke: var(--y-brand); stroke-width: 3; }

/* ---------- List-row mockup (공고 탐색 미리보기용) ---------- */
.mockup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 12px; }
.mockup-row:hover { background: var(--y-bg); }
.mockup-row + .mockup-row { border-top: 1px solid var(--y-line); }
.mockup-row > div:first-child { min-width: 0; flex: 1; }
.mockup-row .org { font-size: 11.5px; color: var(--y-muted); font-weight: 700; }
.mockup-row .ttl { font-size: 13.5px; font-weight: 700; color: var(--y-ink); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-row .amt { font-size: 13px; font-weight: 800; color: var(--y-brand); white-space: nowrap; flex-shrink: 0; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Arrow (CTA 버튼용) ---------- */
.btn .arrow { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--y-radius); border: 1px solid var(--y-line); box-shadow: var(--y-shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; background: var(--y-card); font-size: 14.5px; }
table.tbl th, table.tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--y-line); white-space: nowrap; }
table.tbl th { background: var(--y-bg); font-weight: 700; color: var(--y-muted); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
table.tbl tbody tr { transition: background .1s ease; }
table.tbl tbody tr:hover { background: var(--y-bg); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 개찰결과 표 — 열폭을 colgroup으로 못박는다(auto 레이아웃은 긴 발주기관명 하나에 표 전체가 끌려간다).
   한글은 기본 규칙(word-break:normal)에서 음절 아무 데서나 쪼개져 "인입공/사"처럼 일그러진다 —
   keep-all로 띄어쓰기에서만 끊고, 한 단어가 칸보다 길 때만 anywhere가 예외적으로 끊게 둔다. */
table.tbl-results { table-layout: fixed; }
table.tbl-results th, table.tbl-results td { overflow: hidden; text-overflow: ellipsis; }
table.tbl-results td.c-org, table.tbl-results td.c-title {
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-overflow: clip;
  line-height: 1.45;
}
table.tbl-results td.c-org { font-size: 13.5px; color: var(--y-muted); }

/* ---------- 목록 필터 바 ---------- */
.results-filter { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 16px 18px; }
.results-filter .ff { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.results-filter .ff-grow { flex: 1 1 320px; min-width: 0; }
.results-filter .ff-actions { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.results-filter .ff-label { font-size: 12.5px; font-weight: 700; color: var(--y-muted); letter-spacing: .02em; }
.results-filter .form-control { padding: 10px 13px; font-size: 14.5px; }
.results-filter select.form-control { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 780px) {
  .results-filter .ff, .results-filter .ff-grow { flex: 1 1 100%; min-width: 0; }
}

/* ---------- Social buttons ---------- */
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 13px; border-radius: var(--y-radius-sm); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.social-kakao { background: #FEE500; color: #191600; }
.social-naver { background: #03C75A; color: #fff; }
.social-google { background: var(--y-card); color: var(--y-ink); border-color: var(--y-line-strong); }
.social-btn:hover { filter: brightness(.97); text-decoration: none; }
.social-ico { width: 20px; height: 20px; display: inline-grid; place-items: center; font-weight: 900; border-radius: 5px; font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: var(--y-card); border-top: 1px solid var(--y-line); margin-top: 80px; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--y-muted); font-size: 13.5px; max-width: 280px; line-height: 1.7; }
.footer-col-title { font-size: 12.5px; font-weight: 800; color: var(--y-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--y-muted); font-weight: 600; font-size: 14px; }
.footer-col a:hover { color: var(--y-brand); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--y-line); padding-top: 24px; }
.footer .biz { color: var(--y-muted); font-size: 13px; line-height: 1.9; }
.footer .biz strong { color: var(--y-muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--y-muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--y-brand); text-decoration: none; }

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 32px; font-weight: 900; letter-spacing: -.04em; text-align: center; }
/* 화면마다 제각각이던 페이지 헤딩(인라인 font-size)을 하나로 정리한 공통 클래스 */
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--y-muted); font-size: 16px; margin-top: 8px; margin-bottom: 40px; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--y-brand-soft); font-weight: 800; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .35; }

/* ---------- Steps (연결선 있는 프로세스) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: step; }
.step { position: relative; padding: 0 22px; text-align: left; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 800; color: var(--y-muted2); letter-spacing: .04em; margin-bottom: 14px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 100%; right: -22px;
  height: 1px; background: repeating-linear-gradient(90deg, var(--y-line) 0 6px, transparent 6px 11px);
}
.step h3 { margin-top: 14px; font-size: 18px; }
.step p { margin: 6px 0 0; }

/* ---------- Split feature panel (컬러 CTA 섹션) ---------- */
.panel-dark {
  position: relative; overflow: hidden; border-radius: var(--y-radius-lg);
  background: linear-gradient(155deg, #2c2160 0%, var(--y-brand) 55%, #4d3fa0 100%);
  padding: 64px 20px; color: #fff;
}
.panel-dark::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 260px at 88% -10%, rgba(254,229,0,.20), transparent 65%),
    radial-gradient(360px 260px at 4% 110%, rgba(255,255,255,.10), transparent 65%);
}
.panel-dark > * { position: relative; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.featured {
  border-color: transparent; box-shadow: 0 2px 6px rgba(59,46,126,.1), 0 20px 48px rgba(59,46,126,.2);
  background:
    linear-gradient(var(--y-card),var(--y-card)) padding-box,
    linear-gradient(155deg, var(--y-brand-soft), var(--y-brand)) border-box;
  border: 2px solid transparent;
}
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(155deg, var(--y-brand-soft), var(--y-brand)); color: #fff;
  font-size: 12.5px; font-weight: 800; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(59,46,126,.35); }
.price { font-size: 36px; font-weight: 900; letter-spacing: -.04em; }
.price small { font-size: 15px; color: var(--y-muted); font-weight: 600; }
.price-feat { list-style: none; padding: 0; margin: 18px 0; }
.price-feat li { padding: 8px 0; color: var(--y-muted); font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }
.price-feat li::before { content: "✓"; color: var(--y-accent); font-weight: 900; }

/* ---------- Utility ---------- */
.text-muted { color: var(--y-muted); }
.text-center { text-align: center; }
.text-brand { color: var(--y-brand); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:8px}.gap-2{gap:16px}
.wrap{flex-wrap:wrap}.hidden{display:none}
.pill-tabs { display: inline-flex; background: #EEF0F4; border-radius: 999px; padding: 4px; gap: 2px; }
.pill-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--y-muted); }
.pill-tabs a.active { background: var(--y-card); color: var(--y-ink); box-shadow: var(--y-shadow-sm); }

/* ---------- Admin layout ---------- */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side { background: #201A45; color: #cdc9e6; padding: 22px 16px; }
.admin-side .brand { color: #fff; margin-bottom: 22px; }
.admin-side .brand small { color: #9d95c9; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a { color: #cdc9e6; font-weight: 600; font-size: 14.5px; padding: 11px 14px; border-radius: 11px; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--y-yellow); color: #191600; }
.admin-nav .grp { color: #8078b0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 4px; padding-left: 8px; }
.admin-main { padding: 30px 34px; background: var(--y-bg); }
.admin-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 24px; margin: 0; }
.admin-nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: none; background: var(--y-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.08); flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
}
.admin-nav-toggle span { width: 20px; height: 2px; background: var(--y-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.admin-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.admin-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .container { padding: 0 24px; }
}
@media (max-width: 1024px) {
  /* 상단 메뉴가 9개(투찰예측/공고/뉴스/가이드/자료실/개찰·적중률/요금제/무료진단/고객센터)라
     한 줄에 들어가려면 넓은 폭이 필요했고, 그래서 전환점이 1300px였다. 그 결과 1280·1366처럼
     흔한 노트북에서도 햄버거 메뉴만 보였다 — "PC인데 모바일 화면" 인상의 주된 원인.
     링크 자간·여백을 줄여 메뉴를 9개→5개로 묶어 1024px까지 한 줄에 들어가게 만든 뒤 전환점을 낮췄다.
     실측 폭: 브랜드 174 + 메뉴 417 + 우측 270 + 여백 48 = 약 910px. */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-side.mobile-open {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 200;
    overflow-y: auto; padding: 22px 16px 34px;
  }
  .admin-nav-toggle { display: flex; }
  .admin-main { padding: 20px 18px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .stat:nth-child(odd)::before { display: none; }
  .mockup { transform: none; }
  .feature-split { grid-template-columns: 1fr; gap: 36px; }
  .feature-split.reverse .feature-split-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 !important; }
  .step:not(:last-child)::after { display: none; }
  .stat-bar { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 24px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 24px; }
  .stat::before { display: none; }
  .panel-dark { padding: 44px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 780px) {
  /* width:100%인 테이블에 줄바꿈 가능한 열이 하나뿐이면, 좁은 화면에서 그 열만 극단적으로
     찌그러져 단어가 이상하게 쪼개진다. 테이블 자체를 최소 너비로 고정해 .table-wrap의
     overflow-x:auto가 대신 가로 스크롤을 담당하게 한다. */
  table.tbl { width: auto; min-width: 640px; }
}

/* ---------- 마감캘린더: 7칸 그리드 ↔ 모바일 아젠다 목록 ---------- */
.cal-agenda { display: none; }
.cal-agenda-day { padding: 14px 4px; border-bottom: 1px solid var(--y-line); }
.cal-agenda-day:last-child { border-bottom: none; }
.cal-agenda-date { font-weight: 800; font-size: 14px; margin-bottom: 8px; color: var(--y-ink); }
.cal-agenda-item {
  display: block; padding: 10px 12px; border-radius: 10px; background: var(--y-bg);
  margin-bottom: 6px; font-size: 13.5px; color: var(--y-ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-agenda-item:hover { background: var(--y-brand-tint); text-decoration: none; }
@media (max-width: 700px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; }
}

/* =========================================================
   모바일 하단 탭바 (2026-08-06 신규)
   기존엔 모바일에서 햄버거 메뉴 하나뿐이라 핵심 기능(공고/예측/관심)이 전부
   "탭 → 메뉴 열기 → 스크롤 → 선택" 3동작 뒤에 있었다. 요즘 앱처럼 상시 노출한다.
   1140px 이하(= 햄버거 구간)에서만 나타난다.
   ========================================================= */
.tabbar { display: none; }

@media (max-width: 1024px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--y-nav-bg-solid);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--y-line);
    /* 아이폰 홈 인디케이터 영역만큼 아래를 더 확보한다(없는 기기에선 0) */
    padding: 7px 2px calc(7px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a, .tabbar button {
    position: relative; /* .tab-badge의 기준 박스 */
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; padding: 4px 2px;
    font-size: 10.5px; font-weight: 700; color: var(--y-muted); letter-spacing: -.02em;
    /* 손가락 터치 목표 최소 44px 확보 */
    min-height: 44px; border-radius: 10px;
    background: none; border: none; font-family: inherit; cursor: pointer;
  }
  .tabbar a:hover, .tabbar a:active,
  .tabbar button:hover, .tabbar button:active { text-decoration: none; background: var(--y-bg); }
  .tabbar a.active { color: var(--y-brand); }
  .tabbar svg {
    width: 21px; height: 21px; stroke: currentColor; fill: none;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  }
  .tabbar .tab-badge {
    position: absolute; top: 1px; left: 50%; margin-left: 4px;
    background: var(--y-danger); color: #fff; font-size: 9.5px; font-weight: 800;
    line-height: 1; padding: 2.5px 4.5px; border-radius: 999px; box-shadow: 0 0 0 2px var(--y-nav-bg-solid);
  }
  /* 탭바가 콘텐츠 맨 아래를 가리지 않도록 본문 하단에 그만큼 여백을 준다 */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .footer { margin-bottom: 0; }

  /* 탭바가 햄버거 메뉴·마이페이지 드롭다운의 역할을 그대로 흡수한다 — 상단에 남겨두면
     "같은 기능이 위아래 두 곳"이라는 인상을 주고 앱보다 웹사이트처럼 보이게 만든다. */
  .nav-toggle { display: none; }
  .nav-user-btn { display: none; }
  .nav-right .btn { display: none; }
}

/* ---------- 접근성 · 모션 ---------- */
/* 키보드 사용자에게 초점 위치가 보이게 한다(마우스 클릭 시엔 나타나지 않음) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--y-brand); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 숫자 정렬 ---------- */
/* 금액·비율·건수는 자릿수가 세로로 맞아야 읽힌다. 기본 비례폭 숫자는 1과 8의 폭이 달라
   목록에서 금액이 들쭉날쭉해 보였다. */
.stat .num, .mockup-result .figure, .mockup-row .amt, .price-amt,
.kpi-value, .num-value, td.num, th.num, .amt, .tabnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* =========================================================
   테마 전환 버튼 (2026-08-06)
   해·달 아이콘 두 개를 겹쳐두고 현재 테마에 따라 하나만 보여준다.
   (아이콘을 JS로 갈아끼우면 전환 순간에 깜빡이므로 CSS로만 처리한다)
   ========================================================= */
.theme-toggle {
  position: relative; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; background: transparent; border: none;
  cursor: pointer; color: var(--y-muted); flex-shrink: 0; padding: 0;
  transition: background .15s ease, color .15s ease;
}
.theme-toggle:hover { background: var(--y-bg); color: var(--y-ink); }
.theme-toggle svg {
  width: 19px; height: 19px; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  grid-area: 1 / 1;
}
/* 라이트일 때는 "다크로 바꾸는" 달 아이콘을, 다크일 때는 해 아이콘을 보여준다 */
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

/* 좁은 화면에선 상단바에 아이콘을 더 못 넣는다(브랜드가 잘림) → 햄버거 메뉴 안으로 옮긴다 */
@media (max-width: 1024px) {
  .nav-right .theme-toggle { display: none; }
}

/* 모바일 메뉴 안의 테마 줄 — 아이콘 버튼은 터치로 찾기 어려워 라벨을 같이 준다 */
.mobile-theme-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px; border-bottom: 1px solid var(--y-line);
  font-weight: 700; font-size: 15.5px; color: var(--y-ink);
}
.mobile-theme-row .theme-toggle { background: var(--y-bg); }

/* 테마 전환 시 색이 튀지 않게 짧은 전환을 준다. 단, 전환 중 리플로우가 없도록 색 속성만. */
@media (prefers-reduced-motion: no-preference) {
  body, .nav, .card, .footer, table.tbl, .mobile-nav, .tabbar, .nav-drop-panel {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  }
}

/* =========================================================
   모바일: 표 → 카드 목록 (2026-08-06)
   좁은 화면에서 표는 가로 스크롤(min-width:640px)로 처리하고 있었는데,
   가로 스크롤은 모바일에서 발견되기 어렵고 열이 잘려 읽기 힘들다.
   각 행(tr)을 카드로, 각 칸(td)을 "머리글 : 값" 한 줄로 바꾼다.

   머리글 텍스트는 higeng.js가 thead에서 읽어 td[data-label]에 자동으로 넣는다
   (표 26개에 일일이 손으로 넣지 않기 위해서고, 표가 바뀌어도 자동으로 따라간다).
   → 그래서 이 규칙은 JS가 붙여준 .is-cards 가 있을 때만 적용된다.
     JS가 없으면 기존 가로 스크롤로 그대로 남는다(안전한 퇴화).
   특정 표를 제외하려면 <table class="tbl" data-no-cards>.
   ========================================================= */
@media (max-width: 780px) {
  .table-wrap.is-cards-wrap {
    overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  }
  table.tbl.is-cards,
  table.tbl.is-cards tbody,
  table.tbl.is-cards tr,
  table.tbl.is-cards td { display: block; }
  table.tbl.is-cards { width: 100%; min-width: 0; background: transparent; }
  table.tbl.is-cards thead { display: none; }  /* 머리글은 각 칸의 라벨로 옮겨갔다 */

  table.tbl.is-cards tr {
    background: var(--y-card); border: 1px solid var(--y-line);
    border-radius: var(--y-radius-sm); margin-bottom: 10px; padding: 2px 14px;
  }
  table.tbl.is-cards tr:hover { background: var(--y-card); }
  table.tbl.is-cards tr:last-child { margin-bottom: 0; }

  table.tbl.is-cards td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 11px 0; border: 0; border-bottom: 1px solid var(--y-line);
    white-space: normal;            /* 기본 규칙의 nowrap 해제 — 카드 안에서는 줄바꿈돼야 한다 */
    text-align: right;              /* 값은 오른쪽, 라벨은 ::before로 왼쪽 */
    word-break: break-word;
  }
  table.tbl.is-cards td:last-child { border-bottom: 0; }

  table.tbl.is-cards td::before {
    content: attr(data-label);
    flex: 0 0 auto; margin-right: auto; text-align: left;
    color: var(--y-muted); font-weight: 700; font-size: 12.5px; letter-spacing: -.01em;
  }
  /* 머리글이 빈 칸(작업 버튼 열 등)은 라벨 없이 통째로 쓴다 */
  table.tbl.is-cards td[data-label=""] { justify-content: flex-start; text-align: left; }
  table.tbl.is-cards td[data-label=""]::before { display: none; }

  /* 값이 없는 칸이 높이 0으로 찌그러지지 않게 */
  table.tbl.is-cards td:empty::after { content: "-"; color: var(--y-muted2); }
}

/* =========================================================
   상단 메뉴 9개 → 5개 정리 (2026-08-06)
   AI투찰예측 / 공고▾ / 입찰자료▾ / 요금제 / 고객센터▾  + 무료진단 CTA
   '입찰자료'는 가이드·자료실·소식을 한데 모아 항목이 13개라 세로 목록으로는 너무 길다
   → 그룹 제목이 있는 3열 메가패널로 편다.
   ========================================================= */
.nav-drop-panel.mega {
  display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 0 8px; min-width: 520px; padding: 14px 12px;
}
.nav-drop-col { display: flex; flex-direction: column; min-width: 0; }
.nav-drop-title {
  font-size: 11px; font-weight: 800; color: var(--y-muted2);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px 7px; white-space: nowrap;
}
/* 패널이 화면 오른쪽 밖으로 나가지 않게 — 메뉴 위치상 왼쪽 정렬이면 넘칠 수 있다 */
.nav-drop-panel.mega { left: 50%; transform: translateX(-50%) translateY(6px); }
.nav-drop:hover .nav-drop-panel.mega,
.nav-drop:focus-within .nav-drop-panel.mega { transform: translateX(-50%) translateY(0); }

/* 무료진단 — 탐색이 아니라 전환 유도라 링크가 아닌 버튼 형태로 분리한다 */
.nav-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-weight: 750; font-size: 13.5px;
  color: var(--y-brand); background: var(--y-brand-tint);
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.nav-cta:hover { background: var(--y-brand-tint2); border-color: var(--y-brand); text-decoration: none; }
@media (max-width: 1024px) { .nav-cta { display: none; } }  /* 좁은 화면은 하단 탭바/메뉴가 담당 */

/* =========================================================
   모바일 앱 셸 (2026-08-08) — Capacitor 등으로 감싸 안드로이드·iOS
   스토어에 하이브리드 앱으로 낼 예정이다. "반응형 웹사이트"가 아니라
   "웹뷰 안의 네이티브 앱"이 목표라 이 구간의 규칙은 다르게 접근한다:
   상단은 브랜드 배지가 아니라 슬림한 타이틀바로, 히어로는 마케팅 랜딩페이지가
   아니라 앱을 열었을 때 보이는 압축된 첫 화면으로, 버튼은 화면폭을 채우는 pill로.
   ========================================================= */
@media (max-width: 1024px) {
  /* 타이틀바 — 로고 배지+서브텍스트 조합은 "사이트 헤더"처럼 읽힌다.
     앱은 화면마다 짧은 타이틀 하나만 상단에 둔다. */
  .nav-inner { height: 52px; }
  .brand { font-size: 15.5px; gap: 7px; }
  .brand .logo { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
  .brand small { display: none; } /* 하단 탭바 라벨과 의미가 겹친다 */

  /* 히어로 — 배지·큰 헤드라인·데스크톱 목업 창은 랜딩페이지 문법이다.
     앱 첫 화면은 짧게 보여주고 바로 행동(예측 시작)으로 이어져야 한다. */
  .hero { padding: 18px 0 26px; }
  .hero .badge.mb-2 { font-size: 11px; padding: 4px 10px; }
  .hero h1 { font-size: 25px; line-height: 1.32; letter-spacing: -.01em; }
  .hero p.lead { font-size: 14px; line-height: 1.6; }
  .hero-visual { display: none; } /* 맥북 창 목업 — "웹사이트 스크린샷" 느낌이라 앱 화면엔 안 어울린다 */
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* 컨테이너 여백도 데스크톱 사이트보다 좁게 — 앱 화면은 가장자리까지 콘텐츠가 붙는 느낌이 자연스럽다 */
  .container { padding: 0 16px; }

  /* 입력창 16px 미만이면 iOS가 포커스 시 화면을 확대한다 — 하이브리드 앱(WKWebView)에서도 그대로
     재현되는 문제라 네이티브 앱이라면 절대 없을 "화면이 갑자기 확대되는" 버그처럼 보인다. */
  .form-control, textarea.form-control, select.form-control { font-size: 16px; }

  /* 아이디 입력 + 중복확인 버튼이 한 줄에 있으면 입력창이 너무 좁아진다 — 세로로 푼다 */
  .id-check-row { flex-direction: column; align-items: stretch; }
  .id-check-row .btn { width: 100%; }

  /* eyebrow 장식선(─ PRICING ─)은 데스크톱 마케팅 페이지 문법 — 앱에서는 절제한다 */
  .eyebrow { font-size: 11.5px; }
  .eyebrow::before, .eyebrow::after { width: 14px; }

  /* 페이지 타이틀 공통 클래스 — 화면마다 제각각이던 인라인 폰트크기를 하나로 정리 */
  .page-title { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }

  /* 하단 탭바가 이미 전역 내비게이션 역할을 하므로, 푸터는 법적 고지 정도로만 축소한다.
     발전소 마케팅 카피·4열 링크 그리드는 앱 화면 맨 밑에 있기엔 과하다. */
  .footer { padding: 24px 0 8px; margin-top: 24px; }
  .footer-brand p, .footer-col { display: none; }
  .footer-grid { padding-bottom: 16px; grid-template-columns: 1fr; }
  .footer .biz { font-size: 12px; }
}
