/* Homepage only refinements for new front-page sections */
.home .f360-home-section {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}

.home .f360-home-section--surface {
  background: var(--f360-surface);
}

.home .f360-home-section--low {
  background: var(--f360-surface-container-low);
}

.home .f360-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.home .f360-split-copy {
  max-width: 640px;
}

.home .f360-split-copy h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.home .f360-section-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--f360-on-surface-variant);
  margin: 0 0 1.75rem;
  max-width: 60ch;
}

.home .f360-feature-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.home .f360-feature-point {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.125rem;
  background: var(--f360-surface-container-lowest);
  border: 1px solid rgba(169, 180, 185, 0.22);
  border-radius: var(--f360-radius-sm);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.04);
}

.home .f360-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: rgba(86, 94, 116, 0.1);
  color: var(--f360-primary);
  border: 1px solid rgba(86, 94, 116, 0.18);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home .f360-feature-point h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.home .f360-feature-point p {
  margin: 0;
  color: var(--f360-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.7;
}

.home .f360-visual-panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--f360-radius-sm);
  background: linear-gradient(180deg, rgba(228, 231, 234, 0.85), rgba(212, 217, 223, 0.75));
  border: 1px solid rgba(169, 180, 185, 0.24);
  box-shadow: 0 28px 65px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.home .f360-visual-panel--square {
  aspect-ratio: 1 / 1;
}

.home .f360-visual-panel--wide {
  min-height: 360px;
  aspect-ratio: 1.12 / 1;
}

.home .f360-visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 45%);
  pointer-events: none;
}

.home .f360-diagram-shell,
.home .f360-console-shell {
  position: absolute;
  inset: clamp(1.25rem, 4vw, 2rem);
  background: var(--f360-surface-container-lowest);
  border-radius: calc(var(--f360-radius-sm) - 2px);
  border: 1px solid rgba(169, 180, 185, 0.22);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.07);
}

.home .f360-diagram-shell {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home .f360-diagram-topline {
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: rgba(86, 94, 116, 0.14);
}

.home .f360-diagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.home .f360-diagram-cell {
  display: block;
  height: clamp(68px, 9vw, 92px);
  border-radius: 6px;
  background: rgba(169, 180, 185, 0.18);
  border: 1px solid rgba(169, 180, 185, 0.12);
}

.home .f360-diagram-cell--accent {
  background: rgba(86, 94, 116, 0.18);
  border-color: rgba(86, 94, 116, 0.2);
}

.home .f360-diagram-dropzone {
  flex: 1;
  min-height: 145px;
  border-radius: 6px;
  border: 1px dashed rgba(113, 124, 130, 0.4);
  background: rgba(238, 241, 244, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .f360-diagram-dropzone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(86, 94, 116, 0.08);
  color: var(--f360-outline);
  font-size: 1.75rem;
  line-height: 1;
}

.home .f360-console-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home .f360-console-bar {
  height: 46px;
  background: rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(169, 180, 185, 0.16);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.home .f360-console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(86, 94, 116, 0.45);
}

.home .f360-console-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home .f360-console-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.1);
}

.home .f360-console-line--long { width: 78%; }
.home .f360-console-line--mid { width: 52%; }
.home .f360-console-line--short { width: 66%; }

.home .f360-console-callout {
  margin-top: 1rem;
  min-height: 96px;
  padding: 1rem 1rem 1rem 1.125rem;
  background: rgba(86, 94, 116, 0.12);
  border-left: 4px solid var(--f360-primary);
  border-radius: 6px;
  color: rgba(17, 24, 39, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.home .f360-check-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.home .f360-check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--f360-on-surface);
  font-weight: 500;
  line-height: 1.6;
}

.home .f360-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--f360-primary);
  box-shadow: 0 0 0 4px rgba(86, 94, 116, 0.12);
}

.home .f360-case-card-grid {
  gap: 1.25rem;
}

.home .f360-case-card {
  min-height: 100%;
  padding: 1.75rem 1.5rem 1.4rem;
}

.home .f360-case-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(86, 94, 116, 0.1);
  color: var(--f360-primary);
}

.home .f360-case-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.home .f360-case-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--f360-on-surface-variant);
}

.home .f360-case-card__link {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(169, 180, 185, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f360-primary);
}

.home .f360-case-card__link--secondary {
  color: var(--f360-secondary);
}

.home .f360-case-card__link--tertiary {
  color: var(--f360-tertiary);
}

.home .hero-actions .wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 1.5px;
  border-style: solid;
  border-color: rgba(113, 124, 130, 0.45) !important;
  background: rgba(255, 255, 255, 0.35);
}

.home .hero-deco {
  opacity: 0.68;
}

.home .hero-deco-ring {
  border-color: rgba(169, 180, 185, 0.36);
  opacity: 0.7;
}

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

  .home .f360-split-grid--reverse-mobile .f360-visual-panel {
    order: 1;
  }

  .home .f360-split-grid--reverse-mobile .f360-split-copy {
    order: 2;
  }

  .home .f360-visual-panel,
  .home .f360-visual-panel--wide,
  .home .f360-visual-panel--square {
    min-height: 320px;
    aspect-ratio: auto;
  }
}

