/* In the file landing.css */

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

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: #2c3e50;
  background: linear-gradient(135deg, #e8f0ff, #fdfefe);
}

/* Landing Layout */
.landing-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    /* Removed max-height and overflow-y to allow natural page scroll */
    padding-bottom: 40px; /* Added space at the bottom of the page */
}

/* This is the corrected header layout */
.landing-header {
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-transform: none; /* Removed the uppercase transformation */
    letter-spacing: 1px;
}

.landing-left,
.landing-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-left {
  align-items: center;
  padding-right: 40px;
}

.landing-right {
  align-items: flex-start;
  padding-left: 40px;
}

/* Headings & Text */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

h2.features-header {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
  align-self: center;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #34495e;
}

/* Call To Action Button */
.primary-cta {
  background: #4285f4;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
}

.primary-cta:hover {
  background: #3367d6;
}

/* Features Section */
.feature-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #2c3e50;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Login Button */
.btn.login-btn {
    background-color: transparent;
    color: #4285F4;
    padding: 10px 20px;
    border: 2px solid #4285F4;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn.login-btn:hover {
    background-color: #4285F4;
    color: white;
}

/* Responsive */
@media (max-width: 960px) {
  .landing-content {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .landing-left, 
  .landing-right {
    padding: 0;
    max-width: 95%;
    margin: 0 auto;
  }

  .landing-right {
    margin-top: 30px;
  }

  /* Keep TeachSmarts left and Login right */
  .landing-header {
      position: static;
      margin-bottom: 20px;
      width: 100%;
      justify-content: space-between;  /* changed */
      gap: 15px;
  }
}

  .landing-header .btn.login-btn {
    flex-shrink: 0;             /* prevent button from compressing into text */
    margin-left: auto;
  }

.landing-content {
    overflow-y: auto; /* still scrolls if needed */
    scrollbar-width: none; /* Firefox */
}

.landing-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* --- Safe viewport height so the card isn't clipped on mobile/fullscreen --- */
:root { --vh-safe: 100svh; }                 /* modern browsers */
@supports (height: 100dvh) { :root { --vh-safe: 100dvh; } }  /* iOS 16+, etc */

/* keep air above/below the white card on every page */
#app-content { padding: 16px 0 24px 0;  }

/* the white card itself */
.wizard-page.center-content {
  margin: 20px auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* 👈 default: start-aligned */
}

/* Apply min-height to all form pages, BUT NOT #status or .small-page */
.wizard-page.center-content:not(#status):not(.small-page) {
    min-height: calc(var(--vh-safe) - 180px);
}

/* On the #status (generating) screen, center the content vertically */
.wizard-page.center-content#status {
    justify-content: center;
    padding: 0px 20px; /* Add some padding so it looks good when small */
}

.wizard-page.center-content.small-page {
  justify-content: center;       /* only these centre vertically */
}

/* inner scroller: swap 100vh for the safe viewport variable */
.scrollable-container {
  max-height: calc(var(--vh-safe) - 160px);  /* was 100vh - 120/160 */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* hide the inner scrollbar chrome */
.scrollable-container::-webkit-scrollbar { display: none; }
.scrollable-container { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 600px) {
  .landing-header {
    flex-wrap: wrap;           /* stack logo and button if needed */
    gap: 8px;
  }
  .landing-header .btn.login-btn {
    width: 100%;
    text-align: center;
  }
}