/* Custom styles beyond Tailwind utilities */

.dotted-grid {
  position: relative;
  background-image: radial-gradient(circle, #d4d4d8 1px, transparent 1px);
  background-size: 12px 12px;
}

.dotted-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 15%,
    rgba(255, 255, 255, 0.75) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-placeholder {
  overflow: hidden;
  border-radius: 2rem 2rem 0 0;
}

.hero-placeholder-image {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
  transform-origin: center bottom;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .hero-placeholder:hover .hero-placeholder-image {
    transform: translateZ(0) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-placeholder-image {
    transition: none;
  }

  .hero-placeholder:hover .hero-placeholder-image {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .hero-placeholder {
    border-radius: 2.5rem 2.5rem 0 0;
  }
}

@media (max-width: 767px) {
  .hero-layout-frame {
    width: 100%;
  }

  .hero-placeholder {
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .hero-stats-sequence {
    min-height: auto;
  }

  .hero-stat-caption {
    max-width: 6.5rem;
  }
}

@property --hero-badge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.hero-badge {
  position: relative;
  padding: 1px;
  border-radius: 9999px;
  background: conic-gradient(
    from var(--hero-badge-angle),
    #e5e7eb 0deg 265deg,
    #2563eb 285deg,
    #60a5fa 305deg,
    #e5e7eb 325deg 360deg
  );
  animation: hero-badge-border-spin 4s linear infinite;
}

.hero-badge__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: #ffffff;
  padding: 0.375rem 1rem;
}

@keyframes hero-badge-border-spin {
  to {
    --hero-badge-angle: 360deg;
  }
}

.layout-frame {
  width: min(1408px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.layout-cross {
  position: absolute;
  bottom: 0;
  z-index: 45;
  width: 11px;
  height: 11px;
  pointer-events: none;
}

.layout-cross-left {
  left: max(1.2rem, calc(50% - 704px));
  transform: translate(-50%, 50%);
}

.layout-cross-right {
  right: max(1.2rem, calc(50% - 704px));
  transform: translate(50%, 50%);
}

.layout-cross-top {
  top: 0;
  bottom: auto;
}

.layout-cross-top.layout-cross-left {
  transform: translate(-50%, -50%);
}

.layout-cross-top.layout-cross-right {
  transform: translate(50%, -50%);
}

.layout-cross::before,
.layout-cross::after {
  content: '';
  position: absolute;
  background-color: #9ca3af;
}

.layout-cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.layout-cross::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.layout-guide-left,
.layout-guide-right {
  position: fixed;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #e5e7eb;
  pointer-events: none;
  z-index: 40;
}

.layout-guide-left {
  left: max(1.2rem, calc(50% - 704px));
}

.layout-guide-right {
  right: max(1.2rem, calc(50% - 704px));
}

.no-layout-guides #footer::before,
.no-layout-guides #footer::after {
  display: none;
}

#footer {
  position: relative;
  z-index: 41;
  isolation: isolate;
  background-color: #1e1e1e;
}

#footer::before,
#footer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

#footer::before {
  left: max(1.2rem, calc(50% - 704px));
}

#footer::after {
  right: max(1.2rem, calc(50% - 704px));
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .layout-guide-left,
  .layout-guide-right,
  .layout-cross,
  #footer::before,
  #footer::after {
    display: none;
  }
}

.heading-word {
  display: inline-block;
  opacity: 0;
  animation: heading-word-fade-in 0.55s ease forwards;
}

.heading-pending {
  visibility: hidden;
}

@keyframes heading-word-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-fade-in] {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: var(--fade-delay, 0ms);
}

[data-fade-in].is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .heading-word {
    opacity: 1;
    animation: none;
    transform: none;
  }

  [data-fade-in] {
    opacity: 1;
    transition: none;
  }

  .hero-stat-icon,
  .hero-stat-caption,
  .hero-stat-value {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero-stats-sequence:not(.hero-stats-complete) .hero-stat {
    visibility: visible;
  }

  .hero-badge {
    animation: none;
    background: #e5e7eb;
  }
}

.hero-stat-icon,
.hero-stat-caption {
  opacity: 0;
}

