/* =========================================================================
   Sentinel Medicine — sentinel-medicine.com
   Global stylesheet — rebuilt to match Figma screenshots
   ========================================================================= */

:root {
  --brand-primary: #126A97;
  --brand-primary-deep: #0a3a53;
  --brand-bg-soft: #f0f8ff;
  --legal-card-bg: #2c5174;
  --icon-fill: #B6D1DF;
  --icon-default: #4188AC;

  --text-default-dark: #101518;
  --text-secondary: #044a59;
  --text-deep: #072e41;
  --text-muted: rgba(0, 12, 30, 0.8);
  --text-card: #53545C;
  --text-input: #213859;
  --text-placeholder: #a1b2c4;
  --text-help: #4d708a;
  --text-link-soft: #3885b8;

  --bg-input: #f2f5f8;
  --bg-card: #f8fafc;
  --bg-divider: #d1dee8;
  --bg-checkbox: #d6e8f2;
  --bg-info-note: #e8f2f7;
  --footer-bg: #1b2428;

  --required-red: #e03838;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 27px;
  --radius-pill: 999px;

  --shadow-card: 0 11px 22px rgba(31, 51, 82, 0.10);
  --shadow-button: 0 8px 11px rgba(41, 135, 163, 0.35);

  --container-max: 1840px;
  --content-max: 1370px;
  --form-max: 760px;

  --font-kor: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
              'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-eng: 'Poppins', 'Pretendard Variable', sans-serif;
}

/* -----------------------------  RESET  ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-kor);
  color: var(--text-default-dark);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
p { margin: 0; }

/* Frame-fixed layout: header + footer stay pinned, middle area scrolls internally */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.page-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
/* AI 페이지 — 3개 섹션 스냅 스크롤 */
.page-scroll--snap {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.icon-marquee { flex: 0 0 auto; }
.site-header, .site-footer { flex: 0 0 auto; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Brand logo images - height-driven so each logo (square Messenger, wide AI) keeps its natural aspect */
.brand-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* -----------------------------  HEADER  ----------------------------- */
.site-header {
  background: var(--brand-bg-soft);
  width: 100%;
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 11px 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 90px;
  position: relative;
}

/* Brand on the left */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-logo .brand-mark {
  height: 35px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.brand-logo .brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-eng);
  color: var(--brand-primary);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

/* Centered service cards — absolutely centered in header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.service-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--brand-primary);
  border-radius: 13px;
  padding: 10px 18px;
  min-width: 160px;
  height: 68px;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.service-card:hover { background: rgba(18, 106, 151, 0.04); }
.service-card.is-active {
  background: #ffffff;
  border-style: solid;
  border-width: 3px;
}
.service-card__icon {
  height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__icon--lg { height: 32px; }
.service-card--vertical { flex-direction: column; gap: 1px; padding: 6px 14px; }
.service-card__name {
  font-family: var(--font-eng);
  color: var(--brand-primary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

/* Utility nav on right */
.utility-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.utility-nav a {
  font-family: var(--font-kor);
  color: var(--text-secondary);
  font-size: 15px;
  letter-spacing: -0.3px;
}
.utility-nav a:hover { color: var(--brand-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hidden by default (HTML [hidden] is overridden by display:flex unless we honor it explicitly) */
.mobile-menu[hidden] { display: none !important; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--bg-divider);
  padding: 8px 24px 16px;
}
.mobile-menu__item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--bg-divider);
  color: var(--text-secondary);
  font-size: 18px;
}
.mobile-menu__item:last-child { border-bottom: 0; }
/* On desktop, the mobile menu is always hidden, even if [hidden] attribute were removed */
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
}

