/* DraftWriter Website Styles */

/*
 * NOTE: The brand color alias :root block that previously lived here has been
 * REMOVED to eliminate the cross-file duplicate token definition (requirement
 * 3.5). The single definition site is now the global stylesheet
 * (src/css/style.css), which DraftWriter pages load FIRST (see
 * partials/head.njk + the page's `extraStyles`), so --primary-blue,
 * --primary-dark, --secondary-yellow, --secondary-red, --text-dark,
 * --text-light, --bg-light, --bg-gray and --border-color all cascade in here.
 * Rendered colors are unchanged (the values are identical, just defined once).
 */

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

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Header */
header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: var(--min-tap-area);
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.hero-tagline p {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Buttons - using design-tokens.css definition */

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 129, 227, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Content Sections */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background-color: var(--bg-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

/* Changelog Styles */
.changelog-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.changelog-item:last-child {
  border-bottom: none;
}

.version-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.changelog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.changelog-item ul {
  margin-left: 2rem;
  margin-top: 1rem;
}

.changelog-item li {
  margin-bottom: 0.5rem;
}

/* Documentation Styles */
.docs-nav {
  background-color: var(--bg-gray);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.docs-nav ul {
  list-style: none;
}

.docs-nav li {
  margin-bottom: 0.5rem;
}

.docs-content {
  max-width: 800px;
}

.docs-section {
  margin-bottom: 3rem;
}

/* Support Page */
.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.support-card {
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 2px solid var(--border-color);
  text-align: center;
}

.support-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  min-height: var(--min-tap-area);
}

.footer-links a:hover {
  color: var(--secondary-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .nav-links {
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* Comparison Table */
.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.comparison-column {
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.comparison-column.highlight {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(1, 129, 227, 0.05) 0%, rgba(1, 129, 227, 0.02) 100%);
}

.comparison-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.comparison-column ul {
  list-style: none;
  padding: 0;
}

.comparison-column ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.comparison-column ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Target Users Section */
.target-users {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.user-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.user-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary-blue);
}

.cta-section .btn:hover {
  background-color: var(--bg-gray);
}

/* Video Styles */
.video-placeholder {
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 2rem auto;
  background-color: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
}

.hero video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

/* Logo Styles */
.logo img {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

/* Additional Utility Classes */
.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.feature-highlight {
  margin-top: 3rem;
}

.highlight-primary {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-secondary {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight-tertiary {
  font-size: 1rem;
  color: var(--text-muted);
}

.bg-gray {
  background-color: var(--bg-gray);
}

.app-store-badge {
  height: 60px;
  cursor: pointer;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

/* ===================================
   Command Table Styles (command-list.html)
   =================================== */

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.command-table th {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.command-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.command-table tbody tr:nth-child(even) {
  background-color: var(--color-info);
}

.command-table tbody tr:hover {
  background-color: rgba(1, 129, 227, 0.1);
}

.command-table code {
  background-color: var(--bg-gray);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===================================
   Content Page Styles (manual/usage)
   =================================== */

.content-page {
  max-width: 800px;
}

.content-page h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.content-page h3 {
  margin-top: 1.5rem;
  color: var(--primary-dark);
}

.content-page ul,
.content-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

.content-page figure {
  margin: 2rem 0;
  text-align: center;
}

.content-page figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-page figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.content-page video {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* ===================================
   DraftCard Styles (draftcard.html)
   =================================== */

.draftcard-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  padding: 6rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.draftcard-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.draftcard-hero .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.draftcard-product-image {
  width: 200px;
  height: 280px;
  margin: 2rem auto;
  background: linear-gradient(145deg, var(--bg-light), var(--bg-gray));
  border-radius: 12px;
  border: 2px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-dark);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
    0 15px 25px rgba(0, 0, 0, 0.15);
  animation: draftcard-float 6s ease-in-out infinite;
}

.draftcard-product-image:hover {
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3),
    0 20px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.draftcard-hello-span {
  font-family: 'Lucida Handwriting', cursive, sans-serif;
  font-size: 36px;
}

.draftcard-features {
  padding: 5rem 0;
  background: var(--bg-gray);
}

.draftcard-features .section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
}

.draftcard-feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(1, 129, 227, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.draftcard-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.draftcard-feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
}

.draftcard-feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.draftcard-feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* DraftCard Image Slider */
.draftcard-hero-image {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
}

.draftcard-hero-image .section-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.draftcard-image-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.draftcard-image-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* DraftCard Pricing */
.draftcard-price {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-gray-dark) 100%);
}

.draftcard-price-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.draftcard-price .section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
}

.draftcard-price-subtitle {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  opacity: 0.8;
}

.draftcard-pricing-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px rgba(1, 129, 227, 0.15),
    0 10px 25px rgba(1, 129, 227, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.draftcard-pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-dark));
}

.draftcard-pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(1, 129, 227, 0.2),
    0 15px 35px rgba(1, 129, 227, 0.15);
}

.draftcard-price-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-dark));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.draftcard-price-amount {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.draftcard-price-currency {
  font-size: 2rem;
  opacity: 0.7;
}

.draftcard-price-period {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.draftcard-price-features {
  margin-bottom: 2rem;
}

.draftcard-price-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.draftcard-price-feature-icon {
  color: var(--color-success);
  margin-right: 0.8rem;
  font-size: 1.3rem;
}

.draftcard-price-note {
  background: linear-gradient(45deg, var(--color-info), var(--color-info));
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.draftcard-price-note h4 {
  color: var(--color-info-text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.draftcard-price-note ul {
  list-style: none;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.8;
}

.draftcard-price-note li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.draftcard-price-note li::before {
  content: '•';
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.draftcard-price-disclaimer {
  background: rgba(255, 191, 0, 0.1);
  border: 2px solid var(--secondary-yellow);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.draftcard-price-disclaimer p {
  color: var(--color-warning);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* DraftCard Animations */
@keyframes draftcard-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===================================
   Docs Hub Link Cards (docs.html)
   =================================== */

.docs-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.docs-link-card {
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 2px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.docs-link-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.docs-link-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.docs-link-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===================================
   Responsive Design Updates
   =================================== */

@media (max-width: 768px) {
  .comparison-table {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Command Table responsive */
  .command-table {
    font-size: 0.85rem;
  }

  .command-table th,
  .command-table td {
    padding: 0.5rem 0.75rem;
  }

  /* DraftCard responsive */
  .draftcard-hero h1 {
    font-size: 2.5rem;
  }

  .draftcard-hero .subtitle {
    font-size: 1.2rem;
  }

  .draftcard-product-image {
    width: 150px;
    height: 210px;
  }

  .draftcard-hero-image .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .draftcard-price .section-title {
    font-size: 2rem;
  }

  .draftcard-price-amount {
    font-size: 3rem;
  }

  .draftcard-pricing-card {
    padding: 2rem 1.5rem;
  }

  /* Content page responsive */
  .content-page figure img {
    border-radius: 4px;
  }

  /* Docs hub responsive */
  .docs-links-grid {
    grid-template-columns: 1fr;
  }
}
