/* 여름 D-day 카피형 다이어트 랜딩 V3 */

:root {
  --pink: #FF1F9C;
  --pink-deep: #E6007E;
  --yellow: #F6EF7A;
  --yellow-soft: #FFF9C9;
  --mint: #DDF5E9;
  --cream: #FFFDF2;
  --ink: #111111;
  --muted: #66625B;
  --white: #FFFFFF;
  --line: rgba(17, 17, 17, 0.12);
  --radius: 10px;
  --max-width: 430px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #F6EF7A 0%, #FFF9C9 34%, #FFFFFF 72%);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 48px;
}

.hero {
  min-height: 258px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #F6EF7A 0%, #FFF9C9 84%, rgba(255, 249, 201, 0) 100%);
}

.hero-inner {
  width: 100%;
}

.dday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(230, 0, 126, 0.1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.headline {
  color: #000000;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  text-shadow: none;
}

.headline span {
  color: var(--pink);
  font-weight: 900;
  font-size: 1.08em;
}

.hero-copy {
  max-width: 360px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-sub {
  display: block;
  margin-top: 6px;
  color: var(--pink-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.card,
.form {
  margin: 18px 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(116, 95, 0, 0.09);
}

.timer-box {
  padding: 18px 16px;
  text-align: center;
  background: linear-gradient(135deg, #2F7D6E, #0F5D4E);
}

.timer-label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.seg {
  min-width: 58px;
  padding: 10px 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.seg .num {
  display: block;
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.seg .unit {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
}

.colon {
  align-self: center;
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
}

.pad {
  padding: 18px;
}

.discount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1.5px solid #FFC2E2;
  border-radius: var(--radius);
  background: #FFF0F8;
}

.discount .pct {
  color: var(--pink);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.discount .txt {
  color: var(--pink-deep);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.benefit-note {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #FFFDF7;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.ref {
  margin: 18px 12px 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(214, 0, 116, 0.14);
}

.ref img {
  display: block;
  width: 100%;
}

.form {
  padding: 20px;
}

.form h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}

.form .hint {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.field {
  width: 100%;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1.5px solid #EEEEEE;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
}

.field:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 31, 156, 0.12);
}

select.field {
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366625B' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.option-group {
  margin: 2px 0 10px;
  padding: 0;
  border: 0;
}

.option-group legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.radio-grid label {
  position: relative;
  min-height: 52px;
}

.radio-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1.5px solid #EEEEEE;
  border-radius: var(--radius);
  background: #FBFCFB;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.radio-grid input:checked + span {
  border-color: var(--pink);
  color: var(--white);
  background: var(--pink);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid #EEEEEE;
  border-radius: var(--radius);
  background: #FBFCFB;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--pink);
}

.privacy-toggle {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--pink-deep);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cta {
  display: block;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 10px 28px rgba(230, 0, 126, 0.35);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.cta:active {
  transform: scale(0.98);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.trust {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 12px 0;
  color: #7A4A64;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.trust .sep {
  display: none;
}

.viewers {
  margin-top: 10px;
  color: #7A4A64;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.viewers b {
  color: var(--pink);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 1.4s infinite;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  outline: none;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #F4F4F4;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal h2 {
  margin: 0 34px 14px 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.modal__body {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.modal__body strong {
  color: var(--ink);
  font-weight: 800;
}

.modal__agree {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #F6F6F6;
}

.modal__agree-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
}

.modal__agree-btn {
  align-self: center;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 8px 20px rgba(230, 0, 126, 0.32);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.modal__agree-btn:active {
  transform: scale(0.98);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@media (max-width: 390px) {
  .hero {
    min-height: 238px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .headline {
    font-size: 31px;
  }

  .dday {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-copy,
  .hero-sub {
    font-size: 14px;
  }

  .seg {
    min-width: 54px;
  }

  .seg .num {
    font-size: 26px;
  }
}