/* -----------------------------  HERO (MAIN PAGE)  ----------------------------- */
.hero {
  padding: 48px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.hero__cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15, 40, 70, 0.12);
  border-radius: 14px;
  padding: 24px 28px;
  width: 100%;
  max-width: 340px;
  flex: 1 1 320px;
}
.product-card__header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.product-card__header--vertical { flex-direction: column; gap: 2px; }
.product-card__icon {
  height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-primary);
}
.product-card__icon svg { width: 100%; height: 100%; }
.product-card__icon--lg { height: 34px; }
.product-card__title {
  font-family: var(--font-eng);
  font-weight: 400;
  color: var(--brand-primary);
  font-size: 26px;
  letter-spacing: -1.5px;
  margin: 0;
  white-space: nowrap;
}
.product-card__title--md { font-size: 24px; letter-spacing: -1.4px; }
.product-card__desc {
  font-family: var(--font-kor);
  color: var(--text-default-dark);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.3px;
  line-height: 1.55;
}
.product-card__desc--sm { font-size: 13px; }

.hero__statement {
  max-width: var(--content-max);
  text-align: center;
  font-family: var(--font-kor);
  color: var(--text-default-dark);
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.7;
  letter-spacing: -0.4px;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  font-weight: 400;
}

/* -----------------------------  ICON MARQUEE  ----------------------------- */
.icon-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #ffffff;
  line-height: 0;
  font-size: 0;
}
.icon-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
  line-height: 0;
}
.icon-marquee__strip {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  display: block;
  /* prevent gap between duplicated images */
  margin: 0;
  padding: 0;
  vertical-align: top;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-marquee__track { animation: none; }
}
@media (max-width: 880px) {
  .icon-marquee__strip { height: 25px; }
  .icon-marquee__track { animation-duration: 30s; }
}

/* -----------------------------  FOOTER  ----------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 14px 24px;
  text-align: center;
  font-family: var(--font-kor);
  font-size: 11px;
  line-height: 1.5;
}
.footer-policy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.footer-policy a:hover { text-decoration: underline; }
.footer-info p { margin: 0; }
.footer-info a:hover { text-decoration: underline; }

/* =========================================================================
   PAGE-SPECIFIC LAYOUTS
   ========================================================================= */

/* ---- News page (centered, inline brand) ---- */
.centered-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 120px;
  gap: 0;
}
/* Support page — compact so it fits in one viewport */
.centered-page--support {
  padding: 32px 24px 24px;
}
.centered-page--support .page-title { font-size: 26px; margin-top: 0; }
.centered-page--support .page-subtitle { font-size: 14px; margin: 8px 0 16px; }
.centered-page--support .form-card {
  padding: 22px 28px;
  margin: 8px auto 16px;
}
.centered-page--support .form-field { margin: 10px 0; }
.centered-page--support .form-field__label { font-size: 14px; margin-bottom: 6px; }
.centered-page--support .input-box { font-size: 14px; padding: 12px 16px 12px 30px; }
.centered-page--support .input-wrap textarea.input-box { min-height: 130px; padding-top: 14px; }
.centered-page--support .input-wrap::before { height: 20px; }
/* 보내기 버튼 — 30% 높이 축소 */
.centered-page--support .btn-primary {
  padding: 14px 24px;
  font-size: 17px;
  margin-top: 14px;
}
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-inline .brand-mark { height: 52px; display: inline-flex; align-items: center; color: var(--brand-primary); }
.brand-inline .brand-mark svg { width: 100%; height: 100%; }
.brand-inline__name {
  font-family: var(--font-eng);
  font-size: 40px;
  letter-spacing: -2.4px;
  color: var(--brand-primary);
  font-weight: 400;
}

.page-title {
  font-size: 32px;
  font-family: var(--font-kor);
  font-weight: 400;
  color: #000;
  text-align: center;
  margin: 18px 0 0;
}
.page-subtitle {
  font-size: 18px;
  color: #000;
  text-align: center;
  margin: 18px 0 24px;
}

