@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-variable-latin.woff2") format("woff2");
}

:root {
  --qf-navy-950: #081a29;
  --qf-navy-900: #0c2233;
  --qf-navy: #12304a;
  --qf-navy-700: #1b4564;
  --qf-ice: #56b4d3;
  --qf-ice-bright: #7fd3ea;
  --qf-ice-100: #dceff7;
  --qf-mist: #f4f7f9;
  --qf-white: #ffffff;
  --qf-ink: #263746;
  --qf-muted: #5b7183;
  --qf-line: #d5e0e7;
  --qf-line-dark: rgba(127, 211, 234, 0.22);
  --qf-radius: 2px;
  --qf-max: 1240px;
  --qf-gutter: clamp(20px, 4vw, 48px);
  --qf-section-y: clamp(72px, 8vw, 112px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--qf-white);
  color: var(--qf-ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wp-site-blocks {
  overflow-x: clip;
}

.wp-site-blocks > * + * {
  margin-block-start: 0;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--qf-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #2f8fb0;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--qf-ice-100);
  color: var(--qf-navy-950);
}

:focus-visible {
  outline: 3px solid var(--qf-ice);
  outline-offset: 3px;
}

.qf-container {
  width: min(var(--qf-max), 100% - (var(--qf-gutter) * 2));
  margin-inline: auto;
}

.qf-hero__grid > *,
.qf-hero__rail > *,
.qf-system__grid > *,
.qf-products > *,
.qf-apps > *,
.qf-why > *,
.qf-app-detail > *,
.qf-values > *,
.qf-compare > *,
.qf-process > *,
.qf-footer__grid > *,
.qf-about-intro > *,
.qf-contact-grid > *,
.qf-form__row > *,
.qf-section-head--split > *,
.qf-news-grid .wp-block-post-template > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.qf-section-head + * {
  margin-block-start: 0 !important;
}

.qf-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;
}

/* Header */
.qf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--qf-line);
}

body.admin-bar .qf-header {
  top: 32px;
}

.qf-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: 78px;
}

.qf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qf-navy);
  text-decoration: none;
  flex: 0 0 auto;
}

.qf-brand:hover {
  color: var(--qf-navy);
}

.qf-brand__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.qf-brand__name {
  font-family: "DM Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.qf-brand__name-light {
  font-weight: 430;
}

.qf-nav {
  margin-left: auto;
}

.qf-nav .wp-block-navigation__container {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: clamp(18px, 2.2vw, 30px);
  list-style: none;
}

.qf-nav .wp-block-navigation-item {
  list-style: none;
}

.qf-nav .wp-block-navigation-item__content {
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  padding: 8px 0;
}

.qf-nav .wp-block-navigation-item__content:hover,
.qf-nav .wp-block-navigation-item__content:focus {
  color: #2f8fb0;
}

.qf-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
  margin-left: 4px;
  padding: 9px 18px;
  border: 1px solid var(--qf-navy);
  border-radius: var(--qf-radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.qf-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content:hover {
  background: var(--qf-navy);
  color: var(--qf-white);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--qf-navy);
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--qf-navy-950);
  color: var(--qf-white);
  padding: 28px var(--qf-gutter);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 2px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--qf-white);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 12px 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
  border: 0;
  padding: 12px 0;
  margin-left: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: var(--qf-white);
}

/* Hero */
.qf-hero {
  position: relative;
  overflow: hidden;
  background: var(--qf-navy-950);
  color: #eaf5fa;
  padding-top: clamp(56px, 8vw, 104px);
}

.qf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 211, 234, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 211, 234, 0.065) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}

.qf-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 4vw, 52px);
  align-items: center;
}

.qf-hero__title {
  color: var(--qf-white);
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  max-width: 100%;
}

.qf-hero__line {
  display: block;
}

.qf-hero__lede {
  max-width: 48ch;
  margin-top: 28px;
  color: #b9d2de;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.qf-hero__actions {
  margin-top: 36px;
  gap: 12px;
}

.qf-btn .wp-block-button__link,
.qf-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--qf-radius);
  background: var(--qf-ice);
  color: var(--qf-navy-950);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qf-btn .wp-block-button__link:hover,
