/* Public homepage. Shared account and legal pages retain their own layout. */
:root {
  --midnight: #202e42;
  --mist: #f1f5f9;
  --steel: #91b1cc;
  --surface: color-mix(in srgb, var(--midnight) 5%, var(--mist));
  --navy: var(--midnight);
  --ink: var(--midnight);
  --blue: var(--midnight);
  --muted: #4e5763;
  --border: #d2dce6;
}

.site-header {
  background: var(--mist);
}

.desktop-nav,
.header-actions {
  font-size: .875rem;
}

.rf-hero {
  padding: 0;
  overflow: hidden;
  background: var(--midnight);
  color: white;
  text-align: left;
}

.rf-hero-layout {
  display: grid;
  grid-template-columns: 1fr .94fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  min-height: 570px;
  padding-block: 28px;
}

.rf-hero-copy {
  padding-block: clamp(30px, 5vw, 72px);
}

.rf-hero-copy .eyebrow {
  color: var(--steel);
  font-size: .76rem;
  letter-spacing: .1em;
}

.rf-hero h1 {
  margin: 16px 0 20px;
  color: var(--mist);
  font-size: clamp(2.6rem, 4.55vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.rf-hero h1 span {
  color: inherit;
}

.rf-hero h1 span:last-child {
  color: var(--mist);
}


.rf-hero-lead {
  max-width: 49ch;
  margin: 0;
  color: var(--mist);
  font-size: clamp(1rem, 1.3vw, 1.19rem);
  line-height: 1.65;
}

.rf-hero .hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
}

.rf-hero-button {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--midnight);
}

.rf-hero-button:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--midnight);
}

.rf-hero-link,
.v4-feature-grid article > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.rf-hero-link {
  color: var(--mist);
  min-height: 44px;
}

.rf-hero-link:hover,
.v4-feature-grid article > a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.rf-hero-image {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.rf-hero-image img {
  position: absolute;
  width: 100%;
  border-radius: 36px 36px 36px 8px;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.rf-hero-label {
  position: absolute;
  bottom: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  background: var(--mist);
  color: var(--midnight);
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 750;
}

.v4-feature-section {
  background: var(--mist);
}

.v4-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v4-feature-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 34px);
  min-height: 252px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--steel);
  border-radius: 14px;
  background: var(--surface);
}

.v4-feature-grid article .rf-feature-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 9px;
  color: var(--midnight);
  background: var(--mist);
}

.v4-feature-grid article h3,
.v4-feature-grid article p {
  margin: 0;
}

.v4-feature-grid article > a {
  align-self: flex-start;
  margin-top: auto;
  padding-block: 8px;
  color: var(--midnight);
  font-size: .875rem;
}

@media (max-width: 960px) {
  .v4-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .rf-hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0 20px;
    min-height: 0;
  }

  .rf-hero-copy {
    padding-block: 42px 28px;
  }

  .rf-hero h1 {
    font-size: clamp(2.25rem, 9vw, 3.35rem);
    text-wrap: initial;
  }

  .rf-hero-image {
    min-height: 245px;
  }

  .rf-hero-image img {
    width: 100%;
    border-radius: 22px 22px 22px 6px;
  }

  .rf-hero-label {
    bottom: 14px;
    left: 14px;
  }
}

@media (max-width: 480px) {
  .v4-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Carry the palette from the product overview through the footer. */
.header-actions .button,
.pricing-card .button {
  background: var(--midnight);
  border-color: var(--midnight);
}

.header-actions .button:hover,
.pricing-card .button:hover {
  background: color-mix(in srgb, var(--midnight) 87%, var(--mist));
  border-color: var(--midnight);
}

.section-heading h2,
.v4-section-intro h2,
.v4-integrations h2,
.v4-story h2,
.pricing-copy h2,
.pricing-card .price,
.v4-feature-grid article h3,
.integration-banner article h3,
.faq-list summary {
  color: var(--midnight);
}

.eyebrow,
.text-link,
.v4-demo-caption .text-link {
  color: var(--midnight);
}

.v4-demo-frame,
.integration-banner,
.integration-banner article,
.pricing-card,
.faq-list details {
  border-color: var(--border);
}

.integration-banner,
.integration-banner article,
.savings-section,
.site-footer {
  background: var(--surface);
}

.v4-story-photos {
  grid-template-columns: 1fr;
}

.v4-story-photos img {
  height: clamp(220px, 28vw, 360px);
  object-position: center 42%;
  border-radius: 24px;
}

.v4-story-photos figure:last-child img {
  object-position: center 42%;
}

.calculator-results,
.trust-section {
  background: var(--midnight);
}

.final-cta {
  background: var(--midnight);
}

.trust-section .eyebrow,
.final-cta .eyebrow {
  color: var(--steel);
}

.final-cta .button-light {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--midnight);
}

