:root {
  --blue: #1261ee;
  --blue-dark: #0644c8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --surface: #ffffff;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
}

* {
  box-sizing: border-box;
}

.floating-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 580px;
  height: 86px;
  padding: 10px 24px 0;
  background: #1261ee;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-logo {
  display: block;
  height: 36px;
  width: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  height: 36px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  color: #1261ee;
  background: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.header-phone-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

.header-proof {
  margin: auto -24px 0;
  padding: 6px 14px 7px;
  color: #1261ee;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.header-phone:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .floating-header {
    height: 82px;
    padding: 8px 14px 0;
  }

  .header-main {
    gap: 10px;
  }

  .floating-logo {
    height: 30px;
  }

  .header-phone {
    min-width: 92px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .header-phone-icon {
    font-size: 13px;
  }

  .header-proof {
    margin: auto -14px 0;
    padding: 5px 8px 6px;
    font-size: 10px;
    line-height: 1.2;
  }
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #ffffff;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 86px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.landing-frame {
  position: relative;
  width: min(100vw, 580px);
  background: #fff;
}

.landing-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.countdown-overlay {
  position: absolute;
  top: 22%;
  left: 4%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 89%;
  height: 2.1%;
  padding: 0 2.2%;
  color: #175fec;
  background: transparent;
  pointer-events: none;
}

