/* ==========================================================================
   이지티켓365 (EASYTICKET365) - Deep Emerald & Mint Fintech Design System
   Google-First Performance | Korean Typography (word-break: keep-all)
   ========================================================================== */

:root {
  --navy-950: #02201E;
  --navy-900: #042F2E;
  --navy-800: #064E3B;
  --blue-700: #0F766E;
  --blue-600: #0D9488;
  --blue-500: #14B8A6;
  --blue-100: #CCFBF1;
  --blue-50: #F0FDFA;
  --gold-500: #2DD4BF;
  --gold-400: #5EEAD4;
  --gold-600: #14B8A6;
  --emerald-600: #059669;
  --emerald-50: #ECFDF5;
  --rose-600: #E11D48;
  --rose-50: #FFF1F2;

  --ink-900: #0F1F1E;
  --ink-700: #2B4240;
  --ink-600: #47605D;
  --ink-500: #647B78;
  --line-200: #DCEAE7;
  --line-300: #BFD6D2;
  --surface-0: #FFFFFF;
  --surface-50: #F5FAF8;
  --surface-100: #EAF3F1;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(4, 47, 46, 0.05);
  --shadow-md: 0 10px 28px rgba(4, 47, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(4, 47, 46, 0.14);

  --container: 1180px;
  --header-h: 74px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.68;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation (Consistent Desktop Nav Across Home + All Subpages)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-200);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-1px);
  opacity: 0.92;
}

.footer-brand .brand-logo-img {
  height: 40px;
}

.mobile-drawer-head .brand-logo-img {
  height: 32px;
}

.brand-ko {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.04em;
}

.brand-ko span {
  color: var(--blue-600);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 8px 2px;
  position: relative;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--blue-600);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 13.5px;
  padding: 10px 15px;
}

.btn-md {
  font-size: 15px;
  padding: 13px 22px;
}

.btn-lg {
  font-size: 16px;
  padding: 16px 28px;
}

.btn-gold {
  background: linear-gradient(135deg, #2DD4BF 0%, #34D399 100%);
  color: #022C22;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #5EEAD4 0%, #6EE7B7 100%);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.36);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.24);
}
.btn-primary:hover {
  background: var(--blue-700);
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-800);
}

.btn-outline {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--line-300);
}
.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--blue-50);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-kakao {
  background: #FEE500;
  color: #191919;
}
.btn-kakao:hover {
  background: #F4DC00;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-200);
  background: #fff;
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 32, 30, 0.56);
  backdrop-filter: blur(4px);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 20px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-200);
}
.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-200);
  background: var(--surface-50);
  color: var(--ink-900);
  font-size: 20px;
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-links a {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--surface-50);
}
.mobile-nav-links a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}
.mobile-drawer-ctas {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-200);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 24%, rgba(20, 184, 166, 0.30), transparent 54%),
              linear-gradient(135deg, #02201E 0%, #042F2E 52%, #065F46 100%);
  color: #fff;
  padding: 72px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #CCFBF1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.24;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--gold-400);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.72;
  color: #CBD5E1;
  max-width: 590px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-metric {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}

.trust-metric strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.trust-metric span {
  font-size: 12.5px;
  color: #94A3B8;
  display: block;
}

.hero-visual-wrap {
  position: relative;
}

.hero-visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  background: var(--navy-800);
}

.hero-visual-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-floating-card {
  position: static;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-floating-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy-900);
}
.hero-floating-card span {
  font-size: 12.5px;
  color: var(--ink-600);
}

/* ==========================================================================
   Generic Sections & Typography Headers
   ========================================================================== */

.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--surface-50);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.7;
}

/* ==========================================================================
   3 Core Service Cards
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-100);
  color: var(--ink-700);
}

.service-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
}

.service-card p {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.68;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-700);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-600);
  font-weight: 800;
}

.card-link {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-600);
}

.card-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Interactive Pre-Check Simulator
   ========================================================================== */

.sim-shell {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.sim-controls {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.seg-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seg-group-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seg-btn {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line-200);
  background: var(--surface-50);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.seg-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.seg-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.range-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.range-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-600);
}

.sim-range {
  width: 100%;
  accent-color: var(--blue-600);
  height: 8px;
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 6px;
}

.sim-output {
  background: linear-gradient(155deg, #042F2E 0%, #065F46 100%);
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.sim-output-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.sim-summary-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
}

.sim-kv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 18px 20px;
}

.sim-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.sim-kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sim-kv-row span {
  color: #CBD5E1;
}
.sim-kv-row strong {
  color: #fff;
  text-align: right;
}

.sim-tip {
  font-size: 13.5px;
  line-height: 1.65;
  color: #CCFBF1;
  background: rgba(20, 184, 166, 0.18);
  border-left: 3px solid var(--gold-400);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
}

/* ==========================================================================
   Responsive Comparison Tables
   ========================================================================== */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-200);
  vertical-align: top;
}

.data-table thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background: var(--surface-50);
}

.data-table td strong {
  color: var(--navy-900);
}

.table-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-500);
}

/* ==========================================================================
   5-Step Process
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
}

.step-card p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.62;
}

/* ==========================================================================
   Voucher Grid
   ========================================================================== */

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.voucher-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.voucher-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

.voucher-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voucher-code {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voucher-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.voucher-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}

.voucher-card p {
  font-size: 14px;
  color: var(--ink-600);
}

