:root {
  --bg-1: #fff7ef;
  --bg-2: #ffd7dd;
  --bg-3: #ffb2bf;
  --bg-4: #ff8ea7;
  --text: #2f1b24;
  --text-soft: #63404f;
  --accent: #ff5f84;
  --accent-strong: #ff95ac;
  --button-main: #ff6f91;
  --button-alt: #ffc1cf;
  --card: rgba(255, 241, 246, 0.86);
  --line: rgba(120, 70, 90, 0.22);
  --muted-line: rgba(120, 70, 90, 0.15);
  --app-font-family: "Gaegu", "Gowun Dodum", "Apple SD Gothic Neo", "Nanum Gothic", "Noto Sans KR", sans-serif;
  --base-font-size: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--app-font-family);
  background:
    radial-gradient(circle at 16% 15%, var(--bg-2) 0%, transparent 50%),
    radial-gradient(circle at 82% 28%, #ffe0e7 0%, transparent 47%),
    linear-gradient(135deg, var(--bg-3), var(--bg-4), var(--bg-1));
  color: var(--text);
  line-height: 1.55;
}

body {
  position: relative;
  overflow-x: hidden;
  font-size: var(--base-font-size);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 3.5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 3.5px
    );
  mix-blend-mode: overlay;
}

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

.hero {
  position: relative;
  padding: 24px clamp(16px, 5vw, 56px) 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 252, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(120, 75, 97, 0.14);
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hamburger-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--muted-line);
  box-shadow: 0 8px 20px rgba(120, 75, 97, 0.12);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: #7a3552;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hamburger-icon circle {
  fill: #ff8fae;
  stroke: none;
}

.header-link {
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

.app-shell[hidden] {
  display: none;
}

.app-shell.active {
  display: block;
}

.top-nav {
  position: sticky;
  top: 14px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px rgba(120, 75, 97, 0.18);
}

.feature-nav.hidden {
  display: none;
}

.app-shell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app-shell.active {
  opacity: 1;
  transform: translateY(0);
}

.app-section {
  display: none;
}

.app-section.active {
  display: block;
}

.brand {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}

.single-row-menu {
  align-items: center;
}

.header-menu.single-row-menu {
  flex-wrap: nowrap;
}

.top-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(12px, 2vw, 26px);
}

.top-nav button {
  opacity: 0.85;
  border: none;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  transition: opacity 0.25s ease;
  width: auto;
}

.top-nav button:hover,
.top-nav button.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.66);
}

.hero-inner {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.hero-copy-block {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 18px;
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-copy {
  color: var(--text-soft);
  max-width: 640px;
  font-size: 1.02rem;
}

.hero-main-actions {
  margin-top: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hero-badges span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 70, 90, 0.14);
  color: var(--text-soft);
}

.hero-panel-stack {
  display: grid;
  gap: 16px;
}

.spotlight-card {
  min-height: 280px;
}

.mini-stat-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat-card div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--muted-line);
}

.mini-stat-card p,
.spotlight-card p {
  margin-bottom: 0;
}

.card-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-ad-section {
  margin-top: 10px;
}

.home-ad-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 249, 251, 0.8);
  box-shadow: 0 16px 30px rgba(120, 75, 97, 0.14);
}

.home-ad-card h2 {
  margin: 0 0 10px;
}

.ad-box-shell {
  min-height: 160px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(120, 70, 90, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

.ad-help-text {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: #8b5f70;
}

.feature-entry {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 252, 0.76);
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(120, 75, 97, 0.14);
}

.feature-entry strong {
  font-size: 1.06em;
}

.feature-entry span {
  color: var(--text-soft);
}

.feature-entry:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--button-main), var(--button-alt));
  color: #2d1620;
  font-weight: 700;
  font-size: 1.06rem;
  box-shadow: 0 12px 24px rgba(120, 75, 97, 0.18);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.hero-card,
.routine-card,
.color-card,
.result-card,
.planner-card,
.ingredient-steps,
.beauty-steps,
.faq-item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(120, 75, 97, 0.2);
  color: var(--text);
}