.qf-form button:hover {
  background: var(--qf-ice-bright);
  color: var(--qf-navy-950);
}

.qf-btn--ghost .wp-block-button__link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--qf-white);
}

.qf-btn--ghost .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--qf-ice-bright);
  color: var(--qf-ice-bright);
}

.qf-btn--ghost-dark .wp-block-button__link {
  background: transparent;
  border-color: var(--qf-navy);
  color: var(--qf-navy);
}

.qf-btn--ghost-dark .wp-block-button__link:hover {
  background: var(--qf-navy);
  border-color: var(--qf-navy);
  color: var(--qf-white);
}

.qf-hero__visual {
  position: relative;
  min-height: clamp(300px, 36vw, 500px);
  background: url("../images/hero-system.svg") center / contain no-repeat;
}

.qf-hero__rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--qf-line-dark);
}

.qf-hero__rail-item {
  padding: 22px 0 26px;
}

.qf-hero__rail-item + .qf-hero__rail-item {
  border-left: 1px solid var(--qf-line-dark);
  padding-left: clamp(24px, 4vw, 48px);
}

.qf-hero__rail-label {
  margin: 0;
}

.qf-hero__rail-label a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qf-white);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.qf-hero__rail-label a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--qf-ice);
  flex: 0 0 auto;
}

.qf-hero__rail-label a:hover {
  color: var(--qf-ice-bright);
}

.qf-hero__rail-note {
  margin-top: 6px;
  color: #8eacbc;
  font-size: 0.92rem;
}

.qf-hero__frostline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 180, 211, 0.7), transparent);
}

/* Sections */
.qf-section {
  padding: var(--qf-section-y) 0;
}

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

.qf-section--rule {
  border-top: 1px solid var(--qf-line);
}

.qf-section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.qf-section-head h2 {
  margin: 0;
}

.qf-section-head p {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--qf-muted);
  font-size: 1.08rem;
}

.qf-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: none;
  align-items: end;
}

.qf-section-head--split p {
  margin-top: 0;
}

/* Product categories */
.qf-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-product {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.2vw, 44px);
  background: var(--qf-white);
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-product__media {
  position: relative;
  height: clamp(210px, 22vw, 280px);
  margin-bottom: 30px;
  background-color: var(--qf-mist);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.qf-product__media::before,
.qf-product__media::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--qf-ice);
  border-style: solid;
}

.qf-product__media::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.qf-product__media::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.qf-media--chiller {
  background-image: url("../images/industrial-chiller.svg");
}

.qf-media--plunge {
  background-image: url("../images/cold-plunge.svg");
}

.qf-product h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.qf-product > p {
  color: var(--qf-muted);
}

.qf-product__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.qf-product__list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--qf-line);
  font-size: 0.98rem;
}

.qf-product__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.65em;
  background: var(--qf-ice);
  flex: 0 0 auto;
}

.qf-product .qf-link {
  margin-top: auto;
  padding-top: 28px;
}

.qf-link {
  margin: 0;
}

.qf-link a {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--qf-ice);
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.qf-link a:hover {
  color: #2f8fb0;
  border-bottom-color: var(--qf-navy);
}

/* Applications */
.qf-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--qf-line);
}

.qf-app-group {
  padding: 32px clamp(28px, 4vw, 56px) 0 0;
}

.qf-app-group + .qf-app-group {
  padding-left: clamp(28px, 4vw, 56px);
  padding-right: 0;
  border-left: 1px solid var(--qf-line);
}

.qf-app-group h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.qf-app-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.qf-app-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--qf-line);
}

.qf-app-icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  fill: none;
  stroke: #2f8fb0;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qf-app-list strong {
  display: block;
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.qf-app-list span {
  display: block;
  margin-top: 5px;
  color: var(--qf-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Why QingFrost */
.qf-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-why__item {
  padding: clamp(26px, 3.2vw, 44px);
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-why__item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.qf-why__item p {
  color: var(--qf-muted);
  font-size: 1rem;
}

/* Inquiry CTA */
.qf-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 96px) 0;
  background: var(--qf-navy-950);
  color: var(--qf-white);
  border-top: 1px solid var(--qf-line-dark);
}

.qf-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 64px);
}

