/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
/* Theoria Design System - CSS Variables */

:root {
  /* Light theme colors */
  --background: #FFFCF0;
  --background-focus: #E6E4D9;
  --background-hover: #F2F0E5;
  --background-press: #E6E4D9;
  --border-color: #CECDC3;
  --border-color-focus: #CECDC3;
  --border-color-hover: #CECDC3;
  --border-color-press: #CECDC3;
  --color: #100F0F;
  --color-2: #403E3C;
  --color-focus: #100F0F;
  --color-hover: #B7B5AC;
  --color-press: #100F0F;
  --color-transparent: #100F0F;
  --placeholder-color: #100F0F;
  --outline-color: #63A500;
  --shadow-color: #6F6E69;
  --shadow-color-focus: #6F6E69;
  --shadow-color-hover: #6F6E69;
  --shadow-color-press: #6F6E69;
  --error: #AF3029;
  --green-highlight: #63A500;
  --white-border: #CECDC3;

  /* Semantic color sets */
  --color-set-green: #579101;
  --color-set-yellow: #AD8301;
  --color-set-lichess: #B58863;
  --color-set-orange: #BC5215;
  --color-set-chesscom: #739552;
  --color-set-purple: #5E409D;
  --color-set-cyan: #24837B;
  --color-set-magenta: #A02F6F;
  --color-set-blue: #205EA6;
  --color-set-red: #AF3029;
}

/* Dark theme colors */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #1C1B1A;
    --background-focus: #282726;
    --background-hover: #282726;
    --background-press: #282726;
    --border-color: #403E3C;
    --border-color-focus: #403E3C;
    --border-color-hover: #403E3C;
    --border-color-press: #403E3C;
    --color: #CECDC3;
    --color-2: #878580;
    --color-focus: #CECDC3;
    --color-hover: #575653;
    --color-press: #CECDC3;
    --color-transparent: #CECDC3;
    --placeholder-color: #CECDC3;
    --outline-color: #63A500;
    --shadow-color: #000000;
    --shadow-color-focus: #080703;
    --shadow-color-hover: #080703;
    --shadow-color-press: #080703;
    --error: #D14D41;
    --green-highlight: #63A500;
    --white-border: #F9FAFB;

    /* Color sets remain the same in dark mode */
    --color-set-green: #579101;
    --color-set-yellow: #AD8301;
    --color-set-lichess: #B58863;
    --color-set-orange: #BC5215;
    --color-set-chesscom: #739552;
    --color-set-purple: #5E409D;
    --color-set-cyan: #24837B;
    --color-set-magenta: #A02F6F;
    --color-set-blue: #205EA6;
    --color-set-red: #AF3029;
  }
}

/* Dark theme override */
:root[data-theme="dark"] {
  --background: #1C1B1A;
  --background-focus: #282726;
  --background-hover: #282726;
  --background-press: #282726;
  --border-color: #403E3C;
  --border-color-focus: #403E3C;
  --border-color-hover: #403E3C;
  --border-color-press: #403E3C;
  --color: #CECDC3;
  --color-2: #878580;
  --color-focus: #CECDC3;
  --color-hover: #575653;
  --color-press: #CECDC3;
  --color-transparent: #CECDC3;
  --placeholder-color: #CECDC3;
  --outline-color: #63A500;
  --shadow-color: #000000;
  --shadow-color-focus: #080703;
  --shadow-color-hover: #080703;
  --shadow-color-press: #080703;
  --error: #D14D41;
  --green-highlight: #63A500;
  --white-border: #F9FAFB;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6rem; /* Adjust for sticky header height */
  scroll-behavior: smooth;
}

body {
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--color);
  line-height: 1.5;
}

.marcellus-regular {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-style: normal;
}