.checklist-form {
  display: grid;
  gap: 12px;
}

.checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--muted-line);
}

.checklist-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.checklist-check {
  width: 18px;
  height: 18px;
}

.checklist-text {
  outline: none;
  border: 1px dashed transparent;
  border-radius: 8px;
  padding: 4px 6px;
  min-height: 22px;
  line-height: 1.2;
}

.checklist-text:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
}

.checklist-delete {
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  color: #7a3552;
}

.checklist-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
}

.checklist-controls input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffafc;
}

.checklist-controls button {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(110deg, var(--button-main), var(--button-alt));
  color: #2a1120;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #7a3552 !important;
  border: 1px solid var(--muted-line) !important;
}

.hero-card li {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions button {
  min-width: 148px;
}

.menu-btn {
  border: none;
}

.theme-picker {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-picker label {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.theme-picker input,
.theme-picker select {
  width: 100%;
  max-width: none;
}

.theme-picker input[type="range"] {
  width: 100%;
  accent-color: var(--button-main);
}

.settings-card {
  max-width: 760px;
}

.settings-lock-card {
  max-width: 760px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.settings-lock-card strong {
  font-size: 1.08rem;
}

.settings-lock-card button {
  width: auto;
  min-width: 148px;
}

.theme-picker .theme-presets,
.theme-picker .settings-actions {
  grid-column: 1 / -1;
}

.theme-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-presets .chip-btn {
  width: auto;
  background: rgba(255, 255, 255, 0.6);
  color: #6c3248;
  border: 1px solid var(--line);
}

.toggle-btn {
  width: 120px;
  justify-self: start;
  background: linear-gradient(110deg, var(--button-main), var(--button-alt));
}

.toggle-btn.is-off {
  background: rgba(255, 255, 255, 0.72);
  color: #7a3552;
  border: 1px solid var(--muted-line);
}

.theme-picker label span {
  margin-left: 6px;
  color: var(--text-soft);
  font-size: 0.92em;
}

.hero-slide-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-slide-list li {
  color: var(--text-soft);
}

.hero-actions .cta {
  width: auto;
}

.result-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 10px;
}

.section-title h2,
.split-text h2,
#planner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.section-title p {
  color: var(--text-soft);
}

.routine-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.color-grid {
  grid-template-columns: repeat(4, 1fr);
}

.routine-card h3 {
  margin: 0 0 10px;
}

.color-card {
  display: grid;
  gap: 10px;
}

.color-card p {
  color: var(--text-soft);
  margin: 0;
}

.beauty-tip-grid {
  grid-template-columns: repeat(3, 1fr);
}

.routine-card p {
  color: var(--text-soft);
  margin: 8px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

.split-text p {
  color: var(--text-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-list span {
  background: rgba(255, 163, 186, 0.24);
  color: #6c3b4f;
  border: 1px solid rgba(120, 55, 78, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.93rem;
}

.ingredient-steps {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.ingredient-steps li {
  color: var(--text-soft);
}

.planner-card {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.ingredient-search-card,
.color-test-card {
  margin-top: 18px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field label,
.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input[type="text"],
select,
button {
  font: inherit;
}

.field input[type="text"] {
  width: min(420px, 100%);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffafc;
  color: var(--text);
}

.product-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.search-helper-card {
  grid-column: 1 / -1;
}

.product-tile {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  align-items: start;
}

.google-image-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--muted-line);
  color: #5f2f46;
  font-size: 0.84rem;
}

.google-image-link:hover {
  opacity: 0.9;
}

.product-tile .product-body {
  display: grid;
  gap: 6px;
}

.product-tile h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-meta .tag {
  background: rgba(255, 255, 255, 0.72);
}

#search-result-empty {
  margin-top: 10px;
  color: var(--text-soft);
}

#search-result-empty strong {
  color: var(--text);
}

.faq-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}

.faq-col {
  display: grid;
  gap: 10px;
}

.ingredient-search-result {
  display: grid;
  gap: 12px;
}

.ingredient-result-card h3 {
  margin: 6px 0 0;
}

.beauty-steps {
  margin: 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
}

.beauty-steps li {
  line-height: 1.45;
}

.checkboxes {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
}

select {
  width: min(420px, 100%);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff7fb;
  color: var(--text);
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--muted-line);
  color: #5a3243;
}

.product-row {
  display: grid;
  gap: 2px;
}

.product-row strong {
  color: #4f2638;
}

.product-title {
  color: #4f2638;
}

.product-note {
  color: #7a4d60;
  font-size: 0.9rem;
}

.product-thumb {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(120, 70, 90, 0.25);
  background: #fff4f9;
}

.face-preview-wrap {
  display: grid;
  place-items: center;
}

.face-preview {
  width: 100%;
  max-width: 252px;
  border-radius: 20px;
  border: 1px solid rgba(120, 70, 90, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--swatch);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(120, 70, 90, 0.16);
}

.price-tag {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #ffdae2;
  border: 1px solid rgba(255, 120, 161, 0.36);
  color: #7a3454;
  font-weight: 700;
}

#beauty-lab .split-text p {
  margin-bottom: 12px;
}

#color-guide p {
  color: #7a3e55;
}

button {
  border: none;
  background: linear-gradient(110deg, var(--button-main), var(--button-alt));
  color: #2a1120;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  width: fit-content;
  cursor: pointer;
}

.tone-chip-grid {
  display: grid;
  gap: 14px;
}

.tone-group {
  display: grid;
  gap: 10px;
}

.tone-group-title {
  margin: 0;
  font-size: 0.95rem;
  color: #7a4258;
  font-weight: 700;
}

.tone-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tone-chip {
  position: relative;
  display: inline-flex;
}

.tone-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tone-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tone-chip input:checked + span {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), var(--button-alt));
  border-color: rgba(255, 95, 132, 0.45);
  color: #592536;
  transform: translateY(-1px);
}