/* ==========================================================================
   Safety & Official E-E-A-T Block
   ========================================================================== */

.safety-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.safety-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.safety-item {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.safety-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-item h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.safety-item p {
  font-size: 14.5px;
  color: var(--ink-600);
}

.company-verify-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.company-verify-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.verify-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verify-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.verify-row dt {
  color: #94A3B8;
  flex-shrink: 0;
}

.verify-row dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.authority-links a {
  font-size: 12.5px;
  color: #CCFBF1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
}

.authority-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Guide Cards Grid & Filter Tabs
   ========================================================================== */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}

.guide-cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.4;
}

.guide-card p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.65;
}

.guide-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
}

.guide-card-foot strong {
  color: var(--blue-600);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-300);
  background: #fff;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
}

.filter-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item.open {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.faq-q-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-badge {
  color: var(--blue-600);
  font-weight: 800;
  flex-shrink: 0;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-500);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue-600);
}

.faq-a {
  display: none;
  padding: 0 24px 22px 50px;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  display: block;
}

/* ==========================================================================
   Bottom CTA Banner & Footer
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, #042F2E 0%, #0F766E 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  color: #CBD5E1;
  font-size: 15.5px;
  max-width: 560px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.site-footer {
  background: var(--navy-950);
  color: #CBD5E1;
  padding: 64px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 0.95fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-ko {
  color: #fff;
}
.footer-brand .brand-ko span {
  color: var(--gold-400);
}
.footer-brand .brand-en {
  color: #94A3B8;
}

.footer-desc {
  margin-top: 14px;
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.75;
}

.footer-legal strong {
  color: #E2E8F0;
}

.footer-notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #94A3B8;
  margin-top: 8px;
}

/* ==========================================================================
   Subpage & Guide Article Layout (Full Desktop Nav + Clean 2-Column Article)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, #02201E 0%, #042F2E 58%, #065F46 100%);
  color: #fff;
  padding: 46px 0 52px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94A3B8;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: #E2E8F0;
  font-weight: 600;
}

.page-hero h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  max-width: 860px;
}

.page-hero-sub {
  font-size: 16px;
  color: #CBD5E1;
  max-width: 780px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 13.5px;
  color: #99F6E4;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 56px 0 84px;
}

.article-body {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--surface-100);
  scroll-margin-top: 96px;
}

.toc-box {
  background: var(--surface-50);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  margin: 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.toc-list li {
  margin: 0 !important;
}

.toc-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-list a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

@media (max-width: 768px) {
  .toc-list {
    grid-template-columns: 1fr;
  }
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-800);
  margin: 26px 0 10px;
}

.article-body p {
  font-size: 15.8px;
  color: var(--ink-700);
  line-height: 1.82;
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
  color: var(--ink-700);
  font-size: 15.5px;
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 8px;
}

.callout {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 22px 0;
  font-size: 14.8px;
  line-height: 1.75;
}

.callout-info {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  color: var(--navy-900);
}

.callout-warn {
  background: var(--rose-50);
  border-left: 4px solid var(--rose-600);
  color: #881337;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15.5px;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface-50);
  transition: all 0.15s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.current {
  background: var(--blue-50);
  color: var(--blue-600);
}

.sidebar-cta {
  background: linear-gradient(155deg, #042F2E 0%, #065F46 100%);
  color: #fff;
  border-color: transparent;
}

.sidebar-cta h3 {
  color: #fff;
}

.sidebar-cta p {
  font-size: 13.8px;
  color: #CBD5E1;
  margin-bottom: 16px;
  line-height: 1.65;
}

.sidebar-cta .btn {
  width: 100%;
  margin-bottom: 8px;
}

/* ==========================================================================
   Floating Desktop Dock, Mobile Sticky Bar & PWA Modal
   ========================================================================== */

.floating-dock {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(4, 47, 46, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease;
}

.dock-btn:hover {
  transform: translateY(-2px);
}

.dock-chat {
  background: linear-gradient(135deg, #2DD4BF 0%, #34D399 100%);
  color: #022C22;
}

.dock-call {
  background: var(--navy-900);
  color: #fff;
}

.dock-kakao {
  background: #FEE500;
  color: #191919;
}

.dock-top {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--line-300);
  width: 46px;
  height: 46px;
  padding: 0;
  align-self: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.16s ease;
}

.dock-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-200);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(4, 47, 46, 0.08);
}

.mobile-sticky-bar .btn {
  padding: 12px 8px;
  font-size: 13.5px;
  border-radius: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 32, 30, 0.62);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.7;
  margin-bottom: 14px;
}

.modal-steps {
  background: var(--surface-50);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13.8px;
  color: var(--ink-700);
  line-height: 1.7;
}

.modal-steps p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-floating-card {
    position: static;
    margin-top: 14px;
  }

  .sim-shell,
  .safety-grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    position: static;
    min-width: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .floating-dock {
    display: none;
  }

  .mobile-sticky-bar {
    display: grid;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-trust-strip,
  .grid-3,
  .grid-2,
  .voucher-grid,
  .guide-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .seg-group-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sim-controls,
  .sim-output,
  .article-body {
    padding: 24px 20px;
  }

  .faq-q {
    padding: 18px;
    font-size: 15.5px;
  }

  .faq-a {
    padding: 0 18px 18px 18px;
  }
}
