/* DraftFinder Website Styles */

/*
 * Shares the DraftCamera / DraftWriter design language (light hero, section
 * rhythm, card grids, blue accents) so all product sites read as one family.
 * Brand aliases (--primary-blue, --primary-dark, --text-dark, --bg-light,
 * --bg-gray, --border-color, --text-muted, --min-tap-area …) and the semantic
 * color tokens (--color-semantic-*) come from the global stylesheet
 * (src/css/style.css + tokens.css), loaded FIRST via partials/head.njk, so they
 * cascade in here — no duplicate token block, no hardcoded brand colors.
 */

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-gray-dark) 100%);
}

.hero-app-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 27px; /* ~22.5% — macOS squircle approximation */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

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

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

.hero-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Primary download button — the single primary CTA on the page. */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--min-tap-area);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  transition: background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* Secondary treatment (pricing card) — keeps ONE primary CTA per screen. */
.download-btn--secondary {
  color: var(--primary-blue);
  background-color: transparent;
}

.download-btn--secondary:hover,
.download-btn--secondary:focus-visible {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

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

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

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 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;
}

/* Comparison table — horizontal scroll wrapper so it never breaks < 768px. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.comparison-table thead th {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

.comparison-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Availability glyphs carry meaning by shape (✓ / ✗ / ○); color is supplementary.
   Colors use semantic DS tokens for a family-consistent, accessible palette. */
.comparison-table .cell-yes {
  color: var(--color-semantic-success-700-light);
  font-weight: 700;
}

.comparison-table .cell-no {
  color: var(--color-semantic-negative-600-light);
  font-weight: 700;
}

.comparison-table .cell-ok {
  color: var(--text-muted);
  font-weight: 700;
}

/* Pricing */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.1;
}

.price-period {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-list {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: 0 auto 1.75rem;
  padding: 0;
}

.price-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.65rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-semantic-success-700-light);
  font-weight: 700;
}

.purchase-line {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.compare-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Install steps + inline code */
.download-note {
  max-width: 760px;
}

.install-steps {
  margin: 1.5rem 0 0 1.5rem;
}

.install-steps li {
  margin-bottom: 0.75rem;
}

code {
  background-color: var(--bg-gray-dark);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* FAQ (details / summary) */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  background-color: var(--bg-light);
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.5rem 0;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::before {
  content: "＋";
  margin-right: 0.5rem;
  color: var(--primary-blue);
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-answer {
  padding: 0.5rem 0 0.75rem;
}

.faq-answer p {
  margin-bottom: 0;
}

.lang-switch {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* Content pages (privacy policy) */
.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;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 1rem;
  }

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

  .hero-tagline p {
    font-size: 1.05rem;
  }

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

/* Changelog */
.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;
}