/* Solutions block tighten-up */
.home main > .wp-block-group.has-surface-low-background-color,
.home main > .wp-block-group.bg-surface-container-low {
  padding-top: clamp(3.25rem, 4.5vw, 4.25rem) !important;
  padding-bottom: clamp(3.25rem, 4.5vw, 4.5rem) !important;
}

.home main > .wp-block-group.has-surface-low-background-color > .container > .eyebrow,
.home main > .wp-block-group.bg-surface-container-low > .container > .eyebrow {
  margin-bottom: 0.65rem !important;
}

.home main > .wp-block-group.has-surface-low-background-color > .container > .wp-block-heading,
.home main > .wp-block-group.bg-surface-container-low > .container > .wp-block-heading {
  margin: 0 0 1.75rem !important;
  max-width: 17ch;
  line-height: 1.02;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-template,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-template {
  gap: 1.5rem !important;
  align-items: stretch;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-template > li,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-template > li {
  height: 100%;
  list-style: none;
}

.home main > .wp-block-group.has-surface-low-background-color .f360-card,
.home main > .wp-block-group.bg-surface-container-low .f360-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.75rem, 2.2vw, 2.35rem) !important;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-title,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-title {
  margin: 0 0 1rem !important;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-excerpt,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-excerpt {
  margin: 0 0 auto !important;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-excerpt p,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-excerpt p {
  margin-bottom: 0 !important;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-excerpt__more-link,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(86, 94, 116, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--f360-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home main > .wp-block-group.has-surface-low-background-color .wp-block-post-excerpt__more-link:hover,
.home main > .wp-block-group.bg-surface-container-low .wp-block-post-excerpt__more-link:hover {
  background: rgba(86, 94, 116, 0.08);
  border-color: rgba(86, 94, 116, 0.42);
  transform: translateY(-1px);
}

/* === Homepage solution + integration cards refinement === */

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]),
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0 !important;
  padding: clamp(1.5rem, 1.9vw, 1.95rem) !important;
  border: 1px solid rgba(86, 94, 116, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]):hover,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]):hover {
  transform: translateY(-2px);
  border-color: rgba(86, 94, 116, 0.18);
  box-shadow: 0 12px 28px rgba(42, 49, 66, 0.06);
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-title,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-title {
  margin: 0 0 0.85rem !important;
  font-size: clamp(2.1rem, 2.85vw, 3rem) !important;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-title a,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-title a {
  display: block;
  position: relative;
  padding-top: 2.85rem;
  text-decoration: none;
  color: inherit;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-title a::before,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-title a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(86, 94, 116, 0.18);
  background: rgba(86, 94, 116, 0.06);
  color: var(--f360-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Solution badges */
.home .wp-block-post-title a[href*="/solutions/customer-success"]::before {
  content: "CS";
}
.home .wp-block-post-title a[href*="/solutions/data-operations"]::before {
  content: "DO";
}
.home .wp-block-post-title a[href*="/solutions/finance-operations"]::before {
  content: "FO";
}

/* Integration badges */
.home .wp-block-post-title a[href*="/integrations/hubspot"]::before {
  content: "CRM";
}
.home .wp-block-post-title a[href*="/integrations/netsuite"]::before {
  content: "ERP";
}
.home .wp-block-post-title a[href*="/integrations/quickbooks"]::before {
  content: "FIN";
}
.home .wp-block-post-title a[href*="/integrations/salesforce"]::before {
  content: "CRM";
}
.home .wp-block-post-title a[href*="/integrations/stripe"]::before {
  content: "PAY";
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt {
  margin: 0 0 auto !important;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt p,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt p {
  margin-bottom: 0 !important;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-read-more,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f360-primary) !important;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-read-more::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link:hover::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link:hover::after,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-read-more:hover::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-read-more:hover::after {
  transform: translateX(3px);
}

/* Keep CTA anchored lower in the card */
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) > *:last-child,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) > *:last-child {
  margin-top: auto !important;
}

/* Slightly tighten the solution and integration sections */
.home .wp-block-group.bg-surface-container-low {
  padding-top: clamp(3rem, 4vw, 4rem) !important;
  padding-bottom: clamp(3rem, 4vw, 4rem) !important;
}

/* =========================================
   CARD BOTTOM ALIGNMENT + LINK TREATMENT
   Solutions, Integrations, Resources
========================================= */

/* Tighten section spacing */
.home .wp-block-group.bg-surface-container-low,
.home .wp-block-group.bg-surface {
  padding-top: clamp(2.5rem, 3.2vw, 3.5rem) !important;
  padding-bottom: clamp(2.5rem, 3.2vw, 3.5rem) !important;
}

/* Remove excess space around query blocks */
.home .wp-block-query,
.home .wp-block-post-template {
  margin-bottom: 0 !important;
}

.home .wp-block-post-template {
  align-items: stretch !important;
  gap: 1.5rem !important;
}

.home .wp-block-post-template > li {
  display: flex !important;
  height: auto !important;
  list-style: none;
  margin-bottom: 0 !important;
}

/* Make every homepage card a real vertical flex card */
.home .wp-block-post-template > li > .f360-card,
.home .wp-block-post-template > li > article,
.home .wp-block-post-template > li > .wp-block-group {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

/* Text body should not create random bottom gaps */
.home .wp-block-post-template .wp-block-post-excerpt,
.home .wp-block-post-template .wp-block-post-content,
.home .wp-block-post-template .wp-block-group:has(.wp-block-post-excerpt__more-link),
.home .wp-block-post-template .wp-block-group:has(.wp-block-read-more) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.home .wp-block-post-template .wp-block-post-excerpt {
  margin: 0 0 1rem !important;
}

.home .wp-block-post-template .wp-block-post-excerpt p:last-child {
  margin-bottom: 0 !important;
}

/* Push the CTA to the bottom */
.home .wp-block-post-template .wp-block-post-excerpt__more-link,
.home .wp-block-post-template .wp-block-read-more {
  margin-top: auto !important;
  align-self: flex-start;
}

/* Solutions and integrations: link style, not button */
.home .wp-block-post-title a[href*="/solutions/"] ~ .wp-block-post-excerpt__more-link,
.home .wp-block-post-title a[href*="/integrations/"] ~ .wp-block-post-excerpt__more-link,
.home .wp-block-post-title a[href*="/solutions/"] ~ .wp-block-read-more,
.home .wp-block-post-title a[href*="/integrations/"] ~ .wp-block-read-more,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-read-more,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f360-primary) !important;
  font-weight: 600;
  text-decoration: none;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-read-more::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-read-more::after {
  content: "→";
}

/* Resources: remove button treatment and make them upgraded links too */
.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-read-more,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f360-primary) !important;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto !important;
  align-self: flex-start;
}

.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-read-more::after,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-read-more::after {
  content: "→";
}

/* Slightly reduce the oversized section headings */
.home .wp-block-group.bg-surface .wp-block-heading,
.home .wp-block-group.bg-surface-container-low .wp-block-heading {
  margin-bottom: 1.5rem !important;
  max-width: 16ch;
  line-height: 1.02;
}

/* Exact fix for bottom-aligned CTAs inside query cards */

/* Make query items stretch properly */
.home .wp-block-post-template {
  align-items: stretch !important;
}

.home .wp-block-post-template > li {
  display: flex !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

/* Make the card a vertical flex container */
.home .wp-block-post-template > li > article,
.home .wp-block-post-template > li > .f360-card,
.home .wp-block-post-template > li > .wp-block-group {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Excerpt/body area should expand */
.home .wp-block-post-template .wp-block-post-excerpt {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  margin: 0 0 1rem !important;
}

.home .wp-block-post-template .wp-block-post-excerpt p:last-child {
  margin-bottom: 0 !important;
}

/* THIS is the real CTA wrapper that must drop to the bottom */
.home .wp-block-post-template .wp-block-post-excerpt__more-text {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 1rem !important;
}

/* Solutions and integrations - link style, not button */
.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f360-primary) !important;
  font-weight: 600;
  text-decoration: none;
}

.home .f360-card:has(.wp-block-post-title a[href*="/solutions/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/integrations/"]) .wp-block-post-excerpt__more-link::after {
  content: "→";
}

/* Resources - also force link style, not button */
.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-post-excerpt__more-text,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-post-excerpt__more-text {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 1rem !important;
}

.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-post-excerpt__more-link,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-post-excerpt__more-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--f360-primary) !important;
  font-weight: 600;
  text-decoration: none;
}

