:root {
  --color-bg: #f4f7f3;
  --color-surface: #ffffff;
  --color-surface-subtle: #f6f6f6;
  --color-primary: #7d9675;
  --color-primary-light: #b7c9ad;
  --color-primary-deep: #425b51;
  --color-text: #121212;
  --color-muted: #555f5a;
  --color-border: #d4cab9;
  --color-accent: #d4a373;
  --color-focus: #b06d27;
  --color-error: #9d3228;
  --color-kakao: #fee500;
  --radius-control: 4px;
  --radius-card: 10px;
  --shadow-card: 0 18px 48px rgba(44, 62, 48, 0.09);
  color: var(--color-text);
  background: var(--color-bg);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.015em;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 10px 14px;
  background: var(--color-primary-deep);
  color: #fff;
}
.skip-link:focus {
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) clamp(20px, 5vw, 48px) 14px;
  border-bottom: 1px solid rgba(212, 202, 185, 0.68);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.brand img { display: block; width: 164px; height: auto; }
.shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--color-primary-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.shop-link:hover { text-decoration: underline; text-underline-offset: 4px; }

main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 72px;
}
.hero {
  position: relative;
  max-width: 780px;
  padding: 60px 0 44px;
}
.eyebrow, .section-kicker, .help-label {
  margin: 0;
  color: var(--color-primary-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.18em;
}
.hero h1 {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--color-text);
  font-family: inherit;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.055em;
}
.hero h1 em { color: var(--color-primary-deep); font-style: normal; }
.intro {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: clamp(16px, 2vw, 19px);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--color-primary-deep);
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list li span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e8ede6;
  font-size: 11px;
}
.botanical {
  position: absolute;
  z-index: -1;
  top: 16px;
  right: -14%;
  width: 195px;
  height: 280px;
  border-left: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.11;
  transform: rotate(24deg);
}
.botanical::before, .botanical::after {
  position: absolute;
  width: 104px;
  height: 50px;
  border: 2px solid var(--color-primary);
  border-radius: 100% 0 100% 0;
  content: "";
}
.botanical::before { top: 76px; left: -84px; transform: rotate(-20deg); }
.botanical::after { top: 160px; left: 0; transform: scaleX(-1) rotate(-10deg); }

.lookup-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(32px, 5vw, 54px);
  border-top: 2px solid var(--color-primary-deep);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.lookup-heading h2, .result-head h2, .state-panel h2 {
  margin: 10px 0 0;
  color: var(--color-primary-deep);
  font-family: inherit;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
  word-break: keep-all;
}
.lookup-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}
.lookup-actions { min-width: 0; }

.kakao-fast-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px 16px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #dfca55;
  border-radius: var(--radius-card);
  background: #f4f7f3;
}
.kakao-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.kakao-fast-panel strong, .kakao-fast-panel span { display: block; }
.kakao-fast-panel strong { color: #262318; font-size: 15px; }
.kakao-fast-panel .kakao-copy span:not(.kakao-bubble) { margin-top: 2px; color: #5f5a3f; font-size: 13px; }
.kakao-fast-panel > a {
  display: grid;
  min-height: 48px;
  padding: 0 16px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--color-kakao);
  color: #191919;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.kakao-privacy { grid-column: 1 / -1; color: var(--color-muted); font-size: 13px; }
.kakao-privacy summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 800; }
.kakao-privacy summary::after { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.kakao-privacy[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.kakao-privacy p { margin: 0 0 4px; line-height: 1.55; }
.kakao-privacy a { font-weight: 800; text-underline-offset: 3px; }
.manual-divider {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 12px;
}
.kakao-fast-panel:not([hidden]) + .manual-divider { display: flex; }
.manual-divider::before, .manual-divider::after { height: 1px; flex: 1; background: var(--color-border); content: ""; }

.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 8px; color: var(--color-primary-deep); font-size: 15px; font-weight: 800; }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 15px;
  border: 1px solid #8c938c;
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
  font-size: 17px;
}
.field input::placeholder { color: #5f685f; }
.field input:focus { border-color: var(--color-primary-deep); outline: 3px solid rgba(183, 201, 173, 0.48); }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field-help { margin: 7px 0 0; color: var(--color-muted); font-size: 13px; }
.field-error { min-height: 1.4em; margin: 4px 0 0; color: var(--color-error); font-size: 14px; }
.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--color-error);
  background: #f8e8e4;
  color: #73251f;
  font-size: 14px;
}
.primary-button, .secondary-button {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 800;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  background: var(--color-primary-deep);
  color: #fff;
}
.primary-button:hover { background: #1f3024; }
.primary-button:disabled { cursor: wait; opacity: 0.65; }
.secondary-button { padding: 0 24px; background: #e8ede6; color: var(--color-primary-deep); }
.text-button {
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--color-primary-deep);
  cursor: pointer;
}
.privacy-note {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}
.privacy-note span { margin-right: 5px; color: var(--color-primary); font-size: 7px; vertical-align: 2px; }

.state-panel {
  display: grid;
  min-height: 390px;
  padding: 70px 20px;
  place-items: center;
  align-content: center;
  border-top: 2px solid var(--color-primary-deep);
  background: var(--color-surface);
  text-align: center;
}
.state-panel p { margin: 12px 0 20px; color: var(--color-muted); }
.loader { display: flex; gap: 8px; margin-bottom: 22px; }
.loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); animation: pulse 1.2s infinite; }
.loader span:nth-child(2) { animation-delay: 0.15s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-8px); } }

