/* === JT Tech Works — AI Beyond the Chat === */
/* Design System: Professional, Trustworthy, Accessible (40+ audience) */

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --accent: #0f3460;
  --accent-light: #1a4a8a;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-grey: #e9ecef;
  --mid-grey: #6c757d;
  --dark-grey: #343a40;
  --text: #212529;
  --text-light: #495057;
  --success: #2d6a4f;
  --danger: #c1121f;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px; /* Larger base for 40+ readers */
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p.lead { font-size: 1.15rem; color: var(--text-light); }

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); text-decoration: underline; }

/* === Navigation === */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--gold-light);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  text-decoration: none;
  color: var(--navy);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.15rem;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* === Sections === */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* === Chapter Preview === */
.chapter-preview {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--light-grey);
  margin: 1rem 0;
}

.chapter-preview h3 {
  color: var(--accent);
}

.chapter-preview .in-this-chapter {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* === Testimonials === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-card .attribution {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.testimonial-card .role {
  color: var(--mid-grey);
  font-size: 0.85rem;
}

/* === Pricing Section === */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--mid-grey);
  font-weight: 400;
}

.pricing-card .includes {
  text-align: left;
  margin: 1.5rem 0;
  list-style: none;
}

.pricing-card .includes li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.pricing-card .includes li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* === Tips Grid === */
.tips-list {
  display: grid;
  gap: 1rem;
}

.tip-card {
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.tip-card .tip-number {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.tip-card h3 {
  margin: 0.3rem 0;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* === FAQ === */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--light-grey);
  padding: 1.2rem 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* === Footer === */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--gold-light);
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  list-style: none;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  html { font-size: 16px; }
  
  nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 3rem 1rem 2.5rem;
  }
  
  .hero h1 { font-size: 2rem; }
  
  section {
    padding: 2.5rem 1rem;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* === Print === */
@media print {
  nav, .cta-banner, footer, .btn { display: none; }
  body { font-size: 12pt; }
  section { padding: 1rem 0; }
}
