:root {
  --ink: #171915;
  --muted: #6c7169;
  --line: #dcded7;
  --paper: #f4f3ef;
  --card: #fbfaf7;
  --green: #315c4a;
  --green-dark: #244537;
  --green-soft: #e5ece7;
  --warm: #a06f43;
  --danger: #a54040;
  --shadow: 0 24px 70px rgba(37, 47, 41, .1);
  --radius: 24px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 8%, rgba(127, 151, 132, .16), transparent 26%), var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { min-height: 82px; padding: 16px clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,25,21,.11); background: rgba(244,243,239,.86); backdrop-filter: blur(18px); position: relative; z-index: 5; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; }
.brand strong, .header-status strong { display: block; font-size: 17px; letter-spacing: -.03em; }
.brand small, .header-status small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.header-status { display: flex; align-items: center; gap: 11px; text-align: right; }
.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #418267; box-shadow: 0 0 0 5px rgba(65,130,103,.12); }
.status-dot::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(65,130,103,.42); border-radius: inherit; animation: pulse 2.2s infinite; }
@keyframes pulse { 70%,100% { transform: scale(1.45); opacity: 0; } }

.app-layout { flex: 1; display: grid; grid-template-columns: minmax(310px, 38%) minmax(0, 1fr); width: min(1460px, 100%); margin: 0 auto; }
.care-panel { padding: clamp(42px, 6vw, 88px) clamp(28px, 5vw, 76px); border-right: 1px solid rgba(23,25,21,.11); }
.consultant-card { max-width: 480px; }
.consultant-avatar { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 25px 25px 25px 8px; color: #fff; background: linear-gradient(145deg, #47715f, #274638); box-shadow: 0 15px 35px rgba(42,78,62,.2); font-weight: 800; letter-spacing: -.05em; margin-bottom: 26px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.consultant-card h1 { margin: 0; max-width: 500px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(36px, 4vw, 59px); line-height: 1.14; letter-spacing: -.055em; font-weight: 600; }
.consultant-card > p:not(.eyebrow) { max-width: 430px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.82; word-break: keep-all; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.trust-row span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.46); color: #4f554e; font-size: 11px; font-weight: 700; }
.quick-section { max-width: 480px; margin-top: 58px; }
.section-label { margin: 0 0 14px; font-size: 12px; font-weight: 800; }
.quick-list { border-top: 1px solid var(--line); }
.quick-prompt { width: 100%; display: flex; gap: 14px; align-items: center; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; font-size: 14px; transition: padding .2s, color .2s; }
.quick-prompt:hover { padding-left: 8px; color: var(--green); }
.quick-prompt span { color: #92968f; font-family: Georgia, serif; font-size: 11px; }
.safety-note { display: flex; gap: 14px; max-width: 480px; margin-top: 40px; padding: 17px; background: rgba(255,255,255,.48); border: 1px solid var(--line); border-radius: 18px; }
.safety-note > span { flex: 0 0 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #ece3da; color: #8c5e37; font-weight: 700; }
.safety-note p { margin: 0; color: #676b65; font-size: 11px; line-height: 1.65; word-break: keep-all; }
.safety-note strong { display: block; color: #3f433e; margin-bottom: 2px; }

.chat-panel { min-width: 0; min-height: calc(100vh - 82px); padding: clamp(28px, 4vw, 58px) clamp(24px, 5vw, 72px) 30px; display: flex; flex-direction: column; background: rgba(251,250,247,.62); }
.chat-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chat-heading .eyebrow { margin-bottom: 6px; }
.chat-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.chat-messages { flex: 1; min-height: 380px; max-height: calc(100vh - 355px); overflow-y: auto; padding: 30px 5px 16px 0; scrollbar-width: thin; scrollbar-color: #c7cbc4 transparent; }
.message { display: flex; gap: 13px; margin-bottom: 25px; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.message-avatar { flex: 0 0 41px; width: 41px; height: 41px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; }
.message-content { max-width: min(690px, 86%); }
.message-name { margin: 0 0 7px; font-size: 11px; font-weight: 800; }
.message-name span { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 8px; vertical-align: 1px; }
.message-bubble { padding: 16px 18px; background: #fff; border: 1px solid #e4e5df; border-radius: 6px 20px 20px 20px; box-shadow: 0 9px 24px rgba(35,45,39,.05); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.message-bubble p { margin: 0 0 8px; white-space: pre-wrap; }
.message-bubble p:last-child { margin-bottom: 0; }
.message time { display: block; margin-top: 6px; color: #a2a69e; font-size: 9px; }
.user-message { flex-direction: row-reverse; }
.user-message .message-avatar { display: none; }
.user-message .message-content { display: flex; flex-direction: column; align-items: flex-end; }
.user-message .message-name { display: none; }
.user-message .message-bubble { color: #fff; background: var(--ink); border-color: var(--ink); border-radius: 20px 6px 20px 20px; }
.typing-bubble { display: inline-flex; gap: 5px; align-items: center; min-width: 64px; }
.typing-bubble i { width: 6px; height: 6px; border-radius: 50%; background: #8a9189; animation: typing 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.recommend-card { width: min(530px, 100%); margin: -10px 0 26px 54px; display: grid; grid-template-columns: 105px 1fr; overflow: hidden; border: 1px solid #d9ded8; border-radius: 20px; background: #f9fbf9; box-shadow: 0 14px 34px rgba(40,65,53,.08); animation: enter .35s ease both; }
.recommend-image { background: #fff; display: grid; place-items: center; padding: 10px; }
.recommend-image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.recommend-copy { padding: 16px; }
.recommend-copy small { display: block; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.recommend-copy strong { display: block; margin: 6px 0 4px; font-size: 14px; line-height: 1.4; }
.recommend-copy p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recommend-copy button { padding: 8px 12px; border: 0; border-radius: 9px; background: var(--green); color: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 0 14px; }
.chat-suggestions button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: rgba(255,255,255,.7); color: #5e635c; font-size: 10px; cursor: pointer; }
.composer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 9px; border: 1px solid #cfd3cc; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(39,49,43,.08); }
.composer textarea { width: 100%; min-height: 48px; max-height: 144px; resize: none; border: 0; outline: 0; padding: 13px 12px 8px; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.5; }
.composer textarea::placeholder { color: #9da199; }
.composer button { height: 44px; padding: 0 12px 0 16px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.composer button b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; }
.composer button:disabled { opacity: .55; cursor: wait; }
.chat-disclosure { margin: 10px 0 0; text-align: center; color: #8b8f88; font-size: 9px; line-height: 1.5; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(24px,5vw,76px); border-top: 1px solid rgba(23,25,21,.1); color: #858980; font-size: 9px; line-height: 1.5; }
.site-footer p { margin: 0; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; padding: clamp(20px, 5vw, 70px); display: grid; place-items: center; background: rgba(16,20,17,.58); backdrop-filter: blur(10px); overflow-y: auto; }
.modal { position: relative; width: min(850px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.modal-close { position: absolute; z-index: 2; top: 17px; right: 17px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.88); color: #565b54; font-size: 24px; line-height: 1; cursor: pointer; }
.product-modal { display: grid; grid-template-columns: minmax(270px, 42%) 1fr; }
.product-visual { min-height: 500px; display: grid; place-items: center; padding: 40px; background: #edece7; }
.product-visual img { width: min(100%, 330px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.product-detail { padding: 65px 50px 45px; }
.product-detail h2 { margin: 0; font-size: clamp(25px,3vw,37px); line-height: 1.25; letter-spacing: -.05em; word-break: keep-all; }
.product-category { display: inline-block; margin: 13px 0 25px; padding: 6px 9px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.recommendation-reason { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recommendation-reason span { font-size: 10px; color: var(--muted); font-weight: 800; }
.recommendation-reason p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; }
.variant-options { display: grid; gap: 8px; margin: 20px 0; }
.variant-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; font-size: 11px; }
.variant-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.variant-option input { accent-color: var(--green); }
.variant-option span { flex: 1; }
.variant-option strong { font-size: 11px; }
.product-price-row, .order-total { display: flex; align-items: end; justify-content: space-between; margin: 20px 0; }
.product-price-row span, .order-total span { color: var(--muted); font-size: 11px; }
.product-price-row strong, .order-total strong { font-family: Georgia, serif; font-size: 23px; }
.product-caution { margin: 0 0 20px; color: #7b7f78; font-size: 10px; line-height: 1.6; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 51px; padding: 12px 18px; border: 0; border-radius: 15px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.order-modal { width: min(670px, 100%); padding: 46px; }
.order-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.order-heading > p:last-child { margin: 9px 0 25px; color: var(--muted); font-size: 12px; }
.order-product-summary { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 25px; border-radius: 16px; background: #edeee9; }
.order-product-summary img { width: 62px; height: 62px; object-fit: contain; border-radius: 12px; background: white; }
.order-product-summary strong, .order-product-summary span { display: block; }
.order-product-summary strong { font-size: 13px; }
.order-product-summary span { margin-top: 5px; color: var(--green); font-size: 12px; font-weight: 800; }
.order-form { display: grid; gap: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form label > span:first-child { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.order-form input, .order-form textarea, .order-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fff; padding: 13px 14px; font-size: 13px; }
.order-form input:focus, .order-form textarea:focus, .order-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,92,74,.1); }
.quantity-field { max-width: 140px; }
.check-label { display: flex; align-items: flex-start; gap: 9px; color: #61665f; font-size: 10px; line-height: 1.5; }
.check-label input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 0; accent-color: var(--green); }
.check-label > span:first-of-type { margin: 0; font-weight: 500; }
.form-error { min-height: 1em; margin: -3px 0; color: var(--danger); font-size: 11px; }
.success-modal { width: min(490px, 100%); padding: 55px 45px 42px; text-align: center; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 30px; }
.success-modal h2 { margin: 0 0 18px; font-size: 27px; letter-spacing: -.04em; }
.success-modal > p:not(.eyebrow) { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.success-modal .primary-button { margin-top: 27px; }
.not-found { min-height: 100vh; width: min(560px, 90%); margin: auto; display: grid; align-content: center; text-align: center; }
.not-found h1 { margin: 0; font-size: 38px; letter-spacing: -.05em; }
.not-found > p:not(.eyebrow) { color: var(--muted); }
.not-found .primary-button { width: auto; margin: 20px auto; }

@media (max-width: 960px) {
  .app-layout { grid-template-columns: 1fr; }
  .care-panel { display: none; }
  .chat-panel { min-height: calc(100vh - 82px); }
  .chat-messages { max-height: none; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: 4px; }
}

@media (max-width: 640px) {
  :root { --mobile-edge: 5vw; }
  .site-header { height: auto; min-height: 64px; padding: 11px var(--mobile-edge); }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .header-status strong { font-size: 11px; }
  .header-status small { font-size: 8px; }
  .status-dot { width: 8px; height: 8px; }
  .chat-panel { width: 100%; min-height: calc(100dvh - 64px); padding: 23px var(--mobile-edge) max(18px, env(safe-area-inset-bottom)); }
  .chat-heading { padding-bottom: 17px; }
  .chat-heading h2 { font-size: 20px; }
  .chat-messages { min-height: 0; padding-top: 23px; }
  .message { gap: 9px; }
  .message-avatar { flex-basis: 36px; width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; font-size: 9px; }
  .message-content { max-width: 88%; }
  .message-bubble { padding: 13px 14px; font-size: 13px; line-height: 1.7; }
  .recommend-card { margin-left: 45px; grid-template-columns: 88px 1fr; }
  .recommend-copy { padding: 13px; }
  .recommend-copy strong { font-size: 12px; }
  .chat-suggestions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chat-suggestions button { white-space: nowrap; }
  .composer { border-radius: 17px; }
  .composer textarea { font-size: 16px; }
  .composer button span { display: none; }
  .composer button { padding: 0 9px; }
  .site-footer { padding: 14px var(--mobile-edge); }
  .modal-backdrop { padding: var(--mobile-edge); align-items: end; }
  .modal { max-height: 92dvh; border-radius: 25px 25px 16px 16px; }
  .product-modal { grid-template-columns: 1fr; }
  .product-visual { min-height: 220px; padding: 25px; }
  .product-visual img { width: 190px; }
  .product-detail { padding: 32px 24px 25px; }
  .product-detail h2 { padding-right: 25px; font-size: 25px; }
  .order-modal { padding: 40px 22px 24px; }
  .order-heading h2 { font-size: 26px; }
  .field-grid { grid-template-columns: 1fr; }
  .success-modal { padding: 45px 25px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
