/* Landing Page - New Design */

.landing-page {
  min-height: 100vh;
  background-color: #FFFFFF;
  padding: 0;
  margin: 0;
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
}

.landing-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
  padding: var(--space-xl) 0;
}

/* 1. Hero Section */
.landing-hero {
  text-align: center;
  padding: var(--space-xxl) 0;
}

.landing-hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.landing-hero__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.landing-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-hero__headline {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--ink-dark);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.landing-hero__tagline {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-xl);
  color: var(--ink-soft);
  margin: 0 0 var(--space-xl) 0;
  font-style: italic;
}

.landing-hero__cta {
  display: inline-block;
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-lg);
  color: var(--ink-dark);
  text-decoration: none;
  padding: var(--space-sm) var(--space-xl);
  border: 1px solid var(--ink-dark);
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-hero__cta:hover {
  background-color: var(--ink-dark);
  color: #FFFFFF;
}

/* Content Sections */
.landing-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 0 var(--space-md);
}

.landing-content__section {
  width: 100%;
}

/* Intro Section */
.landing-content__section--intro {
  text-align: center;
  padding: var(--space-xl) 0;
}

.landing-content__text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-lg);
  color: var(--ink-dark);
  line-height: 1.9;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.landing-content__heading {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--ink-dark);
  margin: 0 0 var(--space-lg) 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.landing-content__text h2 {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-dark);
  margin: var(--space-xl) 0 var(--space-md) 0;
  line-height: 1.4;
}

.landing-content__text h3 {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-dark);
  margin: var(--space-lg) 0 var(--space-sm) 0;
  line-height: 1.4;
}

.landing-content__text ul,
.landing-content__text ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.landing-content__text li {
  margin: var(--space-sm) 0;
  line-height: 1.8;
}

.landing-content__text p {
  margin: var(--space-md) 0;
}

.landing-content__text em {
  font-style: italic;
  color: var(--ink-soft);
}

.landing-content__text strong {
  font-weight: 600;
}

/* Features Section */
.landing-content__section--features {
  padding: var(--space-lg) 0;
}

.landing-content__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.landing-content__feature {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--paper-aged);
  border-radius: 4px;
  border: 1px solid rgba(200, 184, 154, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-content__feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.landing-content__feature-text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  color: var(--ink-dark);
  margin: 0;
  line-height: 1.7;
  font-weight: 400;
}

/* Security Section */
.landing-content__section--security {
  padding: var(--space-lg) 0;
}

.landing-content__security-box {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--paper-aged);
  border-left: 3px solid var(--accent-sepia);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.landing-content__security-text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  color: var(--ink-dark);
  line-height: 1.9;
  margin: 0;
}

/* 5. Book-Style Sign In / Sign Up Form */
.landing-notebook-section {
  margin: var(--space-xxl) 0;
  scroll-margin-top: var(--space-xl);
}

.landing-notebook {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  perspective: 2000px;
}

/* Closed Book State */
.landing-notebook__closed {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  position: relative;
}

.landing-notebook__cover-front {
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, var(--leather-brown) 0%, #4A2E1F 50%, var(--leather-brown) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
  border-radius: 8px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-notebook__closed:hover .landing-notebook__cover-front {
  transform: translateY(-4px);
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.landing-notebook__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
  border-radius: 8px 0 0 8px;
}

.landing-notebook__cover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.landing-notebook__cover-title {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: 36px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-sm) 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.landing-notebook__cover-subtitle {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-style: italic;
}

/* Decorative cover elements */
.landing-notebook__cover-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  pointer-events: none;
}

/* Open Book State */
.landing-notebook__open {
  display: none;
}

.landing-notebook__open--animate {
  animation: bookOpen 0.8s ease-out;
}

@keyframes bookOpen {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.landing-notebook__pages {
  display: flex;
  gap: var(--space-md);
  background-color: var(--paper-aged);
  padding: var(--space-xl);
  border-radius: 4px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(200, 184, 154, 0.3);
}

.landing-notebook__page {
  flex: 1;
  min-width: 0;
}

.landing-notebook__page--left {
  border-right: 1px solid var(--sepia-line);
  padding-right: var(--space-lg);
}

.landing-notebook__page--right {
  padding-left: var(--space-lg);
}

/* Notebook Form Styles */
.landing-notebook__title {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--ink-dark);
  text-align: center;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.landing-notebook__flash {
  margin-bottom: var(--space-md);
}

.landing-notebook__flash-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  border-left: 3px solid;
  background-color: rgba(255, 255, 255, 0.5);
}

.landing-notebook__flash-message:last-child {
  margin-bottom: 0;
}

.landing-notebook__flash-message p {
  margin: 0;
  color: var(--ink-dark);
}

