:root {
  color-scheme: light;
  --ink: #231f34;
  --muted: #686170;
  --purple: #4328ce;
  --accent: #c23758;
  --line: #eae6f0;
  --surface: #f6f4fb;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #8b77fa; outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { display: block; position: fixed; z-index: 10; left: 1em; top: 1em; color: #fff; background: var(--purple); padding: .65em 1em; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 1.35rem; font-weight: 850; letter-spacing: -.085em; color: #231f34; }
.brand > span > span { color: var(--purple); }
.brand img { border-radius: 12px; flex-shrink: 0; }
.install-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #e7dffb; background: #f8f5ff; color: #4831aa; border-radius: 10px; font-size: .875rem; font-weight: 750; white-space: nowrap; }
.install-button:hover { background: #f0eaff; }
.phone-icon { display: inline-block; width: 10px; height: 15px; border: 1.5px solid; border-radius: 3px; position: relative; }
.phone-icon::after { position: absolute; content: ""; width: 2px; height: 2px; border-radius: 50%; left: 2.5px; bottom: 1px; background: currentColor; }

.intro { isolation: isolate; display: flex; position: relative; overflow: hidden; min-height: 264px; align-items: center; justify-content: space-between; margin-top: 24px; padding: 32px 56px; color: #fff; background: linear-gradient(112deg, #4225c6 12%, #5733e2 67%, #694bf0 100%); border-radius: 26px; }
.hero-content { position: relative; z-index: 1; }
.hero-label { font-size: .9rem; letter-spacing: -.025em; font-weight: 750; color: #ede7ff; margin: 0 0 6px; }
.intro h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 850; letter-spacing: -.083em; }
.hero-caption { color: #f4efff; font-size: .98rem; margin: 16px 0 0; }
.hero-art { position: absolute; inset: 0 0 0 49%; pointer-events: none; }
.art-ring { position: absolute; width: 380px; aspect-ratio: 1; border: 1px solid #ffffff3b; border-radius: 50%; left: 49%; top: 50%; transform: translate(-50%, -50%); }
.art-ring-inner { width: 306px; background: #fff1; }
.spark { position: absolute; color: #fdd0ae; line-height: 1; z-index: 2; }
.spark-one { top: 18%; left: 26%; font-size: 2.6rem; }
.spark-two { right: 19%; bottom: 18%; font-size: 1.35rem; color: #ffc28b; }
.art-frame { display: grid; place-items: center; position: absolute; width: 210px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); border-radius: 36px; background: #ffffff22; border: 1px solid #ffffff47; box-shadow: 0 22px 55px #20117660; }
.art-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.art-frame .hero-product { padding: 16px; object-fit: contain; background: #fff; }

.search { display: flex; align-items: center; min-height: 56px; margin-top: 22px; border: 2px solid var(--purple); border-radius: 14px; background: #fff; }
.search:focus-within { box-shadow: 0 0 0 4px #5a3de91c; }
.search-submit { display: grid; place-items: center; width: 51px; height: 50px; flex-shrink: 0; border: 0; color: var(--purple); background: transparent; border-radius: 11px; }
.magnifier { display: block; position: relative; width: 16px; height: 16px; border: 2px solid; border-radius: 50%; }
.magnifier::after { position: absolute; content: ""; width: 8px; height: 2px; background: currentColor; right: -6px; bottom: -3px; transform: rotate(47deg); }
.search input { width: 100%; min-width: 0; height: 50px; padding: 0 5px 0 0; border: 0; outline: none; color: var(--ink); font-weight: 650; background: transparent; }
.search input::placeholder { color: #70697d; font-weight: 500; }
.search input::-webkit-search-cancel-button { appearance: none; }
.clear-search, .close-dialog { border: 0; color: var(--muted); background: transparent; border-radius: 8px; min-width: 42px; min-height: 42px; font-size: 1.45rem; line-height: 1; }
.clear-search { margin-right: 4px; }
.clear-search:hover, .close-dialog:hover { background: var(--surface); }

.categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 3px 6px; }
.category { flex: 0 0 auto; max-width: 100%; overflow-wrap: anywhere; padding: 7px 15px; min-height: 40px; color: #42394f; border: 1px solid #e8e2f0; border-radius: 99px; background: #fff; font-size: .91rem; font-weight: 700; }
.category span { color: var(--purple); }
.category:hover { background: #f5f0ff; }
.category.active { color: #fff; border-color: var(--purple); background: var(--purple); }
.category.active span { color: #fbcca7; }

.deals { margin-top: 25px; min-height: 300px; padding-bottom: 52px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(1.3rem, 3.3vw, 1.9rem); line-height: 1.25; letter-spacing: -.055em; }
.feed-status { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.sort { display: inline-flex; position: relative; color: #443c51; align-items: center; }
.sort::after { position: absolute; right: 12px; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; content: ""; transform: rotate(45deg); pointer-events: none; }
.sort select { min-height: 36px; appearance: none; color: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 6px 28px 6px 10px; background: #fff; font-size: .875rem; }
.disclosure { color: #42394f; font-size: .94rem; line-height: 1.5; margin: 12px 0; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 10px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #e9e4f0; background: #fff; border-radius: 16px; overflow: hidden; }
.card:hover { border-color: #c7baf0; box-shadow: 0 8px 25px #2d1b6310; }
.media { aspect-ratio: 1.5; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; padding: 5px; background: #fcfbfe; color: #664bc9; }
.media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.media img.media-fallback { width: 56px; height: 56px; border-radius: 13px; opacity: .50; }
.photo-note { color: var(--muted); font-size: .81rem; line-height: 1.25; margin: -28px 0 0; align-self: center; }
.card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 7px 9px 9px; overflow-wrap: anywhere; }
.card-category { margin: 0 0 4px; color: #5a438f; font-size: .82rem; font-weight: 750; }
.card-name { margin: 0 0 4px; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: .87rem; line-height: 1.25; margin-top: auto; }
.price strong { color: var(--accent); font-size: clamp(1.15rem, 3vw, 1.48rem); letter-spacing: -.055em; }
.price del { color: var(--muted); font-size: .85rem; }
.discount { font-weight: 800; color: var(--accent); font-size: .9rem; }
.price .price-reference { flex-basis: 100%; color: var(--muted); font-size: .82rem; }
.deal-terms { margin: 5px 0 0; color: #5a438f; font-size: .81rem; line-height: 1.36; }
.pack-label { color: #35274c; font-size: 1rem; font-weight: 800; }
.card:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.view-message { text-align: center; padding: 40px 18px; border: 1px dashed #d7ccea; background: #fbfaff; border-radius: 17px; }
.view-message p { color: var(--muted); margin: 7px 0 0; font-size: .91rem; }
.view-message button { padding: 8px 14px; margin-top: 14px; border-radius: 8px; border: 1px solid #ddd1f8; color: var(--purple); background: #fff; }

.footer { color: var(--muted); background: #faf9fc; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 70px; font-size: .88rem; }
.footer span { color: #4a3f58; font-weight: 800; }
.footer a:hover { color: var(--purple); }

dialog { width: min(490px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0 20px 22px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: #fff; box-shadow: 0 24px 65px #1d14374a; }
dialog::backdrop { background: #221a36a6; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 65px; }
.dialog-head h2 { font-size: 1.24rem; }
dialog > p { color: var(--muted); margin-top: 1px; }
.install-dialog { padding: 26px 22px 20px; }
.install-dialog h2 { font-size: clamp(1.875rem, 7.5vw, 2.25rem); font-weight: 850; line-height: 1.25; word-break: keep-all; margin: 0 0 12px; }
.install-dialog p { font-size: 1.125rem; line-height: 1.5; }
.install-actions { display: flex; gap: 10px; }
.install-now, .continue-button { width: 100%; min-height: 47px; border-radius: 10px; margin-top: 12px; font-size: 1.1rem; font-weight: 760; }
.install-now { color: #fff; background: var(--purple); border: 1px solid var(--purple); }
#install-external { display: grid; place-items: center; text-decoration: none; }
.continue-button { color: #463285; background: #f5f1ff; border: 1px solid #e6ddf6; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 38px); }
  .items { grid-template-columns: repeat(auto-fill,minmax(min(100%,8.8rem),1fr)); gap: 8px; }
  .intro { padding-inline: 35px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 16px); }
  .topbar-inner { min-height: 44px; }
  .brand { gap: 7px; font-size: 1.13rem; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .install-button { padding: 6px 9px; font-size: .81rem; }
  .intro { min-height: 92px; border-radius: 12px; margin-top: 6px; padding: 9px 14px; }
  .hero-label { font-size: .81rem; }
  .intro h1 { font-size: 1.35rem; }
  .hero-caption { font-size: .82rem; margin-top: 3px; }
  .hero-art { left: 52%; }
  .art-ring { width: 198px; left: 57%; }
  .art-ring-inner { width: 154px; }
  .art-frame { width: clamp(100px, 28vw, 148px); border-radius: 21px; left: 57%; }
  .art-frame .hero-product { padding: 8px; }
  .spark-one { left: 12%; top: 20%; font-size: 1.55rem; }
  .spark-two { right: 9%; bottom: 17%; font-size: 1rem; }
  .disclosure { margin: 5px 0; font-size: .875rem; line-height: 1.3; }
  .search { margin-top: 6px; min-height: 42px; border-radius: 10px; }
  .search input, .search-submit { height: 39px; }
  .search-submit { width: 43px; }
  .categories { gap: 4px; padding: 6px 0 2px; }
  .category { padding: 4px 9px; min-height: 32px; font-size: .84rem; }
  .deals { margin-top: 7px; padding-bottom: 24px; }
  .section-head { margin-bottom: 6px; }
  .feed-status { margin-top: 1px; line-height: 1.25; }
  .items { grid-template-columns: repeat(auto-fill,minmax(min(100%,6.9rem),1fr)); gap: 5px; }
  .media { padding: 3px; }
  .card { border-radius: 9px; }
  .card-content { padding: 5px 5px 7px; }
  .card-name { font-size: .875rem; }
  .card-category { display: none; }
  .price { gap: 2px 4px; }
  .price strong { font-size: 1.06rem; }
  .deal-terms { margin-top: 3px; line-height: 1.25; }
  .purchase { font-size: .85rem; }
}
@media (max-width: 360px) {
  .intro { padding-inline: 13px; }
  .hero-art { left: 57%; }
  .hero-caption { max-width: 167px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.promotions { margin: 10px 0 20px; padding: clamp(12px,2vw,24px); border-radius: 22px; background: radial-gradient(ellipse at 88% 12%,#a82e59 0%,transparent 48%),linear-gradient(125deg,#342067,#612373 70%,#8b304f); }
.promotion-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.promotion-head h1 { margin:0; color:white; font-size:clamp(1.3rem,2.4vw,1.85rem); letter-spacing:-.045em; line-height:1.15; }
.promotion-controls { display:flex; align-items:center; gap:5px; color:white; font-size:.875rem; font-variant-numeric:tabular-nums; }
.promotion-controls button { min-width:32px; min-height:32px; border-radius:20px; border:1px solid #ffffff66; color:#fff; background:#33153d; }
.promotion-controls button:last-child { padding:0 9px; }
.promotion-link { display:flex; flex-direction:row-reverse; overflow:hidden; align-items:stretch; border-radius:14px; background:#fff; color:#271b3d; box-shadow:0 3px 12px #2010383b; }
.promotion-link:hover .promotion-name, .promotion-link:focus-visible .promotion-name { text-decoration:underline; }
.promotion-link:focus-visible { outline:3px solid #ffdb69; }
.promotion-image { display:block; width:60%; height:clamp(150px,15vw,190px); object-fit:contain; background:#f7f3fa; }
.promotion-body { display:flex; align-items:center; justify-content:space-between; flex:1; gap:10px; padding:14px; }
.promotion-copy { display:grid; gap:4px; min-width:0; word-break:keep-all; overflow-wrap:anywhere; }
.promotion-name { font-size:clamp(1.2rem,2vw,1.65rem); font-weight:850; letter-spacing:-.045em; line-height:1.22; }
.promotion-benefit { color:#69295d; font-size:.96rem; font-weight:650; }
.promotion-end { font-size:.87rem; color:#625b68; }
.promotion-action { flex:none; border-radius:999px; padding:8px 12px; background:#512a9a; color:#fff; font-size:.9rem; font-weight:750; }
.lowest-offer { display:block; margin-top:4px; color:#5f2781; font-size:.9rem; }
@media (min-width:701px) {
  .promotion-body { flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(14px,2vw,30px); }
}
@media (max-width:700px) {
  .promotions { margin: 5px 0 7px; padding: 7px; border-radius: 13px; }
  .promotion-head { margin: 0 2px 5px; }
  .promotion-head h1 { font-size: 1.12rem; }
  .promotion-link { flex-direction: row; align-items: center; }
  .promotion-image { width: 40%; height: 72px; }
  .promotion-body { min-width: 0; padding: 6px 8px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .promotion-copy { gap: 2px; }
  .promotion-name { font-size: 1rem; }
  .promotion-benefit, .promotion-end { font-size: .875rem; line-height: 1.25; }
  .promotion-action { padding: 1px 8px; font-size: .875rem; }
}
