/* Styles for the generated /tools/, /guides/ and /compare/ pages. Builds on
   the tokens in styles.css rather than redefining them. */

.seo-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.seo-crumbs a { color: var(--muted); text-decoration: none; }
.seo-crumbs a:hover { color: var(--tint-strong); }
.seo-crumbs > * + *::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.seo-hero { margin-bottom: 32px; }
.seo-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.seo-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

.seo-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.seo-section h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.seo-section h3 { font-size: 1rem; margin: 0 0 8px; }
.seo-section p { line-height: 1.65; color: var(--muted); margin: 0 0 14px; max-width: 72ch; }
.seo-section p:last-child { margin-bottom: 0; }
.seo-section a { color: var(--tint-strong); text-decoration: underline; text-underline-offset: 2px; }

.seo-list { margin: 0; padding-left: 20px; }
.seo-list li { line-height: 1.65; color: var(--muted); margin-bottom: 10px; }
.seo-list li:last-child { margin-bottom: 0; }
.seo-list strong { color: var(--text); }

.seo-meta { font-size: 0.85rem !important; opacity: 0.85; }

/* Cards ------------------------------------------------------------------ */
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.seo-card {
  display: block;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.seo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.seo-card h2 { font-size: 1.1rem; margin: 0 0 8px; color: var(--text); }
.seo-card p { font-size: 0.93rem; margin: 0 0 12px; }
.seo-card-go { font-size: 0.85rem; font-weight: 600; color: var(--tint-strong); }

/* Tool shell ------------------------------------------------------------- */
.seo-tool {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.seo-subhead h2 { font-size: 1.05rem; margin: 0 0 12px; }
.seo-subhead + .seo-form { margin-bottom: 14px; }
.seo-subhead:not(:first-child) { margin-top: 26px; }

.seo-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.seo-form-inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.seo-field { display: flex; flex-direction: column; gap: 6px; }
.seo-field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.seo-field input[type="text"],
.seo-field input[type="number"],
.seo-field input[type="date"],
.seo-field select {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  width: 100%;
}
.seo-field input:focus, .seo-field select:focus {
  outline: 2px solid var(--tint);
  outline-offset: 1px;
  border-color: transparent;
}
.seo-field-check { flex-direction: column; gap: 10px; justify-content: flex-end; }
.seo-field-check label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--text); font-size: 0.92rem;
}
.seo-field-check input { width: auto; accent-color: var(--tint-strong); }
.seo-field-action { justify-content: flex-end; }
.seo-field-action .button { width: 100%; }

.seo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.seo-hint { font-size: 0.85rem; color: var(--tint-strong); }

/* Results ---------------------------------------------------------------- */
.seo-result { margin-top: 22px; }
.seo-result-head {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.seo-result-group { margin-bottom: 20px; }
.seo-result-group:last-child { margin-bottom: 0; }
.seo-result-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.seo-result-group ul { margin: 0; padding-left: 20px; }
.seo-result-group li { line-height: 1.7; color: var(--text); font-size: 0.95rem; }
.seo-empty { color: var(--muted); font-size: 0.95rem; margin: 0; }
.seo-airlines { font-size: 0.93rem; line-height: 1.65; color: var(--muted); margin: 0; }

.seo-verdict-badge {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.seo-badge-good { background: rgba(123, 174, 155, 0.2); color: var(--tint-strong); }
.seo-badge-ok { background: rgba(232, 216, 186, 0.55); color: #6b5426; }
.seo-badge-bad { background: rgba(198, 92, 78, 0.14); color: #a33f2e; }

.seo-item-rows { list-style: none; margin: 0; padding: 0; }
.seo-item-rows li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.seo-item-rows li > span:first-child { flex: 1; }
.seo-item-rows li.is-over { color: #a33f2e; font-weight: 600; }
.seo-item-rows button, .seo-chip button {
  border: none; background: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--muted); padding: 0 4px;
}
.seo-item-rows button:hover, .seo-chip button:hover { color: #a33f2e; }

.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seo-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(123, 174, 155, 0.16);
  color: var(--tint-strong);
  border-radius: 999px; padding: 6px 8px 6px 14px;
  font-size: 0.88rem; font-weight: 600;
}
.seo-transfers { list-style: none; margin: 0; padding: 0; }
.seo-transfers li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 0.97rem; color: var(--muted);
}
.seo-transfers strong { color: var(--text); }
.seo-transfers span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

.seo-checks { list-style: none; margin: 0 0 14px; padding: 0; }
.seo-checks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.seo-checks strong { color: var(--text); }
.seo-check-mark { font-weight: 700; font-size: 1.05rem; flex-shrink: 0; width: 20px; }
.seo-checks li.is-pass .seo-check-mark { color: var(--tint-strong); }
.seo-checks li.is-fail .seo-check-mark { color: #a33f2e; }
.seo-checks li.is-unknown .seo-check-mark { color: var(--muted); }

/* Tables ----------------------------------------------------------------- */
.seo-table-wrap { overflow-x: auto; margin: 0 -4px; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.seo-table th, .seo-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.seo-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.seo-table td { color: var(--muted); }
.seo-table td:first-child { color: var(--text); font-weight: 600; }

/* Comparison verdict ----------------------------------------------------- */
.seo-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.seo-verdict-card { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.seo-verdict-card h3 { font-size: 1rem; margin: 0 0 8px; }
.seo-verdict-card p { font-size: 0.93rem; margin: 0; }
.seo-verdict-ours { border-color: var(--tint); background: rgba(123, 174, 155, 0.1); }

/* FAQ -------------------------------------------------------------------- */
.seo-faq { display: flex; flex-direction: column; gap: 2px; }
.seo-faq-item { border-bottom: 1px solid var(--line); }
.seo-faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 600;
  font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after { content: "+"; color: var(--tint-strong); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.seo-faq-item[open] summary::after { content: "\2212"; }
.seo-faq-answer { padding: 0 0 16px; color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.seo-faq-answer a { color: var(--tint-strong); }

/* CTA -------------------------------------------------------------------- */
.seo-cta {
  background: linear-gradient(135deg, rgba(123, 174, 155, 0.18), rgba(232, 216, 186, 0.3));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 20px;
  text-align: center;
}
.seo-cta h2 { font-size: 1.35rem; margin: 0 0 10px; }
.seo-cta p { color: var(--muted); line-height: 1.6; max-width: 56ch; margin: 0 auto 20px; }
.seo-cta .cta-row { justify-content: center; }

@media (max-width: 720px) {
  .seo-section, .seo-tool, .seo-cta { padding: 22px 18px; }
  .seo-table th, .seo-table td { padding: 9px 8px; }
}