.landing-notebook__flash-message--alert {
  border-left-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.1);
}

.landing-notebook__flash-message--alert p {
  color: #b71c1c;
}

.landing-notebook__flash-message--notice,
.landing-notebook__flash-message--success {
  border-left-color: #388e3c;
  background-color: rgba(56, 142, 60, 0.1);
}

.landing-notebook__flash-message--notice p,
.landing-notebook__flash-message--success p {
  color: #2e7d32;
}

.landing-notebook__flash-message--error {
  border-left-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.1);
}

.landing-notebook__flash-message--error p {
  color: #b71c1c;
}

.landing-notebook__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.landing-notebook__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.landing-notebook__label-text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.landing-notebook__input {
  width: 100%;
  padding: var(--space-sm) 0;
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--ink-dark);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--sepia-line);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.landing-notebook__input:focus {
  outline: none;
  border-bottom-color: var(--ink-dark);
}

.landing-notebook__input::placeholder {
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.6;
}

.landing-notebook__help-text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-style: italic;
  margin-top: calc(var(--space-xs) * -1);
  margin-bottom: 0;
}

.landing-notebook__submit {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro", sans-serif;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--paper-aged);
  background: linear-gradient(135deg, var(--leather-brown) 0%, #4A2E1F 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  align-self: center;
  min-width: 120px;
}

.landing-notebook__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.landing-notebook__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.landing-notebook__google-button {
  margin-top: var(--space-sm);
  margin: auto;
  padding: var(--space-sm) var(--space-lg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro", sans-serif;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink-dark);
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.landing-notebook__google-button:hover {
  background-color: #F8F8F8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.landing-notebook__google-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.landing-notebook__google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.landing-notebook__divider {
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ink-soft);
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-xs);
}

.landing-notebook__divider::before,
.landing-notebook__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--sepia-line);
}

.landing-notebook__footer {
  margin-top: var(--space-lg);
  text-align: center;
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.landing-notebook__footer-link {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.landing-notebook__footer-link:hover {
  border-bottom-color: var(--accent-blue);
}

.landing-notebook__page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: var(--space-xl);
}

.landing-notebook__page-placeholder-text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  color: var(--ink-soft);
  margin: 0 0 var(--space-md) 0;
  font-style: italic;
}

.landing-notebook__page-placeholder-link {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-md);
  color: var(--ink-dark);
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--ink-dark);
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.landing-notebook__page-placeholder-link:hover {
  background-color: var(--ink-dark);
  color: #FFFFFF;
}

/* 6. Closing Line */
.landing-closing {
  text-align: center;
  padding: var(--space-xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.landing-closing__text {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

/* Footer */
.landing-footer {
  background-color: var(--paper-aged);
  border-top: 1px solid var(--sepia-line);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xxl);
}

.landing-footer__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.landing-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.landing-footer__copyright {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
}

.landing-footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.landing-footer__link {
  font-family: 'EB Garamond', 'Libre Baskerville', serif;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.landing-footer__link:hover {
  color: var(--ink-dark);
  text-decoration: underline;
}

.landing-footer__separator {
  color: var(--sepia-line);
  font-size: var(--text-sm);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .landing-page {
    padding: var(--space-md);
  }

  .landing-container {
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
  }

  .landing-hero {
    padding: var(--space-xl) 0;
  }

  .landing-hero__brand {
    flex-direction: column;
    gap: var(--space-md);
  }

  .landing-hero__logo {
    width: 60px;
    height: 60px;
  }

  .landing-hero__headline {
    font-size: 32px;
  }

  .landing-hero__tagline {
    font-size: var(--text-lg);
  }

  .landing-content {
    gap: var(--space-lg);
    padding: 0 var(--space-sm);
  }

  .landing-content__section--intro {
    padding: var(--space-lg) 0;
  }

  .landing-content__text {
    font-size: var(--text-md);
  }

  .landing-content__heading {
    font-size: 32px;
  }

  .landing-content__text h2 {
    font-size: 24px;
  }

  .landing-content__text h3 {
    font-size: 20px;
  }

  .landing-content__features {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .landing-content__feature {
    padding: var(--space-md);
  }

  .landing-content__security-box {
    padding: var(--space-lg);
  }

  .landing-notebook__pages {
    flex-direction: column;
    padding: var(--space-lg);
  }

  .landing-notebook__page--left {
    border-right: none;
    border-bottom: 1px solid var(--sepia-line);
    padding-right: 0;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .landing-notebook__page--right {
    padding-left: 0;
  }

  .landing-notebook__closed {
    max-width: 100%;
  }

  .landing-footer {
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
  }

  .landing-footer__container {
    padding: 0 var(--space-md);
  }
}