.qf-cta__copy {
  max-width: 640px;
}

.qf-cta h2 {
  color: var(--qf-white);
}

.qf-cta p {
  max-width: 56ch;
  margin-top: 16px;
  color: #b9d2de;
}

.qf-cta__action {
  flex: 0 0 auto;
}

/* Page hero */
.qf-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 96px) 0 clamp(56px, 6vw, 80px);
  background: var(--qf-navy-900);
  color: var(--qf-white);
}

.qf-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 211, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 211, 234, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(110deg, #000 10%, transparent 72%);
  mask-image: linear-gradient(110deg, #000 10%, transparent 72%);
  pointer-events: none;
}

.qf-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.qf-page-hero h1 {
  color: var(--qf-white);
  max-width: 16ch;
}

.qf-page-hero p {
  max-width: 62ch;
  margin-top: 20px;
  color: #b9d2de;
  font-size: 1.1rem;
}

.qf-page-hero .wp-block-post-excerpt {
  max-width: 62ch;
  margin-top: 20px;
}

.qf-page-hero .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: #b9d2de;
  font-size: 1.1rem;
}

.qf-page-hero .wp-block-post-date {
  margin-top: 14px;
  color: #9cb8c7;
  font-size: 0.92rem;
}

/* Product page systems */
.qf-system {
  padding: clamp(56px, 6vw, 88px) 0;
  border-top: 1px solid var(--qf-line);
}

.qf-system:first-of-type {
  border-top: 0;
}

.qf-system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.qf-system--reverse .qf-system__media {
  order: 2;
}

.qf-system__media {
  position: relative;
  min-height: clamp(280px, 32vw, 430px);
  border: 1px solid var(--qf-line);
  background-color: var(--qf-mist);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.qf-system__media::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 24px;
  height: 1px;
  background: var(--qf-ice);
}

.qf-system h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.qf-system__lede {
  margin-top: 16px;
  color: var(--qf-muted);
}

.qf-check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.qf-check-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--qf-line);
}

.qf-check-list li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--qf-ice);
}

.qf-subhead {
  margin-top: 28px;
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.qf-system .qf-link {
  margin-top: 28px;
}

.qf-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-compare > * {
  padding: 24px 28px;
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-compare h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.qf-compare p {
  color: var(--qf-muted);
  font-size: 0.95rem;
}

/* Application page */
.qf-app-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-app-detail__item {
  padding: clamp(26px, 3.2vw, 42px);
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-white);
}

.qf-app-detail__item .qf-app-icon {
  width: 32px;
  height: 32px;
  margin: 0 0 18px;
}

.qf-app-detail__item h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.qf-app-detail__item p {
  color: var(--qf-muted);
  font-size: 1rem;
}

/* About page */
.qf-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.qf-about-intro p {
  color: var(--qf-muted);
  font-size: 1.08rem;
}

.qf-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-process__step {
  padding: 26px 24px 30px;
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-process__num {
  display: block;
  margin-bottom: 18px;
  color: var(--qf-ice);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qf-process__step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.qf-process__step p {
  color: var(--qf-muted);
  font-size: 0.95rem;
}

.qf-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.qf-values > * {
  padding: 28px;
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-values h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.qf-values p {
  color: var(--qf-muted);
  font-size: 0.98rem;
}

/* News */
.qf-news-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.qf-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--qf-line);
}

.qf-news-card .wp-block-post-featured-image {
  margin-bottom: 18px;
}

.qf-news-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.qf-news-card .wp-block-post-date {
  color: var(--qf-muted);
  font-size: 0.88rem;
}

.qf-news-card .wp-block-post-title {
  margin: 8px 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.qf-news-card .wp-block-post-title a {
  color: var(--qf-navy);
  text-decoration: none;
}

.qf-news-card .wp-block-post-title a:hover {
  color: #2f8fb0;
}

.qf-news-card .wp-block-post-excerpt__excerpt {
  color: var(--qf-muted);
  font-size: 0.96rem;
}

.qf-news-empty {
  padding: 40px;
  border: 1px dashed var(--qf-line);
  color: var(--qf-muted);
  text-align: center;
}

.wp-block-query-pagination {
  margin-top: 40px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
}

/* Contact */
.qf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.qf-form {
  margin: 0;
}

.qf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.qf-field {
  margin-bottom: 20px;
}

.qf-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.qf-field input,
.qf-field select,
.qf-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-white);
  color: var(--qf-ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.qf-field textarea {
  min-height: 170px;
  resize: vertical;
}

.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  border-color: var(--qf-ice);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(86, 180, 211, 0.18);
}

.qf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 24px;
  color: var(--qf-muted);
  font-size: 0.92rem;
}

.qf-check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.qf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.qf-notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--qf-ice);
  background: var(--qf-ice-100);
  color: var(--qf-navy);
  font-size: 0.95rem;
}

