/* =========================================================
   JIRITSU COMING SOON LANDING PAGE
   Design tokens:
   - Primary: #344A12 (Dark Olive)
   - Secondary: #7A6B3C (Warm Earth / Bronze)
   - Background: #FCF8EF (Parchment White)
   - Card Surface: #FFFDF8
   - Text Primary: #1D2710
   - Text Muted: #6E685D
   - Outline: #DED1B7
   ========================================================= */

:root {
  --color-primary: #344A12;
  --color-primary-hover: #26380c;
  --color-secondary: #7A6B3C;
  --color-bg: #FCF8EF;
  --color-surface: #FFFDF8;
  --color-surface-muted: #F4EEDF;
  --color-text: #1D2710;
  --color-text-muted: #6E685D;
  --color-outline: #DED1B7;
  --color-outline-focus: #7A6B3C;
  --color-error: #B3261E;
  --color-success: #486321;
  --color-scrim: rgba(24, 32, 13, 0.72);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 25px 70px -15px rgba(15, 22, 9, 0.65), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #0d1408;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  padding: 24px 16px;
}

/* Background image & moody scrim */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) contrast(1.05);
  transform: scale(1);
  transition: transform 10s ease-out;
}

.bg-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 28, 11, 0.55) 0%, rgba(10, 15, 6, 0.88) 100%);
  backdrop-filter: blur(2px);
}

/* Page Container */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

.card-wrapper {
  position: relative;
}

/* Main Card */
.card {
  position: relative;
  background-color: var(--color-surface);
  background-image: radial-gradient(rgba(244, 238, 223, 0.4) 1px, transparent 0);
  background-size: 28px 28px;
  border-radius: var(--radius-lg);
  padding: 68px 72px 52px 72px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(222, 209, 183, 0.55);
  text-align: center;
  overflow: hidden;
  animation: fadeInCard 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .card {
    padding: 44px 24px 36px 24px;
  }
}

/* Brand Header */
.brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.logo-box {
  width: 150px;
  max-width: 100%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0.95);
}

.tagline {
  font-size: 12px;
  letter-spacing: 3.5px;
  font-weight: 500;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

.divider-line {
  width: 44px;
  height: 1.5px;
  background-color: var(--color-outline);
  margin-top: 16px;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 2;
  margin-bottom: 44px;
}

.main-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}

@media (max-width: 640px) {
  .main-title {
    font-size: 36px;
  }
}

.sub-headline {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
}

/* Form Styles */
.waitlist-form {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 6px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background-color: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-outline);
  border-radius: 0;
  padding: 10px 4px 12px 4px;
  outline: none;
  transition: all 0.25s ease;
}

.input-wrapper input::placeholder {
  color: #b0a99c;
  font-weight: 400;
  opacity: 0.7;
}

.input-wrapper input:focus {
  border-bottom-color: var(--color-primary);
}

.input-wrapper.error input {
  border-bottom-color: var(--color-error);
}

.error-msg {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-error);
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.input-group.has-error .error-msg,
.consent-group.has-consent-error #consentError,
.consent-group.has-privacy-error #privacyError {
  display: block;
}

/* Checkbox & Consent */
.consent-group {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-indicator {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-outline);
  border-radius: 4px;
  background-color: #FFFFFF;
  margin-top: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-indicator {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-indicator::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  padding: 0;
  transition: color 0.15s ease;
}

.link-button:hover {
  color: var(--color-secondary);
}

/* Submit CTA Button */
.action-row {
  display: flex;
  justify-content: center;
}

.submit-btn {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: #FFFDF8;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 15px 44px;
  font-size: 14px;
  letter-spacing: 2.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  box-shadow: 0 4px 14px rgba(52, 74, 18, 0.25);
}

.submit-btn:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 74, 18, 0.35);
}

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

.submit-btn.loading .btn-text {
  visibility: hidden;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Box */
.success-box {
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  margin: 20px auto;
  max-width: 580px;
  animation: fadeInSuccess 0.5s ease-out forwards;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-success);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 16px auto;
}

.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.success-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Card Footer */
.card-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(222, 209, 183, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-muted);
}

.legal-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.legal-link:hover {
  color: var(--color-primary);
}

.sep {
  color: var(--color-outline);
}

/* =========================================================
   MODAL: ADATKEZELÉSI TÁJÉKOZTATÓ
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 22, 9, 0.78);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background-color: var(--color-surface);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-outline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from {
    transform: translateY(25px) scale(0.97);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface-muted);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--color-text);
}

.modal-content {
  padding: 24px 28px;
  overflow-y: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.65;
}

.modal-intro {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.policy-section {
  margin-bottom: 22px;
}

.policy-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(222, 209, 183, 0.4);
  padding-bottom: 4px;
}

.policy-section ul {
  padding-left: 20px;
  margin-top: 6px;
}

.policy-section li {
  margin-bottom: 4px;
}

.policy-section code {
  background-color: var(--color-surface-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-secondary);
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--color-outline);
  background-color: var(--color-surface-muted);
  display: flex;
  justify-content: flex-end;
}

.modal-primary-btn {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: #FFFDF8;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-primary-btn:hover {
  background-color: var(--color-primary-hover);
}
