/* Shared styles for the Concept Scanner family pages
   (/download-patent-scanner and /github-concept-scanner).
   Scoped: linked only by those two templates, not global.
   The one per-page difference (.ps-results-grid column count) stays inline
   in each template. */

/* Breadcrumb */
.ps-breadcrumb { font-size: var(--text-sm); margin-bottom: 1.5rem; color: var(--fg-subtle); }
.ps-breadcrumb a { color: var(--purple); text-decoration: none; font-weight: 600; opacity: 1; }
.ps-breadcrumb a:hover { color: var(--cyan-text); }
.ps-breadcrumb-sep { margin: 0 0.4rem; }

/* Hero */
.content .ps-hero { padding: 20px 0 80px; text-align: center; }
.ps-badge {
  display: inline-block; font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-sm);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple);
  border: 2px solid var(--purple); border-radius: var(--radius-md); padding: 0.4rem 1rem; margin-bottom: 1.5rem;
}
.ps-hero h1 {
  font-family: 'Satoshi', 'Inter', sans-serif; font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.ps-subhead { font-size: var(--text-md); color: var(--fg-muted); max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.5; }
.ps-cta-group { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.ps-cta {
  display: inline-block; font-family: 'Satoshi', 'Inter', sans-serif; background: var(--cyan); color: var(--on-bright);
  padding: 1rem 2.5rem; font-size: var(--text-md); font-weight: 700; border: none; border-radius: var(--radius-md);
  text-decoration: none; transition: all 0.2s ease;
}
/* Inside article content, .content a would give the button link color. */
.content a.ps-cta { color: var(--on-bright); border-bottom: none; }
.content a.ps-cta:hover { color: var(--on-bright); }
.ps-cta:hover { background: var(--cyan-hover); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(45, 197, 232, 0.3); }
.ps-cta-secondary {
  font-family: 'Satoshi', 'Inter', sans-serif; color: var(--purple); font-size: var(--text-base); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--purple); transition: all 0.2s ease;
}
.ps-cta-secondary:hover { color: var(--cyan-text); border-bottom-color: var(--cyan); }
.ps-cta-secondary i { margin-left: 0.3rem; font-size: var(--text-sm); }
.ps-micro { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--fg-subtle); }
.ps-micro code { font-family: 'SF Mono', 'Fira Code', monospace; }

/* Not-a-patent-scanner callout + category tagline */
.ps-notpatent-wrap { padding: 0 0 10px; }
.ps-notpatent {
  max-width: 720px; margin: 0 auto; text-align: center; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.4rem 2rem;
  font-size: var(--text-base); line-height: 1.6; color: var(--fg);
}
.ps-notpatent strong { color: var(--purple); font-family: 'Satoshi', 'Inter', sans-serif; }
.ps-notpatent p { margin: 0; }
.ps-tagline-line { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-md); font-weight: 600; margin-bottom: 0.7rem; }
.ps-notpatent-sub { font-size: var(--text-base); opacity: 0.82; }

/* Shared section styles */
.content section { padding: 100px 0; }
.ps-headline {
  font-family: 'Satoshi', 'Inter', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; text-align: center; margin-bottom: 1rem; letter-spacing: -0.01em; color: var(--fg);
}
.ps-subline { font-size: var(--text-md); color: var(--fg-muted); text-align: center; margin: 0 auto 3rem; max-width: 640px; line-height: 1.5; }

/* Feature grid */
.ps-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.ps-feature-card { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 2rem; }
.ps-feature-icon { font-size: var(--text-lg); color: var(--purple); margin-bottom: 1rem; }
.ps-feature-card h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-md); font-weight: 700; margin-bottom: 0.5rem; }
.ps-feature-card p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.5; }

/* Results grid (cards shared; the grid column count is set per-page inline) */
.ps-results-section { background: var(--bg-subtle); }
.ps-result-card { background: var(--bg-raised); border-radius: var(--radius-md); padding: 2rem; }
.ps-result-icon { font-size: var(--text-md); color: var(--purple); margin-bottom: 0.75rem; }
.ps-result-card h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; margin-bottom: 0.5rem; }
.ps-result-card p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.5; }
.ps-result-card code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: var(--text-sm); color: var(--purple); }

/* Code blocks (pre-aware: handles single- and multi-line) */
.ps-code-wrap { max-width: 720px; margin: 0 auto; }
.ps-code-block { background: var(--bg-inverse); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-top: 0.75rem; overflow-x: auto; }
.ps-code-block pre { margin: 0; }
.ps-code-block code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: var(--text-sm); color: var(--cyan); line-height: 1.6; white-space: pre; }
.ps-install { max-width: 760px; margin: 0 auto 3.5rem; }
.ps-install-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ps-install-row h3 { font-size: var(--text-base); font-weight: 600; margin: 0; }

