/*
 * Alternate light theme for jorno.ai inspired by the provided Anima website.
 * This file defines a bright, modern palette with soft backgrounds,
 * vibrant accent colours and clear typography. Load this stylesheet by
 * appending ?theme=alt to any page URL.
 */

:root {
  /* Primary brand colours */
  --primary: #f96251; /* warm orange used for CTAs and highlights */
  --primary-dark: #e35241; /* darker variant for hover states */
  --secondary: #3b82f6; /* calming blue used sparingly for links/icons */
  --accent: #a78bfa; /* soft purple accent */
  --success: #10b981; /* green for check icons */

  /* Neutral palette */
  --background: #f8f9ff; /* off‑white page background */
  --surface: #ffffff; /* card and section background */
  --border-color: #e5e7eb; /* light grey borders */

  /* Typography */
  --text: #0f172a; /* nearly black for primary text */
  --text-muted: #6b7280; /* medium grey for secondary text */
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--primary);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--surface);
  color: var(--text);
  padding: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  width: 36px;
  height: 36px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Hero section */
.hero-section {
  background-color: var(--background);
  padding: 160px 0 120px;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section.light {
  background-color: var(--background);
}

.section.dark {
  background-color: var(--surface);
}

.section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Feature cards */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  flex: 1 1 260px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.feature-card h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing table */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 40px 30px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.pricing-card.popular {
  border: 2px solid var(--primary);

  /* Add a subtle shadow and slight scale to draw attention to the popular
     plan. This encourages users to choose the recommended option. */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Badge indicating the most popular plan. Positioned relative to the
   pricing card and using a gradient to stand out. */
.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}
.pricing-card .plan-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}
.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0;
}
.pricing-card .period {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 20px;
}
.pricing-card ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.pricing-card ul li .check {
  color: var(--success);
  margin-right: 8px;
  font-weight: 700;
}

/* Services cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 30px;
  flex: 1 1 300px;
}
.service-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
}
.service-card ul {
  margin: 15px 0 25px 20px;
  list-style: disc;
  color: var(--text-muted);
}
.service-card ul li {
  margin-bottom: 8px;
}

/* Blog cards */
.blog-list {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.blog-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card .blog-content {
  padding: 20px;
  flex: 1;
}
.blog-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}
.blog-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.blog-card a {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--surface);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input[type="submit"],
.form-group button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.form-group input[type="submit"]:hover,
.form-group button:hover {
  background-color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background-color: var(--background);
  color: var(--text-muted);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 200px;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .main-nav ul {
    gap: 18px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .pricing-card {
    flex: 1 1 45%;
  }
  .service-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
  }
  .hero-section {
    padding: 120px 0 80px;
  }
  .pricing-card {
    flex: 1 1 100%;
  }
  .service-card {
    flex: 1 1 100%;
  }
  .features-grid {
    gap: 20px;
  }
  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}