.hero-stats-sequence:not(.hero-stats-complete) .hero-stat-value {
  opacity: 0;
}

.hero-stats-sequence:not(.hero-stats-complete) .hero-stat.is-counting .hero-stat-value,
.hero-stats-sequence:not(.hero-stats-complete) .hero-stat.is-complete .hero-stat-value {
  opacity: 1;
}

.hero-stat-icon.is-visible,
.hero-stat-caption.is-visible {
  animation: hero-stat-fade-in 0.45s ease forwards;
}

.hero-stats-sequence:not(.hero-stats-complete) .hero-stat:not(.is-active):not(.is-complete) {
  visibility: hidden;
}

.hero-stats-sequence:not(.hero-stats-complete) .hero-stat.is-active,
.hero-stats-sequence:not(.hero-stats-complete) .hero-stat.is-complete {
  visibility: visible;
}

.hero-stats-sequence.hero-stats-complete .hero-stat {
  visibility: visible;
}

.hero-stats-sequence.hero-stats-complete .hero-stat-icon,
.hero-stats-sequence.hero-stats-complete .hero-stat-caption,
.hero-stats-sequence.hero-stats-complete .hero-stat-value {
  opacity: 1;
  animation: none;
  transform: none;
}

@keyframes hero-stat-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flow timeline */
.flow-step:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.flow-step-indicator {
  overflow: hidden;
}

.flow-step-progress {
  display: block;
  width: 0;
  height: 100%;
  background-color: #2563eb;
}

.flow-timeline-body.is-in-view .flow-step.is-active .flow-step-progress {
  animation: flow-step-progress-fill var(--flow-interval, 5s) linear forwards;
}

.flow-step:not(.is-active) .flow-step-progress {
  animation: none;
  width: 0;
}

@keyframes flow-step-progress-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.flow-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.75rem);
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
  pointer-events: none;
}

.flow-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.flow-panel.is-leaving {
  opacity: 0;
  transform: translateY(-0.5rem);
  visibility: visible;
  pointer-events: none;
}

.flow-preview {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 12px 28px -6px rgba(0, 0, 0, 0.12);
}

.flow-preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  pointer-events: none;
}

.flow-preview-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.flow-preview-slide.is-leaving {
  opacity: 0;
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .flow-panel,
  .flow-preview-slide {
    transition: none;
    transform: none;
  }

  .flow-step-progress {
    animation: none !important;
  }

  .flow-timeline-body.is-in-view .flow-step.is-active .flow-step-progress {
    width: 100%;
  }
}

/* Before / After comparison section */
.before-after-grid {
  display: flex;
  flex-direction: column;
}

.before-after-badge-cell--center {
  display: none;
}

@media (min-width: 1024px) {
  .before-after-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
  }

  .before-after-badge-cell--before {
    grid-column: 1;
    grid-row: 1;
  }

  .before-after-badge-cell--center {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .before-after-badge-cell--after {
    grid-column: 3;
    grid-row: 1;
  }

  .before-after-cards:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }

  .before-after-slider-wrap {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-self: stretch;
    min-height: 0;
  }

  .before-after-slider-wrap .before-after-slider {
    flex: 1;
    min-height: 16rem;
  }

  .before-after-cards:last-of-type {
    grid-column: 3;
    grid-row: 2;
  }
}

.before-after-slider {
  --slider-position: 50%;
  touch-action: none;
  cursor: ew-resize;
}

.before-after-image {
  display: block;
  pointer-events: none;
  user-select: none;
}

.before-after-layer--before {
  clip-path: inset(0 calc(100% - var(--slider-position)) 0 0);
  will-change: clip-path;
}

.before-after-divider,
.before-after-handle {
  left: var(--slider-position);
}

.before-after-handle.is-dragging {
  transform: translate(-50%, -50%) scale(1.1);
  cursor: grabbing;
}

.before-after-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.625rem 1.375rem;
  font-family: Lora, Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.before-after-badge--before {
  background-color: rgba(254, 226, 226, 1);
  color: rgba(153, 27, 27, 1);
}

.before-after-badge--after {
  background-color: rgba(219, 234, 254, 1);
  color: rgba(29, 78, 216, 1);
}

