/* =========================================
   AI for Main Street — Landing Page Styles
   Clean, minimal, anti-hype.
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0a0a0a;
  color: #d4d4d4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Links */
a {
  color: #8ab4f8;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ---- HERO ---- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.hero .one-liner {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background-color: #f0f0f0;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #d4d4d4;
  text-decoration: none;
}

/* ---- Section Headings ---- */
.section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ---- THE PROBLEM ---- */
.problem {
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.problem-text {
  font-size: 1.15rem;
  color: #b0b0b0;
  line-height: 1.8;
}

/* ---- WHAT YOU'LL LEARN ---- */
.learn {
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

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

.learn-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.05rem;
  color: #c8c8c8;
  border-bottom: 1px solid #141414;
}

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

.learn-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #555;
}

.chapter-ref {
  color: #666;
  font-size: 0.9rem;
}

/* ---- ABOUT THE AUTHOR ---- */
.author {
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.author-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background-color: #222;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 4px;
}

.author-bio p {
  color: #b0b0b0;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.author-email a {
  color: #8ab4f8;
  font-size: 0.95rem;
}

/* ---- EMAIL CAPTURE FORM ---- */
.signup {
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.signup-subtext {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.signup-form {
  max-width: 420px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.4rem;
}

.form-group .optional {
  color: #555;
  font-size: 0.8rem;
}

.form-group .required {
  color: #c0392b;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder {
  color: #555;
}

.form-group input:focus {
  outline: none;
  border-color: #555;
}

.submit-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #f0f0f0;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.submit-button:hover,
.submit-button:focus {
  background-color: #d4d4d4;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 3rem 0;
  text-align: center;
}

.site-footer p {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.site-footer .amazon-link {
  color: #666;
  font-size: 0.85rem;
}

.site-footer .amazon-link:hover {
  color: #8ab4f8;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero .one-liner {
    font-size: 1rem;
  }

  .problem,
  .learn,
  .author,
  .signup {
    padding: 3rem 0;
  }

  .author-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-photo {
    width: 100px;
    height: 100px;
  }

  .signup-form {
    max-width: 100%;
  }

  .submit-button {
    width: 100%;
  }
}