/* Info note */
.ps-note {
  max-width: 720px; margin: 1.5rem auto 0; display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--bg-subtle); border-left: 3px solid var(--purple); border-radius: var(--radius-md); padding: 1.1rem 1.3rem;
}
.ps-note i { color: var(--purple); font-size: var(--text-base); padding-top: 0.15rem; }
.ps-note p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.5; margin: 0; }
.ps-note a { color: var(--cyan-text); text-decoration: none; border-bottom: 1px solid var(--cyan); }
.ps-note a:hover { color: var(--purple); border-bottom-color: var(--purple); }

/* Steps (how it works) */
.ps-steps { max-width: 600px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 2.5rem; }
.ps-step { display: flex; align-items: flex-start; gap: 1.5rem; }
/* A flex item defaults to min-width:auto and will not shrink below its
   content. The install commands here are <code> with white-space: pre, so
   they have no min-content width worth speaking of (one is 1155px wide),
   and the whole step was sized to them: the page measured 507px at 375px
   wide. .ps-code-block already has overflow-x: auto; min-width: 0 is what
   lets it be narrow enough to use it. overflow-wrap cannot help here,
   because white-space: pre beats it, and the command has to survive copy
   and paste unchanged. */
.ps-step, .ps-step-content { min-width: 0; }
.ps-step-num {
  font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-lg); font-weight: 700; color: var(--purple);
  min-width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--purple); border-radius: 50%; flex-shrink: 0;
}
.ps-step-content h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-md); font-weight: 700; margin-bottom: 0.5rem; }
.ps-step-content p { color: var(--fg-muted); font-size: var(--text-base); line-height: 1.5; }
.ps-step-content a { color: var(--cyan-text); text-decoration: none; border-bottom: 1px solid var(--cyan); }
.ps-step-content a:hover { color: var(--purple); border-bottom-color: var(--purple); }

/* Download grid */
.ps-downloads-section { background: var(--bg-subtle); }
.ps-download-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.ps-download-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center; text-decoration: none; color: var(--fg); transition: all 0.2s ease; }
.ps-download-card:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.ps-dl-icon { font-size: var(--text-xl); color: var(--purple); margin-bottom: 0.75rem; display: block; }
.ps-download-card h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; margin-bottom: 0.25rem; }
.ps-dl-arch { font-size: var(--text-sm); color: var(--fg-subtle); }

/* Requirements */
.ps-requirements { max-width: 600px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1.5rem; }
.ps-req-item { display: flex; align-items: flex-start; gap: 1.25rem; }
.ps-req-icon { font-size: var(--text-md); color: var(--purple); min-width: 2rem; text-align: center; padding-top: 0.15rem; }
.ps-req-content h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; margin-bottom: 0.25rem; }
.ps-req-content p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.4; }
.ps-req-content a { color: var(--cyan-text); text-decoration: none; border-bottom: 1px solid var(--cyan); }
.ps-req-content a:hover { color: var(--purple); border-bottom-color: var(--purple); }

/* Next / cross-link grid */
.ps-next-section { background: var(--bg-subtle); }
.ps-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.ps-next-card { background: var(--bg-raised); border-radius: var(--radius-md); padding: 2rem; }
.ps-next-card h3 { font-family: 'Satoshi', 'Inter', sans-serif; font-size: var(--text-base); font-weight: 700; margin-bottom: 0.5rem; }
.ps-next-card p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.5; }
.ps-next-card a { color: var(--cyan-text); text-decoration: none; border-bottom: 1px solid var(--cyan); }
.ps-next-card a:hover { color: var(--purple); border-bottom-color: var(--purple); }

/* CTA section */
.ps-cta-section { text-align: center; padding-bottom: 120px; }
.ps-cta-alt { margin-top: 1.5rem; font-size: var(--text-base); color: var(--fg-muted); }
.ps-cta-alt a { color: var(--cyan-text); text-decoration: none; border-bottom: 1px solid var(--cyan); }
.ps-cta-alt a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* Responsive (results-grid mobile override lives per-page with its column count) */
@media (max-width: 768px) {
  .ps-hero { padding: 60px 0 80px; }
  .content section { padding: 80px 0; }
  .ps-feature-grid { grid-template-columns: 1fr; }
  .ps-next-grid { grid-template-columns: 1fr; }
  .ps-download-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .ps-hero { padding: 40px 0 60px; }
  .ps-hero h1 { font-size: var(--text-xl); }
  .ps-cta { padding: 1rem 2rem; font-size: var(--text-base); width: 100%; max-width: 300px; }
  .content section { padding: 60px 0; }
  .ps-download-grid { grid-template-columns: repeat(2, 1fr); }
}