.countdown-numbers {
  display: grid;
  grid-template-columns: 1fr 0.1fr 1fr 0.1fr 1fr 0.1fr 1fr;
  align-items: end;
  width: 82%;
  margin: 0 auto;
  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    "Helvetica Neue Condensed Black",
    "Aptos Narrow",
    Impact,
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(30px, 8.7vw, 50px);
  font-weight: 900;
  font-stretch: condensed;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.countdown-value,
.countdown-separator {
  display: block;
  transform: scaleX(0.84);
  transform-origin: center;
}

.countdown-separator {
  color: #a6c6ed;
  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    "Aptos Narrow",
    Arial,
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 900;
}

.countdown-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 82%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 1.2%;
  color: #9fc3ed;
  font-size: clamp(12px, 3.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.lead-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lead-hotspot:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(18, 97, 238, 0.72);
}

.hotspot-coupon {
  top: 18.7%;
  left: 28%;
  width: 66%;
  height: 5.1%;
  border-radius: 44px;
}

.hotspot-benefits {
  top: 55.55%;
  left: 13%;
  width: 82%;
  height: 1.2%;
}

.hotspot-final {
  top: 86.9%;
  left: 20%;
  width: 60%;
  height: 1.25%;
}

.company-footer {
  width: min(100vw, 580px);
  background: #fff;
  color: #4b5563;
}

.company-inner {
  width: min(100%, 820px);
  padding: 48px 40px 52px;
}

.company-brand {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.company-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.company-info {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.company-info div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.company-info dt,
.company-info dd {
  margin: 0;
}

.business-row {
  gap: 0 16px;
}

.business-check {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
  margin-left: 16px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
  font-size: 22px;
}

.company-copyright {
  margin: 24px 0 0;
  color: #000;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  animation: backdropFade 0.3s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 95vh;
  padding: 28px 24px 32px;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  animation: bottomSheetSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bottomSheetSlide {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes backdropFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  animation: backdropFade 0.25s ease-out;
}

.success-modal-backdrop[hidden] {
  display: none;
}

.success-modal {
  width: min(100%, 360px);
  padding: 36px 28px 28px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: successPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.success-modal h2 {
  margin: 0 0 12px;
  color: #0b1220;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.success-message {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}

.success-message strong {
  color: #1261ee;
  font-weight: 800;
}

.success-confirm {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #1972ff 0%, #0957e6 100%);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 97, 238, 0.28);
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #334155;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.lead-modal h1 {
  margin: 0 0 22px;
  padding-right: 32px;
  color: #0b1220;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.choice-group legend {
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 97, 238, 0.12);
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.choice-group label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #1e293b;
  background: #f8fbff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-group label:has(input:checked) {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #eaf2ff;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-group label:has(input:focus-visible) {
  outline: 3px solid rgba(18, 97, 238, 0.24);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 2px 0;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.consent-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.consent-text strong {
  color: var(--blue);
  font-weight: 800;
}

.consent-detail {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-detail:hover {
  color: var(--blue-dark);
}

.privacy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  animation: backdropFade 0.25s ease-out;
}

.privacy-modal-backdrop[hidden] {
  display: none;
}

.privacy-modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: 88vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: successPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.privacy-header {
  position: relative;
  flex-shrink: 0;
  padding: 22px 56px 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.privacy-header h2 {
  margin: 0;
  color: #0b1220;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.privacy-header .modal-close {
  top: 14px;
  right: 14px;
}

.privacy-body {
  flex: 1;
  padding: 18px 22px 8px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.privacy-body h3 {
  margin: 22px 0 10px;
  color: #0b1220;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.privacy-body h3:first-child {
  margin-top: 0;
}

.privacy-body p {
  margin: 0 0 12px;
}

.privacy-table {
  width: 100%;
  margin: 8px 0 12px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-table th,
.privacy-table td {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.privacy-table th {
  color: #0b1220;
  background: #f8fafc;
  font-weight: 800;
  white-space: nowrap;
}

.privacy-note {
  margin: 12px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-footer-note {
  margin: 16px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.privacy-confirm {
  flex-shrink: 0;
  margin: 12px 22px 22px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #1972ff 0%, #0957e6 100%);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 97, 238, 0.28);
}

.submit-button {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #1972ff 0%, #0957e6 100%);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(18, 97, 238, 0.28);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status.is-error {
  color: #dc2626;
}

.form-status.is-success {
  color: #1261ee;
  font-weight: 800;
}

/* Floating Banner */
.floating-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.floating-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 480px);
  min-height: 60px;
  padding: 0 32px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #1972ff 0%, #0957e6 100%);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 
    0 8px 24px rgba(18, 97, 238, 0.35),
    0 2px 8px rgba(18, 97, 238, 0.2);
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(18, 97, 238, 0.4),
    0 4px 12px rgba(18, 97, 238, 0.25);
}

.floating-cta:active {
  transform: translateY(0);
}

.floating-cta-text {
  display: block;
}

.floating-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-right 1.5s ease-in-out infinite;
}

@keyframes bounce-right {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding-top: 82px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .floating-banner {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .floating-cta {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 16px;
  }

  .countdown-overlay {
    left: 5%;
    width: 92%;
    height: 2.05%;
    padding: 0 1.6%;
  }

  .countdown-numbers {
    width: 84%;
    font-size: clamp(30px, 8.9vw, 43px);
  }

  .countdown-labels {
    width: 84%;
    font-size: clamp(12px, 3.6vw, 16px);
  }

  .lead-modal {
    padding: 24px 18px 20px;
    border-radius: 20px 20px 0 0;
  }

  .lead-modal h1 {
    font-size: 21px;
  }

  .privacy-modal-backdrop {
    padding: 0;
  }

  .privacy-modal {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .privacy-header {
    padding: 18px 52px 14px 18px;
  }

  .privacy-header h2 {
    font-size: 16px;
  }

  .privacy-body {
    padding: 16px 18px 4px;
    font-size: 12.5px;
  }

  .privacy-body h3 {
    font-size: 13.5px;
  }

  .privacy-table {
    font-size: 11.5px;
  }

  .privacy-table th,
  .privacy-table td {
    padding: 6px 7px;
  }

  .privacy-confirm {
    margin: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .consent-row {
    font-size: 12.5px;
  }

  .consent-detail {
    font-size: 12.5px;
  }

  .company-inner {
    padding: 28px 20px 32px;
  }

  .company-brand {
    margin-bottom: 16px;
  }

  .company-logo {
    width: min(100%, 180px);
  }

  .company-info {
    gap: 8px;
    font-size: 12px;
  }

  .company-info div {
    display: block;
  }

  .company-info dt,
  .company-info dd {
    display: inline;
  }

  .business-check {
    display: inline-flex;
    min-height: 32px;
    margin-left: 8px;
    padding: 0 10px;
    font-size: 14px;
  }

  .company-copyright {
    margin-top: 16px;
    font-size: 11px;
  }
}