/* Utility classes for common patterns */
.button {
  background-color: var(--background);
  color: var(--color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.button:hover {
  background-color: var(--background-hover);
  border-color: var(--border-color-hover);
}

.button:focus {
  outline: 2px solid var(--outline-color);
  outline-offset: 2px;
}

.button:active {
  background-color: var(--background-press);
}

.button-primary {
  background-color: var(--green-highlight);
  color: var(--background);
  border: 1px solid var(--green-highlight);
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.button-primary:hover {
  opacity: 0.9;
}

.error {
  color: var(--error);
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 252, 240, 0.95);
}

.nav-link {
  font-family: 'Marcellus', serif;
  font-size: 1.125rem;
  color: var(--color);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--green-highlight);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sticky-header {
    background-color: rgba(28, 27, 26, 0.95);
  }
}

:root[data-theme="dark"] .sticky-header {
  background-color: rgba(28, 27, 26, 0.95);
}

/* Layout Classes */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-section {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-container {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  padding-top: 0rem;  
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-cta {
  flex-shrink: 0;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  gap: 2rem;
  max-width: 36%;
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  overflow: hidden;
  max-width: 64%;
}

.hero-right img {
  width: 114%;
  height: 114%;
  object-fit: contain;
  object-position: top center;
}

.middle-section {
  background-color: var(--background-hover);
  padding-top: 0rem;
  padding-bottom: 0rem;
}

.bottom-section {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.centered {
  text-align: center;
}

.two-column {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.two-column > * {
  flex: 1;
  min-width: 300px;
}

.three-column {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.three-column > * {
  flex: 1;
  min-width: 250px;
}

/* Typography Classes */
.headline {
  font-family: "Marcellus", serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color);
}

.subheadline {
  font-size: 1.25rem;
  color: var(--color-2);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Component Classes */
.benefit-card {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--green-highlight);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  font-family: "Marcellus", serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color);
}

.benefit-card p {
  color: var(--color-2);
  line-height: 1.6;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--color);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: "✓";
  color: var(--green-highlight);
  font-weight: bold;
  margin-right: 0.75rem;
}

.visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-proof {
  background-color: var(--background);
  border-left: 4px solid var(--green-highlight);
  padding: 1.5rem;
  margin: 0;
  border-radius: 4px;
  flex: 1;
  max-width: 55%;
}

.social-proof p {
  color: var(--color);
  font-style: normal;
  margin-bottom: 0.5rem;
}

.social-proof .author {
  color: var(--color-2);
  font-weight: 300;
  font-style: italic;
}

.social-proof.centered {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem
}

.offer-block {
  background-color: var(--background);
  border: 2px solid var(--green-highlight);
  border-radius: 8px;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 600px;
  text-align: center;
}

.offer-block h3 {
  font-family: "Marcellus", serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color);
}

.offer-block p {
  color: var(--color-2);
  margin-bottom: 1.5rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  color: var(--color);
  font-size: 1.2rem;
}

.about-content h2 {
  font-family: "Marcellus", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--color);
  font-size: 1.125rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

/* Remove default disclosure triangle on all browsers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--green-highlight);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--color-2);
  line-height: 1.6;
}

.footer-links {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-links a {
  color: var(--color-2);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--green-highlight);
}

/* Form Styles */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-weight: 600;
  color: var(--color);
  font-size: 1rem;
}

.form-input {
  background-color: var(--background);
  color: var(--color);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: var(--color-2);
  opacity: 0.6;
}

.form-input:hover {
  border-color: var(--border-color-hover);
  background-color: var(--background-hover);
}

.form-input:focus {
  outline: 2px solid var(--outline-color);
  outline-offset: 0;
  border-color: var(--green-highlight);
  background-color: var(--background);
}

.form-input:focus::placeholder {
  opacity: 0.4;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .headline {
    font-size: 3rem;
    text-align: center;
  }

  .subheadline {
    font-size: 1.125rem;
    text-align: center;
  }

  .two-column,
  .three-column {
    flex-direction: column;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
  }

  .hero-left {
    padding: 3rem 1.5rem;
    display: contents;
  }

  /* Reorder hero elements on mobile */
  .hero-left > *:nth-child(1) {
    order: 1;
    padding-top: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  } /* headline */
  .hero-left > *:nth-child(2) {
    order: 2;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  } /* subheadline */
  .hero-left > *:nth-child(3) {
    order: 4;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  } /* key benefits */

  .hero-right {
    min-height: 400px;
    order: 3;
    padding: 2rem 1.5rem;
  }

  .hero-bottom {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .social-proof {
    background-color: var(--background);
    border-left: 4px solid var(--green-highlight);
    padding: 1.5rem;
    margin: 0;
    border-radius: 4px;
    flex: 1;
    max-width: 100%;
  }

  /* Hide nav links on mobile, keep only Sign Up button */
  .nav-link {
    display: none;
  }

  /* Ensure Sign Up button in header is properly sized on mobile */
  .sticky-header .button-primary {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
