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

:root {
  --toss-blue: #3182F6;
  --toss-blue-pressed: #1B64DA;
  --toss-blue-light: #E8F2FE;
  --bg-page: #FFFFFF;
  --bg-input: #F2F4F6;
  --bg-input-active: #E8F2FE;
  --text-primary: #191F28;
  --text-secondary: #4E5968;
  --text-tertiary: #8B95A1;
  --border: #E5E8EB;
  --error: #F04452;
}

html, body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', system-ui, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  font-size: 15px;
  line-height: 1.5;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

.toss-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  position: relative;
}

.toss-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.toss-topbar .toss-back {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 8px;
}
.toss-topbar .toss-back::before {
  content: '';
  width: 12px;
  height: 12px;
  border: solid var(--text-primary);
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
  margin-left: 4px;
}

.toss-topbar .toss-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.toss-topbar .toss-brand .brand-name,
.toss-topbar .toss-brand .brand-license {
  font-size: 22px;
  font-weight: 800;
  color: #000;
}

.toss-progress {
  height: 3px;
  background: #F2F4F6;
}
.toss-progress-fill {
  height: 100%;
  background: var(--toss-blue);
  transition: width .3s ease;
}

.toss-content {
  padding: 28px 24px 140px;
  flex: 1;
}

.toss-step-meta {
  font-size: 13px;
  color: var(--toss-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.toss-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  white-space: pre-line;
}

.toss-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form */
.toss-form { display: block; }

.toss-field { margin-bottom: 14px; }
.toss-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.toss-input, .toss-select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 17px;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.toss-input::placeholder, .toss-select::placeholder {
  color: var(--text-tertiary);
}
.toss-input:focus, .toss-select:focus {
  border-color: var(--toss-blue);
  background: #fff;
}

.toss-input-suffix {
  position: relative;
}
.toss-input-suffix .toss-input {
  padding-right: 64px;
}
.toss-input-suffix .suffix-text {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.toss-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6' stroke='%238B95A1' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.toss-multi {
  display: flex;
  gap: 8px;
}
.toss-multi-btn {
  flex: 1;
  height: 56px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s ease;
}
.toss-multi-btn.selected {
  border-color: var(--toss-blue);
  background: var(--toss-blue-light);
  color: var(--toss-blue);
}

.toss-phone {
  display: flex;
  gap: 8px;
  align-items: center;
}
.toss-phone .toss-input {
  text-align: center;
  padding: 0;
  font-weight: 600;
}
.toss-phone .num-first {
  width: 72px;
  flex: none;
  background: #ECEEF0;
  color: var(--text-secondary);
}
.toss-phone .num-mid, .toss-phone .num-last {
  flex: 1;
}
.toss-phone .dash {
  color: var(--text-tertiary);
  font-weight: 600;
}

.toss-code-row {
  display: flex;
  gap: 8px;
}
.toss-code-row .toss-input {
  flex: 1;
}
.toss-secondary-btn {
  flex: none;
  height: 56px;
  padding: 0 18px;
  background: #ECEEF0;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease;
}
.toss-secondary-btn:active { background: #DCE0E5; }
.toss-secondary-btn:disabled {
  background: #F2F4F6;
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.toss-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 14px;
  color: var(--text-secondary);
}
.toss-info-row .qm-btn {
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toss-info-row .qm-btn img { width: 16px; height: 16px; opacity: .5; }

.toss-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.toss-check-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-primary);
}
.toss-check-row input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  margin-right: 12px;
  cursor: pointer;
  flex: none;
  position: relative;
  transition: all .15s ease;
}
.toss-check-row input[type=checkbox]:checked {
  border-color: var(--toss-blue);
  background: var(--toss-blue);
}
.toss-check-row input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.toss-check-row input[type=checkbox]:disabled {
  opacity: 1;
}
.toss-check-row label {
  flex: 1;
  cursor: pointer;
}
.toss-check-row .view-btn {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.toss-check-row .view-btn a { color: inherit; text-decoration: none; }

.toss-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%);
  padding: 24px 16px max(16px, env(safe-area-inset-bottom));
  z-index: 50;
}
.toss-cta-bar-inner {
  max-width: 448px;
  margin: 0 auto;
}
.toss-cta {
  width: 100%;
  height: 56px;
  background: var(--toss-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  letter-spacing: -0.01em;
}
.toss-cta:active { background: var(--toss-blue-pressed); }
.toss-cta:disabled { background: #B0B8C1; cursor: not-allowed; }

/* Landing */
.toss-hero {
  padding: 56px 24px 40px;
  text-align: left;
  background: linear-gradient(180deg, #E8F2FE 0%, #FFFFFF 100%);
}
.toss-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--toss-blue);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.toss-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.toss-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.toss-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid #F2F4F6;
}
.toss-feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--toss-blue-light);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--toss-blue);
  font-size: 18px;
  font-weight: 800;
}
.toss-feature-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.toss-feature-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Completed */
.toss-complete-wrap {
  text-align: center;
  padding: 80px 24px 140px;
}
.toss-complete-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--toss-blue-light);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.toss-complete-icon::after {
  content: '';
  width: 28px; height: 14px;
  border: solid var(--toss-blue);
  border-width: 0 0 4px 4px;
  transform: rotate(-45deg) translateY(-3px);
}
.toss-complete-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.toss-complete-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.toss-complete-desc a {
  color: var(--toss-blue);
  font-weight: 600;
}

.toss-app-promo {
  margin: 40px 24px 0;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 16px;
  text-align: center;
}
.toss-app-promo h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.toss-app-promo .app-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.toss-app-promo .app-btns img {
  height: 40px;
  border-radius: 8px;
}

/* Footer (overrides for sub/copyright.html inline styles) */
.toss-footer { padding: 24px 20px 40px; background: #F9FAFB; }
.toss-footer .wrap { max-width: 480px; margin: 0 auto; }
.toss-footer .wrap > a {
  display: inline-block !important;
  margin: 4px 4px 4px 0 !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: var(--text-secondary) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  width: auto !important;
  border: 1px solid var(--border) !important;
  font-weight: 500 !important;
}
.toss-footer .wrap > a.ad-inquiry {
  background: #8e44ad !important;
  color: #fff !important;
  border-color: #8e44ad !important;
  font-weight: 700 !important;
}
.toss-footer .warning { margin-top: 16px; font-size: 11px; color: var(--text-tertiary); line-height: 1.6; }
.toss-footer .warning p { margin: 6px 0; }
.toss-footer .warning .blue { color: var(--toss-blue); font-weight: 600; }
.toss-footer .bar { display: block; height: 1px; background: var(--border); margin: 16px 0; }
.toss-footer .medium { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }
.toss-footer .gray { color: var(--text-tertiary); font-size: 11px; }
