/* ===========================================================
   Ppasong — 한국→미국 배송대행 (KuroLogi 벤치마크)
   공통 스타일시트
   =========================================================== */

:root {
  --navy: #211a4d;        /* 딥 인디고 (다크 서피스) */
  --navy-2: #322a72;
  --blue: #5b47f5;        /* 일렉트릭 인디고 (프라이머리) */
  --blue-2: #7c6bff;
  --sky: #edeafe;         /* 라벤더 틴트 */
  --accent: #ff4d6d;      /* 바이브런트 코럴 (CTA/강조) */
  --accent-2: #ff7a92;
  --ink: #17151f;
  --muted: #6b6880;
  --line: #e9e7f0;
  --bg: #f7f6fc;
  --white: #ffffff;
  --ok: #12b886;
  --warn: #f08c00;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(40, 25, 90, 0.08);
  --shadow-lg: 0 14px 46px rgba(40, 25, 90, 0.16);
  --max: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd8e6;
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar a { color: #cdd8e6; }
.topbar a:hover { color: #fff; }
.topbar .t-left { display: flex; gap: 18px; align-items: center; }
.topbar .t-right { display: flex; gap: 14px; align-items: center; }
.topbar .flag { font-size: 13px; }
.topbar .divider { color: #3a5170; }

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 900;
}
.brand .logo small { font-size: 9px; }
.brand em { color: var(--accent); font-style: normal; }

.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; gap: 4px; }
.mainnav > ul > li { position: relative; }
.mainnav > ul > li > a {
  display: block;
  padding: 0 16px;
  line-height: 76px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.mainnav > ul > li:hover > a { color: var(--blue); }
.mainnav .dropdown {
  position: absolute;
  top: 72px; left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: .18s ease;
}
.mainnav > ul > li:hover .dropdown { opacity: 1; visibility: visible; top: 66px; }
.mainnav .dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: #40505f;
  border-radius: 7px;
}
.mainnav .dropdown a:hover { background: var(--sky); color: var(--blue); }

.header .cta {
  margin-left: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1257b8; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e94e14; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 88% -15%, rgba(255,77,109,.32), transparent),
    radial-gradient(700px 380px at 10% 110%, rgba(124,107,255,.45), transparent),
    linear-gradient(135deg, #2a1f66 0%, #4a34c7 55%, #6d4bf0 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 20px 72px;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px; line-height: 1.25; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -1px;
}
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero p.lead { font-size: 17px; color: #cfe0f2; margin: 0 0 28px; max-width: 520px; }
.hero .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero .trust .n { font-size: 24px; font-weight: 800; }
.hero .trust .l { font-size: 12.5px; color: #a9c1da; }

/* route card in hero */
.route-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.route-card h3 { margin: 0 0 18px; font-size: 15px; color: #cfe0f2; font-weight: 600; }
.route-flow { display: flex; align-items: center; justify-content: space-between; }
.route-node { text-align: center; flex: 1; }
.route-node .ico { font-size: 30px; }
.route-node .cty { font-weight: 800; margin-top: 6px; }
.route-node .sub { font-size: 12px; color: #a9c1da; }
.route-arrow { color: var(--accent-2); font-size: 22px; padding: 0 6px; }
.route-card .rc-foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.2);
  display: flex; justify-content: space-between; font-size: 13px;
}
.route-card .rc-foot b { color: #fff; }

/* ---------- My address box (나의 배송대행지) ---------- */
.addrbar { background: #fff; border-bottom: 1px solid var(--line); }
.addrbar .container {
  display: flex; align-items: stretch; gap: 0;
  padding: 0;
}
.addrbar .ab-title {
  background: var(--navy);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 26px; min-width: 220px;
}
.addrbar .ab-title .k { font-size: 12px; color: #9fb6d0; }
.addrbar .ab-title .b { font-size: 18px; font-weight: 800; }
.addrbar .ab-fields {
  flex: 1; display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.addrbar .ab-cell {
  padding: 14px 20px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
}
.addrbar .ab-cell label { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.addrbar .ab-cell .v { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.addrbar .ab-cell select {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13.5px;
}
.addrbar .ab-cell .locked { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
  color: var(--blue); font-weight: 700; font-size: 13.5px; letter-spacing: 1px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 30px; margin: 8px 0 10px; letter-spacing: -0.6px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* feature grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { text-align: center; position: relative; padding: 0 14px; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 26px;
  color: var(--accent); font-size: 22px; font-weight: 700;
}
.step .num {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
}
.step h4 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* price table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.price-table tbody tr:hover { background: var(--sky); }
.price-table td.zone { font-weight: 700; color: var(--navy); }
.price-table .best { color: var(--accent); font-weight: 800; }

/* notice/board */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board .b-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.board .b-head h3 { margin: 0; font-size: 17px; }
.board .b-head a { font-size: 13px; color: var(--muted); }
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
.board li:last-child { border-bottom: 0; }
.board .badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: var(--sky); color: var(--blue); }
.board .badge.new { background: #ffe9e0; color: var(--accent); }
.board li .date { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 28px; margin: 0 0 10px; }
.cta-band p { margin: 0 0 24px; font-size: 16px; opacity: .95; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #9fb6d0; padding: 50px 0 26px; font-size: 13.5px; }
.footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid #1e3d63; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a { color: #9fb6d0; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .f-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer .f-bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #6d87a6; }

/* ---------- Forms / page shell ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 44px 0; }
.page-hero h1 { margin: 0 0 6px; font-size: 30px; }
.page-hero .crumb { font-size: 13.5px; color: #9fb6d0; }
.page-hero .crumb a:hover { color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { margin: 0; font-size: 19px; }
.panel-body { padding: 24px; }

.form-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0f2f5; }
.form-row > label { font-weight: 700; font-size: 14.5px; }
.form-row > label .req { color: var(--accent); }
.form-row .field { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-family: inherit; background: #fff; width: 100%; max-width: 420px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,103,209,.12); }
.help { font-size: 12.5px; color: var(--muted); }
.form-actions { display: flex; justify-content: center; gap: 12px; padding-top: 24px; }

/* auth card */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 40px 36px; }
.auth-card h1 { text-align: center; margin: 0 0 6px; font-size: 24px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.auth-card .fld { margin-bottom: 14px; }
.auth-card .fld label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.auth-card .fld input { max-width: none; }
.auth-card .row-between { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 6px 0 18px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-card .alt a { color: var(--blue); font-weight: 700; }

/* dashboard stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.stat .v em { font-size: 14px; color: var(--muted); font-style: normal; }

/* status table */
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; }
.data-table thead th { background: #f7f9fc; color: #40505f; font-weight: 700; }
.data-table tbody tr:hover { background: var(--sky); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.wait { background: #fff3e0; color: var(--warn); }
.pill.in { background: var(--sky); color: var(--blue); }
.pill.ship { background: #e6f7ee; color: var(--ok); }

/* chat float */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.chat-fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); font-size: 24px; }
.chat-fab .kko { background: #fae100; }
.chat-fab .top { background: var(--navy); color: #fff; }

/* utilities */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.text-center{text-align:center}
.tag-note { background: #fff8f2; border: 1px solid #ffe0cc; color: #a5490f; padding: 14px 18px; border-radius: 10px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .step:nth-child(2)::after { display: none; }
  .addrbar .ab-fields { grid-template-columns: repeat(2, 1fr); }
  .footer .f-top { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mainnav { display: none; }
  .grid-4, .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .hero h1 { font-size: 32px; }
  .addrbar .container { flex-direction: column; }
  .addrbar .ab-fields { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .data-table { display: block; overflow-x: auto; }
}

/* ---------- 배송조회 타임라인 ---------- */
.track-timeline { position: relative; margin: 8px 0 0; padding-left: 6px; }
.track-timeline .tl { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--line); }
.track-timeline .tl:last-child { border-left-color: transparent; padding-bottom: 0; }
.track-timeline .dot { position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #cfcfe0; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.track-timeline .tl.done .dot { background: var(--ok); }
.track-timeline .tl.now .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,77,109,.22); }
.track-timeline .c { display: flex; flex-direction: column; gap: 2px; }
.track-timeline .c b { font-size: 14.5px; }
.track-timeline .c span { font-size: 12.5px; color: var(--muted); }
.track-timeline .tl.wait .c b { color: var(--muted); font-weight: 600; }

/* ---------- FAQ 아코디언 ---------- */
.faq-cat { font-size: 13px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin: 30px 0 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--blue); line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .a { padding: 0 20px 18px; color: #48505e; font-size: 14px; line-height: 1.75; }
.faq-item summary .q { display: inline-flex; gap: 8px; }
.faq-item summary .q b { color: var(--accent); }

/* ---------- 제휴 마켓 스트립 ---------- */
.market-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 34px; padding: 26px 20px; }
.market-strip .lbl { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.market-strip .mk { font-weight: 800; font-size: 18px; color: #9aa0ae; letter-spacing: -0.3px; }

/* ---------- 후기 ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review .stars { color: #ffb400; font-size: 15px; margin-bottom: 10px; }
.review p { margin: 0 0 16px; font-size: 14.5px; color: #3a4250; line-height: 1.7; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.review .who .nm { font-weight: 700; font-size: 14px; }
.review .who .rl { font-size: 12.5px; color: var(--muted); }

/* ---------- 법령/약관 본문 ---------- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 34px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { color: #48505e; font-size: 14px; line-height: 1.8; }
.legal ul { list-style: disc; padding-left: 20px; margin: 6px 0; }