.before-after-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
}

.before-after-card--before {
  border: 1px solid rgba(220, 38, 38, 0.2);
  background-color: rgba(254, 242, 242, 1);
}

.before-after-card--after {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background-color: rgba(239, 246, 255, 1);
}

.before-after-card-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  color: #ffffff;
}

.before-after-card--before .before-after-card-icon {
  background-color: rgba(220, 38, 38, 1);
}

.before-after-card--after .before-after-card-icon {
  background-color: rgba(37, 99, 235, 1);
}

.before-after-card-icon svg {
  stroke-width: 3;
}

@media (prefers-reduced-motion: reduce) {
  .before-after-handle {
    transition: none;
  }
}

/* Tools scroll showcase */
.tools-showcase-body {
  --tool-scroll-step-height: clamp(4.5rem, 14vh, 7.5rem);
  --tools-preview-size: clamp(18.975rem, 27.83vw, 24.035rem);
  --tools-nav-height-ratio: 0.75;
  --tools-scroll-buffer: calc(2 * var(--tool-scroll-step-height));
  margin-top: 10%;
}

.tools-showcase-pin {
  background-color: #ffffff;
}

.tools-showcase-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.tools-showcase-sticky {
  flex-shrink: 0;
}

.tools-preview {
  width: var(--tools-preview-size);
  height: var(--tools-preview-size);
  max-width: 100%;
  flex-shrink: 0;
}

.tools-preview-image {
  display: block;
}

/* Number nav */
.tools-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: var(
    --tools-nav-height,
    calc(var(--tools-preview-size) * var(--tools-nav-height-ratio))
  );
}

.tools-nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.tool-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.575rem;
  height: 1.575rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 9999px;
  outline: none;
  transition: background-color 0.35s ease;
}

.tool-nav-item:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.tool-nav-number {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  color: #9ca3af;
  transition: color 0.35s ease;
}

.tool-nav-item.is-active {
  background-color: #2563eb;
}

.tool-nav-item.is-active .tool-nav-number {
  color: #ffffff;
}

/* Content panel */
.tools-content {
  position: relative;
  width: 100%;
  max-width: 20rem;
  flex-shrink: 0;
}

.tools-content-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.tools-content-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tools-content-slide.is-leaving {
  position: absolute;
  opacity: 0;
  transform: translateY(-0.375rem);
}

.tools-scroll-track {
  margin-top: calc(-1 * var(--tool-scroll-step-height));
  /* Keep the pin stuck through the last tools before the next section appears */
  padding-bottom: var(--tools-scroll-buffer);
}

.tool-scroll-step {
  height: var(--tool-scroll-step-height);
  pointer-events: none;
}

.tools-preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.tools-preview-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tools-preview-slide.is-leaving {
  opacity: 0;
  transform: translateY(-0.5rem);
}

@media (min-width: 768px) {
  .tools-showcase-grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .tools-content {
    max-width: clamp(16rem, 22vw, 22rem);
    align-self: center;
  }
}

@media (max-width: 767px) {
  .tools-showcase-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem 1rem;
    align-items: start;
  }

  .tools-nav {
    grid-row: 1;
    align-self: center;
  }

  .tools-showcase-sticky {
    grid-column: 2;
    justify-self: center;
  }

  .tools-content {
    grid-column: 2;
    max-width: none;
  }

  .tools-showcase-pin {
    position: sticky;
    top: 5rem;
    z-index: 10;
    background: linear-gradient(to bottom, #ffffff 88%, transparent);
    padding-bottom: 0.5rem;
  }

  .tools-preview {
    width: min(17.39375rem, 58.443vw);
    height: min(17.39375rem, 58.443vw);
  }

  .tool-nav-item {
    width: 1.225rem;
    height: 1.225rem;
  }

  .tool-nav-number {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-nav-item,
  .tool-nav-number,
  .tools-preview-slide,
  .tools-content-slide {
    transition: none;
    transform: none;
  }
}

/* FAQ accordion */
.faq-trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 0.375rem;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.faq-item.is-open .faq-panel-inner p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-panel-inner p {
    transition: none;
    transform: none;
  }

  .faq-item:not(.is-open) .faq-panel-inner p {
    opacity: 0;
  }

  .faq-item.is-open .faq-panel-inner p {
    opacity: 1;
  }
}