.tone-chip span:hover {
  transform: translateY(-1px);
}

.color-test-questions {
  display: grid;
  gap: 18px;
}

.color-test-question {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 24px rgba(120, 75, 97, 0.12);
}

.color-test-title {
  margin: 0 0 10px;
  width: 100%;
  max-width: 100%;
  font-weight: 700;
  color: #5a2f42;
  font-size: 1.04rem;
  line-height: 1.45;
  white-space: normal;
  word-break: keep-all;
}

.question-helper {
  margin: 10px 0 0;
  color: #7a5262;
  font-size: 0.96rem;
  line-height: 1.55;
}

.color-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.scale-option {
  position: relative;
  display: flex;
}

.scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-option span {
  width: 100%;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--muted-line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
  line-height: 1.35;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 16px rgba(120, 75, 97, 0.08);
}

.scale-option span:hover {
  transform: translateY(-1px);
}

.scale-option input:checked + span {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), var(--button-alt));
  border-color: rgba(255, 95, 132, 0.45);
  color: #5a2638;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 111, 145, 0.18);
}

#color-test .hero-actions {
  margin-top: 8px;
}

#color-test .hero-actions button {
  min-width: 172px;
  min-height: 54px;
  font-size: 1rem;
}

#color-test-result h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.result-card {
  margin-top: 16px;
  min-height: 120px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.result-list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--text-soft);
}

.result-list li {
  margin: 7px 0;
}

.result-box {
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.faq-item {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px;
  list-style: none;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-soft);
}

.faq-item[open] {
  border-color: rgba(255, 95, 132, 0.5);
}

.footer {
  margin-top: 60px;
  text-align: center;
  color: #8a5267;
  font-size: 0.9rem;
  padding: 20px 16px 42px;
}

.sound-credit {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #9c6b7e;
  word-break: break-all;
}

.admin-access-row {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 252, 0.65);
  border: 1px solid var(--muted-line);
}

