/* Insider List Modal Styles */

/* ── Overlay ── */
.insider-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}

.insider-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel ── */
.insider-panel {
  position: relative;
  background: #F5F3EF;
  width: 90vw;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 55% 45%;
  transform: translateY(24px);
  transition: transform 300ms ease-out;
}

.insider-overlay.is-open .insider-panel {
  transform: translateY(0);
}

/* ── Close button ── */
.insider-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 24px;
  color: #1C2B3A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 150ms;
  z-index: 1;
}
.insider-close:hover { opacity: 1; }

/* ── Left panel ── */
.insider-left {
  padding: 56px 48px 56px 56px;
  border-right: 1px solid #E5E0D8;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insider-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C4956A;
  margin: 0;
}

.insider-headline {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  color: #1C2B3A;
  margin: 0;
}

.insider-subheadline {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #6B7280;
  margin: 0;
}

.insider-list-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 0 0 -8px;
}

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

.insider-list li {
  font-size: 14px;
  line-height: 1.55;
  color: #1C2B3A;
  padding-left: 16px;
  position: relative;
}

.insider-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #C4956A;
  font-size: 18px;
  line-height: 1.2;
}

.insider-social-proof {
  font-size: 13px;
  color: #6B7280;
  font-style: italic;
  margin: 0;
  border-top: 1px solid #E5E0D8;
  padding-top: 20px;
}

.insider-frequency {
  font-size: 11px;
  color: #6B7280;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── Right panel ── */
.insider-right {
  padding: 56px 48px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insider-form-headline {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 400;
  color: #1C2B3A;
  margin: 0 0 8px;
}

.insider-form-subtext {
  font-size: 14px;
  line-height: 1.55;
  color: #6B7280;
  margin: 0 0 28px;
}

/* ── Form fields ── */
.insider-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.insider-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insider-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
}

.insider-optional {
  opacity: 0.6;
}

.insider-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* 16px prevents iOS zoom */
  color: #1C2B3A;
  background: #FAFAF8;
  border: 1px solid #D1CBC0;
  border-radius: 2px;
  outline: none;
  transition: border-color 150ms;
  font-family: inherit;
}

.insider-input:focus {
  border-color: #1C2B3A;
  background: #FFFFFF;
}

.insider-input::placeholder {
  color: #B0A89E;
}

.insider-error {
  font-size: 12px;
  color: #C0392B;
  min-height: 16px;
}

/* ── Submit button ── */
.insider-submit {
  width: 100%;
  padding: 14px 20px;
  background: #1C2B3A;
  color: #F5F3EF;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms;
  font-family: inherit;
  margin-top: 4px;
}

.insider-submit:hover:not(:disabled) {
  background: #2E4057;
}

.insider-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Fine print ── */
.insider-fine-print {
  font-size: 11px;
  color: #B0A89E;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.insider-privacy {
  font-size: 11px;
  color: #B0A89E;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin: 0;
}

.insider-api-error {
  font-size: 13px;
  color: #C0392B;
  line-height: 1.5;
}

.insider-api-error a {
  color: #C0392B;
}

/* ── Success state ── */
.insider-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  outline: none;
}

.insider-success-headline {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 36px;
  font-weight: 400;
  color: #1C2B3A;
  margin: 0;
}

.insider-success-body {
  font-size: 15px;
  line-height: 1.65;
  color: #6B7280;
  margin: 0;
}

.insider-success-link {
  font-size: 14px;
  color: #C4956A;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.insider-success-link:hover {
  text-decoration: underline;
}

.insider-success-close {
  font-size: 11px;
  color: #B0A89E;
  margin: 0;
}

/* ── Nav button ── */
.insider-cta {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-serif, Georgia, serif);
  color: #1C2B3A;
  background: transparent;
  border: 1px solid #1C2B3A;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
  white-space: nowrap;
}

.insider-cta:hover {
  background: #1C2B3A;
  color: #F5F3EF;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .insider-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .insider-left {
    padding: 48px 28px 32px;
    border-right: none;
    border-bottom: 1px solid #E5E0D8;
    gap: 16px;
  }

  .insider-headline {
    font-size: 32px;
  }

  .insider-right {
    padding: 32px 28px 48px;
  }

  .insider-close {
    top: 16px;
    right: 16px;
  }
}