.home .f360-card:has(.wp-block-post-title a[href*="/resources/"]) .wp-block-post-excerpt__more-link::after,
.home .f360-card:has(.wp-block-post-title a[href*="/blog/"]) .wp-block-post-excerpt__more-link::after {
  content: "→";
}

/* Reduce dead space under these homepage sections */
.home .wp-block-group.bg-surface,
.home .wp-block-group.bg-surface-container-low {
  padding-top: clamp(2.5rem, 3vw, 3.5rem) !important;
  padding-bottom: clamp(2.5rem, 3vw, 3.5rem) !important;
}

.home .wp-block-query,
.home .wp-block-post-template {
  margin-bottom: 0 !important;
}


/* Stats band spacing fix */
.home .wp-block-group.bg-surface-container-low:has(.stats-row) {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home .wp-block-group.bg-surface-container-low:has(.stats-row) > .wp-block-group.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home .stats-row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 1.5rem !important;
  align-items: end;
}

.home .stats-row .wp-block-column {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home .stat-item {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home .stat-item__number {
  margin-top: 0 !important;
  margin-bottom: 0.35rem !important;
  line-height: 0.95;
}

.home .stat-item__label {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .home .f360-home-section {
    padding: 3.75rem 0;
  }

  .home .f360-split-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .home .f360-feature-point {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 0.95rem 1rem;
  }

  .home .f360-point-icon {
    width: 50px;
    height: 50px;
  }

  .home .f360-diagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home .f360-console-callout {
    font-size: 0.72rem;
  }
}
