/* ==========================================================================
   Smart, Not Scary – Landing Page Styles
   A calm, premium design for older adults
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2d3748;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 3px solid #4a7c59;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #4a7c59;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: #1a202c;
  margin-top: 0;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1.25rem 0;
}

a {
  color: #4a7c59;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #3d6549;
}

strong {
  font-weight: 600;
  color: #1a202c;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 1.125rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: #4a7c59;
  border-color: #4a7c59;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3d6549;
  border-color: #3d6549;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.25);
}

.btn-large {
  font-size: 1.25rem;
  padding: 1.25rem 2.5rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  text-decoration: none;
}

.logo:hover {
  color: #4a7c59;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.hero-book {
  text-align: center;
}

.book-cover {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.08);
}

.hero-content {
  max-width: 540px;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a7c59;
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1.375rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.value-prop {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.benefit-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 1.0625rem;
  color: #2d3748;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: #4a7c59;
  border-radius: 50%;
}

.hero-purchase {
  margin-bottom: 1.5rem;
}

.trust-line {
  font-size: 0.9375rem;
  color: #718096;
  margin-top: 0.875rem;
  margin-bottom: 0;
}

.kindle-status {
  font-size: 0.875rem;
  color: #a0aec0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Proof Bar
   -------------------------------------------------------------------------- */

.proof-bar {
  padding: 2rem 0;
  background-color: #f7f7f5;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.proof-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-items li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proof-items strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
}

.proof-items span {
  font-size: 0.9375rem;
  color: #718096;
}

/* --------------------------------------------------------------------------
   Learn Section
   -------------------------------------------------------------------------- */

.learn-section {
  padding: 4rem 0;
}

.learn-section h2 {
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #4a5568;
  font-size: 1.0625rem;
}

.learn-grid {
  display: grid;
  gap: 1.5rem;
}

.learn-card {
  padding: 1.75rem;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.learn-card h3 {
  color: #1a202c;
  margin-bottom: 0.625rem;
}

.learn-card p {
  color: #4a5568;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Author Section
   -------------------------------------------------------------------------- */

.author-section {
  padding: 4rem 0;
  background: #f7f7f5;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.author-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.author-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.author-content p {
  color: #4a5568;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.author-content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Signup Section
   -------------------------------------------------------------------------- */

.signup-section {
  padding: 4rem 0;
}

.signup-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  text-align: center;
}

.signup-box h2 {
  margin-bottom: 0.75rem;
}

.signup-box > p {
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.125rem;
  font-family: inherit;
  font-size: 1.0625rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  border-color: #4a7c59;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.signup-form input[type="email"]::placeholder {
  color: #a0aec0;
}

.form-note {
  font-size: 0.875rem;
  color: #a0aec0;
  margin-top: 0.875rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta > .container > p:first-of-type {
  max-width: 540px;
  margin: 0 auto 2rem;
  color: #4a5568;
  font-size: 1.125rem;
}

.final-cta .trust-line {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 3rem 0;
  background: #1a202c;
  text-align: center;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-author {
  font-size: 0.9375rem;
  color: #a0aec0;
  margin-bottom: 1.25rem;
}

.footer-contact {
  font-size: 0.9375rem;
  color: #a0aec0;
  margin-bottom: 1.25rem;
}

.footer-contact a {
  color: #a0aec0;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #718096;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  html {
    font-size: 19px;
  }

  .proof-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-form {
    flex-direction: row;
  }

  .signup-form input[type="email"] {
    flex: 1;
  }

  .signup-form .btn {
    white-space: nowrap;
  }
}

@media (min-width: 800px) {
  html {
    font-size: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-layout {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
  }

  .book-cover {
    max-width: 300px;
  }

  .hero-content {
    max-width: none;
  }

  .learn-section,
  .author-section,
  .signup-section {
    padding: 5rem 0;
  }

  .final-cta {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1040px;
  }

  .hero-layout {
    grid-template-columns: 320px 1fr;
  }

  .book-cover {
    max-width: 320px;
  }
}
