/* KorExBridge design system
   Shared by index.html, how-it-works.html, pricing.html, contact.html.
   Older pages still use styles.css + app.css. */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1342b0;
  --ink: #0b1220;
  --ink-mid: #3f4a5a;
  --ink-soft: #6b7686;
  --line: #ebeef2;
  --tint: #f6f7f9;
  --green: #16a34a;

  --pad-x: 20px;
  --pad-y: 88px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: white;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }

.wrap { max-width: 1040px; margin: 0 auto; }

.section { padding: var(--pad-y) var(--pad-x); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; }
.logo em { font-style: normal; color: var(--primary); }

.header-nav { display: none; gap: 4px; }
.header-nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: 8px;
}
.header-nav a:hover { color: var(--ink); background: var(--tint); }
.header-nav a.active { color: var(--ink); font-weight: 600; }

.header-cta {
  display: none;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.header-cta:hover { background: #1c2637; }

/* Below 900px the button used to disappear with the nav, leaving a phone
   visitor nothing to press but the menu. Keep it, compact, beside the menu. */
@media (max-width: 899px) {
  /* A blurred fixed header is re-blurred on every scroll frame, a common cause
     of stutter on mid-range phones. Near-opaque white reads the same. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.97); }
  .header-inner { gap: 12px; }
  .header-cta { display: inline-block; margin-left: auto; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
}
/* 320px phones have 280px between the gutters, 9px short of logo, button and
   menu at the size above. */
@media (max-width: 359px) {
  .header-inner { gap: 8px; }
  .header-cta { padding: 7px 10px; font-size: 12.5px; }
}

.mobile-menu-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 17px;
  font-weight: 700;
  padding: 19px 40px;
  border-radius: 14px;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ── FOOTER ── */
.site-footer {
  background: #0b1220;
  color: rgba(255,255,255,0.55);
  padding: 64px var(--pad-x) 32px;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-size: 1.15rem; font-weight: 800; color: white; margin-bottom: 12px; letter-spacing: -0.03em; }
.footer-logo em { font-style: normal; color: #7aa5f5; }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-bottom: 20px; max-width: 42ch; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px;
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: rgba(255,255,255,0.35); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 11px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1040px; margin: 24px auto 0;
  font-size: 13px; text-align: center;
}

/* ── GOOGLE TRANSLATE ── */
#google_translate_element select {
  font-size: 13px; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; background: white; color: var(--ink-mid); cursor: pointer;
}
iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo { margin: 0 !important; font-size: 13px !important; }
body { top: 0 !important; }

/* ── MOBILE SLIDE MENU ── */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(11,18,32,0.4); z-index: 199;
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 300px; max-width: 86vw; height: 100%;
  background: white; z-index: 200;
  box-shadow: -8px 0 40px rgba(11,18,32,0.16);
  transition: right .28s ease;
  padding: 20px 0 32px;
  /* state both axes: a lone overflow-y turns the x axis into a scroller too */
  overflow-x: hidden;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 20px;
}
.mobile-menu-close {
  background: none; border: none; font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--ink-soft);
}
.mobile-menu a {
  display: block; padding: 15px 24px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.mobile-menu a:hover { background: var(--tint); }
.mobile-menu-lang {
  padding: 20px 24px 8px; margin-top: 8px; border-top: 1px solid var(--line);
}
.mobile-menu-lang-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 10px;
}
.mobile-menu-cta {
  margin: 16px 24px 0; display: block;
  background: var(--primary); color: white !important;
  text-align: center; padding: 16px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
}

/* ── TABLET / DESKTOP ── */
@media (min-width: 720px) {
  :root { --pad-x: 32px; --pad-y: 120px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

@media (min-width: 900px) {
  :root { --pad-y: 140px; }
  .header-nav { display: flex; }
  .header-cta { display: inline-block; }
  .mobile-menu-btn { display: none; }
}

/* ══════════════════════════════════════════
   INNER PAGES
   ══════════════════════════════════════════ */

/* ── PAGE HEAD ── */
.page-head { padding: 56px var(--pad-x) 0; }
.page-head-inner { max-width: 1040px; margin: 0 auto; }
.page-head h1 {
  font-size: clamp(2.1rem, 9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.page-head p {
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 36ch;
}

/* ── CONTACT CHANNELS ── */
.meta-list { display: grid; gap: 28px; }
.meta-item-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.meta-item-val { font-size: clamp(1.05rem, 4.2vw, 1.25rem); font-weight: 700; letter-spacing: -0.022em; }

.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  background: var(--tint); border-radius: 16px; padding: 18px 20px;
}
.channel-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.channel-icon.kakao { background: #fee500; }
.channel-icon.wa { background: #dcfce7; }
.channel-text { flex: 1; min-width: 0; }
.channel-text strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.channel-text span { font-size: 13px; color: var(--ink-soft); }
.channel-btn {
  flex-shrink: 0; background: white; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 14px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
}
.channel-btn:hover { border-color: var(--primary); color: var(--primary); }

.qr-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(11,18,32,0.55);
  align-items: center; justify-content: center; padding: 24px;
}
.qr-modal.open { display: flex; }
.qr-modal-inner {
  background: white; border-radius: 22px; padding: 28px;
  text-align: center; max-width: 320px; width: 100%;
}
.qr-modal-inner h4 { font-size: 18px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.025em; }
.qr-modal-inner img { width: 100%; border-radius: 14px; margin-bottom: 18px; }
.qr-modal-close {
  width: 100%; background: var(--ink); color: white; border: none;
  border-radius: 12px; padding: 14px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700;
}

/* ── FORM FIELDS ── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--ink-mid); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 18px 20px;
  border: 1.5px solid transparent; border-radius: 14px;
  background: var(--tint);
  font-family: inherit; font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3af; }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: white; }

.btn-block {
  display: block; width: 100%; text-align: center;
  background: var(--primary); color: white; border: none;
  border-radius: 14px; padding: 20px;
  font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-block:hover { background: var(--primary-dark); }
.btn-block:disabled { background: #9aa3af; cursor: default; }

.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.form-success {
  display: none;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 20px;
  padding: 40px 28px; text-align: center;
}
.form-success-check {
  width: 46px; height: 46px; margin: 0 auto 16px;
  background: var(--green); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800;
}
.form-success h3 { font-size: 20px; font-weight: 800; color: #15803d; margin-bottom: 8px; letter-spacing: -0.025em; }
.form-success p { font-size: 15px; color: var(--ink-soft); }

.form-error {
  display: none; margin-top: 14px; padding: 16px 18px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px;
  font-size: 14px; line-height: 1.6; color: #b91c1c;
}
.form-error a { font-weight: 700; text-decoration: underline; }

/* ── INNER-PAGE RESPONSIVE ── */
@media (min-width: 720px) {
  .page-head { padding-top: 80px; }
  .meta-list { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}
@media (min-width: 900px) {
  .page-head { padding-top: 104px; }
}