/* ---- Sentinel single-product hero (sentinel-ai, sentinel-messenger pages) ---- */
.product-hero {
  padding: 28px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* On product hero, the product-card is just a centered logo + tagline (no border/bg) */
.product-hero .product-card {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 100%;
  flex: none;
  gap: 6px;
}
.product-hero .product-card__title { font-size: 27px; letter-spacing: -1.5px; }
.product-hero .product-card__icon { height: 50px; }
.product-hero .product-card__desc {
  color: var(--text-default-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* Sentinel Messenger 페이지 hero — 로고/제목/태그라인 블록 20% 축소 */
body[data-active="messenger"] .product-hero {
  padding: 18px 24px 8px;
  gap: 6px;
}
body[data-active="messenger"] .product-hero .product-card { gap: 5px; }
body[data-active="messenger"] .product-hero .product-card__icon { height: 40px; }
body[data-active="messenger"] .product-hero .product-card__title { font-size: 22px; letter-spacing: -1.2px; }
body[data-active="messenger"] .product-hero .product-card__desc { font-size: 11px; line-height: 1.5; }

/* ---- Sentinel AI page intro paragraphs ---- */
.ai-intro {
  max-width: 1000px;
  margin: 20px auto 16px;
  text-align: left;
  font-family: var(--font-kor);
  font-size: clamp(13.5px, 1.17vw, 16px);
  color: var(--text-default-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 0 72px;
  letter-spacing: -0.2px;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 36px auto 22px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.store-btn {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 7px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-kor);
  font-weight: 700;
  font-size: 15px;
  min-width: 140px;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}
.store-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.store-btn__logo {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.store-btn__label {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.store-btn--apple { background: #000000; }
.store-btn--google { background: #14213d; }
.store-btn--google .store-btn__logo { height: 17px; }

/* ---- "Coming soon" modal (App Store / Google Play 클릭 시) ---- */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 38, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 24px;
  width: min(420px, 100%);
  text-align: center;
  box-shadow: 0 24px 60px rgba(7, 24, 38, 0.25);
  animation: modalIn 0.18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.modal__title {
  font-family: var(--font-kor);
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-primary-deep);
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.modal__body {
  font-family: var(--font-kor);
  font-size: 14px;
  color: var(--text-default-dark);
  line-height: 1.7;
  margin: 0 0 24px;
  letter-spacing: -0.2px;
}
.modal__btn {
  background: var(--brand-primary-deep);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 10px 28px;
  font-family: var(--font-kor);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  min-width: 120px;
}
.modal__btn:hover { background: var(--brand-primary); transform: translateY(-1px); }
.modal__btn:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* =========================================================================
   Sentinel AI — 3-page snap scroll
   ========================================================================= */
.ai-snap {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  box-sizing: border-box;
}
.ai-snap__inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}
.ai-snap__inner--narrow { max-width: 1100px; }

/* 2-column feature layout (page 2 & 3) — centered as a group */
.ai-feature {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.ai-feature__col { min-width: 0; }
.ai-feature__col:not(.ai-feature__col--mock) {
  flex: 0 1 480px;
  max-width: 480px;
}
/* 버블 리스트 — 폰 이미지 높이와 비슷한 영역으로 제한 */
.ai-bubble-list { max-width: 100%; }
.ai-feature__col--mock {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ai-feature__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.ai-feature__brand-mark {
  height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-primary);
}
.ai-feature__brand-mark img { height: 100%; width: auto; display: block; }
.ai-feature__brand-name {
  font-family: var(--font-eng);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--brand-primary);
}

/* Bubbles — use readable font then zoom down to bypass browser minimum-font-size */
.ai-bubble-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* zoom shrinks the entire list (incl. padding, icons) below browser min font-size */
  zoom: 0.7;
}
.ai-bubble {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--font-kor);
  color: var(--text-card);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.2px;
}
.ai-bubble > p { margin: 0; }
.ai-bubble__body { display: flex; flex-direction: column; gap: 0.4em; }
.ai-bubble__body p { margin: 0; }
.ai-bubble__body b { color: var(--brand-primary-deep); font-weight: 700; }
.ai-bubble .material-symbols-outlined {
  font-size: 18px;
  color: var(--icon-default);
  flex-shrink: 0;
  margin-top: 1px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

/* Phone mockup image (uploaded SVG screens) */
.phone-mock-img {
  display: block;
  width: 100%;
  max-width: 252px;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(15, 40, 70, 0.18));
}
/* Page 3 phone visually larger due to taller aspect — 10% smaller */
.phone-mock-img--p3 { max-width: 227px; }

/* Responsive: stack on smaller screens, disable snap */
@media (max-width: 1024px) {
  .ai-feature { gap: 24px; }
  .ai-feature__col--mock { order: -1; }
  .ai-feature__col:not(.ai-feature__col--mock) { flex-basis: 100%; max-width: 480px; }
  .phone-mock-img { max-width: 200px; }
}
@media (max-width: 880px) {
  .page-scroll--snap { scroll-snap-type: none; }
  .ai-snap { min-height: 0; padding: 32px 0; }
  .ai-snap__inner { padding: 0 18px; }
  .ai-feature__brand-name { font-size: 20px; }
  /* 모바일도 동일한 컴팩트 사이즈 유지 (폰 높이에 맞춰) */
}

.ai-examples {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 360px);
  gap: 80px;
  align-items: center;
  justify-content: center;
  max-width: 1842px;
  margin: 60px auto;
  padding: 0 24px;
}
.ai-examples__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ai-bubble {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: var(--font-kor);
  color: var(--text-card);
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: -0.2px;
}
.ai-bubble .material-symbols-outlined {
  font-size: 56px;
  color: var(--icon-default);
  flex-shrink: 0;
}
.phone-mock {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(150deg, #1a1a1a, #2c2c2c);
  border-radius: 56px;
  padding: 12px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.phone-mock__screen {
  width: 100%;
  height: 100%;
  background: #cfe7f4;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 18px 100px;
  text-align: center;
}
.phone-mock__brand { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; }
.phone-mock__brand .brand-mark { height: 44px; display: inline-flex; align-items: center; color: var(--brand-primary); }
.phone-mock__tagline {
  font-family: var(--font-kor);
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 16px;
  margin-top: 22px;
  line-height: 1.5;
  letter-spacing: -0.4px;
}
.phone-mock__spinner {
  width: 64px;
  height: 64px;
  margin: 36px auto 16px;
  border-radius: 50%;
  border: 6px solid rgba(18, 106, 151, 0.18);
  border-top-color: var(--brand-primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.phone-mock__loading {
  font-family: var(--font-kor);
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 14px;
  letter-spacing: -0.4px;
  margin-top: 12px;
  line-height: 1.5;
}
.phone-mock__bottom {
  position: absolute;
  bottom: 22px;
  left: 12px;
  right: 12px;
  background: var(--brand-primary-deep);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 16px;
  border-radius: 0 0 32px 32px;
}

.ai-large-card {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Sentinel Messenger page ---- */
.messenger-intro {
  max-width: 1000px;
  margin: 24px auto 16px;
  font-family: var(--font-kor);
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--text-default-dark);
  line-height: 1.7;
  padding: 0 72px;
  letter-spacing: -0.2px;
}
.messenger-features {
  max-width: 1000px;
  margin: 12px auto;
  padding: 0 72px;
}
.messenger-features__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-primary);
  font-family: var(--font-kor);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.messenger-features__title .brand-mark { height: 28px; display: inline-flex; align-items: center; color: var(--brand-primary); }
.messenger-features__title .brand-mark svg { width: 100%; height: 100%; }
.messenger-features__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-kor);
  color: var(--text-default-dark);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
  letter-spacing: -0.2px;
}
.messenger-features__list li::before {
  content: "·  ";
  font-weight: 700;
  color: var(--text-default-dark);
}

.messenger-cta {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin: 34px auto 24px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.cta-btn {
  background: var(--brand-primary-deep);
  color: #ffffff;
  border-radius: 7px;
  padding: 11px 23px;
  font-family: var(--font-kor);
  font-weight: 700;
  font-size: 13.5px;
  min-width: 207px;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}
.cta-btn:hover { background: var(--brand-primary); transform: translateY(-1px); }

/* ---- Apply page (병의원 사용 신청) — centered single column, compact like support ---- */
.apply-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}
.apply-page__title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--brand-primary-deep);
  font-family: var(--font-kor);
  letter-spacing: -0.6px;
}
.apply-page__subtitle {
  font-size: 14px;
  color: var(--text-default-dark);
  text-align: center;
  margin: 0 0 16px;
  font-family: var(--font-kor);
  letter-spacing: -0.2px;
}
/* Apply form — same compact treatment as support */
.apply-page .form-card {
  padding: 22px 28px;
  margin: 8px auto 16px;
}
.apply-page .form-section { margin: 18px 0 10px; gap: 10px; }
.apply-page .form-section::before { width: 3px; height: 18px; }
.apply-page .form-section__title { font-size: 14px; }
.apply-page .form-divider { margin: 18px 0 4px; }
.apply-page .form-field { margin: 10px 0; }
.apply-page .form-field__label { font-size: 14px; margin-bottom: 6px; }
.apply-page .input-box { font-size: 14px; padding: 12px 16px 12px 30px; }
.apply-page .input-wrap::before { height: 20px; }
.apply-page .help-text { font-size: 12px; margin-top: 6px; }
.apply-page .consent { padding: 12px 16px; gap: 12px; margin: 8px 0; }
.apply-page .consent__checkbox { width: 24px; height: 24px; }
.apply-page .consent__checkbox::after { width: 15px; height: 15px; font-size: 12px; }
.apply-page .consent__label { font-size: 14px; }
.apply-page .consent__sub { font-size: 12px; }
.apply-page .badge { font-size: 11px; padding: 3px 8px; }
.apply-page .btn-primary {
  padding: 14px 24px;
  font-size: 17px;
  margin-top: 14px;
}
.apply-page .btn-primary .arrow { font-size: 19px; }

/* ---- Messenger plan selection ---- */
.plan-helper {
  font-size: 13px;
  color: var(--text-help);
  line-height: 1.6;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
.plan-helper__i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-eng);
  margin: 0 2px;
  vertical-align: -2px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 14px;
}
.plan-card {
  position: relative;
  border: 2px solid var(--bg-divider);
  border-radius: 14px;
  padding: 16px 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: block;
}
.plan-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(18, 106, 151, 0.12);
  transform: translateY(-1px);
}
.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-card.is-selected {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-bg-soft) 100%);
  box-shadow: 0 12px 24px rgba(18, 106, 151, 0.16);
}
.plan-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.plan-card__name {
  font-family: var(--font-eng);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-primary-deep);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.plan-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-checkbox);
  color: var(--brand-primary-deep);
  letter-spacing: -0.2px;
}
.plan-badge--prime { background: #dcfce7; color: #166534; }
.plan-badge--supreme { background: #fef3c7; color: #92400e; }
.plan-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--bg-divider);
  background: #ffffff;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-eng);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.plan-info-btn:hover {
  background: var(--brand-bg-soft);
  border-color: var(--brand-primary);
}
.plan-price {
  font-family: var(--font-kor);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-default-dark);
  margin-bottom: 4px;
  letter-spacing: -0.6px;
}
.plan-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-help);
  letter-spacing: -0.2px;
}
.plan-card__desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-card);
  margin: 8px 0 10px;
  letter-spacing: -0.2px;
}
.plan-card__desc strong { color: var(--brand-primary-deep); }
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-default-dark);
  letter-spacing: -0.2px;
}
.plan-features li::before {
  content: "✓";
  color: var(--brand-primary);
  font-weight: 800;
  margin-right: 6px;
}
.plan-info-box {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-default-dark);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.2px;
  border: 1px solid var(--bg-divider);
}
.plan-info-box.is-open { display: block; }
.plan-info-box strong { color: var(--brand-primary-deep); }
.plan-selected {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-divider);
  font-size: 13px;
  color: var(--text-default-dark);
  letter-spacing: -0.2px;
}
.plan-selected strong { color: var(--brand-primary-deep); font-weight: 700; }