/* CTA vertical grid background */
.cta-grid-bg {
  background-color: #ffffff;
  background-image:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.92) 20%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.15) 80%,
      rgba(255, 255, 255, 0) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      transparent 1px,
      transparent 6px
    ),
    linear-gradient(
      180deg,
      rgba(177, 207, 255, 0.5) 0%,
      rgba(177, 207, 255, 0.5) 50%,
      rgba(177, 207, 255, 0.5) 100%
    );
}

.why-petender-section {
  z-index: 41;
  isolation: isolate;
}

/* Centralised dashboard preview */
.dashboard-preview-outer {
  width: 100%;
}

.dashboard-preview-frame {
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.dashboard-preview-wrap:hover .dashboard-preview-frame {
  transform: scale(1.03);
}

.dashboard-preview-image {
  display: block;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-preview-frame {
    transition: none;
  }

  .dashboard-preview-wrap:hover .dashboard-preview-frame {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .centralised-dashboard-copy {
    transform: translateY(-10%);
  }
}

.dashboard-feature-highlights {
  width: 100%;
}

/* Features showcase accordion */
.features-showcase-item {
  border-bottom: 1px solid #e5e7eb;
}

.features-showcase-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.features-showcase-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.features-showcase-trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 0.375rem;
}

.features-showcase-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.features-showcase-item.is-active .features-showcase-icon {
  color: #2563eb;
}

.features-showcase-title {
  flex: 1;
  min-width: 0;
  font-family: Lora, Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.features-showcase-item.is-active .features-showcase-title {
  color: #111827;
  font-weight: 600;
}

.features-showcase-chevron {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: color 0.3s ease;
}

.features-showcase-item.is-active .features-showcase-chevron {
  color: #6b7280;
}

.features-showcase-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-showcase-item.is-active .features-showcase-panel {
  grid-template-rows: 1fr;
}

.features-showcase-panel-inner {
  overflow: hidden;
}

.features-showcase-description {
  margin: 0;
  padding: 0 0 1.125rem 2.625rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6b7280;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.features-showcase-item.is-active .features-showcase-description {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .features-showcase-preview-wrap {
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
  }

  .features-showcase-preview {
    width: min(100cqw, 100cqh);
    max-width: 100%;
    max-height: 100%;
  }
}

.features-showcase-preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.features-showcase-preview-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .features-showcase-panel,
  .features-showcase-description,
  .features-showcase-preview-slide {
    transition: none;
    transform: none;
  }

  .features-showcase-item:not(.is-active) .features-showcase-description {
    opacity: 0;
  }

  .features-showcase-item.is-active .features-showcase-description {
    opacity: 1;
  }
}

/* Pricing table */
.pricing-card {
  --pricing-accent: #2563eb;
  --pricing-accent-light: #eff6ff;

  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

.pricing-card-top {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.625rem 1.5rem 1.375rem;
}

.pricing-card-top > p {
  min-height: 2.5rem;
}

.pricing-card--featured .pricing-card-top {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(96, 165, 250, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
}

.pricing-card-bottom {
  flex: 1;
  padding: 1rem 1.5rem 1.625rem;
  background-color: #ffffff;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.375rem;
  min-height: 4.5rem;
  margin-top: 1.5rem;
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.625rem;
  min-height: 2.5rem;
}

.pricing-price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
  display: flex;
  align-items: flex-end;
}

.pricing-price-original {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: #9ca3af;
  text-decoration: line-through;
  padding-bottom: 0.2rem;
}

.pricing-price-amount--text {
  font-size: 2rem;
  line-height: 1.1;
}

.pricing-price-suffix {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #6b7280;
}

.pricing-price-note {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9ca3af;
  min-height: 1.05rem;
}

.pricing-price-note--empty {
  visibility: hidden;
}

.pricing-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 0.625rem;
  padding: 0.6875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.pricing-btn--primary {
  border: 1px solid var(--pricing-accent);
  background-color: var(--pricing-accent);
  color: #ffffff;
}

.pricing-btn--primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.pricing-btn--disabled {
  border: 1px solid #e5e7eb;
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

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

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #374151;
}

.pricing-feature + .pricing-feature {
  margin-top: 0.6875rem;
}

.pricing-check {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  background-color: var(--pricing-accent-light);
  color: var(--pricing-accent);
}

.pricing-check svg {
  stroke-width: 3;
}

@media (min-width: 1024px) {
  .pricing-card-top {
    min-height: 17.75rem;
  }
}

/* Blog page */
.blog-page-bg {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(177, 207, 255, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(177, 207, 255, 0.35) 0%, transparent 70%);
}

.blog-post-list {
  display: flex;
  flex-direction: column;
}

.blog-post-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.blog-post-row:first-child {
  padding-top: 0;
}

.blog-post-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-post-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.blog-post-link:hover .blog-post-title {
  color: #2563eb;
}

.blog-post-thumb {
  flex-shrink: 0;
  width: calc(5.5rem * 1.15);
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
  background-color: #d9d9d9;
  object-fit: cover;
}

.blog-post-body {
  min-width: 0;
  flex: 1;
}

.blog-post-title {
  font-family: Lora, Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  transition: color 0.2s ease;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #9ca3af;
}

.blog-post-meta-dot {
  color: #d1d5db;
}

@media (min-width: 768px) {
  .blog-post-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    padding: 2.5rem 0;
  }

  .blog-post-link {
    gap: 1.125rem;
  }

  .blog-post-thumb {
    width: calc(6.5rem * 1.15);
  }

  .blog-post-title {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-link,
  .blog-post-title {
    transition: none;
  }
}

/* Blog article (single post) */
.blog-article {
  max-width: calc(42rem * 1.2);
  margin-inline: auto;
  padding: 3rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .blog-article {
    padding: 4rem 2rem 5rem;
  }
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #9ca3af;
}

.blog-breadcrumb-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb-link:hover {
  color: #2563eb;
}

.blog-breadcrumb-separator {
  color: #d1d5db;
}

.blog-breadcrumb-current {
  color: #6b7280;
}

.blog-article-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #111827;
}

@media (min-width: 640px) {
  .blog-article-title {
    font-size: 2.25rem;
  }
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #9ca3af;
}

.blog-article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 2rem;
  border-radius: 1rem;
  background-color: #d9d9d9;
  object-fit: cover;
}

@media (min-width: 640px) {
  .blog-article-hero {
    margin-top: 2.5rem;
    border-radius: 1.25rem;
  }
}

.blog-article-content {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #374151;
}

@media (min-width: 640px) {
  .blog-article-content {
    margin-top: 3rem;
    font-size: 1rem;
  }
}

.blog-article-content > * + * {
  margin-top: 1.25rem;
}

.blog-article-content h2 {
  margin-top: 2.5rem;
  font-family: Lora, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.blog-article-content h2:first-child {
  margin-top: 0;
}

.blog-article-content h3 {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #111827;
}

.blog-article-content ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.blog-article-content li + li {
  margin-top: 0.5rem;
}

.blog-article-content strong {
  font-weight: 600;
  color: #111827;
}

.blog-article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 0.9em;
}

.blog-article-content th,
.blog-article-content td {
  min-width: 8rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}

.blog-article-content th {
  background: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.blog-article-content th p,
.blog-article-content td p {
  margin: 0;
}

/* Sign-in & contact sales — full-height split layout */
.auth-main {
  flex: 1;
  min-height: calc(100vh - var(--navbar-height, 4rem));
  grid-template-rows: 1fr 1fr;
}

@media (min-width: 1024px) {
  .auth-main {
    grid-template-rows: 1fr;
  }
}

.auth-left-panel {
  position: relative;
  overflow: hidden;
  background-color: #eef2f7;
}

.auth-left-panel-placeholder {
  position: absolute;
  inset: 0;
  background-color: #d9d9d9;
}

.auth-left-panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-left-panel:has(.auth-left-panel-image) .auth-left-panel-placeholder {
  display: none;
}

.auth-right-panel {
  background-color: #f7f7f8;
}

.auth-field {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #111827;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-field::placeholder {
  color: #9ca3af;
}

.auth-field:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.15);
}

