/* landing — SaaS Template Ghost theme */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #0f0f0f;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #7c3aed;
  --color-primary-hover: #6d28d9;
  --radius-pill: 9999px;
  --radius-lg: 12px;
  --shadow-bar: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header — pill bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
  background: linear-gradient(var(--color-bg) 60%, transparent);
}

.site-header-inner {
  max-width: var(--container);
  margin-inline: auto;
}

.site-header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bar);
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: auto;
}

.site-logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.site-header-bar .site-logo {
  height: 3rem;
  max-width: 10rem;
}

.site-footer-brand .site-logo {
  height: 3.25rem;
  max-width: 12rem;
}

.site-logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #a78bfa, var(--color-primary));
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

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

.site-header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  box-shadow: 0 6px 0 var(--color-text), 0 -6px 0 var(--color-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

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

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

.btn-outline {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-muted);
}

.btn-arrow {
  font-size: 1.1em;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.feature-card code {
  font-size: 0.85em;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.pricing {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.pricing-card {
  max-width: 24rem;
  margin-inline: auto;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.pricing-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
}

.pricing-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Blog */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.page-lead {
  margin: 0;
  color: var(--color-muted);
}

.page-feature-image {
  margin: 1.5rem auto 0;
  max-width: 42rem;
}

.page-feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.page-feature-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

.static-page {
  padding-bottom: 4rem;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 4rem;
  margin: 0;
  line-height: 1;
}

.error-message {
  color: var(--color-muted);
  margin: 0.5rem 0 1.5rem;
}

.post-list {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}

.post-card:hover {
  box-shadow: var(--shadow-bar);
}

.post-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.post-card-excerpt {
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.post-card-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem;
}

.post {
  padding: 2rem 0 4rem;
}

.post-header {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.post-content {
  max-width: 42rem;
  margin-inline: auto;
}

.post-footer {
  max-width: 42rem;
  margin: 2rem auto 0;
}

.post-back {
  font-weight: 500;
  color: var(--color-primary);
}

.post-back:hover {
  text-decoration: underline;
}

/* Ghost content */
.gh-content {
  font-size: 1.0625rem;
}

.gh-content h2,
.gh-content h3 {
  margin-top: 2rem;
}

.gh-content img {
  border-radius: var(--radius-lg);
}

/* Koenig card widths (required by Ghost theme validator) */
.kg-width-wide img {
  max-width: 85vw;
}

.kg-width-full img {
  width: 100%;
}

.gh-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: translateX(calc(50vw - 50%));
}

.gh-content .kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gh-content .kg-width-full img {
  width: 100%;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0.75rem 0 1rem;
  max-width: 20rem;
}

.site-footer-legal {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

.site-footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer-links a:hover {
  color: var(--color-text);
}

.site-footer-copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  font-size: 0.875rem;
}

.pagination a {
  color: var(--color-primary);
  font-weight: 500;
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-bar);
  }

  .site-header-actions.is-open {
    display: flex;
  }

  .site-header-bar {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .site-header-ctas {
    flex-direction: column;
    width: 100%;
  }

  .site-header-ctas .btn {
    width: 100%;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Outrank-style pricing (sync with packages/marketing-pricing) */
.pricing-outrank {
  padding-block: 4rem;
}

.pricing-header {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .pricing-header {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.pricing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.pricing-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.pricing-gradient {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-sub {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.pricing-card-outrank {
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  margin-bottom: 1.5rem;
}

.pricing-card-grid {
  display: grid;
}

@media (min-width: 900px) {
  .pricing-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card-left {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #ede9fe;
}

@media (min-width: 900px) {
  .pricing-card-left {
    border-bottom: none;
    border-right: 1px solid #ede9fe;
  }
}

.pricing-card-right {
  padding: 2rem 2.5rem;
  background: rgb(124 58 237 / 4%);
}

.pricing-plan-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pricing-plan-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pricing-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.pricing-card-outrank .pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.pricing-compare {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.pricing-period {
  color: var(--color-muted);
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pricing-reassurance {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.pricing-card-right h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .pricing-features {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

.pricing-features li {
  font-size: 0.875rem;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 700;
}

.pricing-volume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #ddd6fe;
  background: rgb(124 58 237 / 6%);
}

.pricing-volume-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-volume-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-weight: 700;
}

.pricing-volume-label strong {
  display: block;
  font-size: 0.875rem;
}

.pricing-volume-label span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.pricing-volume-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.pricing-volume-tiers span {
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  padding: 0.35rem 0.75rem;
}

.pricing-volume-contact {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.pricing-volume-contact a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: none;
}

.pricing-volume-contact a:hover {
  text-decoration: underline;
}
