:root {
  color-scheme: light;
  --app-bg: #ffffff;
  --page-bg: #eef1f5;
  --surface: #ffffff;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --ink: #111827;
  --muted: #6b7280;
  --blue: #2563eb;
  --red: #e52528;
  --red-dark: #c92022;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family:
    Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--app-bg);
  box-shadow: 0 0 28px rgba(15, 23, 42, 0.08);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.ad-notice {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  padding: 0.56rem 1rem;
  text-align: center;
}

.hero {
  padding: 1.55rem 1.25rem 1.15rem;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 199, 0, 0.22), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fff9ea 100%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #111827;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 950;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.hero h1 {
  margin-top: 1rem;
  font-size: 2.05rem;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  margin-top: 0.85rem;
  color: #4b5563;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.65;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-stats span:last-child {
  grid-column: auto;
}

.hero-stats span {
  min-width: 0;
  border: 1px solid #fde68a;
  border-radius: 0.9rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.62rem 0.52rem;
  text-align: center;
}

.hero-stats b {
  display: block;
  color: #111827;
  font-size: 1rem;
  font-weight: 950;
}

.campaign-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  background: #fff;
  padding: 0 1.25rem 1.15rem;
}

.campaign-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.72rem;
  align-items: center;
  min-height: 4.45rem;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  background: #f9fafb;
  padding: 0.82rem;
}

.campaign-card.active {
  border-color: rgba(229, 37, 40, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  box-shadow: 0 10px 24px rgba(229, 37, 40, 0.08);
}

.campaign-card.coming {
  opacity: 0.78;
}

.campaign-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  font-size: 1.35rem;
}

.campaign-card strong {
  color: #111827;
  font-size: 0.98rem;
  font-weight: 950;
}

.campaign-card em {
  color: #6b7280;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 760;
}

.category-tabs {
  position: sticky;
  top: 2.28rem;
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.78rem 1.25rem;
  scrollbar-width: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs a {
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0.58rem 0.82rem;
}

.product-feed {
  display: grid;
  gap: 1.2rem;
  background: #f8fafc;
  padding: 1.25rem;
}

.quick-pick,
.number-finder,
.price-index {
  scroll-margin-top: 7.2rem;
  border: 1px solid #eef2f7;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.quick-pick {
  display: grid;
  gap: 0.9rem;
}

.eyebrow {
  margin-bottom: 0.15rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
}

.quick-pick h2,
.number-finder h2 {
  color: #111827;
  font-size: 1.24rem;
  font-weight: 950;
  line-height: 1.25;
}

.quick-pick p:not(.eyebrow),
.number-finder p:not(.eyebrow) {
  margin-top: 0.38rem;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.age-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.age-map a,
.price-grid a {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #f9fafb;
  padding: 0.72rem;
}

.age-map b,
.price-grid strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 950;
}

.age-map span,
.price-grid span {
  display: block;
  margin-top: 0.18rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.35;
}

.jump-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.jump-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.jump-form input {
  min-width: 0;
  height: 3.1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.9rem;
  background: #fff;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
  outline: none;
  padding: 0 0.9rem;
}

.jump-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 37, 40, 0.12);
}

.jump-form button {
  height: 3.1rem;
  border: 0;
  border-radius: 0.9rem;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 950;
  padding: 0 1rem;
}

.jump-message {
  min-height: 1.2rem;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 850;
}

.price-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.product-section {
  scroll-margin-top: 7.2rem;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  margin-bottom: 0.9rem;
}

.section-title > span {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.section-title p {
  margin-bottom: 0.12rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
}

.section-title h2 {
  color: #111827;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.25;
}

.section-lede {
  margin: -0.18rem 0 0.9rem 2.78rem;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.product-card {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 6.1rem;
  border: 1px solid #eef2f7;
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.product-card::before {
  content: attr(data-product-number);
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  z-index: 2;
  border: 1px solid rgba(229, 37, 40, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0.32rem 0.56rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.product-card + .product-card {
  margin-top: 1rem;
}

.product-card.is-highlighted {
  border-color: rgba(229, 37, 40, 0.46);
  box-shadow: 0 0 0 3px rgba(229, 37, 40, 0.12), 0 12px 30px rgba(15, 23, 42, 0.1);
}

.product-card figure {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 214, 10, 0.2), transparent 34%),
    #ffffff;
}

.product-card figure img {
  width: 100%;
  height: 13.5rem;
  object-fit: contain;
  padding: 0.75rem;
}

.product-card figure img[src*="age-"] {
  object-fit: cover;
  object-position: top center;
  padding: 0;
}

.product-visual {
  min-height: 13.5rem;
}

.product-visual span {
  display: grid;
  place-items: center;
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 2rem;
  background: #fff;
  font-size: 4.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.product-visual.carnation {
  background:
    radial-gradient(circle at 78% 15%, rgba(252, 165, 165, 0.3), transparent 28%),
    linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.product-visual.money {
  background:
    radial-gradient(circle at 20% 15%, rgba(250, 204, 21, 0.3), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.product-visual.care {
  background:
    radial-gradient(circle at 80% 8%, rgba(147, 197, 253, 0.26), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.product-content {
  padding: 1rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 0.55rem;
  padding: 0.24rem 0.48rem;
}

.green {
  background: #dcfce7;
  color: #15803d;
}

.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.sky {
  background: #e0f2fe;
  color: #0369a1;
}

.yellow {
  background: #fef3c7;
  color: #92400e;
}

.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.indigo {
  background: #e0e7ff;
  color: #4338ca;
}

.orange {
  background: #ffedd5;
  color: #c2410c;
}

.pink {
  background: #fce7f3;
  color: #be185d;
}

.red {
  background: #fee2e2;
  color: #b91c1c;
}

.product-content h3 {
  margin-bottom: 0.62rem;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.3;
}

.price {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.62rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 880;
  padding: 0.3rem 0.6rem;
}

.reason {
  border: 1px solid rgba(191, 219, 254, 0.74);
  border-radius: 0.86rem;
  background: rgba(239, 246, 255, 0.75);
  color: #374151;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
  padding: 0.75rem 0.82rem;
}

.reason::before {
  content: "추천 이유";
  display: block;
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
}

.warning {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
  border: 1px solid #fecaca;
  border-radius: 0.86rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.79rem;
  font-weight: 680;
  line-height: 1.45;
  padding: 0.72rem 0.82rem;
}

.warning b {
  flex: 0 0 auto;
  font-weight: 950;
}

.buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  margin-top: 0.9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f33b3e 0%, var(--red) 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(229, 37, 40, 0.2);
}

.buy-button::after {
  content: "›";
  margin-left: 0.35rem;
  font-size: 1.45rem;
  line-height: 0;
}

.checklist {
  scroll-margin-top: 7.2rem;
  border: 1px solid #eef2f7;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.checklist ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  border-radius: 0.78rem;
  background: #f9fafb;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.45;
  padding: 0.72rem 0.78rem 0.72rem 2rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.72rem;
  top: 0.7rem;
  color: #16a34a;
  font-weight: 950;
}

footer {
  border-top: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1.35rem 1.25rem 5rem;
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.6;
}

footer p + p {
  margin-top: 0.6rem;
}

@media (min-width: 481px) {
  .app-shell {
    min-height: 100vh;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .product-card figure img {
    height: 12rem;
  }

  .product-visual {
    min-height: 12rem;
  }

  .product-visual span {
    width: 7.2rem;
    height: 7.2rem;
    font-size: 3.5rem;
  }
}
