/* =====================================================
   LawUS — Main Site CSS
   Design: Design 2 (Korean Attorney Platform) base
           + Design 1 Hero Section
   ===================================================== */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary: #1A56DB;
  --blue-dark: #1341B5;
  --blue-light: #EBF5FB;
  --blue-soft: #DBEAFE;
  --navy: #0f2044;
  --navy-mid: #1a3a6b;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-sub: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-section: #F3F4F6;
  --green: #0e9f6e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
  --transition: 0.22s ease;
  --header-height: 64px;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--blue-primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, .35);
}

.btn-primary--light {
  background: #fff;
  color: var(--blue-primary);
  border-color: #fff;
}

.btn-primary--light:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.btn-secondary--light {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-secondary--light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}


/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  color: var(--text-dark);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link--active {
  color: var(--blue-primary);
  background: var(--blue-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.lang-btn--active {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}

/* Login Button */
.btn-login {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: var(--blue-primary);
  color: #fff;
}

.btn-login--solid {
  background: var(--blue-primary);
  color: #fff;
}

.btn-login--solid:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.is-active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-login {
    padding: 6px 12px;
    font-size: 12px;
  }

  .lang-switcher {
    display: none;
  }
}


/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: auto;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 40%, #f5f8ff 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* Decorative BG circles */
.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 86, 219, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 159, 110, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* Hero Copy */
.hero-badge {
  display: none !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(26, 86, 219, .1);
  color: var(--blue-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(26, 86, 219, .2);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title-accent {
  font-style: normal;
  color: var(--blue-primary);
  position: relative;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-dark));
  border-radius: 2px;
  opacity: 0.3;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-item strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -0.5px;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card-wrap {
  position: relative;
  width: clamp(255px, 32vw, 360px);
  max-width: 100%;
}

.hero-img-bg {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-attorney-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 510px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-float-badge {
  position: absolute;
  bottom: -16px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  border: 1px solid rgba(14, 159, 110, .2);
  animation: float 3s ease-in-out infinite;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 159, 110, .1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.badge-text small {
  font-size: 11px;
  color: var(--text-sub);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Scroll Indicator */
.hero-scroll {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(4px);
  }
}

/* ── Hero responsive ── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 24px 60px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-card-wrap {
    width: 100%;
    max-width: 275px;
  }

  .hero-float-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }

  .hero-badge {
    justify-content: center;
  }
}


/* =====================================================
   SECTION COMMON
   ===================================================== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.section-title em {
  font-style: normal;
  color: var(--blue-primary);
}

.section-title-left {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  transition: opacity var(--transition);
}

.section-link:hover {
  opacity: 0.75;
}


/* =====================================================
   SEARCH SECTION
   ===================================================== */
.search-section {
  padding: 32px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.main-search-form {
  display: flex;
  justify-content: center;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  border: 2px solid var(--blue-primary);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26, 86, 219, .12);
  transition: box-shadow var(--transition);
}

.search-input-wrap:focus-within {
  box-shadow: 0 4px 24px rgba(26, 86, 219, .22);
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  border-radius: 50%;
  margin: 4px;
}

.search-btn:hover {
  background: var(--blue-dark);
}


/* =====================================================
   SPECIALTY SECTION
   ===================================================== */
.specialty-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.specialty-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 4px 20px rgba(26, 86, 219, .12);
  transform: translateY(-4px);
}

.specialty-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.specialty-icon svg {
  width: 100%;
  height: 100%;
}

.specialty-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 6px;
}

.specialty-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .specialty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =====================================================
   REGION SECTION
   ===================================================== */
.region-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.region-box {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.region-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
}

.region-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.region-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.region-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-mid);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition);
}

.region-select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}

@media (max-width: 700px) {
  .region-box {
    flex-direction: column;
  }

  .region-divider {
    width: 100%;
    height: 1px;
  }

  .region-col {
    padding: 20px 24px;
  }
}


/* =====================================================
   VISA TYPE SECTION
   ===================================================== */
.visa-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.visa-box {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.visa-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
}

.visa-category-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

@media (max-width: 700px) {
  .visa-box {
    flex-direction: column;
  }

  .visa-col {
    padding: 20px 24px;
  }
}