.auth-form-content {
  width: 100%;
  max-width: 26rem;
  transform: scale(0.9);
  transform-origin: center center;
}

.auth-form-header {
  margin-bottom: 1.75rem;
  text-align: left;
}

.auth-form-title {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111827;
}

.auth-form-subtitle {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9ca3af;
}

.auth-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #ffffff;
  color: #111827;
  transition: background-color 0.2s ease;
}

.auth-social-btn:hover {
  background: #f9fafb;
}

.auth-social-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.auth-divider {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-divider-after-form {
  margin-top: 1.5rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 0.75rem;
  background: #f7f7f8;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.auth-required {
  color: #2563eb;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-field-icon {
  padding-left: 2.5rem;
}

.auth-field-password {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
  color: #9ca3af;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.auth-password-toggle:hover {
  color: #6b7280;
}

.auth-password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.25rem;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
  cursor: pointer;
}

.auth-checkbox {
  width: 0.9375rem;
  height: 0.9375rem;
  border-radius: 0.25rem;
  accent-color: #111827;
}

.auth-forgot-link {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: #111827;
}

.auth-submit-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  border: none;
  border-radius: 0.625rem;
  background: #93c5fd;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:active,
.auth-submit-btn:focus-visible {
  background: #2563eb;
}

/* Sign-in — centered Attio-style layout */
.sign-in-page {
  overflow-y: auto;
}

