/* ── Variables ── */
:root {
  --gold: #F9AF36;
  --gold-light: #FDE8C4;
  --dark: #0D0B08;
  --dark-2: #13100B;
  --dark-3: #1B1610;
  --text: #F0E6D4;
  --heading: #FDE8C4;
  --muted: #C8B8A0;
  --border: #5C3D1A;
  --border-2: #3A2612;
  --green: #27ae60;
  --red: #E05040;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--heading);
  font-weight: normal;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

/* ── Hero ── */
#hero {
  text-align: center;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border-2);
}

.hero-logo {
  height: 48px;
  width: auto;
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(249,175,54,0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  background: rgba(249,175,54,0.08);
  box-shadow: 0 0 16px rgba(249,175,54,0.15);
  text-decoration: none;
}

/* ── Benefits ── */
#benefits {
  border-bottom: 1px solid var(--border-2);
}

.section-label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: var(--dark-2);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.benefit-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Social Proof ── */
#social-proof {
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-2);
}

.member-count {
  font-family: Georgia, serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 4px;
}

.member-count-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.testimonial {
  font-style: italic;
  color: var(--text);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonial-author {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

/* ── Pricing ── */
#pricing {
  border-bottom: 1px solid var(--border-2);
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--dark-2);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: center;
}

.pricing-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.pricing-amount {
  font-family: Georgia, serif;
  font-size: 48px;
  color: var(--heading);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F9AF36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.pricing-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-buttons .btn-primary,
.pricing-buttons .btn-secondary {
  width: 100%;
  text-align: center;
}

/* ── Join Section ── */
#join-section {
  border-bottom: 1px solid var(--border-2);
}

.form-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--dark-3);
  border-radius: 4px;
  padding: 4px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.join-tab,
.form-tab {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.join-tab.active,
.form-tab.active {
  background: var(--gold);
  color: var(--dark);
}

.join-tab:hover:not(.active),
.form-tab:hover:not(.active) {
  color: var(--text);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--dark-3);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C8B8A0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type="date"] { color-scheme: dark; }

.form-divider {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 24px 0 16px;
  font-weight: 600;
}

.card-wrapper {
  background: var(--dark-3);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 16px;
  min-height: 50px;
  margin-bottom: 20px;
}

/* Loading state for Square card iframe (shown by js/join.js between page load
   and successful card.attach(); replaced by Square's iframe on success). */
@keyframes cardSpin {
  to { transform: rotate(360deg); }
}

.card-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

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

#form-error {
  background: rgba(196,64,48,0.12);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 14px;
}

#form-success {
  text-align: center;
  padding: 48px 20px;
}

#form-success h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

#form-success p {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 8px;
}

#form-success .success-hint {
  font-size: 13px;
  margin-top: 16px;
}

#form-success .success-hint a {
  color: var(--gold);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(39,174,96,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-message {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ── FAQ ── */
#faq {
  border-bottom: 1px solid var(--border-2);
}

.faq-item {
  border-bottom: 1px solid var(--border-2);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--heading);
  font-family: Georgia, serif;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
.page-footer {
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}

.page-footer a {
  color: var(--muted);
}

.page-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-copy {
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .hero-title {
    font-size: 40px;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card {
    padding: 48px 40px;
  }

  .pricing-buttons {
    flex-direction: row;
    gap: 12px;
  }

  section {
    padding: 72px 0;
  }
}

/* ── Square Web Payments SDK Overrides ── */
.sq-card-message {
  color: var(--muted) !important;
}

/* ── Referral Banner ── */
.referral-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3);
  color: #27ae60; padding: 12px 20px; text-align: center;
  font-size: 14px; font-family: system-ui, sans-serif;
}
.referral-banner strong { color: #FDE8C4; }