/* =====================================================
   CASES SECTION
   ===================================================== */
.cases-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.cases-list {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.case-item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.case-item:last-child {
  border-bottom: none;
}

.case-item:hover {
  background: var(--bg-light);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.case-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 999px;
}

.case-question {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.case-answer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.case-attorney {
  font-weight: 700;
  color: var(--text-dark);
}

.case-answer-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-detail-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition);
}

.case-detail-btn:hover {
  background: var(--blue-light);
}

@media (max-width: 600px) {
  .case-answer {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-answer-preview {
    white-space: normal;
  }
}


/* =====================================================
   NEWS SECTION
   ===================================================== */
.news-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.news-header-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.news-title-label {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.news-subtitle {
  font-size: 13px;
  color: var(--text-sub);
}

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--text-dark);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding-left var(--transition);
  border-radius: var(--radius-sm);
}

.news-item:hover {
  background: var(--bg-light);
  padding-left: 12px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 52px;
}

.news-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.news-arrow {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.news-item:hover .news-arrow {
  color: var(--blue-primary);
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .news-header-left {
    flex-direction: column;
    gap: 4px;
  }

  .news-item {
    gap: 12px;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 86, 219, .3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-copy h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cta-copy p {
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
}

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

@media (max-width: 720px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .cta-actions {
    justify-content: center;
  }
}


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, .75);
  padding-top: 56px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.footer-logo {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    gap: 24px;
  }
}


/* =====================================================
   PAGE MAIN — offset for fixed header
   ===================================================== */
#page-main {
  /* hero section handles its own padding-top */
}

/* Non-hero pages need offset */
#page-main>*:not(.hero-section):first-child {
  padding-top: calc(var(--header-height) + 32px);
}

/* =====================================================
   AUTH / MYPAGE
   ===================================================== */
.auth-page-section,
.mypage-section {
  background: var(--bg-light);
  padding-bottom: 64px;
}

.auth-page-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  align-items: center;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.auth-copy {
  max-width: 560px;
}

.auth-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.auth-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

.auth-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
}

.auth-card,
.mypage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
}

.auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

.auth-member-type {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.auth-member-type legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  padding: 0 6px;
}

.auth-member-type-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
}

.auth-member-type-option:has(input:checked) {
  border-color: var(--blue-primary);
  background: var(--blue-light);
}

.auth-member-type-option input {
  margin-top: 2px;
}

.auth-member-type-option span {
  display: grid;
  gap: 2px;
}

.auth-member-type-option strong {
  font-size: 13px;
  color: var(--text-dark);
}

.auth-member-type-option small {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.35;
}

.auth-submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.auth-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}

.auth-alert--error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.auth-alert--success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.auth-google-btn {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.auth-links a,
.auth-help-text a {
  color: var(--blue-primary);
  font-size: 13px;
  font-weight: 700;
}

.auth-links a:hover,
.auth-help-text a:hover {
  text-decoration: underline;
}

.auth-help-text {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

.auth-inline-form {
  margin-top: 10px;
}

.auth-inline-btn {
  width: 100%;
  justify-content: center;
}

.auth-narrow-wrap {
  max-width: 700px;
}

.auth-card--single {
  max-width: 620px;
  margin: 0 auto;
}

.auth-title--small {
  font-size: clamp(28px, 3.2vw, 36px);
}

.auth-description--single {
  margin-bottom: 18px;
}

.mypage-title {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.mypage-description {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.mypage-summary {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.mypage-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.mypage-summary-row:first-child {
  border-top: none;
}

.mypage-summary-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

.mypage-summary-row dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.mypage-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mypage-status {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}

.mypage-status strong {
  font-size: 14px;
}

.mypage-status p {
  font-size: 13px;
  color: var(--text-mid);
}

.mypage-status--incomplete {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.mypage-status--pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.mypage-status--approved {
  background: #ecfdf3;
  border-color: #86efac;
}

.mypage-status--rejected {
  background: #fef2f2;
  border-color: #fecaca;
}

.mypage-status--revision_required {
  background: #fff7ed;
  border-color: #fdba74;
}

@media (max-width: 900px) {
  .auth-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .auth-copy {
    max-width: 100%;
  }

  .mypage-title {
    font-size: 26px;
  }
}
