/* ============================================================
   FestOps.app — Styles
   Festival Operations Software Landing Page
   ============================================================ */

/* --- Tokens --- */
:root {
  --red: #B22222;
  --red-dark: #8B1A1A;
  --red-light: #D44040;
  --blue: #4662B4;
  --blue-dark: #354A8A;
  --yellow: #FFC107;
  --yellow-light: #FFD54F;
  --brown: #B84E31;
  --cream: #FFFBDC;
  --cream-dark: #FFF5C3;
  --white: #FFFFFF;
  --gray-50: #FAFAF7;
  --gray-100: #F5F5F0;
  --gray-200: #E8E8E0;
  --gray-600: #6B6B60;
  --gray-800: #2D2D28;
  --gray-900: #1A1A17;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 960px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
details summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 620px;
  margin: calc(-1 * var(--space-sm)) auto var(--space-lg);
  line-height: 1.65;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--gray-900);
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.logo-dot { color: var(--red); }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header-login {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
}
.header-login:hover {
  color: var(--red);
  text-decoration: none;
}
.header-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover {
  background: var(--red-dark);
  text-decoration: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 2px 8px rgba(178,34,34,0.3);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 16px rgba(178,34,34,0.35);
}

.btn-secondary {
  color: var(--blue);
  background: transparent;
  border: 2px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
}

/* --- Hero --- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background:
    linear-gradient(170deg, var(--cream) 0%, var(--white) 60%);
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(178,34,34,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.hero-note {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: var(--space-xs);
}

/* --- Problem Section --- */
.problems {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.problem-card {
  background: var(--gray-50);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}
.problem-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

/* --- Capabilities Section --- */
.capabilities {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.capability-card {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.capability-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.capability-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--gray-900);
}
.capability-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* --- Product Preview Section --- */
.preview {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.preview-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.preview-img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.preview-caption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
}
.preview-supporting {
  font-size: 0.95rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Lightbox --- */
.preview-card {
  cursor: pointer;
}
.preview-card:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* --- Built For Section --- */
.built-for {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}
.built-for-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.built-for-item {
  text-align: center;
}
.built-for-item .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  border: 2px solid var(--red);
}
.built-for-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.built-for-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  max-width: 280px;
  margin: 0 auto;
}

/* --- Callout (general utility) --- */
.callout {
  background: var(--cream);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  max-width: 640px;
  margin: 0 auto;
}
.callout h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.callout p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.callout ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
  font-size: 0.92rem;
}
.callout ol li { margin-bottom: 0.3rem; }
.callout ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
  font-size: 0.92rem;
  list-style: disc;
}
.callout ul li { margin-bottom: 0.3rem; }

.callout-success {
  border-left-color: #2E7D32;
  background: #F1F8F1;
}

/* --- Not-for note --- */
.not-for-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gray-600);
  text-align: center;
  margin-top: var(--space-md);
}

/* --- Beta Offer Section --- */
.beta-offer {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}
.beta-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.beta-offer-grid .callout {
  max-width: none;
}

/* --- Trust Section --- */
.trust-section {
  padding: var(--space-lg) 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  text-align: center;
}
.trust-items p {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 600;
  margin: 0;
}

/* --- FAQ --- */
.faq {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-sm) 0;
}
.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.4rem 0;
  color: var(--gray-900);
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  padding: 0.3rem 0 0.6rem;
  line-height: 1.6;
}
.faq-item p a { color: var(--blue); }

/* --- Final CTA --- */
.final-cta {
  padding: var(--space-2xl) 0;
  text-align: center;
  background:
    linear-gradient(170deg, var(--white) 0%, var(--cream) 100%);
}
.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}
.final-cta p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--gray-900);
  color: var(--gray-200);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-contact { font-size: 0.88rem; }
.footer-contact a { color: var(--yellow); }
.footer-contact a:hover { color: var(--yellow-light); }
.footer-legal { font-size: 0.78rem; color: var(--gray-600); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .problems-grid,
  .capabilities-grid,
  .preview-grid,
  .beta-offer-grid {
    grid-template-columns: 1fr;
  }
  .built-for-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .trust-items {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }
  .header-cta {
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }
  .header-login {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
  }
  .callout {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.7rem;
  }
  .section-heading {
    font-size: 1.4rem;
  }
}

/* --- Print (hide nav, CTAs) --- */
@media print {
  .site-header, .hero-ctas, .header-cta, .header-login, .final-cta {
    display: none;
  }
}

/* --- Lead Form Section --- */
.lead-form-section {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}

.prospect-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

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

.form-group-full {
  margin-bottom: var(--space-md);
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.3rem;
}

.form-group .required {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70, 98, 180, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--red);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B60' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.form-actions {
  text-align: center;
  margin-top: var(--space-sm);
}

.form-actions .btn {
  min-width: 260px;
}

.form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.form-message-error {
  color: var(--red-dark);
  background: rgba(178, 34, 34, 0.06);
  border: 1px solid rgba(178, 34, 34, 0.15);
}

.form-message a {
  color: var(--red-dark);
  text-decoration: underline;
}

.form-success {
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
  .form-group-full {
    margin-bottom: var(--space-sm);
  }
  .form-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* --- Thank You page --- */
.thank-you-hero {
  padding-bottom: var(--space-lg);
}
