/* DESIGN SYSTEM: picacrm.com — deep blue / purple gradient / cyan accent / SaaS marketing */

:root {
  --color-bg: #eef2ff;
  --color-surface: #ffffff;
  --color-ink: #0b1220;
  --color-muted: #5c6578;
  --color-border: #e2e8f0;
  --color-deep: #0f2857;
  --color-purple: #5b21b6;
  --color-purple-light: #7c3aed;
  --color-accent: #0ea5e9;
  --color-accent-soft: #e0f2fe;
  --gradient-hero: linear-gradient(
    135deg,
    #0f2857 0%,
    #312e81 45%,
    #5b21b6 100%
  );
  --gradient-btn: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --font-sans: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-photo: 16px;
  --shadow: 0 8px 32px rgba(15, 40, 87, 0.12);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
  --header-h: 84px;
  --max: 1160px;
  /* Horizontal inset for all page sections (header → footer alignment) */
  --page-pad: 1.25rem;
  /* Use when one box has both max-width and horizontal padding (border-box): inner content width = --max */
  --layout-outer: calc(var(--max) + 2 * var(--page-pad));
  --section-y: 4rem;
  --section-gap: 4.5rem;
  --scroll-margin: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

[id] {
  scroll-margin-top: var(--scroll-margin);
}

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

a {
  color: var(--color-accent);
}

a:hover {
  color: #0284c7;
}

:focus-visible {
  outline: 2px solid var(--color-purple-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-deep);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--layout-outer);
  margin: 0 auto;
  padding: 0.85rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 55px;
  width: auto;
  max-width: min(264px, 52vw);
  display: block;
  object-fit: contain;
}

@media (max-width: 480px) {
  .logo img {
    height: 48px;
    max-width: 216px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--color-accent-soft);
  color: #0369a1;
}

.site-nav a.is-active {
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  color: var(--color-purple);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta .btn {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-deep);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: #f8fafc;
  color: var(--color-deep);
}

.ad-wrap {
  max-width: var(--layout-outer);
  margin: 0 auto;
  padding: 0.75rem var(--page-pad);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.ad-wrap ins {
  display: block;
}

/* Breadcrumbs — blog + article only, left-aligned, same width as content */
.breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  max-width: var(--layout-outer);
  margin: 0 auto;
  padding: 0.65rem var(--page-pad);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: #cbd5e1;
  font-weight: 400;
  pointer-events: none;
}

.breadcrumb-list a {
  color: var(--color-deep);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--color-accent);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--color-muted);
  font-weight: 500;
  max-width: min(100%, 42ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .breadcrumb-list [aria-current="page"] {
    white-space: normal;
    text-overflow: unset;
    max-width: 100%;
  }
}

.hero {
  background: var(--gradient-hero);
  color: #f1f5f9;
  padding: 3.25rem var(--page-pad) 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(124, 58, 237, 0.35) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero .btn-primary {
  background: #fff;
  color: var(--color-deep);
  box-shadow: var(--shadow-soft);
}

.hero .btn-primary:hover {
  color: var(--color-deep);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.hero-jump a {
  color: #c7d2fe;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 210, 254, 0.4);
}

.hero-jump a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hero-media {
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo);
}

.section {
  padding: var(--section-gap) var(--page-pad);
}

.section-alt {
  background: var(--color-surface);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-deep);
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-visual {
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-visual img {
  border-radius: var(--radius-photo);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--color-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-btn);
}

.rss-block {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.rss-block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--color-deep);
  font-size: 0.95rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.rss-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rss-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
}

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

.rss-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--color-ink);
  text-decoration: none;
}

.rss-card-link:hover .rss-card-title {
  color: var(--color-accent);
}

.rss-card-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.rss-card-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.rss-loading,
.rss-fallback {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

.ticker-wrap {
  overflow: hidden;
  margin: 0 auto;
  max-width: var(--layout-outer);
  width: 100%;
  padding: 0.85rem var(--page-pad);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #f1f5f9;
  box-sizing: border-box;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 40s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--color-muted);
  text-decoration: none;
}

