:root {
  --brand: #b00035;
  --brand-dark: #780023;
  --ink: #171217;
  --muted: #756c73;
  --line: #e9e2e4;
  --surface: #ffffff;
  --soft: #f8f3f1;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo",
    Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.landing {
  width: min(100%, 430px);
  margin: 0 auto;
  background: #000;
  position: relative;
  overflow: hidden;
}

.image-stack,
.image-panel {
  position: relative;
  width: 100%;
}

.landing-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.timer-overlay {
  position: absolute;
  z-index: 2;
  top: 22.6%;
  left: 50%;
  width: min(86%, 360px);
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.62);
}

.timer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 4px;
}

.timer span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.timer strong {
  font-size: clamp(24px, 9vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.timer em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.timer i {
  font-style: normal;
  font-size: clamp(20px, 7vw, 34px);
  line-height: 1;
  font-weight: 800;
  opacity: 0.75;
}

.floating-cta {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 400px);
  transform: translateX(-50%);
}

.cta-button,
.submit-button,
.privacy-confirm,
.result-card button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #c6003c 0%, var(--brand) 100%);
  color: #fff;
  min-height: 58px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(176, 0, 53, 0.38);
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-button span {
  font-size: 21px;
  line-height: 1;
}

.sheet-backdrop,
.result-modal,
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
}

.consult-sheet {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  max-height: none;
  overflow-y: visible;
  transform: translateX(-50%);
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  padding: 10px 22px max(24px, env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d7cdd0;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f4edef;
  color: #4d4248;
  font-size: 24px;
  line-height: 1;
}

.sheet-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.consult-sheet h1 {
  margin: 0 0 22px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.consult-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.interest-group legend {
  color: #2c2429;
  font-size: 14px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.interest-group input:focus-visible + span,
.privacy-check input:focus-visible {
  outline: 2px solid rgba(176, 0, 53, 0.28);
  outline-offset: 2px;
}

.interest-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.interest-group legend {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.interest-group label {
  min-width: 0;
}

.interest-group input {
  position: absolute;
  opacity: 0;
}

.interest-group span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3a3036;
  background: var(--soft);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.interest-group input:checked + span {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff5f7;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.privacy-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  background: #f8f3f1;
  color: #41373c;
  font-size: 13px;
  line-height: 1.45;
}

.privacy-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.privacy-check button {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
}

.form-error {
  min-height: 18px;
  margin: -4px 0 0;
  color: #b00035;
  font-size: 13px;
  font-weight: 800;
}

.result-modal,
.privacy-modal {
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.result-card,
.privacy-card {
  width: min(100%, 390px);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-card {
  padding: 30px 22px 22px;
  text-align: center;
}

.result-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.result-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.result-card strong {
  display: block;
  margin: 4px 0;
  color: var(--brand);
  font-size: 26px;
  line-height: 1.2;
}

.result-card button {
  margin-top: 18px;
}

.privacy-card {
  position: relative;
  max-height: 84vh;
  overflow-y: auto;
  padding: 24px 20px 20px;
}

.privacy-card h2 {
  margin: 0 42px 18px 0;
  font-size: 22px;
}

.privacy-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 16px;
}

.privacy-card p,
.privacy-card dd {
  color: #5f555b;
  font-size: 14px;
  line-height: 1.55;
}

.privacy-card dl {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.privacy-card dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f3f1;
}

.privacy-card dt {
  color: #2f252a;
  font-size: 13px;
  font-weight: 900;
}

.privacy-card dd {
  margin: 0;
}

.privacy-confirm {
  margin-top: 12px;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 360px) {
  .timer-overlay {
    width: 90%;
  }

  .timer strong {
    font-size: 25px;
  }

  .consult-sheet {
    padding-left: 18px;
    padding-right: 18px;
  }

  .interest-group span {
    font-size: 13px;
  }
}