.qf-notice--error {
  border-left-color: #b4533c;
  background: #fbeeea;
  color: #7a2f20;
}

.qf-contact-aside {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.qf-contact-aside h2,
.qf-contact-aside h3 {
  font-size: 1.15rem;
}

.qf-contact-aside p {
  margin-top: 10px;
  color: var(--qf-muted);
  font-size: 0.98rem;
}

.qf-contact-aside ul {
  margin: 16px 0 0;
  padding-left: 1.1em;
  color: var(--qf-muted);
  font-size: 0.98rem;
}

.qf-contact-aside li + li {
  margin-top: 6px;
}

.qf-placeholder {
  color: #7d909e;
  font-style: italic;
}

.qf-contact-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--qf-line);
}

.qf-contact-block p {
  margin-top: 6px;
}

/* Footer */
.qf-footer {
  padding-top: clamp(56px, 6vw, 80px);
  background: var(--qf-navy-950);
  color: #a9c2cf;
}

.qf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.qf-footer .qf-brand {
  color: var(--qf-white);
}

.qf-footer .qf-brand__name {
  color: var(--qf-white);
}

.qf-footer__intro {
  max-width: 36ch;
  margin-top: 18px;
  color: #a9c2cf;
  font-size: 0.96rem;
}

.qf-footer__tagline {
  margin-top: 14px;
  color: var(--qf-ice);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.qf-footer h2,
.qf-footer h3 {
  margin: 0 0 16px;
  color: var(--qf-white);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}

.qf-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qf-footer li + li {
  margin-top: 9px;
}

.qf-footer a {
  color: #a9c2cf;
  font-size: 0.94rem;
  text-decoration: none;
}

.qf-footer a:hover {
  color: var(--qf-ice-bright);
}

.qf-footer p {
  font-size: 0.94rem;
}

.qf-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 0;
  border-top: 1px solid rgba(127, 211, 234, 0.18);
  color: #7f99a8;
  font-size: 0.85rem;
}

/* Generic page content */
.qf-page-body {
  padding: clamp(56px, 6vw, 88px) 0;
}

.qf-page-content > * + * {
  margin-block-start: 0;
}

.qf-prose {
  max-width: 760px;
}

.qf-prose p,
.qf-prose li {
  color: var(--qf-ink);
}

.qf-prose h2 {
  margin-top: 1.6em;
}

.qf-prose h2:first-child {
  margin-top: 0;
}

.qf-prose ul {
  padding-left: 1.2em;
}

.qf-entry-header h1 {
  margin-bottom: 0.5em;
}

.qf-entry-meta {
  color: var(--qf-muted);
  font-size: 0.9rem;
}

.qf-entry-content > * + * {
  margin-top: 1.2em;
}

.qf-entry-content h2 {
  margin-top: 1.8em;
}

.qf-entry-content ul,
.qf-entry-content ol {
  padding-left: 1.25em;
}

.qf-404 {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
}

.qf-404 p {
  margin: 18px auto 28px;
  color: var(--qf-muted);
}