@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}

/* ---- Forms (apply / support) ---- */
.form-card {
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  max-width: var(--form-max);
  width: calc(100% - 48px);
  margin: 24px auto 60px;
}

.form-section {
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--brand-primary-deep);
  border-radius: 2px;
}
.form-section__title {
  font-weight: 600;
  color: var(--brand-primary-deep);
  font-size: 17px;
}

.form-divider {
  height: 1px;
  background: var(--bg-divider);
  margin: 30px 0 8px;
}

.form-field {
  display: block;
  margin: 16px 0;
}
.form-field__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-input);
  margin-bottom: 10px;
}
.form-field__required { color: var(--required-red); font-weight: 700; }
.form-field__optional { color: var(--text-help); font-weight: 400; font-size: 0.85em; }

.form-field__row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.form-field__row > .form-field { flex: 1 1 280px; min-width: 0; margin: 0; }

.input-wrap { position: relative; }
.input-wrap::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  background: var(--brand-primary-deep);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-wrap:has(textarea)::before { top: 24px; transform: none; }
.input-box {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 36px;
  border: 0;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text-input);
  transition: box-shadow 0.15s, background 0.15s;
}
.input-box::placeholder { color: var(--text-placeholder); }
.input-box:focus { background: #ffffff; box-shadow: 0 0 0 2px var(--brand-primary); }
.input-wrap textarea.input-box { min-height: 260px; resize: vertical; padding-top: 20px; }

.help-text {
  font-size: 14px;
  color: var(--text-placeholder);
  margin-top: 8px;
}

.consent {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.consent__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  background: var(--bg-checkbox);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border: 0;
}
.consent__checkbox::after {
  content: "✓";
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  background: var(--brand-primary-deep);
  width: 19px;
  height: 19px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.12s;
}
.consent__checkbox:checked::after { opacity: 1; }
.consent__label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-input);
}
.consent__sub {
  font-size: 13px;
  color: var(--text-link-soft);
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.consent__sub:hover { text-decoration: underline; }
.badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-primary-deep);
  padding: 4px 10px;
  border-radius: 999px;
}
.badge--optional { background: #b8ccde; font-weight: 400; }

.btn-primary {
  background: var(--brand-primary-deep);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s, background 0.15s;
  margin-top: 24px;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover { background: var(--brand-primary); transform: translateY(-1px); }
.btn-primary .arrow { color: #c7e8f5; font-weight: 400; font-size: 24px; }

.info-note {
  background: var(--bg-info-note);
  color: var(--text-help);
  border-radius: 11px;
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 16px;
}

/* ---- Legal pages (terms / privacy) — blue title card ---- */
.legal {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  font-family: var(--font-kor);
  color: var(--text-default-dark);
  line-height: 1.7;
}
.legal__hero {
  background: var(--legal-card-bg);
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 20px;
  color: #ffffff;
}
.legal__hero h1 {
  font-size: 28px;
  margin: 0 0 4px;
  letter-spacing: -1px;
  font-weight: 700;
}
.legal__hero .legal__sub {
  margin: 0;
  font-size: 13px;
  color: #c7e8f5;
  font-weight: 400;
}
.legal__intro {
  font-size: 14px;
  color: var(--text-default-dark);
  margin: 18px 0 24px;
  line-height: 1.6;
}
.legal__meta {
  background: var(--bg-info-note);
  color: var(--text-help);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  margin: 20px 0;
}
.legal h2 {
  font-size: 18px;
  margin: 28px 0 10px;
  color: var(--brand-primary-deep);
  letter-spacing: -0.4px;
  position: relative;
  padding-left: 12px;
}
.legal h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--brand-primary-deep);
  border-radius: 2px;
}
.legal h3 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: var(--text-input);
}
.legal p, .legal ul, .legal ol { font-size: 13px; }
.legal ul, .legal ol { padding-left: 20px; margin: 6px 0; }
.legal li { margin-bottom: 3px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
  font-size: 12px;
}
.legal th, .legal td {
  padding: 8px 12px;
  border: 1px solid var(--bg-divider);
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-input);
  width: 30%;
}
.legal__note {
  background: var(--bg-info-note);
  color: var(--text-help);
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12px;
  margin: 10px 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (min-width: 1600px) {
  .brand-name { font-size: 25px; }
  .service-card { min-width: 190px; height: 78px; padding: 12px 20px; }
  .service-card__name { font-size: 18px; }
  .utility-nav a { font-size: 18px; }
  .header-nav { gap: 26px; }
  .header-inner { min-height: 100px; }
}

@media (max-width: 1180px) {
  .header-inner { padding: 8px 18px; gap: 12px; min-height: 70px; }
  .brand-name { font-size: 17px; }
  .brand-logo .brand-mark { height: 26px; }
  .service-card { min-width: 120px; height: 50px; padding: 7px 12px; }
  .service-card__name { font-size: 12px; }
  .service-card__icon { height: 20px; }
  .service-card__icon--lg { height: 22px; }
  .header-nav { gap: 13px; }
  .utility-nav { gap: 16px; }
  .utility-nav a { font-size: 12px; }
}

/* Mobile fallback: drop the frame-fixed layout, let the whole page scroll naturally */
@media (max-width: 880px), (max-height: 720px) {
  html, body { height: auto; }
  body { overflow: visible; min-height: 100vh; }
  main { display: block; min-height: 0; }
  .page-scroll { overflow: visible; min-height: 0; }
  .site-header { position: sticky; top: 0; }
}

@media (max-width: 880px) {
  .header-nav, .utility-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { padding: 7px 14px; min-height: 45px; }
  .brand-name { font-size: 16px; }
  .brand-logo .brand-mark { height: 22px; }
  .hero { padding: 36px 16px; gap: 40px; }
  .hero__cards { gap: 14px; flex-wrap: wrap; max-width: 100%; }
  .product-card { padding: 18px 16px; max-width: 100%; }
  .product-card__title { font-size: 22px; }
  .icon-marquee__item { font-size: 44px; }
  .icon-marquee__track { gap: 36px; animation-duration: 30s; }
  .form-card { padding: 24px 20px; width: calc(100% - 32px); }
  .ai-examples { grid-template-columns: 1fr; gap: 32px; }
  .phone-mock { max-width: 280px; }
  .legal { padding: 32px 18px 56px; }
  .legal__hero { padding: 24px 24px; }
  .legal__hero h1 { font-size: 28px; }
  .legal th { width: auto; }
  .cta-btn { min-width: 0; width: 100%; font-size: 16px; padding: 14px; }
  .messenger-cta { gap: 14px; padding: 0 18px; }
  .messenger-intro, .messenger-features { padding: 0 20px; }
  .ai-intro { padding: 0 20px; }
  .store-btn { font-size: 18px; padding: 12px 20px; min-width: 0; width: 100%; }
  .apply-page { padding: 40px 18px 40px; }
  .apply-page__title { font-size: 26px; }
  .apply-page__subtitle { font-size: 14px; }
  .store-btn { font-size: 24px; min-width: 0; width: 100%; }
  .centered-page { padding: 80px 20px 60px; }
  .brand-inline__name { font-size: 30px; }
  .page-title { font-size: 32px; }
  .page-subtitle { font-size: 18px; }
}

@media (max-width: 480px) {
  .product-card__title { font-size: 28px; }
  .product-card__desc { font-size: 18px; }
  .hero__statement { font-size: 17px; }
}