#admin-status-label {
  color: #8a5267;
  font-size: 0.9rem;
}

.scroll-top-button {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--button-main), var(--button-alt));
  color: #4d2233;
  box-shadow: 0 14px 24px rgba(120, 75, 97, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top-icon {
  width: 24px;
  height: 24px;
  stroke: #6f2d46;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.scroll-top-icon path:last-child {
  fill: #ffb3c7;
  stroke: #ff8aa8;
  stroke-width: 1.2;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.staggered {
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 980px) {
  .site-header,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: sticky;
    top: 10px;
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-menu {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-copy-block {
    padding-top: 0;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-stat-card {
    grid-template-columns: 1fr;
  }

  .routine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .theme-picker {
    grid-template-columns: 1fr;
  }

  .color-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    width: min(100%, calc(100% - 28px));
  }

  .color-test-question {
    padding: 16px;
  }

  .color-test-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 8px 12px 28px;
    gap: 20px;
  }

  .site-header,
  .top-nav {
    position: sticky;
    top: 4px;
    width: calc(100% - 8px);
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 12px 12px;
    border-radius: 20px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .header-menu.single-row-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 4px 0 0;
    gap: 8px;
  }

  .site-header.is-open .header-menu.single-row-menu,
  .top-nav.is-open .header-menu.single-row-menu {
    display: flex;
  }

  .hamburger-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-top: 0;
    align-self: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .header-link,
  .top-nav .header-menu button {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.92rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--muted-line);
  }

  .brand-logo {
    height: 42px;
  }

  .hero-inner {
    margin-top: 4px;
    gap: 16px;
  }

  .hero h1 {
    margin: 6px 0;
    font-size: clamp(1.5rem, 7vw, 2.05rem);
    line-height: 1.18;
  }

  .hero-copy,
  .section-title p,
  .result-meta,
  .product-note {
    font-size: 0.96rem;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .spotlight-card,
  .hero-card,
  .routine-card,
  .color-card,
  .result-card,
  .planner-card,
  .ingredient-steps,
  .beauty-steps,
  .faq-item {
    padding: 16px;
    border-radius: 14px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-ad-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .admin-access-row {
    width: 100%;
    padding: 12px;
  }

  .ad-box-shell {
    min-height: 120px;
    padding: 10px;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .feature-entry {
    padding: 18px 16px;
  }

  .routine-grid {
    grid-template-columns: 1fr;
  }

  .color-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h2 {
    margin-top: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .cta,
  .hero-actions button,
  .hero-actions a {
    width: 100%;
    min-width: 0;
  }

  .cta {
    min-height: 54px;
    padding: 14px 18px;
    font-size: 1rem;
  }

  .checklist-controls {
    grid-template-columns: 1fr;
  }

  .field input[type="text"],
  select,
  .toggle-btn {
    width: 100%;
  }

  .checkboxes {
    display: grid;
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-tile {
    padding: 12px;
    gap: 10px;
  }

  .product-thumb {
    height: 150px;
  }

  .product-meta {
    gap: 6px;
  }

  .tag,
  .price-tag,
  .google-image-link {
    font-size: 0.8rem;
  }

  .face-preview {
    max-width: 100%;
  }

  .color-swatches {
    gap: 8px;
  }

  .color-swatch {
    width: 28px;
    height: 28px;
  }

  .tone-group-chips {
    gap: 8px;
  }

  .tone-chip span {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .section-title h2,
  .split-text h2,
  #planner h2 {
    font-size: 1.34rem;
  }

  .container {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .color-test-questions {
    gap: 14px;
  }

  .color-test-question {
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .color-test-title {
    font-size: 0.97rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .question-helper {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .color-scale {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .scale-option span {
    min-height: 56px;
    padding: 12px 12px;
    font-size: 0.94rem;
  }

  #color-test .hero-actions {
    grid-template-columns: 1fr;
  }

  #color-test .hero-actions button {
    width: 100%;
    min-width: 0;
  }

}
