/* =========================================================
   Pledge + Login
   ========================================================= */
.home-page {
  --ink: #1b2340;
  --ink-soft: #4b5373;
  --gold: #c99a1e;
  --gold-dark: #a67c12;
  --gold-soft: #f7edd0;
  --paper: #ffffff;
  --line: #e4e7f0;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;

  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
  background:
    radial-gradient(820px 420px at 88% -12%, rgba(201, 154, 30, 0.12), transparent 62%),
    radial-gradient(720px 420px at -10% 112%, rgba(27, 35, 64, 0.06), transparent 60%),
    linear-gradient(180deg, #fdfcf8 0%, #f5f2ea 100%);
}

.home-container {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.home-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  border: 1px solid rgba(27, 35, 64, 0.08);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(24px, 4vw, 36px);
  box-shadow:
    0 30px 70px -34px rgba(27, 35, 64, 0.45),
    0 2px 6px rgba(27, 35, 64, 0.05);
}

.home-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #c99a1e, #e8cd70, #c99a1e);
}

.home-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--ink);
  margin: 0 0 8px;
}

.home-sub {
  text-align: center;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  padding: 12px 14px;
  background: #fbfaf5;
  border: 1px solid #f0ead9;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-list li:hover {
  background: #ffffff;
  border-color: #e6dcc0;
  transform: translateX(2px);
}

.home-list li .home-ico {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 154, 30, 0.16);
  color: var(--gold-dark);
  font-size: 12px;
  line-height: 1;
  margin-top: 1px;
}

.home-agree {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fbf6e9;
  border: 1px solid #efe2bd;
  border-radius: 14px;
}

.home-agree .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 0;
  margin: 0;
}

.home-agree .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 2px 0 0 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
}

.home-agree .form-check-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 30, 0.22);
}

.home-agree .form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.home-agree .form-check-label {
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.home-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.home-google-wrap {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.home-google-btn,
.home-guest-btn {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.home-google-btn {
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #ffffff;
  border: 1.5px solid #d9dce8;
  box-shadow: 0 2px 6px rgba(27, 35, 64, 0.05);
}

.home-google-btn:hover:not(.disabled) {
  border-color: rgba(201, 154, 30, 0.6);
  background: #fffdf6;
  box-shadow: 0 8px 22px -10px rgba(27, 35, 64, 0.3);
  transform: translateY(-1px);
}

.home-google-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-google-btn .home-g-logo {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.home-btn-main {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3c4043;
}

.home-guest-btn {
  min-height: 52px;
  padding: 14px 20px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #1b2340 0%, #2c3658 100%);
  border: 1px solid #1b2340;
  box-shadow: 0 12px 26px -14px rgba(27, 35, 64, 0.7);
}

.home-guest-btn .home-btn-main {
  color: #ffffff;
}

.home-guest-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(27, 35, 64, 0.75);
}

.home-guest-btn:disabled {
  color: #9aa1bb;
  background: #eef0f6;
  border-color: #e2e5ef;
  box-shadow: none;
  opacity: 0.75;
  cursor: not-allowed;
}

.home-guest-btn:disabled .home-btn-main {
  color: #9aa1bb;
}

.home-guest-btn:focus-visible,
.home-google-btn:focus-visible {
  outline: 3px solid rgba(201, 154, 30, 0.4);
  outline-offset: 2px;
}

.home-guest-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-guest-inner i {
  font-size: 18px;
  color: var(--gold);
}

.home-guest-btn:disabled .home-guest-inner i {
  color: #b9bfd2;
}

.home-page .lee-footer {
  margin-top: 24px;
  font-size: 0.82rem;
}

/* =========================================================
   Guest Details Modal
   ========================================================= */
.home-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 64, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1050;
}

.home-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 30px 26px;
  font-family: var(--font-body);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(27, 35, 64, 0.45);
  animation: leeFadeIn 0.25s ease;
}

.home-modal::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #c99a1e, #e8cd70, #c99a1e);
}

.home-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-modal-close:hover {
  background: #f2f3f8;
  color: var(--ink);
}

.home-modal-head {
  text-align: center;
  margin-bottom: 22px;
  padding: 0 14px;
}

.home-modal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 21px;
  margin-bottom: 12px;
}

.home-modal-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.home-field {
  margin-bottom: 16px;
}

.home-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.home-input-wrap {
  position: relative;
}

.home-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 16px;
  pointer-events: none;
}

.home-input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 42px;
  font-size: 16.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-input::placeholder {
  color: #9aa1bb;
}

.home-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 30, 0.22);
}

.home-input.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.home-error {
  margin-top: 6px;
  font-size: 13px;
  color: #c0392b;
}

.home-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-submit-btn:hover {
  background: #2a3557;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(27, 35, 64, 0.7);
}

.home-submit-btn:focus-visible {
  outline: 3px solid rgba(201, 154, 30, 0.4);
  outline-offset: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .home-page {
    padding: 20px 14px;
  }
  .home-card {
    padding: 26px 18px 22px;
    border-radius: 18px;
  }
  .home-title {
    font-size: 1.75rem;
  }
  .home-sub {
    font-size: 0.98rem;
  }
  .home-list li {
    font-size: 1rem;
    padding: 11px 12px;
    gap: 12px;
  }
  .home-agree {
    padding: 14px;
  }
  .home-modal {
    padding: 26px 20px 22px;
  }
  .home-modal-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .home-title {
    font-size: 1.55rem;
  }
  .home-list li {
    font-size: 0.95rem;
    gap: 10px;
  }
  .home-list li .home-ico {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}