.sign-in-page #sign-in {
  width: 100%;
}

.auth-main--centered {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 5.5rem;
  background-color: #ffffff;
  grid-template-rows: unset;
}

.auth-top-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 1rem 0;
}

.auth-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.8rem 1rem 2.5rem;
}

.auth-shell {
  width: 100%;
  max-width: 22.5rem;
}

.auth-logo-link--top {
  display: flex;
  margin-bottom: 0;
}

.auth-logo-img {
  height: 1.8rem;
  width: auto;
}

.auth-form-header--centered {
  margin-bottom: 1.25rem;
  text-align: center;
  transform: translateY(-10%);
}

.auth-form-header--centered .auth-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

.auth-form-header--centered .auth-form-subtitle {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.auth-social-row--centered {
  gap: 0.625rem;
}

.auth-social-btn--provider {
  gap: 0.5rem;
  height: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-social-btn--provider svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.auth-divider--line {
  margin: 1.25rem 0;
  min-height: 1px;
}

.auth-divider--line::before {
  background: #e5e7eb;
}

.auth-divider--line span {
  display: none;
}

.auth-form--centered {
  gap: 0.75rem;
}

.auth-password-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-step--hidden {
  display: none;
}

.auth-main--centered .auth-field-group {
  gap: 0;
}

.auth-main--centered .auth-field {
  height: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border-color: #e5e7eb;
}

.auth-main--centered .auth-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-main--centered .auth-form-options {
  margin-top: 0.125rem;
}

.auth-main--centered .auth-submit-btn {
  height: 2.75rem;
  margin-top: 0.125rem;
  border-radius: 0.5rem;
  background: #2563eb;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
}

.auth-main--centered .auth-submit-btn:hover,
.auth-main--centered .auth-submit-btn:active,
.auth-main--centered .auth-submit-btn:focus-visible {
  background: #1d4ed8;
}

.auth-page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  background-color: #ffffff;
}

.auth-page-footer p {
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #9ca3af;
}

.auth-page-footer p + p {
  margin-top: 0.625rem;
}

.auth-legal--meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 1rem;
}

.auth-legal-link {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.auth-legal-link:hover {
  color: #6b7280;
}


/* Contact sales page */
.sales-left-panel {
  position: relative;
  overflow: hidden;
  background-color: #eef2f7;
}

.sales-right-panel {
  background-color: #f7f7f8;
}

.sales-left-panel-placeholder {
  position: absolute;
  inset: 0;
  background-color: #d9d9d9;
}

.sales-left-panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sales-left-panel:has(.sales-left-panel-image) .sales-left-panel-placeholder {
  display: none;
}

.sales-info-card {
  position: relative;
  z-index: 1;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
}