.final-cta .button-light:hover {
  background: var(--mist);
  border-color: var(--mist);
}

.footer-main nav h3 {
  color: var(--midnight);
}

.footer-main nav a,
.footer-bottom,
.footer-main > .footer-brand p {
  color: var(--midnight);
  font-size: .875rem;
}

body,
.pricing-card,
.calculator-form {
  background: var(--mist);
}

.faq-list details[open] {
  background: var(--surface);
}

.calculator-chosen {
  background: color-mix(in srgb, var(--midnight) 85%, var(--mist)) !important;
  border-color: var(--steel) !important;
}

.desktop-nav a,
.desktop-nav a:hover,
.login-link:hover,
.text-link:hover {
  color: var(--midnight);
}

.final-cta .button-outline-light {
  background: transparent;
  border-color: var(--mist);
  color: var(--mist);
}

.final-cta .button-outline-light:hover {
  background: color-mix(in srgb, var(--midnight) 85%, var(--mist));
}

.final-cta p:not(.eyebrow) {
  color: var(--mist);
  font-size: .9375rem;
}

.trust-grid article {
  background: var(--mist);
  border-color: color-mix(in srgb, var(--midnight) 65%, var(--mist));
}

.pricing-card .check-list .icon {
  color: var(--midnight);
}

.platform-strip {
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
  background: var(--mist);
  text-align: center;
}

.platform-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px clamp(22px, 3.2vw, 48px);
  margin: 19px 0 15px;
  padding: 0;
  list-style: none;
}

.platform-strip-list li {
  color: var(--muted);
  font-size: clamp(1.125rem, 1.65vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -.03em;
}

.platform-strip-list img {
  width: auto;
  height: 27px;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  .platform-strip.is-scrolling .platform-strip-window {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }

  .platform-strip.is-scrolling .platform-strip-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: platform-scroll 38s linear infinite;
  }

  .platform-strip.is-scrolling .platform-strip-list {
    flex: 1 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-inline: clamp(11px, 1.6vw, 24px);
  }

  .platform-strip-window:focus .platform-strip-track,
  .platform-strip-window:hover .platform-strip-track {
    animation-play-state: paused;
  }

  @keyframes platform-scroll {
    to { transform: translateX(-50%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-strip-list[aria-hidden="true"] {
    display: none;
  }
}

.site-header,
.v4-story,
.faq-list details[open],
.footer-bottom {
  border-color: var(--border);
}

.trust-section h2,
.final-cta h2 {
  color: var(--mist);
}

.trust-section .trust-grid h3,
.trust-section .trust-grid p,
.trust-section .trust-grid a {
  color: var(--midnight);
}

.rf-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.platform-strip-list .platform-unavailable {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.platform-badge {
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--midnight);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0;
}

.rf-workflow {
  margin-top: clamp(28px, 5vw, 62px);
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.rf-workflow h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.rf-workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 36px;
  margin: 22px 0 0;
  padding-inline-start: 1.5rem;
}

.rf-workflow li::marker {
  color: var(--midnight);
  font-weight: 750;
}

.rf-workflow h3 {
  margin-bottom: 5px;
}

@media (max-width: 650px) {
  .rf-workflow ol {
    grid-template-columns: 1fr;
  }
}

.rf-workflow .sophie-status {
  margin-top: 12px;
  max-width: 68ch;
  font-size: .875rem;
}