.ticker-item:hover {
  color: var(--color-deep);
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-deep);
}

.faq-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.site-footer {
  background: linear-gradient(180deg, #0a1628 0%, var(--color-deep) 45%);
  color: #cbd5e1;
  padding: 3rem var(--page-pad) 2rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem 2.5rem;
  align-items: start;
}

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

.footer-brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-brand img {
  height: 56px;
  width: auto;
  max-width: 278px;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  max-width: 32ch;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .footer-nav {
    justify-content: flex-start;
  }
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Blog layout */
.blog-hero {
  background: var(--gradient-hero);
  color: #e2e8f0;
  padding: 2.5rem var(--page-pad) var(--section-gap);
}

.blog-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.blog-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.blog-hero p {
  margin: 0;
  max-width: 52ch;
  opacity: 0.95;
}

.blog-layout {
  max-width: var(--layout-outer);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-pad) 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-bar button {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-muted);
  cursor: pointer;
}

.filter-bar button.is-active {
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  color: var(--color-purple);
  font-weight: 600;
}

.blog-feed-grid {
  display: grid;
  gap: 1.25rem;
}

.blog-card {
  padding: 1.35rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.blog-card-title-link {
  color: var(--color-deep);
  text-decoration: none;
}

.blog-card-title-link:hover {
  color: var(--color-accent);
}

.blog-card-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.blog-card-more {
  margin: 1.1rem 0 0;
}

.blog-rss-section {
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.blog-rss-section-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-deep);
}

.blog-rss-section-lede {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.blog-rss-section .rss-block {
  margin-top: 1.25rem;
}

.blog-rss-section .rss-block:first-of-type {
  margin-top: 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  width: 100%;
  min-width: 0;
}

.sidebar-ad-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.sidebar-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.sidebar-ad-stack ins,
.sidebar-ad-slot ins {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Async ad scripts often inject iframes inside ins — center them in the column */
.sidebar-ad-slot iframe,
.sidebar-ad-stack iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-blog .sidebar {
  text-align: center;
}

@media (max-width: 960px) {
  .sidebar-ad-sky {
    display: none;
  }
}

/* Article */
.article-rss-strip {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--color-border);
}

.article-rss-strip .rss-block {
  margin-top: 0;
}

.article-layout {
  max-width: var(--layout-outer);
  margin: 0 auto;
  padding: 0 var(--page-pad) 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 2rem;
  align-items: start;
}

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

.article-header {
  padding: 2rem 0 1rem;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.article-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--color-deep);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tags span {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ede9fe;
  color: var(--color-purple);
  font-weight: 500;
}

.article-hero-figure {
  margin: 0 0 1.5rem;
}

.article-hero-figure img {
  border-radius: var(--radius-photo);
  width: 100%;
  height: auto;
}

.page-article .article-header {
  padding-top: 0.75rem;
}

.article-body {
  font-size: 1.0625rem;
  color: var(--color-ink);
  overflow: hidden;
}

.article-body p {
  margin: 0 0 1.15rem;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
  color: var(--color-deep);
}

.article-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-deep);
}

.article-body .pull-quote {
  margin: 1.75rem 0;
  padding: 1rem var(--page-pad);
  border-left: 4px solid var(--color-purple-light);
  background: #faf5ff;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-deep);
}

.article-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
  margin: 2rem 0;
}

.float-ad {
  float: right;
  margin: 0 0 1rem var(--page-pad);
  max-width: 300px;
}

@media (max-width: 640px) {
  .float-ad {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
}

.read-more {
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.read-more h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--color-deep);
}

.read-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.read-card {
  padding: 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.read-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.read-card a {
  text-decoration: none;
  color: var(--color-deep);
  font-weight: 600;
}

.read-card a:hover {
  color: var(--color-accent);
}

.read-card .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

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

.read-card .read-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.sticky-sky {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

@media (max-width: 900px) {
  .sticky-sky {
    display: none;
  }
}

.page-home .hero {
  padding-bottom: 3rem;
}