.result-panel { padding: 44px clamp(0px, 3vw, 38px); }
.result-head { padding-bottom: 26px; border-bottom: 1px solid var(--color-border); }
.result-summary { margin: 13px 0 0; color: var(--color-primary-deep); font-size: 17px; font-weight: 800; }
.checked-at { margin: 4px 0 0; color: var(--color-muted); font-size: 13px; }
.shipment-list { display: grid; gap: 18px; margin-top: 26px; }
.shipment-card { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: 0 8px 28px rgba(44, 62, 48, 0.05); }
.shipment-card.attention { border-color: #c68a55; }
.shipment-main { padding: 24px; }
.box-kicker { display: flex; justify-content: space-between; gap: 14px; color: var(--color-muted); font-size: 13px; }
.shipment-card h3 { margin: 13px 0 5px; color: var(--color-primary-deep); font-family: inherit; font-size: 25px; font-weight: 800; line-height: 1.35; word-break: keep-all; }
.shipment-description { margin: 0; color: var(--color-muted); font-size: 15px; }
.attention-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-control); background: #f8eee5; color: #74452d; font-size: 14px; font-weight: 700; }
.progress-summary { margin: 20px 0 8px; color: var(--color-primary-deep); font-size: 14px; font-weight: 800; }
.progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 22px 0 0; padding: 0; list-style: none; }
.progress li { position: relative; min-width: 0; padding-top: 14px; color: #4f5953; font-size: 11px; line-height: 1.3; text-align: center; word-break: keep-all; }
.progress li::before { position: absolute; top: 0; left: 0; width: 100%; height: 5px; border-radius: 4px; background: #ded7cb; content: ""; }
.progress li.done { color: var(--color-primary-deep); font-weight: 800; }
.progress li.done::before { background: var(--color-primary); }
.progress li[aria-current="step"]::after { position: absolute; top: -3px; left: calc(50% - 5px); width: 10px; height: 10px; border: 2px solid var(--color-surface); border-radius: 50%; background: var(--color-primary-deep); content: ""; }
.shipment-card details { border-top: 1px solid var(--color-border); }
.shipment-card summary { display: flex; min-height: 52px; align-items: center; padding: 10px 24px; color: var(--color-primary-deep); cursor: pointer; font-size: 14px; font-weight: 800; }
.timeline { margin: 0; padding: 2px 24px 22px 46px; list-style: none; }
.timeline li { position: relative; padding: 0 0 21px 18px; border-left: 1px solid var(--color-border); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { position: absolute; top: 7px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); content: ""; }
.timeline strong { display: block; color: var(--color-primary-deep); }
.timeline span { display: block; color: var(--color-muted); font-size: 13px; }
.shipment-error { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-control); background: #f8eee5; color: #74452d; font-size: 14px; }
.preparing-state { display: flex; gap: 17px; margin-top: 26px; padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.preparing-state h3, .preparing-state p { margin: 0; }
.preparing-state h3 { color: var(--color-primary-deep); font-size: 18px; }
.preparing-state p { color: var(--color-muted); font-size: 14px; }
.status-symbol { color: var(--color-primary); font-size: 28px; }
.result-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }

.help-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 48px;
  padding: 22px 26px;
  background: var(--color-primary-deep);
  color: #fff;
}
.help-strip strong, .help-strip > div > span { display: block; }
.help-label { margin-bottom: 4px; color: var(--color-primary-light) !important; }
.help-strip > div > span:last-child { color: #d6ddd3; font-size: 13px; }
.help-strip a { display: inline-flex; min-height: 48px; flex: none; align-items: center; gap: 8px; font-weight: 800; text-underline-offset: 4px; }
footer {
  display: flex;
  width: min(1080px, 100%);
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 48px) max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
footer a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.help-strip :focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding-right: 20px; padding-left: 20px; }
  .brand img { width: 137px; }
  .shop-link { min-width: 44px; justify-content: center; font-size: 0; }
  .shop-link span { font-size: 18px; }
  main { padding-right: 20px; padding-bottom: 56px; padding-left: 20px; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { margin-top: 7px; font-size: 30px; line-height: 1.25; letter-spacing: -0.04em; }
  .intro { margin-top: 8px; font-size: 14px; }
  .trust-list { margin-top: 10px; gap: 8px 16px; font-size: 12px; }
  .botanical { display: none; }
  .lookup-panel { grid-template-columns: 1fr; gap: 18px; margin: 0; padding: 24px 22px; }
  .lookup-heading > p:last-child { margin-top: 10px; }
  .kakao-fast-panel { grid-template-columns: 1fr; }
  .kakao-fast-panel > a { width: 100%; }
  .result-panel { padding: 34px 0; }
  .result-head h2 { font-size: 26px; }
  .help-strip { align-items: flex-start; flex-direction: column; margin-top: 38px; }
  .help-strip a { width: 100%; justify-content: space-between; }
  .result-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .result-actions button { width: 100%; }
}

@media (max-width: 430px) {
  main { padding-right: 16px; padding-left: 16px; }
  .site-header { padding-right: 16px; padding-left: 16px; }
  .hero { padding-top: 20px; }
  .hero h1 { max-width: 330px; font-size: 28px; }
  .lookup-panel { padding: 22px 18px; }
  .shipment-main { padding: 20px 17px; }
  .box-kicker { align-items: flex-start; flex-direction: column; gap: 2px; }
  .progress { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 5px; }
  .progress li { min-height: 34px; font-size: 10px; }
  .shipment-card summary { padding-right: 17px; padding-left: 17px; }
  .timeline { padding-right: 17px; padding-left: 38px; }
  .shipment-card h3 { font-size: 23px; }
  .help-strip { padding: 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 350px) {
  .brand img { width: 126px; }
  .hero h1 { font-size: 27px; }
  .trust-list { gap: 8px; }
  .lookup-panel { padding-right: 15px; padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader span { animation: none; }
  .loader span:nth-child(2) { opacity: 0.65; }
  .loader span:nth-child(3) { opacity: 0.35; }
}