/* Motion */
@keyframes qf-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qf-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.qf-hero__copy > * {
  animation: qf-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.qf-hero__copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.qf-hero__copy > *:nth-child(3) {
  animation-delay: 0.16s;
}

.qf-hero__visual {
  animation: qf-fade 1.1s 0.12s both;
}

/* WordPress utility fixes */
.wp-block-buttons {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.wp-block-button {
  margin: 0;
}

.wp-block-button__link {
  border-radius: var(--qf-radius);
}

/* Responsive */
@media (max-width: 1080px) {
  .qf-hero__grid {
    grid-template-columns: 1fr;
  }

  .qf-hero__visual {
    width: min(620px, 100%);
    min-height: 360px;
    margin-inline: auto;
  }

  .qf-hero__title {
    max-width: 15ch;
  }

  .qf-process {
    grid-template-columns: 1fr 1fr;
  }

  .qf-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .qf-nav .wp-block-navigation__container {
    gap: 12px;
  }

  .qf-nav .wp-block-navigation-item__content {
    font-size: 0.86rem;
  }

  .qf-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
    padding: 8px 11px;
    margin-left: 0;
  }

  .qf-section-head--split,
  .qf-about-intro,
  .qf-system__grid,
  .qf-contact-grid {
    grid-template-columns: 1fr;
  }

  .qf-system--reverse .qf-system__media {
    order: 0;
  }

  .qf-products,
  .qf-apps,
  .qf-why,
  .qf-app-detail {
    grid-template-columns: 1fr;
  }

  .qf-app-group + .qf-app-group {
    padding-left: 0;
    border-left: 0;
  }

  .qf-app-group {
    padding-right: 0;
  }

  .qf-app-group + .qf-app-group {
    margin-top: 12px;
    border-top: 1px solid var(--qf-line);
    padding-top: 32px;
  }

  .qf-values {
    grid-template-columns: 1fr;
  }

  .qf-news-grid .wp-block-post-template {
    grid-template-columns: 1fr 1fr;
  }

  .qf-hero__rail {
    grid-template-columns: 1fr;
  }

  .qf-hero__rail-item + .qf-hero__rail-item {
    border-left: 0;
    border-top: 1px solid var(--qf-line-dark);
    padding-left: 0;
  }

  .qf-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --qf-gutter: 20px;
  }

  body {
    font-size: 1.05rem;
  }

  body.admin-bar .qf-header {
    top: 46px;
  }

  .qf-header__inner {
    min-height: 68px;
  }

  .qf-brand__mark {
    width: 28px;
    height: 28px;
  }

  .qf-brand__name {
    font-size: 1.18rem;
  }

  .qf-nav .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .qf-hero {
    padding-top: 48px;
  }

  .qf-hero__title {
    font-size: clamp(2.1rem, 9vw, 3.15rem);
  }

  .qf-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .qf-hero__actions .wp-block-button,
  .qf-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .qf-hero__rail {
    margin-top: 36px;
  }

  .qf-product,
  .qf-why__item,
  .qf-app-detail__item {
    padding: 24px;
  }

  .qf-process {
    grid-template-columns: 1fr;
  }

  .qf-compare {
    grid-template-columns: 1fr;
  }

  .qf-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .qf-news-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .qf-footer__grid {
    grid-template-columns: 1fr;
  }

  .qf-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .qf-contact-aside {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .qf-hero__title {
    font-size: 2rem;
  }

  .qf-section-head p,
  .qf-hero__lede {
    font-size: 1rem;
  }
}

@media (max-width: 340px) {
  .qf-hero__title {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editor */
.editor-styles-wrapper {
  background: var(--qf-white);
  color: var(--qf-ink);
  font-family: "Source Sans 3", sans-serif;
}

.editor-styles-wrapper .qf-hero,
.editor-styles-wrapper .qf-cta,
.editor-styles-wrapper .qf-page-hero,
.editor-styles-wrapper .qf-footer {
  color: var(--qf-white);
}

.editor-styles-wrapper .qf-hero h1,
.editor-styles-wrapper .qf-cta h2,
.editor-styles-wrapper .qf-page-hero h1,
.editor-styles-wrapper .qf-footer h2,
.editor-styles-wrapper .qf-footer h3 {
  color: var(--qf-white);
}
